/* ============ TOKENS ============ */
:root {
  --primary: #f40c3f;
  --secondary: #160000;
  --shadow: #540000;
  --white: #fff0eb;
  --font-display: "Anton", "Impact", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(.215, .61, .355, 1);
  --ease-io: cubic-bezier(.86, 0, .07, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 2vw, 32px);
  --head-h: 104px;
  --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 0c1.6 12.9 11.1 22.4 24 24-12.9 1.6-22.4 11.1-24 24C22.4 35.1 12.9 25.6 0 24 12.9 22.4 22.4 12.9 24 0Z'/%3E%3C/svg%3E");
}
.theme-contrasted {
  --primary: #fff2ed;
  --secondary: #160000;
  --shadow: #4d4040;
}
@media (max-width: 1100px) { :root { --head-h: 80px; } }
@media (max-width: 640px)  { :root { --head-h: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scrollbar-color: var(--secondary) var(--primary); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--primary);
  color: var(--secondary);
  font-family: var(--font-mono);
  overflow-x: clip; /* not "hidden": that would break position: sticky */
  transition: background-color .5s var(--ease-out);
}
body.is-loading { overflow: hidden; }
::selection { background: var(--secondary); color: var(--primary); }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { max-width: 100%; display: block; }
figure { margin: 0; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.star { fill: currentColor; display: block; }

/* the TS monogram, tinted with the theme colour */
.logo-mark {
  display: block; aspect-ratio: 850 / 715;
  background: currentColor;
  -webkit-mask: url("assets/logo.png") center / contain no-repeat;
          mask: url("assets/logo.png") center / contain no-repeat;
}

/* shared hover: colour fill sweeping in from the left */
.fill-hover { position: relative; isolation: isolate; overflow: hidden; transition: color .45s var(--ease-io); }
.fill-hover::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--secondary);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .55s var(--ease-io);
}
.fill-hover:hover, .fill-hover:focus-visible { color: var(--primary); }
.fill-hover:hover::before, .fill-hover:focus-visible::before { transform: scaleX(1); transform-origin: left center; }

.fill-hover--inv::before { background: var(--primary); }
.fill-hover--inv:hover, .fill-hover--inv:focus-visible { color: var(--secondary); }

/* shared hover: underline draws in from the left */
.uline { text-decoration: none; background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .5s var(--ease-io); }
.uline:hover, .uline:focus-visible { background-size: 100% 1px; background-position: 0 100%; }

/* ============ INTRO ============ */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: var(--secondary); color: var(--primary);
  display: grid; place-items: center; align-content: center; gap: 1.2rem;
  clip-path: inset(0 0 0 0);
}
.intro__grid {
  position: absolute; inset: 0; opacity: .15;
  background:
    repeating-linear-gradient(90deg, var(--primary) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, var(--primary) 0 1px, transparent 1px 48px);
}
.intro__logo { position: relative; width: 64px; animation: blink-in 1.2s infinite; }
.intro__count { font: 400 clamp(5rem, 22vw, 18rem)/.85 var(--font-display); position: relative; }
.intro__caret { animation: caret 1s steps(1) infinite; }
.intro__label { font: 700 12px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; position: relative; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes blink-in { 0%,30%,60% { opacity: 0 } 15%,45%,75%,100% { opacity: 1 } }

/* ============ CURSOR ============ */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  display: grid; place-items: center;
  background: var(--secondary); border: 1px solid var(--secondary); border-radius: 50%;
  transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), background-color .3s;
}
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: transparent; }
.cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--secondary); }
.cursor__label { font: 700 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--primary); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s var(--ease-back); }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-dark { background: var(--primary); border-color: var(--primary); }
.cursor.is-dark.is-hover { background: transparent; }
.cursor.is-dark.is-label { background: var(--primary); }
.cursor.is-dark .cursor__label { color: var(--secondary); }
@media (hover: none) { .cursor { display: none; } }

/* ============ HEADER ============ */
.head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--head-h);
  display: grid;
  grid-template-columns: calc(var(--head-h) * 1.15) minmax(220px, 1.5fr) minmax(300px, 2fr) 62px 62px minmax(280px, 1.6fr) var(--head-h);
  background: var(--primary); color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
  transition: transform .6s var(--ease-io), background-color .5s var(--ease-out);
}
.head.is-hidden { transform: translateY(-101%); }
.head__cell { min-width: 0; border-right: 1px solid var(--secondary); display: flex; align-items: center; }
.head__cell:last-child { border-right: 0; }

.head__logo { justify-content: center; text-decoration: none; }
.head__logo .logo-mark { width: 52%; transition: transform .7s var(--ease-io); }
.head__logo:hover .logo-mark { transform: rotateY(180deg); }

.head__console { padding: 0 1.4rem; }
.console__lines { margin: 0; font: 400 9.5px/1.55 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: pre-line; min-height: 6.2em; }
.console__lines::after { content: ""; display: inline-block; width: .6em; height: 1em; margin-left: 2px; background: currentColor; vertical-align: -2px; animation: caret 1s steps(1) infinite; }

.head__nav { justify-content: space-around; gap: .5rem; padding: 0 .75rem; font: 400 15px/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase; }
.head__nav a { text-decoration: none; padding: .75em .9em .75em 1.1em; }

.head__socials { flex-direction: column; align-items: stretch; }
.head__socials a { flex: 1; display: grid; place-items: center; }
.head__socials a + a { border-top: 1px solid var(--secondary); }
.head__socials svg { width: 18px; height: 18px; fill: currentColor; transition: transform .5s var(--ease-back); }
.head__socials a:hover svg { transform: scale(1.2) rotate(-8deg); }

