/* Jackfish Creative, v3 home page.
   One typeface, Archivo, at its normal width for everything.
   Square corners everywhere. Brand palette: Dark, Bone, Light Bone, White, Orange. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/Archivo-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Colour */
  --ink: #301c17;          /* Dark brown, all text and dark sections */
  --ink-2: #4d352b;        /* Secondary brown */
  --mute: #7a675d;         /* Small supporting text on light (4.9:1) */
  --bone: #ede6db;         /* Light text on dark, light tiles */
  --paper: #f9f5ef;        /* Light Bone, page background */
  --white: #fffefa;        /* Brand White, button text on orange */
  --orange: #ff4f00;       /* The one accent */
  --line: rgba(48, 28, 23, 0.16);
  --line-dark: rgba(237, 230, 219, 0.18);

  /* Layout */
  --gutter: clamp(16px, 2.6vw, 40px);
  --gap: clamp(12px, 1.6vw, 24px);
  --nav-h: 72px;
  --section: clamp(104px, 12vw, 208px);

  /* Type */
  --t-small: 13px;
  --t-body: 17px;
  --t-lead: clamp(17px, 1.25vw, 19px);
  --t-h3: clamp(30px, 3vw, 52px);
  --t-h2: clamp(48px, 6.4vw, 112px);
  --t-hero: clamp(42px, 5.6vw, 92px);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: var(--t-body);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: 100%; max-width: 1760px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; background: var(--orange); color: var(--ink); font-weight: 600; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Brand marks are drawn as masks so one file can take any colour. */
.wordmark, .fish { display: block; background: currentColor; }
.wordmark {
  aspect-ratio: 3000 / 504;
  -webkit-mask: url("../assets/brand/wordmark.webp") center / contain no-repeat;
          mask: url("../assets/brand/wordmark.webp") center / contain no-repeat;
}
.fish {
  aspect-ratio: 600 / 168;
  -webkit-mask: url("../assets/brand/fish.webp") center / contain no-repeat;
          mask: url("../assets/brand/fish.webp") center / contain no-repeat;
}
.ico {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: butt;     /* square ends, no rounding */
  stroke-linejoin: miter;   /* sharp arrow tips */
}

/* ---------- Headings ---------- */
.h2 {
  font-size: var(--t-h2);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.04em;
}
.h3 {
  font-size: var(--t-h3);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* ---------- Buttons and links ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 26px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: color 0.5s var(--ease), transform 0.15s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}

