:is(#torrell-cookie-notice, #torrell-cookie-dialog) {
  --tc-ink: #101413;
  --tc-paper: #f3f0e8;
  --tc-rule: #b8b6aa;
  --tc-gold: #f2d58a;
  --tc-green: #126557;
  box-sizing: border-box;
  color: var(--tc-ink);
  background: var(--tc-paper);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
  letter-spacing: normal;
  text-transform: none;
  border: 1px solid var(--tc-ink);
  border-top: 4px solid var(--tc-green);
  border-radius: 0;
}
:is(#torrell-cookie-notice, #torrell-cookie-dialog) *, :is(#torrell-cookie-notice, #torrell-cookie-dialog) *::before { box-sizing: border-box; }
#torrell-cookie-notice[hidden], #torrell-cookie-dialog:not([open]) { display: none !important; }
#torrell-cookie-notice {
  position: fixed;
  z-index: 100040;
  margin: 0;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(476px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 18px 22px 20px;
}
:is(#torrell-cookie-notice, #torrell-cookie-dialog) h2 {
  color: var(--tc-ink); margin: 0; font-family: inherit; font-size: 28px;
  line-height: 1.05; letter-spacing: -.047em; font-weight: 750; text-transform: none;
}
#torrell-cookie-notice p { margin: 9px 0 16px; color: #343b37; font: inherit; font-size: 14px; line-height: 1.45; }
#torrell-cookie-notice .tc-notice-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#torrell-cookie-notice .tc-notice-heading a {
  color: #343b37; padding-block: 6px; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px;
}
#torrell-cookie-notice .tc-actions { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 8px; }
:is(#torrell-cookie-notice, #torrell-cookie-dialog) button {
  width: auto; min-width: 0; height: auto; min-height: 44px; margin: 0; padding: 9px 14px;
  border: 1px solid var(--tc-ink); border-radius: 0; box-shadow: none; background: transparent;
  color: var(--tc-ink); font: inherit; font-size: 14px; font-weight: 700; line-height: 1.15;
  text-transform: none; letter-spacing: normal; cursor: pointer;
}
#torrell-cookie-notice .tc-choice { width: 100%; }
#torrell-cookie-notice .tc-configure { padding-inline: 8px; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
:is(#torrell-cookie-notice, #torrell-cookie-dialog) button:hover { background: var(--tc-gold); color: var(--tc-ink); }
:is(#torrell-cookie-notice, #torrell-cookie-dialog) :is(button, input, a):focus-visible, .tc-policy-open:focus-visible {
  outline: 3px solid #137366; outline-offset: 2px;
}
#torrell-cookie-dialog {
  position: fixed; inset: 0; margin: auto; width: min(540px, calc(100% - 32px));
  max-height: calc(100dvh - 32px); overflow: auto; padding: 24px;
}
#torrell-cookie-dialog::backdrop { background: rgb(6 11 9 / 66%); }
#torrell-cookie-dialog .tc-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
#torrell-cookie-dialog h2 { font-size: clamp(26px, 4.5vw, 33px); align-self: center; }
#torrell-cookie-dialog .tc-close { min-width: 44px; padding: 0; font-size: 29px; font-weight: 400; }
#torrell-cookie-dialog .tc-form { margin: 0; }
#torrell-cookie-dialog .tc-option {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0;
  padding: 15px 0; border-top: 1px solid var(--tc-rule); color: var(--tc-ink);
  font: inherit; line-height: 1.3; cursor: pointer;
}
#torrell-cookie-dialog .tc-required { cursor: default; }
#torrell-cookie-dialog .tc-option strong { font: inherit; font-size: 16px; font-weight: 750; }
#torrell-cookie-dialog .tc-explanation { display: block; color: #3d453f; font-size: 14px; margin-top: 4px; }
#torrell-cookie-dialog .tc-status { flex-shrink: 0; font-size: 12px; color: #285a4d; font-weight: 700; }
#torrell-cookie-dialog input[type="checkbox"] {
  appearance: auto; position: static; flex-shrink: 0; display: block; opacity: 1;
  width: 22px; height: 22px; min-width: 22px; margin: 0 1px; accent-color: var(--tc-green); cursor: pointer;
}
#torrell-cookie-dialog .tc-dialog-actions {
  display: flex; gap: 16px; align-items: center; justify-content: space-between; border-top: 1px solid var(--tc-rule); padding-top: 16px;
}
#torrell-cookie-dialog .tc-dialog-actions a {
  padding: 9px 0; color: var(--tc-ink); font: inherit; font-size: 13px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px;
}
#torrell-cookie-dialog .tc-save { background: var(--tc-ink); color: var(--tc-paper); }
#torrell-cookie-dialog .tc-save:hover { background: var(--tc-gold); color: var(--tc-ink); }
.tc-feedback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tc-policy dt { font-weight: 700; }
.tc-policy dd { margin: .2em 0 1em; }
.tc-policy-open { font: inherit; color: inherit; padding: .65em 1em; border: 1px solid currentColor; background: transparent; cursor: pointer; }
.tc-policy-open:hover { background: #f2d58a; color: #101413; }
.torrell-consent-embed { margin: 1em 0; }
.torrell-consent-embed__notice { padding: clamp(18px, 4vw, 36px); border-inline-start: 3px solid #126557; color: #101413; background: #e8e2d7; }
.torrell-consent-embed__notice p { margin: 0 0 .7em; font: inherit; color: inherit; }
.torrell-consent-embed__notice button {
  margin: 2px 12px 2px 0; min-height: 44px; padding: 8px 14px; border: 1px solid currentColor; border-radius: 0;
  font: inherit; font-size: 14px; font-weight: 700; color: inherit; background: none; cursor: pointer;
}
.torrell-consent-embed__notice button:hover { background: #f2d58a; color: #101413; }
.torrell-consent-embed__source { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.torrell-consent-embed__player:not([hidden]) { display: block; }
.torrell-consent-embed [hidden] { display: none !important; }
.torrell-consent-embed__player iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.torrell-consent-embed__player audio { display: block; width: 100%; }
.torrell-consent-embed__player iframe[src*="youtube"], .torrell-consent-embed__player iframe[src*="vimeo"] { height: auto; aspect-ratio: 16 / 9; }
.torrell-consent-embed__source { display: inline-block; margin-block: .6em; }
.torrell-consent-embed:is([data-torrell-embed="X"],[data-torrell-embed="Instagram"]) { position: relative; width: 100%; max-width: 550px; }
.torrell-consent-embed[data-torrell-embed="Instagram"] { max-width: 540px; }
/* The readable quotation stays available until the provider confirms a card
   and supplies its natural height. A failed request leaves no blank frame. */
.torrell-consent-embed:is([data-torrell-embed="X"],[data-torrell-embed="Instagram"]):not([data-torrell-card-ready]) .torrell-consent-embed__player {
  position: absolute; inset: 0 0 auto; height: 1px; overflow: hidden; opacity: 0; pointer-events: none;
}
.torrell-consent-embed[data-torrell-card-ready] :is(.torrell-consent-embed__caption,.torrell-consent-embed__source) { display: none; }
@media (max-width: 520px) {
  #torrell-cookie-notice { left: 8px; bottom: max(8px, env(safe-area-inset-bottom)); width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 14px; }
  #torrell-cookie-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 16px; }
}
@media (max-width: 360px) {
  #torrell-cookie-notice .tc-actions { grid-template-columns: 1fr 1fr; }
  #torrell-cookie-notice .tc-configure { grid-column: 1 / -1; min-height: 36px; }
  #torrell-cookie-dialog .tc-dialog-actions { align-items: stretch; flex-direction: column-reverse; gap: 2px; }
  #torrell-cookie-dialog .tc-status { flex-shrink: 1; }
}
/* The home header is fixed. This first-visit strip takes up its own space
   before the hero and scrolls away with the page. */
html:not(.tc-needs-choice) #torrell-cookie-notice[data-tc-inline] { display: none; }
#torrell-cookie-notice[data-tc-inline] {
  position: relative;
  inset: auto;
  top: var(--header-height, 76px);
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(12ch, 1fr) auto;
  align-items: center;
  gap: 6px clamp(16px, 2.4vw, 42px);
  width: 100%;
  max-height: none;
  overflow: visible;
  padding: 8px max(clamp(16px, 3.2vw, 58px), env(safe-area-inset-right)) 8px max(clamp(16px, 3.2vw, 58px), env(safe-area-inset-left));
  border: 0;
  border-bottom: 1px solid var(--tc-ink);
}
#torrell-cookie-notice[data-tc-inline] .tc-notice-heading { display: grid; gap: 1px; }
#torrell-cookie-notice[data-tc-inline] h2 { font-size: 19px; line-height: 1.2; }
#torrell-cookie-notice[data-tc-inline] .tc-notice-heading a { justify-self: start; padding: 0; }
#torrell-cookie-notice[data-tc-inline] p { margin: 0; }
#torrell-cookie-notice[data-tc-inline] .tc-actions { grid-template-columns: 1fr 1fr auto; gap: 6px; }
#torrell-cookie-notice[data-tc-inline] .tc-configure { grid-column: auto; min-height: 44px; }
@media (max-width: 760px) {
  #torrell-cookie-notice[data-tc-inline] { grid-template-columns: minmax(0, 1fr); gap: 3px; padding-block: 6px; }
  #torrell-cookie-notice[data-tc-inline] .tc-notice-heading { display: flex; }
  #torrell-cookie-notice[data-tc-inline] .tc-actions { margin-top: 3px; }
}
@media (max-width: 360px) {
  #torrell-cookie-notice[data-tc-inline] h2 { font-size: 17px; }
  #torrell-cookie-notice[data-tc-inline] .tc-actions button { padding-inline: 6px; }
}
/* Share the first screen with the fixed audio player as the consent strip wraps. */
@media (min-width: 768px) {
  html.tc-needs-choice body.home .hero-stage .hero-editorial {
    height: calc(100svh - var(--header-height) - 165px - var(--tc-home-strip, 0px));
  }
  html.tc-needs-choice body.home .hero-editorial .hero-headline {
    font-size: clamp(40px, min(6.8vw, (100svh - 465px - var(--tc-home-strip, 0px)) / 4.64), 122px);
  }
}
@media (min-width: 768px) and (max-height: 780px) {
  html.tc-needs-choice body.home .hero-stage .hero-editorial {
    height: calc(100svh - var(--header-height) - 153px - var(--tc-home-strip, 0px));
  }
  html.tc-needs-choice body.home .hero-editorial .hero-headline {
    font-size: clamp(34px, min(6.8vw, (100svh - 400px - var(--tc-home-strip, 0px)) / 4.64), 76px);
  }
}
@media (max-width: 767px) {
  body.home .hero-stage { --tc-landscape-player-space: 120px; }
  html.tc-needs-choice body.home .hero-stage.has-work-metrics {
    --home-entry-height: calc(100svh - var(--tc-home-strip, 0px));
  }
  html.tc-needs-choice body.home .hero-stage .hero-collage {
    height: calc(100svh - var(--tc-home-strip, 0px) - var(--header-height) - 92px);
  }
  html.tc-needs-choice body.home .hero-stage .hero-headline {
    font-size: clamp(32px, min(16vw, (100svh - var(--tc-home-strip, 0px) - 355px) / 4.8), 69px);
  }
}
@media (max-width: 360px) and (max-height: 700px),
       (max-width: 767px) and (max-height: 620px) and (orientation: portrait) {
  html.tc-needs-choice body.home .hero-stage .hero-intro { padding: 6px 10px; gap: 1px; }
  html.tc-needs-choice body.home .hero-intro strong { font-size: 23px; }
  html.tc-needs-choice body.home .hero-intro span { font-size: 11px; }
  html.tc-needs-choice body.home .hero-intro em { margin-top: 1px; }
}
/* Keep the face beside the identity card. Fit the whole photograph between
   the consent strip and the audio player, even with the browser bars open. */
@media (max-width: 767px) and (orientation: portrait) {
  html.tc-needs-choice body.home .hero-stage .hero-intro {
    width: min(54vw, 290px);
  }
  html.tc-needs-choice body.home .hero-stage .hero-portrait {
    left: 60%;
    width: min(88vw, max(100px, 100svh - var(--tc-home-strip, 145px) - var(--header-height, 64px) - var(--home-admin-clearance, 0px) - 116px));
  }
}
@media (max-width: 767px) and (max-height: 620px) and (orientation: portrait) {
  html.tc-needs-choice body.home .hero-stage .hero-headline {
    font-size: clamp(24px, (100svh - var(--tc-home-strip, 145px) - var(--home-admin-clearance, 0px) - 350px) / 4.8, 40px);
  }
}
/* The four lines share two rows when the browser or the admin toolbar leaves
   very little height. The link remains one keyboard and touch target. */
@media (max-width: 767px) and (max-height: 520px) and (orientation: portrait) {
  html.tc-needs-choice body.home .hero-headline a { display: grid; grid-template-columns: auto auto; }
}
@media (max-width: 767px) and (max-height: 620px) and (orientation: portrait) {
  html.tc-needs-choice body.home.admin-bar .hero-headline a { display: grid; grid-template-columns: auto auto; }
}
@media (max-width: 767px) and (max-height: 520px) and (orientation: portrait) {
  html.tc-needs-choice body.home.admin-bar .hero-stage .hero-editorial {
    position: absolute; z-index: 9; inset: calc(var(--header-height) + 8px) auto auto 12px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 7px; pointer-events: none;
  }
  html.tc-needs-choice body.home.admin-bar .hero-editorial .hero-intro { position: static; order: -1; }
  html.tc-needs-choice body.home.admin-bar .hero-editorial .hero-headline { position: static; }
}
/* A short landscape viewport has room for the name and headline side by side. */
@media (min-width: 480px) and (max-height: 540px) and (orientation: landscape) {
  #torrell-cookie-notice[data-tc-inline] {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "heading actions" "explanation actions";
    gap: 2px 12px;
    padding: 6px max(12px, env(safe-area-inset-right)) 6px max(12px, env(safe-area-inset-left));
  }
  #torrell-cookie-notice[data-tc-inline] .tc-notice-heading { grid-area: heading; display: flex; gap: 8px; }
  #torrell-cookie-notice[data-tc-inline] .tc-notice-heading h2 { font-size: 16px; }
  #torrell-cookie-notice[data-tc-inline] p { grid-area: explanation; font-size: 12px; }
  #torrell-cookie-notice[data-tc-inline] .tc-actions { grid-area: actions; margin: 0; }
  #torrell-cookie-notice[data-tc-inline] .tc-actions button { padding-inline: 7px; font-size: 13px; }
  body.home .hero-stage .hero-editorial,
  html.tc-needs-choice body.home .hero-stage .hero-editorial {
    position: absolute;
    z-index: 9;
    inset: calc(var(--header-height) + 6px) 12px auto;
    height: calc(100svh - var(--tc-home-strip, 0px) - var(--header-height) - var(--tc-landscape-player-space, 133px));
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
  }
  body.home .hero-stage .hero-editorial .hero-headline,
  html.tc-needs-choice body.home .hero-stage .hero-editorial .hero-headline {
    position: static;
    order: 0;
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: start;
    font-size: clamp(24px, min(5vw, (100svh - var(--tc-home-strip, 0px) - 170px) / 3), 44px);
  }
  body.home .hero-stage .hero-headline a { display: grid; grid-template-columns: max-content max-content; }
  body.home .hero-stage .hero-editorial .hero-intro {
    position: static;
    order: 1;
    width: min(37vw, 230px);
    padding: 7px 10px;
    gap: 2px;
  }
  body.home .hero-stage .hero-portrait {
    top: var(--header-height);
    bottom: auto;
    left: 53%;
    width: min(48vw, 390px);
    height: calc(100svh - var(--tc-home-strip, 0px) - var(--header-height) - 96px);
  }
  body.home .hero-editorial .hero-intro strong { font-size: 23px; }
  body.home .hero-editorial .hero-intro span { font-size: 11px; }
  body.home .hero-editorial .hero-intro em { margin-top: 1px; font-size: 8px; }
}
@media (min-width: 480px) and (max-height: 320px) and (orientation: landscape) {
  html.tc-needs-choice body.home .hero-stage .hero-editorial { align-items: flex-start; }
  html.tc-needs-choice body.home .hero-stage .hero-editorial .hero-headline { font-size: 21px; }
  html.tc-needs-choice body.home .hero-stage .hero-intro {
    grid-template-columns: auto auto; align-items: center; width: auto; padding: 3px 6px; gap: 0 6px;
  }
  html.tc-needs-choice body.home .hero-intro strong { font-size: 18px; }
  html.tc-needs-choice body.home .hero-intro span { font-size: 9px; }
  html.tc-needs-choice body.home .hero-intro em { grid-column: 1 / -1; }
}
@media print { #torrell-cookie-notice, #torrell-cookie-dialog { display: none !important; } }