.head__contrast { justify-content: center; }
.head__contrast svg { width: 22px; height: 22px; transition: transform .7s var(--ease-io); }
.theme-contrasted .head__contrast svg { transform: rotate(180deg); }

.head__avail { flex-direction: column; align-items: stretch; }
.head__avail p { flex: 1; margin: 0; display: flex; align-items: center; padding: 0 1.2rem; font: 400 clamp(18px, 1.75vw, 28px)/1 var(--font-serif); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; }
.head__avail p + p { border-top: 1px solid var(--secondary); }
.head__avail a { margin-left: .3em; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-io); }
.head__avail a:hover { background-size: 100% 1px; }

.head__qr { justify-content: center; }
.qr { width: 72%; height: auto; image-rendering: pixelated; transition: transform .5s var(--ease-back); }
.head__qr:hover .qr { transform: scale(1.08) rotate(-3deg); }

@media (max-width: 1300px) { .head { grid-template-columns: calc(var(--head-h) * 1.15) minmax(200px, 1.2fr) minmax(280px, 2fr) 62px 62px minmax(240px, 1.4fr); } .head__qr { display: none; } .head__avail { border-right: 0; } }
@media (max-width: 1100px) {
  .head { grid-template-columns: calc(var(--head-h) * 1.15) 1fr 56px 56px; }
  .head__console, .head__avail { display: none; }
  .head__contrast { border-right: 0; }
}
@media (max-width: 640px) {
  .head { grid-template-columns: var(--head-h) 1fr 52px; }
  .head__socials { display: none; }
  .head__nav { font-size: 11px; letter-spacing: .12em; padding: 0 .5rem; }
}

/* ============ SEPARATOR (binary band) ============ */
.sep {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  height: 28px; overflow: hidden;
  background: var(--secondary); color: var(--primary);
  font: 700 11px/1 var(--font-mono);
}
.sep::before, .sep::after { content: ""; flex: none; width: 0; height: 0; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.sep::before { border-left: 14px solid var(--primary); }
.sep::after { border-right: 14px solid var(--primary); }
.sep__digits { flex: 1; display: flex; justify-content: space-around; overflow: hidden; white-space: nowrap; padding: 0 .5rem; }
.sep__digits span { display: inline-block; width: 1ch; text-align: center; }
.sep__digits .gap { width: 2ch; }
.sep__digits .flip { animation: blink-in .4s; }
.sep--alt { background: transparent; color: var(--secondary); box-shadow: inset 0 0 0 1px var(--secondary); }
.sep--alt::before { border-left-color: var(--secondary); }
.sep--alt::after { border-right-color: var(--secondary); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--head-h) + var(--gutter)) var(--gutter) 56px;
  overflow: hidden;
}
.hero__waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: clamp(8px, 1.4vw, 20px); }
.hero__title { margin: 0; display: flex; flex-direction: column; align-items: center; font-weight: 400; }
.fit { display: block; white-space: nowrap; font: 400 100px/.82 var(--font-display); text-transform: uppercase; letter-spacing: -.005em; }
.line { overflow: hidden; padding-top: .06em; }
.char { display: inline-block; will-change: transform; }
.hero__title .char { transition: color .3s; }
.hero__title .char.is-hot { color: var(--white); }
.theme-contrasted .hero__title .char.is-hot { color: var(--shadow); }
/* "SAPIEN": letters filled with the home video (drawn on a canvas).
   JS sets its height: the letters are stretched tall to fill the rest of the first screen. */
.hero__title { gap: clamp(6px, 1vw, 14px); }
.vtext { position: relative; color: transparent; }
.vtext .char { color: transparent; }
.vtext__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vtext__video { position: absolute; left: 0; bottom: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__hint { position: absolute; z-index: 1; bottom: var(--gutter); left: 50%; transform: translateX(-50%); font: 700 11px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; }
.hero__hint span { display: inline-block; animation: bob 1.4s var(--ease-io) infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ============ LABEL ============ */
.label {
  margin: 0; align-self: start; justify-self: start;
  padding: 0 1rem 2px; background: var(--secondary); color: var(--primary);
  font: 700 12px/26px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; text-align: center;
}

/* ============ ABOUT ============ */
.about { padding: clamp(5rem, 12vw, 10rem) var(--gutter); }
.about__grid { display: grid; grid-template-columns: minmax(110px, .8fr) 3fr 2fr; gap: clamp(1.5rem, 3vw, 3.5rem); align-items: start; }
.about__text { display: grid; gap: 1.6rem; }
.lead { margin: 0 0 1rem; font: 400 clamp(2rem, 4.4vw, 4.6rem)/1.02 var(--font-serif); letter-spacing: -.01em; }
.lead .word { opacity: .15; }
.body { margin: 0; max-width: 56ch; font: 400 15px/1.75 var(--font-mono); }

/* jigsaw portrait: pieces fly in and lock together */
.puzzle { position: sticky; top: calc(var(--head-h) + 2rem); display: grid; gap: .8rem; perspective: 1000px; }
.puzzle__board {
  position: relative; aspect-ratio: 1095 / 1437;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(5, 1fr);
  border: 1px solid var(--secondary); box-shadow: 6px 6px 0 var(--secondary);
  background: var(--secondary);
  transform-style: preserve-3d;
  transition: box-shadow .5s var(--ease-out);
}
.puzzle:hover .puzzle__board { box-shadow: 12px 12px 0 var(--secondary); }
.piece { display: block; transition: transform .6s var(--ease-back), filter .4s; }
.piece i { display: block; width: 100%; height: 100%; background-image: var(--img); background-size: 400% 500%; will-change: transform; }
.puzzle:hover .piece { transform: scale(.94); }
.puzzle:hover .piece:hover { transform: scale(1.08) translateZ(40px); filter: saturate(1.3); z-index: 2; }
@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; }
  .puzzle { position: relative; top: 0; max-width: 420px; }
}