.btn:active { transform: translateY(1px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
/* White on this orange is 3.2:1, so button labels stay bold. */
.btn-accent { background: var(--orange); color: var(--white); --btn-fill: var(--ink); }
.on-dark .btn-accent { --btn-fill: var(--white); }


.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  font-weight: 500;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.link .ico { transition: transform 0.5s var(--ease); }




/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  color: var(--bone);
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
/* Three states: clear at the very top, dark while scrolling over the hero, light after it. */
.nav.is-scrolled:not(.is-solid) { background: var(--ink); border-bottom-color: var(--line-dark); }
.nav.is-solid { background: var(--paper); color: var(--ink); border-bottom-color: var(--line); }
.nav.is-scrolled:not(.is-solid) .btn-accent { --btn-fill: var(--white); }

.nav-inner {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
}
.nav-logo { grid-column: 1 / span 3; width: 142px; }
/* Nav copy of the wordmark has a little transparent padding so the letter edges are never shaved off at small sizes. */
.nav-logo .wordmark { aspect-ratio: 780 / 146; -webkit-mask-image: url("../assets/brand/wordmark-nav.webp"); mask-image: url("../assets/brand/wordmark-nav.webp"); margin-left: -1.92%; }
.nav-links { grid-column: 7 / span 4; display: flex; gap: clamp(20px, 2.4vw, 40px); font-size: 15px; font-weight: 500; }
.nav-links a {
  padding-block: 4px;
  background: linear-gradient(currentColor, currentColor) right bottom / 0% 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}

.nav-cta { grid-column: 11 / span 2; justify-self: end; }
.nav-toggle { display: none; grid-column: 10 / span 3; justify-self: end; width: 44px; height: 44px; margin-right: -10px; }
/* Two square-ended bars that turn into an X when the menu is open. */
.nav-burger { position: relative; display: block; width: 24px; height: 12px; margin: 0 auto; }
.nav-burger span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform 0.45s var(--ease), top 0.45s var(--ease); }
.nav-burger span:first-child { top: 0; }
.nav-burger span:last-child { top: 10px; }
body.menu-open .nav-burger span:first-child { top: 5px; transform: rotate(45deg); }
body.menu-open .nav-burger span:last-child { top: 5px; transform: rotate(-45deg); }

/* Phone menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 32px;
  background: var(--ink);
  color: var(--bone);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-io), visibility 0s 0.8s;
}
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  font-size: clamp(52px, 15vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  transform: translateY(40%);
  opacity: 0;
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease), color 0.3s;
}

.menu-foot { display: flex; flex-direction: column; gap: 6px; font-size: var(--t-lead); }
body.menu-open { overflow: hidden; }
body.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path 0.8s var(--ease-io), visibility 0s; }
body.menu-open .menu-links a { transform: none; opacity: 1; }
body.menu-open .menu-links a:nth-child(2) { transition-delay: 0.06s; }
body.menu-open .menu-links a:nth-child(3) { transition-delay: 0.12s; }
body.menu-open .nav { background: transparent; color: var(--bone); border-bottom-color: transparent; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: saturate(0.8) contrast(1.04);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(48, 28, 23, 0.55) 0%, rgba(48, 28, 23, 0) 18%, rgba(48, 28, 23, 0) 30%, rgba(48, 28, 23, 0.72) 58%, rgba(48, 28, 23, 0.97) 100%),
    rgba(48, 28, 23, 0.2);
}
.hero-inner { position: relative; z-index: 1; padding-bottom: clamp(16px, 2.2vw, 36px); }
.hero-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(32px, 4.4vw, 72px);
}
.hero-title {
  grid-column: 1 / span 8;
  font-size: var(--t-hero);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .line > span { display: block; }
.hero-aside { grid-column: 9 / span 4; max-width: 400px; justify-self: end; width: 100%; }
.hero-aside p { font-size: var(--t-lead); line-height: 1.4; color: rgba(237, 230, 219, 0.88); margin-bottom: 28px; }
.hero-ctas { display: flex; align-items: center; gap: 28px; }
.hero-mark { position: relative; }
.hero-mark-clip { overflow: hidden; }
/* The swimming fish: hidden unless motion is on, sits across the middle of the wordmark. */
.hero-fish { --fw: clamp(110px, 15vw, 260px); display: none; position: absolute; top: 50%; left: calc((min(100vw, 1760px) - 100vw) / 2 - var(--gutter)); z-index: 1; width: var(--fw); margin-top: calc(var(--fw) * -0.14); pointer-events: none; }
.hero-fish .fish { width: 100%; color: var(--orange); }
.hero-mark .wordmark { width: 100%; color: var(--bone); }
.nav-sentinel { position: absolute; left: 0; bottom: var(--nav-h); width: 1px; height: 1px; }
.top-sentinel { position: absolute; top: 48px; left: 0; width: 1px; height: 1px; pointer-events: none; }

/* ---------- Intro statement ---------- */
.intro { padding-top: var(--section); padding-bottom: calc(var(--section) * 1.25); }
.intro-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.intro-side { grid-column: 1 / span 3; padding-top: 0.9em; }
.intro-side .fish { width: 64px; color: var(--orange); }
.intro-text {
  grid-column: 4 / span 9;
  font-size: clamp(36px, 5vw, 88px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.intro-text { text-wrap: balance; }
[data-fill] .w, [data-fill] .nw { display: inline-block; }
[data-fill] .nw { white-space: nowrap; }
[data-fill] .hl { color: var(--orange); }

/* ---------- Work ---------- */
.work { padding-bottom: var(--section); }
.work-title { margin-bottom: clamp(40px, 5vw, 88px); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}
.work-col { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 160px); }
.work-col--main { grid-column: 1 / span 7; }
.work-col--side { grid-column: 9 / span 4; padding-top: clamp(140px, 20vw, 360px); }
.work-item { display: block; }
.work-item--slate { width: 76%; margin-left: auto; }
.work-media { position: relative; overflow: hidden; background: var(--bone); }
.work-item--rocco .work-media { aspect-ratio: 4 / 3; }
.work-item--slate .work-media { aspect-ratio: 3 / 2; }
.work-item--dwa .work-media { aspect-ratio: 4 / 5; }
.work-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.work-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.work-item--rocco img { object-position: 50% 48%; }
.work-item--dwa video { object-position: 50% 50%; }

.work-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; }
.work-cap h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.work-cap h3 .ico { width: 0.8em; height: 0.8em; color: var(--orange); opacity: 0; transform: translate(-6px, 6px); transition: opacity 0.4s var(--ease), transform 0.6s var(--ease); }

.work-cap p { font-size: 14px; color: var(--mute); text-align: right; }

/* ---------- Services ---------- */
.services { padding-bottom: var(--section); }
.services .h2 { margin-bottom: clamp(40px, 5vw, 88px); }
.svc-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--gap);
  min-height: clamp(600px, 50vw, 820px);
}
.svc {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(22px, 2.4vw, 40px);
  background: var(--bone);
  color: #8d7b70;
  outline-offset: -2px;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}
