:root{
  --bg:#f2f0eb;
  --ink:#121212;
  --muted:#58554f;
  --line:rgb(18 18 18 / .12);
  --accent:#ff4d00;
  --gutter:clamp(1.25rem, .9rem + 1.6vw, 2.5rem);
  --ease:cubic-bezier(.2,.7,.2,1);
  --ease-hover:cubic-bezier(.625,.05,0,1);
  --dim:#a3a097;
  --radius:.625rem;
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink)}
body{font:400 1rem/1.5 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:4px}
.skip{position:absolute;left:var(--gutter);top:.75rem;z-index:10;padding:.625rem 1rem;border-radius:var(--radius);background:var(--ink);color:var(--bg);font-size:.875rem;transform:translateY(-200%)}
.skip:focus-visible{transform:none}

/* Hero: exactly one viewport tall. Header, statement, then the tunnel fills the
   rest. The tunnel's camera is tuned for a roughly 16:10 stage, so it also tucks up
   behind the actions (its top edge is empty) instead of becoming a thin strip. */
.hero{display:flex;flex-direction:column;height:100vh;height:100svh;min-height:34rem;overflow:hidden}

.nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1.5rem;padding:1.25rem var(--gutter);padding-top:max(1.25rem, env(safe-area-inset-top))}
.brand{display:inline-flex;align-items:center;gap:.75rem;justify-self:start;font:500 1.1875rem/1 'Inter Tight',Inter,sans-serif}
.brand-mark{width:2rem;height:2rem;flex:none;transition:transform .6s var(--ease-hover)}
.links{display:flex;gap:.25rem;margin:0;padding:0;list-style:none}
.links a{display:block;padding:.5rem 1rem;border-radius:var(--radius);font-size:1rem;color:var(--muted);transition:color .3s ease-out}
.links a[aria-current="page"]{color:var(--ink)}
.nav-end{justify-self:end;display:flex;align-items:center;gap:1.25rem}
.nav-contact{display:none;align-items:center;min-height:2.75rem;font-weight:500;font-size:1rem}
.status{display:inline-flex;align-items:center;gap:.5rem;font-size:.9375rem;color:var(--muted)}
.status::before{content:'';width:.4375rem;height:.4375rem;border-radius:50%;background:#1f9d55;box-shadow:0 0 0 3px rgb(31 157 85 / .16)}

/* Buttons: the ink plate is its own layer so it can shrink under the label,
   the characters roll up into a copy of themselves (a text-shadow one line below),
   and the arrow leaves diagonally while an accent copy slides in. */
.btn{position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:3rem;padding:0 1.5rem;border-radius:var(--radius);font:500 1rem/1 Inter,sans-serif;white-space:nowrap}
.btn-primary{color:var(--bg)}
.btn-bg{position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--ink);transition:transform .6s var(--ease-hover)}
.btn-label{display:inline-flex;overflow:hidden;line-height:1.3}
.btn-label span{display:inline-block;text-shadow:0 1.3em currentColor;transform:translateY(0) rotate(.001deg);transition:transform .6s var(--ease-hover);transition-delay:calc(var(--i) * 12ms)}
.btn-arrow{display:inline-grid;width:1rem;height:1rem;overflow:hidden;flex:none}
.btn-arrow svg{width:1rem;height:1rem;transition:transform .6s var(--ease-hover)}
.btn-arrow svg{filter:drop-shadow(var(--accent) -1rem 1rem 0)}
.btn-primary:active .btn-bg{transform:scale(.92);transition-duration:.2s}

/* Secondary link: the underline wipes out to the right and redraws from the left;
   the down arrow drops away and an accent copy falls in from above. */
.link-arrow{position:relative;display:inline-flex;white-space:nowrap;align-items:center;min-height:3rem;font-weight:500;font-size:1rem}
.link-arrow::before,.link-arrow::after{content:'';position:absolute;left:0;right:0;bottom:.8125rem;height:1px;background:currentColor;transition:transform .6s var(--ease-hover)}
.link-arrow::before{transform-origin:right;transition-delay:.25s}
.link-arrow::after{transform-origin:left;transform:scaleX(0)}

@media (hover:hover) and (pointer:fine){
  .brand:hover .brand-mark{transform:rotate(90deg) scale(.94)}
  .links:hover a{color:var(--dim)}
  .links:hover a:hover{color:var(--ink)}
  .btn-primary:hover .btn-bg{transform:scale(.95)}
  .btn-primary:hover .btn-label span{transform:translateY(-1.3em) rotate(.001deg)}
  .btn-primary:hover .btn-arrow svg{transform:translate(1rem,-1rem)}
  .link-arrow:hover::before{transform:scaleX(0);transition-delay:0s}
  .link-arrow:hover::after{transform:scaleX(1);transition-delay:.25s}
}

.intro{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:1.25rem;text-align:center;padding:clamp(1.25rem, .25rem + 3svh, 3rem) var(--gutter) clamp(.5rem, .25rem + 1svh, 1.25rem)}
.eyebrow{display:flex;align-items:center;margin:0;font-size:.9375rem;font-weight:500;color:var(--muted)}
.eyebrow::before{content:'';width:.5rem;height:.5rem;margin-right:.5rem;border-radius:50%;background:var(--accent)}
h1{max-width:14ch;margin:0;font:500 clamp(2.5rem, 1.3rem + 4.6vw, 7.5rem)/1 'Inter Tight',Inter,sans-serif;text-wrap:balance}
h1 em{font-style:normal;color:var(--muted)}
.aside{display:grid;justify-items:center;gap:1.5rem}
.aside p{max-width:44ch;margin:0;font-size:clamp(1.0625rem, .95rem + .3vw, 1.3125rem);line-height:1.55;color:var(--muted);text-wrap:pretty}
.actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem 1.5rem}