.awards { margin-top: clamp(4rem, 10vw, 8rem); display: grid; gap: 1rem; }
.awards__grid {
  list-style: none; margin: 0; padding: 1px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--secondary);
}
.award {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 9.5rem; padding: .85rem; background: var(--primary); cursor: default;
  font: 700 11px/1.35 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  transition: color .45s var(--ease-io);
}
/* the number sits in a fixed-width slot so counting up never shifts the layout */
.award b { position: relative; z-index: 1; display: block; font: 400 clamp(2.4rem, 4vw, 3.6rem)/1 var(--font-display); letter-spacing: 0; font-variant-numeric: tabular-nums; transition: transform .6s var(--ease-io); }
.award:hover b { transform: translateY(-6px); }
.award > span:last-child { position: relative; z-index: 1; transition: transform .6s var(--ease-io); }
.award:hover > span:last-child { transform: translateX(6px); }
/* smooth GPU-friendly fill: a single scale transform, no masks */
.award__mask { position: absolute; inset: 0; overflow: hidden; }
.award__mask::before {
  content: ""; position: absolute; inset: 0; background: var(--secondary);
  transform: scaleY(0); transform-origin: bottom center;
  transition: transform .55s var(--ease-io);
  will-change: transform;
}
.award:hover { color: var(--primary); }
.award:hover .award__mask::before { transform: scaleY(1); transform-origin: top center; }
@media (max-width: 960px) {
  .awards__grid { grid-template-columns: repeat(2, 1fr); }
  .award { min-height: 7.5rem; }
  .award:last-child:nth-child(odd) { grid-column: 1 / -1; } /* no empty cell at the end */
}

/* ============ WORK REVEAL ============ */
.work-reveal { position: relative; height: 260vh; }
.work-reveal__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.work-reveal__panel {
  position: absolute; inset: 0; background: var(--secondary); color: var(--primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  clip-path: circle(0% at 50% 50%);
}
.work-reveal__dots { position: absolute; inset: 0; opacity: .25; background: radial-gradient(circle, var(--primary) 1px, transparent 1.5px) center / 24px 24px; }
.work-reveal__title { position: relative; margin: 0; display: flex; font: 400 clamp(6rem, 30vw, 28rem)/.8 var(--font-display); }
.work-reveal__title span { display: inline-block; }
.work-reveal__count { position: relative; }

/* ============ WORK GRID ============ */
.work { background: var(--secondary); color: var(--primary); padding: 0 var(--gutter) clamp(7rem, 14vw, 12rem); }
.work__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 22px); max-width: 1280px; margin: 0 auto; }
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--primary);
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow .5s var(--ease-out);
}
.card:hover { box-shadow: 8px 8px 0 var(--shadow); }
.card:nth-child(4n+2), .card:nth-child(4n+4) { translate: 0 5vh; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--primary); color: var(--secondary); }
.card__media::before { content: ""; position: absolute; inset: -10%; transition: transform 1.1s var(--ease-io); }
.card:hover .card__media::before { transform: scale(1.2) rotate(6deg); }
.card[data-pattern="dots"] .card__media::before { background: radial-gradient(circle, var(--secondary) 28%, transparent 30%) 0 0 / 22px 22px; }
.card[data-pattern="rings"] .card__media::before { background: repeating-radial-gradient(circle at 50% 50%, var(--secondary) 0 6px, transparent 6px 18px); }
.card[data-pattern="stripes"] .card__media::before { background: repeating-linear-gradient(45deg, var(--secondary) 0 10px, transparent 10px 24px); }
.card[data-pattern="grid"] .card__media::before { background: repeating-linear-gradient(0deg, var(--secondary) 0 2px, transparent 2px 30px), repeating-linear-gradient(90deg, var(--secondary) 0 2px, transparent 2px 30px); }
.card[data-pattern="checker"] .card__media::before { background: conic-gradient(var(--secondary) 25%, transparent 0 50%, var(--secondary) 0 75%, transparent 0) 0 0 / 60px 60px; }
.card[data-pattern="waves"] .card__media::before { background: radial-gradient(circle at 50% 100%, transparent 14px, var(--secondary) 15px 20px, transparent 21px) 0 0 / 40px 22px; }
.card__tag {
  position: absolute; top: .6rem; left: .6rem; z-index: 1;
  padding: .35rem .5rem; background: var(--secondary); color: var(--primary);
  font: 700 10px/1 var(--font-mono); letter-spacing: .15em; text-transform: uppercase;
}
.card__big {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  padding: .1em .25em .02em; background: var(--primary); border: 1px solid var(--secondary);
  font: 400 clamp(1.4rem, 2.2vw, 2.1rem)/1 var(--font-display); text-transform: uppercase; white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-4deg);
  transition: transform .7s var(--ease-back);
}
.card:hover .card__big { transform: translate(-50%, -50%) rotate(3deg) scale(1.12); }
.card__cap {
  display: flex; justify-content: space-between; gap: 1rem; padding: .6rem;
  border-top: 1px solid var(--primary);
  font: 700 10.5px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .4s var(--ease-io), color .4s;
}
.card:hover .card__cap { background: var(--primary); color: var(--secondary); }
.card__role { margin: 0; padding: .65rem .6rem .1rem; font: 400 1.35rem/1 var(--font-serif); }
.card__desc { margin: 0; padding: .3rem .6rem .8rem; font: 400 11.5px/1.55 var(--font-mono); opacity: .85; }
@media (max-width: 1100px) { .work__grid { grid-template-columns: repeat(2, 1fr); } .card:nth-child(4n+4) { translate: 0 5vh; } .card:nth-child(4n+3) { translate: none; } }
.work__swipe { display: none; }