.svc--identity { grid-row: 1 / span 2; }
.svc h3 {
  font-size: clamp(34px, 3.8vw, 68px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.svc p { max-width: 34ch; font-size: 16px; line-height: 1.45; color: var(--ink-2); transition: color 0.6s var(--ease); }
.svc-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.8s var(--ease), transform 1.6s var(--ease);
}
.svc::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(48, 28, 23, 0.74) 0%, rgba(48, 28, 23, 0.34) 45%, rgba(48, 28, 23, 0.94) 100%);
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.svc.is-active { background: var(--ink); color: var(--bone); }
.svc.is-active p { color: rgba(237, 230, 219, 0.9); }
.svc.is-active .svc-img { opacity: 0.7; transform: scale(1); }
.svc.is-active::after { opacity: 1; }

/* ---------- Builds ---------- */
/* Full-bleed photo, headline on the left, four see-through cards on the right (after the Ondex reference). */
.builds { position: relative; overflow: hidden; background: var(--ink); color: var(--bone); }
.builds-media { position: absolute; inset: 0; }
.builds-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; filter: saturate(0.85); }
.builds-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(48, 28, 23, 0.78) 0%, rgba(48, 28, 23, 0.4) 42%, rgba(48, 28, 23, 0.55) 100%),
    linear-gradient(180deg, rgba(48, 28, 23, 0.35) 0%, rgba(48, 28, 23, 0) 30%, rgba(48, 28, 23, 0) 70%, rgba(48, 28, 23, 0.5) 100%);
}
.builds-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
  min-height: clamp(680px, 58vw, 960px);
  padding-block: clamp(88px, 9vw, 152px);
}
.builds-intro { grid-column: 1 / span 5; }
.builds-intro p { margin-top: 28px; max-width: 30ch; font-size: var(--t-lead); line-height: 1.4; color: rgba(255, 254, 250, 0.82); }
.builds-grid { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1vw, 16px); }
/* Cards on the photo, no outline. */
.build {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: clamp(270px, 22vw, 340px);
  padding: clamp(22px, 2vw, 30px);
  background-color: rgba(48, 28, 23, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
          backdrop-filter: blur(18px) saturate(1.2);
  transition: background-color 0.5s var(--ease);
}




.build-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.build h3 {
  font-size: clamp(26px, 2.3vw, 40px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--white);
  text-wrap: balance;
}
/* The arrow only appears on hover. */
.build-head .ico { width: 22px; height: 22px; margin-top: 4px; color: var(--orange); opacity: 0; transform: translate(-6px, 6px); transition: transform 0.6s var(--ease), opacity 0.4s var(--ease), color 0.4s; }

.build-desc { max-width: 32ch; font-size: 15px; line-height: 1.45; color: rgba(255, 254, 250, 0.74); }
.build-price { margin-top: auto; font-size: 22px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: var(--white); transition: color 0.4s var(--ease); }
.build-price span { display: block; margin-bottom: 4px; font-size: var(--t-small); font-weight: 400; letter-spacing: 0; color: rgba(255, 254, 250, 0.6); }

/* ---------- About ---------- */
.about-hero { padding-top: calc(var(--nav-h) + clamp(96px, 11vw, 192px)); padding-bottom: var(--section); }
.about-hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.about-hero-copy { grid-column: 4 / span 9; }
.about-title {
  font-size: clamp(36px, 4.6vw, 80px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.about-title span { color: var(--mute); }
.about-lede { margin-top: clamp(32px, 3.4vw, 56px); max-width: 44ch; font-size: var(--t-lead); line-height: 1.45; color: var(--ink-2); }

.origin { padding-bottom: var(--section); }
.origin .h2 { margin-bottom: clamp(40px, 5vw, 88px); }
.origin-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.origin-photo { grid-column: 1 / span 8; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bone); }
.origin-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.origin-text {
  grid-column: 9 / span 4;
  font-size: clamp(22px, 1.9vw, 32px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.method { padding-bottom: var(--section); }
.method-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: stretch; }
.method-side { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 80px); }
.method-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bone); margin-top: auto; }
.method-photo img { width: 100%; height: 100%; object-fit: cover; }
.method-list { grid-column: 7 / span 6; display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; background: var(--ink); color: var(--bone); }
.method-list li { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(24px, 2.6vw, 40px); }
.method-list li + li { border-top: 1px solid var(--line-dark); }
.method-list h3 { font-size: clamp(30px, 2.9vw, 50px); font-weight: 500; line-height: 1; letter-spacing: -0.04em; color: var(--white); }
.method-list p { max-width: 40ch; font-size: 16px; line-height: 1.45; color: rgba(237, 230, 219, 0.82); }