/* The tunnel. The tool frames itself; here it simply fills the remaining height. */
.stage{position:relative;flex:1 1 0;min-height:16rem}
.stage .tf-host,.stage .tf-frame{width:100%;height:100%}
.stage .tf-root{width:100%;height:100%;--tf-pad:var(--gutter)}
.stage .tf-word{font-size:max(.875rem, min(1.15cqw, 1.0625rem));letter-spacing:normal;text-transform:none;color:var(--muted)}
/* No top corner words: let the tunnel use the band the engine reserves for them. */
.stage .tf-root[data-tf-words]{--tf-band-top:0px}
.stage .tf-root:focus-visible::after{box-shadow:inset 0 0 0 2px var(--ink)}
.tf-host{width:100%;height:100%}
.tf-frame{display:grid;place-items:center;width:100%;height:100%;overflow:hidden;background:transparent}
.tf-root{--tf-pad:clamp(16px,3cqw,40px);--tf-band:clamp(36px,9cqh,84px);--tf-band-top:0px;--tf-band-bottom:0px;position:relative;width:min(100%,var(--tf-width));height:min(100%,var(--tf-height));background:var(--tf-bg);color:var(--tf-ink);overflow:hidden;outline:none;container-type:size;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.tf-root[data-tf-words]{--tf-band-top:var(--tf-band);--tf-band-bottom:var(--tf-band)}
.tf-root[data-tf-words][data-tf-corner-control]{--tf-band-bottom:max(var(--tf-band),136px)}
.tf-root[data-draggable]{cursor:grab}
.tf-root[data-dragging]{cursor:grabbing}
.tf-root:focus-visible::after{content:'';position:absolute;inset:0;z-index:3;box-shadow:inset 0 0 0 2px var(--tf-ink);pointer-events:none}
.tf-gl{position:absolute;left:0;right:0;top:var(--tf-band-top);bottom:var(--tf-band-bottom);z-index:1;overflow:hidden;pointer-events:none}
.tf-canvas{display:block;width:100%;height:100%}
.tf-word{position:absolute;z-index:2;max-width:calc(50% - var(--tf-pad) * 1.5);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 clamp(11px,1.15cqw,15px)/1 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:.16em;text-transform:uppercase;color:var(--tf-ink);pointer-events:none}
.tf-tl,.tf-tr{top:calc(var(--tf-band-top) / 2);transform:translateY(-50%)}
.tf-bl,.tf-br{bottom:calc(var(--tf-band) / 2);transform:translateY(50%)}
.tf-root[data-tf-corner-control] :is(.tf-bl,.tf-br){bottom:calc(var(--tf-band-bottom) - var(--tf-band) / 2)}
.tf-tl,.tf-bl{left:var(--tf-pad)}
.tf-tr,.tf-br{right:var(--tf-pad);text-align:right}
.tf-root[data-tf-corner-control] .tf-tr{right:max(var(--tf-pad),68px)}
.tf-word[hidden],.tf-toggle[hidden]{display:none}
.tf-still{display:none;position:absolute;left:50%;top:50%;z-index:1;width:min(38cqh,38cqw);aspect-ratio:1;object-fit:cover;border-radius:6px;transform:translate(-50%,-50%)}
.tf-root[data-tf-fallback] .tf-still{display:block}
.tf-toggle{position:absolute;left:16px;top:16px;z-index:3;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--tf-bg);color:var(--tf-ink);cursor:pointer;clip-path:inset(50%);opacity:0}
.tf-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.tf-toggle .tf-play,.tf-toggle[aria-pressed="true"] .tf-pause{display:none}
.tf-toggle[aria-pressed="true"] .tf-play{display:block}
.tf-toggle:focus-visible{clip-path:none;opacity:1;outline:2px solid var(--tf-ink);outline-offset:2px}
.tf-sr,.tf-live{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* Landscape screens: one-line headline and the tunnel tucked up under the actions,
   so the tunnel's centre lands around three quarters down the first screen. */
@media (min-width: 1000px) and (min-aspect-ratio: 3/2), (min-width: 1000px) and (max-height: 820px){
  .intro{gap:1rem;padding-top:clamp(2.5rem, 1rem + 6svh, 6rem);padding-bottom:0}
  .stage .tf-root[data-tf-words]{--tf-band-bottom:0px}
  h1{max-width:none;font-size:min(6.5rem, 9svh, 5.6vw)}
  .stage{margin-top:calc(-1 * clamp(2rem, 4.5vw, 6rem))}
  .aside{gap:1.25rem}
  .aside p{max-width:62ch}
}
@media (max-width: 1080px){
  .status{display:none}
}
@media (max-width: 760px){
  .nav{grid-template-columns:1fr auto}
  .nav > nav,.btn-nav{display:none}
  .nav-contact{display:inline-flex}
  .stage{margin-top:-3rem}
  .intro{gap:1rem}
  .actions{gap:.25rem 1.5rem}
}
@media (max-width: 480px){
  .eyebrow-loc{display:none}
}
/* Short phones: tighten the statement so the tunnel keeps a usable height. */
@media (max-width: 760px) and (max-height: 740px){
  .intro{gap:.75rem;padding-top:.5rem}
  h1{font-size:2.25rem}
  .aside{gap:1rem}
  .aside p{font-size:.9375rem;line-height:1.5}
}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{transition:none!important}
}