/* phones: the 8 cards become one swipeable row instead of a long column */
@media (max-width: 640px) {
  .work-reveal { height: 160vh; }
  .work { padding-bottom: 4rem; }
  .work__swipe { display: flex; justify-content: space-between; margin: 0 0 .8rem; font-size: 10.5px; opacity: .8; }
  .work__swipe span { display: inline-block; animation: nudge 1.4s var(--ease-io) infinite; }
  .work__grid {
    display: flex; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) .4rem;
    scrollbar-width: none;
  }
  .work__grid::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 74vw; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .card:nth-child(n) { translate: none; }
  .card__media { aspect-ratio: 16 / 8; }
  .card__big { font-size: 1.5rem; }
  .card__role { font-size: 1.2rem; padding-top: .55rem; }
  .card__desc { font-size: 11px; padding-bottom: .7rem; }
}
@keyframes nudge { 50% { transform: translateX(5px); } }

/* ============ FREELANCE ============ */
.freelance { margin-top: clamp(9rem, 16vw, 14rem); }
.freelance__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.label--inv { background: var(--primary); color: var(--secondary); }
.freelance__intro { margin: 0; max-width: 30ch; font: italic 400 clamp(1.4rem, 2.2vw, 2rem)/1.15 var(--font-serif); }
.freelance__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--primary); }
.gig {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 3rem minmax(0, 1.25fr) auto minmax(0, 1fr) 2rem; align-items: center; gap: 1.5rem;
  padding: clamp(1.2rem, 2.4vw, 2rem) .8rem;
  border-top: 1px solid var(--primary);
  transition: color .5s var(--ease-io);
}
.gig::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--primary);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .6s var(--ease-io);
}
/* .is-active = the touch-screen equivalent of hover (set while the row is mid-screen) */
.gig:is(:hover, .is-active) { color: var(--secondary); }
.gig:is(:hover, .is-active)::before { transform: scaleX(1); transform-origin: left center; }
.gig__title { position: relative; font: 400 clamp(2.4rem, 5.4vw, 5.2rem)/.9 var(--font-display); text-transform: uppercase; transition: transform .6s var(--ease-io); }
.gig:is(:hover, .is-active) .gig__title { transform: translateX(.3em); }
.gig__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: 11.5px; line-height: 1.4; }
.gig__facts li { transition: transform .5s var(--ease-io); }
.gig__facts li:nth-child(2) { transition-delay: .05s; }
.gig__facts li:nth-child(3) { transition-delay: .1s; }
.gig:is(:hover, .is-active) .gig__facts li { transform: translateX(-6px); }
.gig__facts li::before { content: "✦ "; }
.gig__arrow { justify-self: end; font: 400 1.8rem/1 var(--font-mono); transition: transform .6s var(--ease-io); }
.gig:is(:hover, .is-active) .gig__arrow { transform: rotate(45deg); }

/* shared frame for the little animated visual on each row */
.gig__visual {
  position: relative; display: block; overflow: hidden;
  width: clamp(150px, 14vw, 210px); height: 76px;
  border: 1px solid currentColor;
  transition: transform .7s var(--ease-back);
}
.gig:is(:hover, .is-active) .gig__visual { transform: rotate(-3deg) scale(1.06); }

/* 01 · VIDEO EDITING — timeline with a playhead; clips get trimmed on hover */
.gv-video { display: grid; grid-template-rows: 7px 1fr 1fr; gap: 5px; padding: 7px 8px; }
.gv-ruler { background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 9px); opacity: .7; }
.gv-track { display: flex; gap: 3px; }
.gv-track i { flex: 0 0 calc(var(--w) - 3px); background: currentColor; opacity: .9; transition: flex-basis .6s var(--ease-io); }
.gv-track--b i { opacity: .45; }
.gig:is(:hover, .is-active) .gv-track i:nth-child(odd) { flex-basis: calc(var(--w) * .55); }
.gig:is(:hover, .is-active) .gv-track--b i:nth-child(even) { flex-basis: calc(var(--w) * .7); }
.gv-head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: currentColor; animation: playhead 5s linear infinite; }
.gv-head::before { content: ""; position: absolute; top: 0; left: -4px; border: 5px solid transparent; border-top: 6px solid currentColor; }
@keyframes playhead { from { left: 0; } to { left: 100%; } }
/* title does a quick "jump cut" when the row is entered */
.gig--video:is(:hover, .is-active) .gig__title { animation: jumpcut .55s steps(1) 1; }
@keyframes jumpcut {
  0%   { transform: translateX(.3em);  clip-path: inset(0 0 52% 0); }
  20%  { transform: translateX(.55em); clip-path: inset(48% 0 0 0); }
  40%  { transform: translateX(.15em); clip-path: inset(0 0 28% 0); }
  60%  { transform: translateX(.42em); clip-path: inset(0); }
  80%  { transform: translateX(.25em); clip-path: inset(30% 0 0 0); }
  100% { transform: translateX(.3em);  clip-path: inset(0); }
}