.careers { padding-bottom: var(--section); }
.careers-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}
.careers-row h2 { grid-column: 1 / span 5; }
.careers-row p { grid-column: 7 / span 6; max-width: 40ch; font-size: var(--t-lead); color: var(--ink-2); padding-top: 0.3em; }

/* ---------- Project pages ---------- */
.hero--project { min-height: max(560px, 92svh); }
.hero--project .hero-media img { object-position: var(--pos, 50% 50%); }
.pj-title {
  max-width: 14ch;
  margin-bottom: clamp(20px, 2.4vw, 40px);
  font-size: clamp(52px, 8.4vw, 152px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.pj-title .line { padding-bottom: 0.08em; margin-bottom: -0.08em; }

.pj-intro { padding-block: var(--section); }
.pj-intro-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.pj-meta { grid-column: 1 / span 3; display: flex; flex-direction: column; gap: 24px; margin: 0; padding-top: 0.5em; }
.pj-meta dt { margin-bottom: 4px; font-size: var(--t-small); color: var(--mute); }
.pj-meta dd { margin: 0; font-size: var(--t-lead); }
.pj-story { grid-column: 5 / span 8; }
.pj-lead { font-size: clamp(26px, 2.5vw, 42px); font-weight: 400; line-height: 1.18; letter-spacing: -0.03em; text-wrap: pretty; }
.pj-story-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(40px, 4vw, 64px);
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-2);
}

/* Gallery keeps the slot proportions the artwork was exported at (wide 21:8, tall 3:4, squarish 4:3, short 5:4). */
.pj-gallery { display: flex; flex-direction: column; gap: var(--gap); padding-bottom: var(--section); }
.pj-row { display: grid; gap: var(--gap); align-items: start; }
.pj-row--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pj-row--bottom { align-items: end; }
.pj-media { position: relative; overflow: hidden; background: var(--bone); }
.pj-media img { width: 100%; height: 100%; object-fit: cover; }
.pj-media--wide { aspect-ratio: 21 / 8; }
.pj-media--tall { aspect-ratio: 3 / 4; }
.pj-media--squarish { aspect-ratio: 4 / 3; }
.pj-media--short { aspect-ratio: 5 / 4; }
.pj-media--portrait { aspect-ratio: 2 / 3; }
.pj-gallery { gap: var(--gap); }
.pj-feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.pj-feature .pj-media--lead { grid-column: 1 / span 7; aspect-ratio: 5 / 6; }
.pj-feature-stack { grid-column: 8 / -1; display: flex; flex-direction: column; gap: var(--gap); min-height: 0; }
.pj-feature-stack .pj-media { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
.pj-feature--flip .pj-media--lead { grid-column: 6 / -1; grid-row: 1; }
.pj-feature--flip .pj-feature-stack { grid-column: 1 / span 5; grid-row: 1; }
@media (max-width: 700px) {
  .pj-feature { display: flex; flex-direction: column; }
  .pj-feature .pj-media--lead { aspect-ratio: 4 / 5; }
  .pj-feature-stack .pj-media { flex: none; aspect-ratio: 4 / 3; }
}

.pj-next { padding-bottom: var(--section); }
.pj-next-link {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}
.pj-next-text { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 16px; }
.pj-next-label { font-size: 15px; color: var(--mute); }
.pj-next-title {
  display: block;
  font-size: var(--t-h2);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.04em;
  transition: color 0.4s var(--ease);
}
.pj-next-title .nw { white-space: nowrap; }
.pj-next-title .ico { display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.14em; vertical-align: 0.05em; color: var(--orange); stroke-width: 2.4; transition: transform 0.6s var(--ease); }
.pj-next-media { grid-column: 9 / span 4; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bone); }
.pj-next-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }



/* ---------- Contact ---------- */
.contact { padding-top: calc(var(--nav-h) + clamp(72px, 9vw, 160px)); padding-bottom: var(--section); }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.contact-intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 48px); }
.contact-title { font-size: var(--t-h2); font-weight: 500; line-height: 0.94; letter-spacing: -0.04em; }
.contact-lede { margin-top: 28px; max-width: 30ch; font-size: var(--t-lead); line-height: 1.45; color: var(--ink-2); }
.contact-details { display: flex; flex-direction: column; gap: 22px; margin: clamp(48px, 6vw, 96px) 0 0; }
.contact-details dt { margin-bottom: 4px; font-size: var(--t-small); color: var(--mute); }
.contact-details dd { margin: 0; font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -0.01em; }
.contact-details a { background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat; transition: background-size 0.5s var(--ease), color 0.3s; }


/* Form: dark panel, underlined fields, square chips that go orange when picked. */
.cf {
  grid-column: 7 / span 6;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: clamp(24px, 3vw, 48px);
  background: var(--ink);
  color: var(--bone);
}
.cf-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field label, .cf-group legend { font-size: var(--t-small); color: rgba(237, 230, 219, 0.72); }
.cf-field input, .cf-field textarea, .cf-field select {
  -webkit-appearance: none;
          appearance: none;
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(237, 230, 219, 0.32);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 18px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cf-field textarea { min-height: 96px; resize: vertical; }
.cf-field select {
  padding-right: 28px;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 2px center / 16px no-repeat;
}
.cf-field select:invalid, .cf-field select.is-empty { color: rgba(237, 230, 219, 0.5); }
.cf-field select option { color: #301c17; }

.cf-field input:focus, .cf-field textarea:focus, .cf-field select:focus { border-bottom-color: var(--orange); box-shadow: 0 1px 0 var(--orange); }
.cf-error { display: none; font-size: var(--t-small); color: #ff9466; }
.cf-field.is-invalid input { border-bottom-color: #ff9466; }
.cf-field.is-invalid .cf-error { display: block; }
.cf-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.cf-group legend { padding: 0; margin-bottom: 14px; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chip { position: relative; cursor: pointer; }
.cf-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cf-chip span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(237, 230, 219, 0.28);
  font-size: 15px;
  color: var(--bone);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.cf-chip input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--white); }
.cf-chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.cf-submit { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cf-status { font-size: 15px; color: rgba(237, 230, 219, 0.85); }
.cf .btn { min-width: 140px; justify-content: center; }
.cf .btn:disabled { cursor: default; }
.cf .btn.is-sent { background: var(--bone); color: var(--ink); }
.cf .btn.is-sent::before { display: none; }

/* ---------- Privacy ---------- */
.legal { padding-top: calc(var(--nav-h) + clamp(72px, 9vw, 160px)); padding-bottom: var(--section); }
.legal-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.legal-side { grid-column: 1 / span 4; position: sticky; top: calc(var(--nav-h) + 48px); }
.legal-title { font-size: var(--t-h2); font-weight: 500; line-height: 0.94; letter-spacing: -0.04em; text-wrap: balance; }
.legal-updated { margin-top: 20px; font-size: 15px; color: var(--mute); }
.legal-toc { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: clamp(40px, 5vw, 72px); font-size: 15px; }
.legal-toc a { color: var(--ink-2); transition: color 0.3s; }

.legal-body { grid-column: 6 / span 7; max-width: 62ch; font-size: var(--t-lead); line-height: 1.6; color: var(--ink-2); }
.legal-body .legal-intro { font-size: clamp(21px, 1.7vw, 27px); line-height: 1.35; letter-spacing: -0.015em; color: var(--ink); }
.legal-body h2 {
  margin: clamp(48px, 5vw, 80px) 0 18px;
  font-size: clamp(26px, 2.2vw, 36px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  scroll-margin-top: calc(var(--nav-h) + 32px);
}
.legal-body p + p { margin-top: 16px; }
.legal-body ul { margin: 16px 0; padding-left: 1.1em; }
.legal-body li + li { margin-top: 6px; }
.legal-body strong { font-weight: 600; color: var(--ink); }
.legal-body a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.3s; }


/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--bone); padding-top: clamp(96px, 11vw, 176px); padding-bottom: 28px; overflow: hidden; }
.footer-kicker { font-size: clamp(18px, 1.7vw, 26px); color: rgba(237, 230, 219, 0.7); margin-bottom: 12px; letter-spacing: -0.01em; }
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.08em;
  font-size: clamp(76px, 12.5vw, 236px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
  transition: color 0.5s var(--ease);
}
.footer-cta .ico { width: 0.5em; height: 0.5em; margin-left: 0.06em; stroke-width: 2.8; color: var(--orange); transition: transform 0.7s var(--ease), color 0.5s var(--ease); }


.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 32px;
  margin-top: clamp(64px, 8vw, 128px);
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}
.footer--plain { padding-top: clamp(56px, 6vw, 96px); }
.footer--plain .footer-grid { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: var(--t-lead); }
.footer-col h4 { font-size: var(--t-small); font-weight: 500; color: rgba(237, 230, 219, 0.6); margin-bottom: 10px; }
.footer-col a { transition: color 0.3s; }

.footer-col--email { grid-column: 1 / span 4; }
.footer-col--social { grid-column: 5 / span 3; }
.footer-col--base { grid-column: 8 / span 3; }
.footer-col--pages { grid-column: 11 / span 2; }
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 32px;
  margin-top: clamp(72px, 9vw, 144px);
  font-size: var(--t-small);
  color: rgba(237, 230, 219, 0.6);
}