/* 02 · UI/UX — wireframe that re-lays itself out, cursor clicking */
.gv-ui { display: flex; flex-direction: column; }
.gv-bar { flex: none; height: 13px; display: flex; align-items: center; gap: 3px; padding: 0 6px; border-bottom: 1px solid currentColor; }
.gv-bar i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.gv-canvas { position: relative; flex: 1; }
.gv-canvas i { position: absolute; border: 1px solid currentColor; transition: left .7s var(--ease-io), top .7s var(--ease-io), width .7s var(--ease-io), height .7s var(--ease-io), background-color .4s; }
.gv-canvas .a { left: 6%; top: 12%; width: 40%; height: 76%; background: repeating-linear-gradient(135deg, currentColor 0 1px, transparent 1px 6px); }
.gv-canvas .b { left: 52%; top: 12%; width: 42%; height: 18%; }
.gv-canvas .c { left: 52%; top: 40%; width: 42%; height: 18%; }
.gv-canvas .d { left: 52%; top: 68%; width: 22%; height: 20%; background: currentColor; }
.gig:is(:hover, .is-active) .gv-canvas .a { width: 88%; height: 32%; }
.gig:is(:hover, .is-active) .gv-canvas .b { left: 6%; top: 52%; width: 26%; height: 36%; }
.gig:is(:hover, .is-active) .gv-canvas .c { left: 37%; top: 52%; width: 26%; height: 36%; }
.gig:is(:hover, .is-active) .gv-canvas .d { left: 68%; top: 52%; width: 26%; height: 36%; }
.gv-cursor { position: absolute; width: 11px; height: 15px; fill: currentColor; stroke: var(--secondary); stroke-width: 1; left: 30%; top: 40%; animation: wander 4.5s var(--ease-io) infinite; transition: stroke .3s; }
.gig:is(:hover, .is-active) .gv-cursor { stroke: var(--primary); animation: click-it 1.4s var(--ease-io) infinite; }
@keyframes wander { 0%,100% { transform: translate(0, 0); } 33% { transform: translate(60px, -14px); } 66% { transform: translate(30px, 18px); } }
@keyframes click-it { 0%,100% { transform: translate(90px, 20px) scale(1); } 45% { transform: translate(90px, 20px) scale(1); } 55% { transform: translate(90px, 20px) scale(.75); } 65% { transform: translate(90px, 20px) scale(1); } }
/* title gets a selection box with handles, like in a design tool */
.gig__select { position: relative; display: inline-block; }
.gig__select::after { content: ""; position: absolute; inset: -.06em -.12em -.02em; border: 1px dashed currentColor; transform: scale(1.06); opacity: 0; transition: transform .5s var(--ease-io), opacity .3s; }
.gig__select b { position: absolute; width: 9px; height: 9px; background: var(--primary); border: 1px solid currentColor; scale: 0; transition: scale .45s var(--ease-back); }
.gig__select b:nth-of-type(1) { top: -.06em; left: -.12em; translate: -50% -50%; }
.gig__select b:nth-of-type(2) { top: -.06em; right: -.12em; translate: 50% -50%; transition-delay: .05s; }
.gig__select b:nth-of-type(3) { bottom: -.02em; left: -.12em; translate: -50% 50%; transition-delay: .1s; }
.gig__select b:nth-of-type(4) { bottom: -.02em; right: -.12em; translate: 50% 50%; transition-delay: .15s; }
.gig--ui:is(:hover, .is-active) .gig__select::after { transform: none; opacity: 1; }
.gig--ui:is(:hover, .is-active) .gig__select b { scale: 1; }