.footer-fish { justify-self: start; }
.footer-fish .fish { width: 72px; color: var(--bone); transition: color 0.4s, transform 0.6s var(--ease); }


/* ---------- Motion (only when the visitor allows it) ---------- */

/* Hero opening: photo settles, headline lines rise, the wordmark lifts in. */
.motion .hero-media img, .motion .hero-media video { transform: scale(1.12); transition: transform 2.2s var(--ease); }
.motion .hero-title .line > span { transform: translateY(105%); transition: transform 1.2s var(--ease); }
.motion .hero-title .line:nth-child(2) > span { transition-delay: 0.08s; }
.motion .hero-aside { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) 0.35s, transform 1.2s var(--ease) 0.35s; }
.motion .hero-mark .wordmark { transform: translateY(102%); transition: transform 1.4s var(--ease) 0.15s; }
.motion .nav { opacity: 0; transition: opacity 1s var(--ease) 0.5s, background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease); }
.motion.is-loaded .hero-media img, .motion.is-loaded .hero-media video { transform: none; }
.motion.is-loaded .hero-title .line > span, .motion.is-loaded .hero-mark .wordmark { transform: none; }
.motion.is-loaded .hero-aside { opacity: 1; transform: none; }
.motion.is-loaded .nav { opacity: 1; }

/* Fish: once the wordmark is up, it darts left to right across it with a quick tail wiggle. */
.motion .hero-fish { display: block; transform: translateX(calc(-100% - 20vw)); }
/* One smooth glide: it darts in from just off the left edge, picks up speed, and finishes
   slowing down well past the right edge so it never stalls on screen. Plus a quick bob and tail flick. */
.motion.is-loaded .hero-fish { animation: fish-swim 2.1s cubic-bezier(0.4, 0, 0.6, 1) 1s both; }
.motion.is-loaded .hero-fish .fish { animation: fish-wiggle 0.24s ease-in-out 1s 9 alternate both; }
@keyframes fish-swim {
  from { transform: translateX(calc(-100% - 20vw)); }
  to   { transform: translateX(140vw); }
}
@keyframes fish-wiggle {
  from { transform: translateY(-8%) rotate(-3deg) skewY(-3deg); }
  to   { transform: translateY(8%) rotate(3deg) skewY(3deg); }
}

/* The hero photo drifts slower than the page as you leave it. */
@supports (animation-timeline: scroll()) {
  .motion .hero-media { animation: hero-drift linear both; animation-timeline: scroll(root); animation-range: 0px 100vh; }
  @keyframes hero-drift { to { transform: translateY(22%); } }
}