/* 03 · GRAPHIC DESIGN — loose shapes snap into a composition */
.gv-gfx i { position: absolute; left: 50%; top: 50%; background: currentColor; transition: translate .8s var(--ease-back), rotate .8s var(--ease-io), scale .6s var(--ease-back); }
.gv-gfx .s1 { width: 26px; height: 26px; margin: -13px; border-radius: 50%; translate: -60px -18px; animation: bob-a 4s ease-in-out infinite; }
.gv-gfx .s2 { width: 20px; height: 20px; margin: -10px; translate: 52px -20px; rotate: 20deg; animation: bob-b 5s ease-in-out infinite; }
.gv-gfx .s3 { width: 26px; height: 24px; margin: -12px -13px; clip-path: polygon(50% 0, 100% 100%, 0 100%); translate: -18px 18px; animation: bob-b 4.4s ease-in-out infinite; }
.gv-gfx .s4 { width: 28px; height: 28px; margin: -14px; border-radius: 50%; background: none; border: 3px solid currentColor; translate: 24px 16px; animation: bob-a 5.6s ease-in-out infinite; }
.gv-gfx .s5 { width: 44px; height: 6px; margin: -3px -22px; translate: 70px 22px; rotate: -30deg; animation: bob-a 4.8s ease-in-out infinite; }
.gig:is(:hover, .is-active) .gv-gfx .s1 { translate: -30px 0; scale: 1.5; }
.gig:is(:hover, .is-active) .gv-gfx .s2 { translate: 0 0; rotate: 45deg; scale: 1.6; }
.gig:is(:hover, .is-active) .gv-gfx .s3 { translate: 30px 0; scale: 1.3; }
.gig:is(:hover, .is-active) .gv-gfx .s4 { translate: 0 0; scale: 1.9; }
.gig:is(:hover, .is-active) .gv-gfx .s5 { translate: 0 26px; rotate: 0deg; scale: 2.4 1; }
@keyframes bob-a { 50% { transform: translateY(-5px) rotate(8deg); } }
@keyframes bob-b { 50% { transform: translateY(5px) rotate(-10deg); } }
/* title turns into an outlined, striped poster type */
.gig--gfx:is(:hover, .is-active) .gig__title {
  color: transparent; -webkit-text-stroke: 1.5px var(--secondary);
  background: repeating-linear-gradient(-45deg, var(--secondary) 0 3px, transparent 3px 10px);
  -webkit-background-clip: text; background-clip: text;
  animation: stripes .9s linear infinite;
}
@keyframes stripes { to { background-position: 14.14px 0; } }
.freelance__cta {
  display: inline-block; margin-top: 2rem; padding: 1rem 1.4rem;
  border: 1px solid var(--primary); text-decoration: none;
  font: 700 13px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
}
@media (max-width: 1100px) {
  .gig { grid-template-columns: 2.5rem minmax(0, 1fr) auto 2rem; }
  .gig__facts { grid-column: 2 / 4; }
  .gig__arrow { grid-row: 1; grid-column: 4; }
}
@media (max-width: 640px) {
  /* compact rows: title + arrow on top, small visual and facts side by side below */
  .freelance { margin-top: 3.5rem; }
  .freelance__head { margin-bottom: 1rem; }
  .freelance__intro { font-size: 1.15rem; }
  .gig { grid-template-columns: 1.6rem 112px 1fr 1.4rem; column-gap: .7rem; row-gap: .6rem; padding: .9rem .3rem; }
  .gig__index { grid-row: 1; }
  .gig__title { grid-column: 2 / 4; grid-row: 1; font-size: 1.9rem; }
  .gig__arrow { grid-column: 4; grid-row: 1; font-size: 1.3rem; }
  /* same animations, just drawn at 60% size */
  .gig__visual { grid-column: 2; grid-row: 2; width: 187px; height: 90px; zoom: .6; }
  .gig__facts { grid-column: 3 / -1; grid-row: 2; font-size: 9.5px; gap: .2rem; }
  .freelance__cta { margin-top: 1.2rem; }
}

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden; background: var(--primary); color: var(--secondary);
  border-block: 1px solid var(--secondary);
  transform: rotate(-2deg) scale(1.05); margin: 4rem 0;
}
.marquee__track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font: 400 clamp(2.5rem, 7vw, 6rem)/1.1 var(--font-display); text-transform: uppercase; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ MY WAY ============ */
.myway { position: relative; padding: clamp(3rem, 6vw, 5.5rem) var(--gutter); overflow: hidden; }
/* tiny floating smileys behind the text */
.smileys { position: absolute; inset: 0; z-index: 0; }
.mini { --z: calc(var(--s) * 1.35); position: absolute; left: var(--x); top: var(--y); width: var(--z); height: var(--z); margin: calc(var(--z) / -2) 0 0 calc(var(--z) / -2); color: var(--secondary); opacity: .6; cursor: pointer; transition: opacity .3s; }
.mini:hover { opacity: 1; }
.mini svg { display: block; width: 100%; height: 100%; animation: drift var(--d) ease-in-out var(--dl) infinite alternate; }
@keyframes drift { from { transform: translate(0, 0) rotate(-10deg); } to { transform: translate(6px, -10px) rotate(12deg); } }
@media (max-width: 640px) { .mini { opacity: .35; } .mini:nth-child(n+11) { display: none; } }
.myway__lines { position: relative; z-index: 1; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: .1em; width: min(100%, 720px); margin: 0 auto; }
.myway__row { display: flex; align-items: center; justify-content: center; gap: clamp(.8rem, 2.5vw, 2rem); width: 100%; }
.myway__word { font: 400 clamp(3rem, 9vw, 8rem)/.82 var(--font-display); text-transform: uppercase; overflow: hidden; padding-top: .06em; }
.smiley { width: clamp(3.5rem, 8vw, 7rem); height: auto; animation: spin 10s linear infinite; transition: scale .5s var(--ease-back); }
.smiley { pointer-events: auto; }
.smiley:hover { scale: 1.15; animation-duration: 1.5s; }
.smiley circle { fill: var(--secondary); }
.smiley .eye { fill: var(--primary); }
.smiley .mouth { fill: none; stroke: var(--primary); stroke-width: 6; stroke-linecap: round; }
.objects { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.obj {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  pointer-events: auto;
  background: radial-gradient(circle, var(--secondary) 1px, transparent 1.5px) center / 8px 8px, var(--primary);
  border: 1px solid var(--secondary); box-shadow: 3px 3px 0 var(--secondary);
  transition: opacity .6s var(--ease-out), scale .6s var(--ease-io), rotate .6s var(--ease-io);
}
.obj--ci { border-radius: 50%; }
.obj--tr { clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--secondary); box-shadow: none; }
.obj.is-vanishing { opacity: 0; scale: .4; rotate: 45deg; }

/* ============ CTA + PHOTO WALL ============ */
.cta {
  position: relative; min-height: 115svh; overflow: hidden;
  display: grid; place-items: center;
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
}
.cta__center { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; max-width: 34rem; }
.cta__kicker { margin: 0; font: 400 clamp(2.4rem, 5vw, 4.6rem)/1 var(--font-serif); }
.cta__kicker em { font-style: italic; }
.cta__sub { margin: 0 0 1.5rem; }
.cta__btn {
  position: relative;
  width: 7.5rem; height: 7.5rem; border-radius: 50%;
  border: 1px solid var(--secondary); box-shadow: 4px 4px 0 var(--secondary);
  font: 400 3.4rem/1 var(--font-display); letter-spacing: .04em;
  transition: box-shadow .3s var(--ease-out), background-color .3s, color .3s;
}
.cta__btn::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed var(--secondary); animation: spin 14s linear infinite; }
.cta__btn:hover { background: var(--secondary); color: var(--primary); box-shadow: 8px 8px 0 var(--shadow); }