/* Reveals: images wipe up from the bottom, text rises. */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease), color 0.5s var(--ease), background-color 0.5s var(--ease), border-color 0.5s var(--ease); }
.motion [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease);
}
.motion [data-reveal="clip"] > * { scale: 1.18; transition: scale 1.8s var(--ease), transform 1.4s var(--ease); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.motion [data-reveal].is-in > * { scale: 1; }
/* Stagger only the entrance (opacity, transform), never the hover colours. */
.motion .builds-grid .build:nth-child(2) { transition-delay: 0.08s, 0.08s, 0s, 0s, 0s; }
.motion .builds-grid .build:nth-child(3) { transition-delay: 0.16s, 0.16s, 0s, 0s, 0s; }
.motion .builds-grid .build:nth-child(4) { transition-delay: 0.24s, 0.24s, 0s, 0s, 0s; }

/* Intro statement: each word fills from faint to full as it moves up the screen. */
@supports (animation-timeline: view()) {
  .motion [data-fill] .w {
    color: rgba(48, 28, 23, 0.16);
    animation: word-fill linear both;
    animation-timeline: view();
    animation-range: cover calc(16% + var(--x, 0) * 16%) cover calc(28% + var(--x, 0) * 16%);
  }
  @keyframes word-fill { to { color: var(--ink); } }
  .motion [data-fill] .w.hl { animation-name: word-fill-hl; }
  @keyframes word-fill-hl { to { color: var(--orange); } }
  .motion .on-dark [data-fill] .w { color: rgba(237, 230, 219, 0.18); animation-name: word-fill-dark; }
  @keyframes word-fill-dark { to { color: var(--bone); } }
}
@supports not (animation-timeline: view()) {
  .motion [data-fill] .w { color: rgba(48, 28, 23, 0.16); transition: color 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
  .motion [data-fill].is-in .w { color: var(--ink); }
  .motion [data-fill].is-in .w.hl { color: var(--orange); }
  .motion .on-dark [data-fill] .w { color: rgba(237, 230, 219, 0.18); }
  .motion .on-dark [data-fill].is-in .w { color: var(--bone); }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .nav-links { grid-column: 6 / span 4; }
  .hero-title { grid-column: 1 / span 12; }
  .hero-aside { grid-column: 1 / span 12; justify-self: start; margin-top: 28px; max-width: 460px; }
  .intro-text { grid-column: 3 / span 10; }
  .builds-intro { grid-column: 1 / span 12; margin-bottom: 48px; }
  .about-hero-copy { grid-column: 3 / span 10; }
  .origin-photo { grid-column: 1 / span 12; }
  .origin-text { grid-column: 1 / span 9; margin-top: 32px; }
  .method-side { grid-column: 1 / span 12; }
  .method-photo { margin-top: 0; }
  .method-list { grid-column: 1 / span 12; margin-top: 40px; }
  .contact-intro { grid-column: 1 / span 12; position: static; }
  .legal-side { grid-column: 1 / span 12; position: static; margin-bottom: 56px; }
  .legal-body { grid-column: 1 / span 12; }
  .pj-meta { grid-column: 1 / span 12; flex-direction: row; gap: 48px; padding-top: 0; margin-bottom: 40px; }
  .pj-story { grid-column: 1 / span 12; }
  .cf { grid-column: 1 / span 12; margin-top: 56px; }
  .builds-grid { grid-column: 1 / span 12; }
  .footer-col--email { grid-column: 1 / span 6; }
  .footer-col--social { grid-column: 7 / span 6; }
  .footer-col--base { grid-column: 1 / span 6; }
  .footer-col--pages { grid-column: 7 / span 6; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-logo { width: 122px; grid-column: 1 / span 6; }

  .hero { min-height: max(600px, 100svh); }
  .hero-media img, .hero-media video { object-position: 38% 50%; }
  .hero-row { margin-bottom: 28px; }
  .hero-ctas { gap: 22px; }

  .intro-grid { row-gap: 28px; }
  .intro-side { grid-column: 1 / -1; padding-top: 0; }
  .intro-side .fish { width: 52px; }
  .intro-text { grid-column: 1 / -1; }

  .work-grid { display: flex; flex-direction: column; align-items: stretch; gap: 56px; }
  .work-col { gap: 56px; }
  .work-col--side { padding-top: 0; }
  .work-item--slate { width: 100%; }
  .work-item--rocco .work-media, .work-item--slate .work-media, .work-item--dwa .work-media { aspect-ratio: 4 / 3; }
  .work-cap { flex-direction: column; gap: 4px; }
  .work-cap p { text-align: left; }
  .work-cap h3 .ico { opacity: 1; transform: none; }

  .svc-grid { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
  .svc--identity { grid-row: auto; }
  .svc { min-height: 320px; }

  .builds-media img { object-position: 22% 30%; }

  .about-hero { padding-top: calc(var(--nav-h) + 72px); }
  .about-hero-grid { row-gap: 28px; }
  .about-hero-copy { grid-column: 1 / -1; }
  .origin-text { grid-column: 1 / -1; }
  .method-list li { gap: 20px; }
  .careers-row h2, .careers-row p { grid-column: 1 / -1; }
  .contact { padding-top: calc(var(--nav-h) + 64px); }
  .legal { padding-top: calc(var(--nav-h) + 64px); }
  .hero--project { min-height: max(440px, 62svh); }
  .hero--project .hero-media img { object-position: var(--pos-sm, var(--pos)); }
  .pj-meta { flex-direction: column; gap: 20px; }
  .pj-story-cols { grid-template-columns: 1fr; gap: 20px; }
  .pj-row--two { grid-template-columns: 1fr; }
  .pj-next-text, .pj-next-media { grid-column: 1 / -1; }
  .pj-next-media { margin-top: 28px; }
  .cf { margin-top: 48px; padding: 24px 20px 28px; gap: 30px; }
  .cf-row { grid-template-columns: 1fr; gap: 30px; }
  .cf-submit { flex-direction: column-reverse; align-items: stretch; }
  .cf .btn { width: 100%; }
  .careers-row p { padding-top: 0; }
  .builds-grid { grid-template-columns: 1fr; }
  .build { min-height: 0; }
  .build-price { margin-top: 20px; }

  .footer-grid { row-gap: 28px; }
  .footer-col--email, .footer-col--social, .footer-col--base, .footer-col--pages { grid-column: 1 / -1; }
  .footer-bottom { grid-template-columns: 1fr auto; gap: 16px 24px; }
  .footer-bottom p { grid-column: 1 / -1; grid-row: 2; }
}

/* Taps land on the link, never on the video or photo inside it (Safari can eat the first tap on a video). */
a video, a img { pointer-events: none; }
html { touch-action: manipulation; }

/* Touch screens: no hover, so the "this is a link" arrows are always shown. */
@media (hover: none), (pointer: coarse) {
  .build-head .ico { opacity: 1; transform: none; }
  .work-cap h3 .ico { opacity: 1; transform: none; }
}

/* Current page stays marked on every device (kept out of the hover-only block). */
.nav-links a[aria-current="page"] { background-size: 100% 1px; background-position: left bottom; }
.menu-links a[aria-current="page"] { color: var(--orange); }

/* ---------- Hover effects: mouse and trackpad only, so phones never need a double tap ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
  .on-dark .btn-accent:hover, .on-dark .btn-accent:focus-visible { color: var(--ink); }
  .link:hover { background-size: 0% 1px; background-position: right bottom; }
  .link:hover .ico { transform: translateX(3px); }
  .hero .link:hover .ico { transform: translateY(3px); }
  .nav.is-scrolled:not(.is-solid) .btn-accent:hover { color: var(--ink); }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background-size: 100% 1px; background-position: left bottom; }
  .menu-links a:hover, .menu-links a[aria-current="page"] { color: var(--orange); }
  .work-item:hover video, .work-item:hover img { transform: scale(1.04); }
  .work-item:hover .work-cap h3 .ico, .work-item:focus-visible .work-cap h3 .ico { opacity: 1; transform: none; }
  .build:hover, .build:focus-visible { background-color: rgba(48, 28, 23, 0.68); }
  .build--custom:hover, .build--custom:focus-visible { background-color: var(--orange); }
  .build--custom:hover .build-head .ico, .build--custom:focus-visible .build-head .ico { color: var(--white); }
  .build--custom:hover .build-desc, .build--custom:hover .build-price span { color: rgba(255, 254, 250, 0.92); }
  .build:hover .build-head .ico, .build:focus-visible .build-head .ico { opacity: 1; transform: none; }
  .pj-next-link:hover .pj-next-title .ico { transform: translate(0.06em, -0.06em); }
  .pj-next-link:hover .pj-next-media img { transform: scale(1.05); }
  .contact-details a:hover { background-size: 100% 1px; color: var(--orange); }
  .cf-field input:hover, .cf-field textarea:hover, .cf-field select:hover { border-bottom-color: rgba(237, 230, 219, 0.6); }
  .cf-chip:hover span { border-color: rgba(237, 230, 219, 0.65); }
  .legal-toc a:hover { color: var(--orange); }
  .legal-body a:hover { color: var(--orange); }
  .footer-cta:hover { color: var(--orange); }
  .footer-cta:hover .ico { transform: translate(0.06em, -0.06em); color: var(--bone); }
  .footer-col a:hover { color: var(--orange); }
  .footer-bottom a:hover { color: var(--bone); }
  .footer-fish:hover .fish { color: var(--orange); transform: translateX(6px); }
}