.snap {
  position: absolute; z-index: 1;
  width: clamp(170px, 24vw, 380px);
  padding: 12px 12px 0; background: var(--white);
  box-shadow: 10px 12px 0 var(--secondary);
  border: 1px solid var(--secondary);
  rotate: var(--tilt);
  transition: rotate .7s var(--ease-back), scale .7s var(--ease-back), box-shadow .5s var(--ease-out);
}
.snap img { width: 100%; height: auto; filter: contrast(1.05); }
.snap figcaption { padding: .7rem 0 .8rem; color: var(--secondary); font: italic 400 1.3rem/1 var(--font-serif); text-align: center; }
.snap:hover { rotate: 0deg; scale: 1.06; box-shadow: 18px 22px 0 var(--secondary); z-index: 2; }
.snap--left { --tilt: -8deg; left: 4%; top: 12%; }
.snap--right { --tilt: 7deg; right: 4%; bottom: 10%; width: clamp(150px, 21vw, 330px); }
.tape { position: absolute; width: 70px; height: 26px; background: color-mix(in srgb, var(--primary) 85%, transparent); box-shadow: 0 1px 0 var(--secondary); }
.tape--tl { top: -10px; left: -18px; rotate: -38deg; }
.tape--br { bottom: 30px; right: -20px; rotate: -38deg; }
.clip { position: absolute; top: -18px; left: 50%; width: 46px; height: 30px; margin-left: -23px; background: var(--secondary); clip-path: polygon(12% 30%, 88% 30%, 100% 100%, 0 100%); }
.clip::before { content: ""; position: absolute; left: 13px; top: 0; width: 20px; height: 16px; border: 3px solid var(--secondary); border-bottom: 0; border-radius: 10px 10px 0 0; }
@media (max-width: 900px) {
  .cta { grid-template-rows: auto auto; gap: 3rem; min-height: auto; }
  .snap { position: relative; left: auto; right: auto; top: auto; bottom: auto; }
  .cta { padding-inline: 7vw; }
  .snap--left { grid-row: 1; justify-self: start; width: 50vw; }
  .snap--right { grid-row: 1; justify-self: end; width: 40vw; margin-top: 30vw; }
  .snap figcaption { font-size: 1rem; }
  .cta__center { grid-row: 2; }
}

.cta__overlay {
  --size: max(130vmax, 64rem);
  position: absolute; top: 50%; left: 50%; z-index: 5;
  width: var(--size); height: var(--size); margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  border-radius: 50%; background: var(--secondary); color: var(--primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  clip-path: circle(0 at 50% 50%);
  transition: clip-path .8s var(--ease-io);
  pointer-events: none;
}
.cta.is-active .cta__overlay { clip-path: circle(50% at 50% 50%); pointer-events: auto; }
.cta__dots { position: absolute; inset: 0; opacity: .2; background: radial-gradient(circle, var(--primary) 1px, transparent 1.5px) center / 32px 32px; }
.cta__words { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta__row { display: flex; font: 400 clamp(5rem, 20vw, 20rem)/.8 var(--font-display); text-transform: uppercase; overflow: hidden; padding-top: .05em; }
.cta__row .char { animation: up-down 2.4s infinite; animation-play-state: paused; }
.cta.is-active .cta__row .char { animation-play-state: running; }
@keyframes up-down {
  0% { transform: translateY(0); animation-timing-function: var(--ease-out); }
  25% { transform: translateY(-8%); animation-timing-function: var(--ease-io); }
  75% { transform: translateY(8%); }
  100% { transform: translateY(0); }
}
.cta__star { position: absolute; top: 24%; left: 50%; width: clamp(3rem, 8vw, 7rem); margin-left: calc(clamp(3rem, 8vw, 7rem) / -2); animation: float 6s infinite var(--ease-io); }
@keyframes float { 50% { transform: translateY(-20%) scale(.6) rotate(90deg); } }
.cta__link {
  position: relative; margin-top: 2.5rem; padding: 1em 1.4em;
  border: 1px solid var(--primary); text-decoration: none;
  font: 700 14px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transform: translateY(1em); transition: opacity .3s, transform .3s var(--ease-out), background-color .3s, color .3s;
}
.cta.is-active .cta__link { opacity: 1; transform: none; transition-delay: .45s, .45s, 0s, 0s; }
.cta__link:hover { background: var(--primary); color: var(--secondary); }

/* ============ CONTACT ============ */
.contact { padding-bottom: clamp(4rem, 10vw, 8rem); }
.contact__grid { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(2rem, 5vw, 5rem); padding: clamp(3rem, 8vw, 6rem) var(--gutter) 0; align-items: start; }

/* spotlight portrait: duotone that reveals true colour under the cursor */
.spot {
  --x: 50%; --y: 40%; --r: 0px;
  position: sticky; top: calc(var(--head-h) + 2rem);
  isolation: isolate; overflow: hidden;
  background: var(--primary);
  border: 1px solid var(--secondary); box-shadow: 8px 8px 0 var(--secondary);
}
.spot img { width: 100%; height: auto; }
.spot__duo { filter: grayscale(1) contrast(1.25) brightness(1.05); mix-blend-mode: multiply; }
.spot__color {
  position: absolute; inset: 0; height: 100%; object-fit: cover;
  clip-path: circle(var(--r) at var(--x) var(--y));
  transition: clip-path .15s linear;
}
.spot__quote {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: grid; gap: .4rem; padding: 1rem 1rem 1.1rem;
  background: var(--secondary); color: var(--primary);
}
.spot__quote span { font: italic 400 clamp(1.6rem, 2.6vw, 2.4rem)/1 var(--font-serif); }
.spot__quote small { font-size: 10.5px; }

.form { display: grid; gap: 0; }
.form__title { margin: 0; display: grid; font: 400 clamp(3.4rem, 8vw, 8rem)/.85 var(--font-display); text-transform: uppercase; }
.form__title span { display: block; overflow: hidden; }
.form__title span:last-child { font-family: var(--font-serif); font-style: italic; text-transform: none; letter-spacing: -.02em; }
.form__intro { margin: 1.2rem 0 2.2rem; }

.field {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 2.6rem minmax(9rem, 13rem) 1fr 1.6rem; align-items: center; gap: 1rem;
  padding: 1.1rem .9rem;
  border-top: 1px solid var(--secondary);
  cursor: text;
  transition: color .5s var(--ease-io), padding .5s var(--ease-io);
}
.field:last-of-type { border-bottom: 1px solid var(--secondary); }
.field::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--secondary);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .55s var(--ease-io);
}
.field::after { /* thin progress line that draws in on focus */
  content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%;
  background: var(--primary); transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease-io);
}
.field:hover, .field:focus-within { color: var(--primary); padding-left: 1.6rem; }
.field:hover::before, .field:focus-within::before { transform: scaleY(1); transform-origin: top; }
.field:focus-within::after { transform: scaleX(1); }
.field__index { font: 700 11px/1 var(--font-mono); letter-spacing: .1em; opacity: .7; }
.field__label { font: 400 clamp(1.5rem, 2.4vw, 2.3rem)/1 var(--font-display); text-transform: uppercase; white-space: nowrap; overflow: hidden; padding-top: .06em; }
.field__label .char { transition: transform .5s var(--ease-back); transition-delay: calc(var(--i) * 25ms); }
.field:hover .field__label .char, .field:focus-within .field__label .char { transform: translateY(-.08em) rotate(-4deg); }
.field__input {
  width: 100%; min-width: 0; padding: .2rem 0;
  border: 0; outline: 0; background: transparent; color: inherit;
  font: 400 clamp(1.2rem, 1.8vw, 1.6rem)/1.3 var(--font-serif);
  caret-color: currentColor; resize: vertical;
}
.field__input::placeholder { color: inherit; opacity: .45; font-style: italic; transition: opacity .3s, transform .3s; }
.field__input:focus::placeholder { opacity: .2; }
.field--area { align-items: start; }
.field--area .field__label, .field--area .field__index { margin-top: .35rem; }
.field__ok { justify-self: end; font-size: 1.1rem; scale: 0; rotate: -180deg; transition: scale .5s var(--ease-back), rotate .6s var(--ease-io); }
.field.is-valid .field__ok { scale: 1; rotate: 0deg; }
.field.is-invalid { animation: shake .45s; }
.field.is-invalid .field__index::after { content: " ✕"; }
@keyframes shake { 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
@media (max-width: 960px) {
  .contact__grid { grid-template-columns: 1fr; }
  .spot { position: relative; top: 0; max-width: 460px; }
}
/* phones: photo becomes a short banner, fields get tight */
@media (max-width: 640px) {
  .contact__grid { gap: 1.6rem; padding-top: 2rem; }
  .spot { aspect-ratio: 16 / 9; max-width: none; box-shadow: 5px 5px 0 var(--secondary); }
  .spot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
  .spot__quote { padding: .5rem .7rem .6rem; gap: .15rem; }
  .spot__quote span { font-size: 1.25rem; }
  .spot__quote small { font-size: 9px; }
  .form__title { font-size: 2.6rem; }
  .form__intro { margin: .7rem 0 1.1rem; font-size: 10.5px; }
  .field { grid-template-columns: 1.6rem 1fr 1.2rem; row-gap: .15rem; column-gap: .6rem; padding: .6rem .5rem; }
  .field:hover, .field:focus-within { padding-left: .9rem; }
  .field__index { font-size: 10px; }
  .field__label { grid-column: 2 / 3; font-size: 1.05rem; }
  .field__input { grid-column: 2 / -1; font-size: 16px; } /* 16px stops iPhones zooming in on focus */
  .field--area .field__input { min-height: 3.2em; }
  .field__ok { grid-row: 1; grid-column: 3; font-size: .9rem; }
  .form__foot { margin-top: 1.2rem; gap: 1rem; }
  .form__submit { padding: .8rem 1.2rem .7rem; font-size: 1.6rem; }
}

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.2rem; }
.form__submit {
  --fx: 50%; --fy: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.8rem 1rem;
  border: 1px solid var(--secondary); box-shadow: 5px 5px 0 var(--secondary);
  font: 400 clamp(1.8rem, 3vw, 2.6rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em;
  transition: color .45s var(--ease-io), box-shadow .3s var(--ease-out);
}
.form__submit-fill {
  position: absolute; z-index: -1; left: var(--fx); top: var(--fy);
  width: 300%; aspect-ratio: 1; border-radius: 50%;
  background: var(--secondary);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .7s var(--ease-io);
}
.form__submit:hover { color: var(--primary); box-shadow: 9px 9px 0 var(--shadow); }
.form__submit:hover .form__submit-fill { transform: translate(-50%, -50%) scale(1); }
.form__submit svg { width: 1em; height: 1em; transition: transform .5s var(--ease-back); }
.form__submit:hover svg { transform: translateX(.3em) rotate(-45deg); }
.form__submit.is-sent svg { animation: fly .8s var(--ease-io) forwards; }
@keyframes fly { 50% { transform: translate(2em, -2em) rotate(-45deg); opacity: 0; } 51% { transform: translate(-2em, 2em) rotate(-45deg); } 100% { transform: none; opacity: 1; } }
.form__status { margin: 0; max-width: 32ch; line-height: 1.5; min-height: 1.5em; }
/* spam-protection helpers: present in the page, never visible */
.form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__turnstile:empty { display: none; }
.form__turnstile { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form__submit[aria-busy="true"] { cursor: progress; }

/* ============ FOOTER ============ */
.foot { padding: 0 0 var(--gutter); overflow: hidden; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem var(--gutter); }
.foot__row a { text-decoration: none; }
.foot__links { display: flex; gap: 1.5rem; }
.foot__big { padding: 0 var(--gutter); display: flex; justify-content: center; }
.foot__big .fit { overflow: hidden; padding-top: .06em; }

/* ============ GENERIC ============ */
[data-reveal] { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
