/* Fieldhue Studio.
   Colours are sampled from the Fieldhue Studio logo (brand/logo-reference.webp):
   cream ground, navy wordmark, and the mark's gold, green and brown.
   Cream carries the reading, navy takes the hero and the close, green holds the one
   large statement, gold is the single accent, brown is for small labels. */

:root {
  --cream: #FAF7ED;
  --navy: #13345E;
  --gold: #DBA832;
  --green: #2A4B19;
  --brown: #532501;

  --page: var(--cream);
  --text: #1B1E26;
  --soft: #575149;
  --line: rgba(19, 52, 94, 0.16);
  --head: var(--navy);
  --dark: var(--navy);
  --on-dark: var(--cream);
  --band: var(--green);
  --on-band: var(--cream);
  --accent: var(--gold);
  --on-accent: var(--navy);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --caps: "Cormorant Garamond", "Hoefler Text", Baskerville, "Big Caslon", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --gap: clamp(64px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--page); color: var(--text); padding: 10px 14px; z-index: 30;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.hero :focus-visible, .close :focus-visible { outline-color: var(--on-dark); }

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: var(--brown);
}
.label::before {
  content: ""; display: inline-block; width: 28px; height: 2px;
  background: var(--accent); vertical-align: middle; margin-right: 12px;
}

h1, h2, .statement {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.014em;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6vw, 80px); line-height: 1.03; }
h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; color: var(--head); max-width: 18em; }
h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; }

/* The logo: mark plus wordmark */
.mark { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.mark-svg { height: 40px; width: auto; flex: none; }
.mark-svg .m1 { fill: var(--gold); }
.mark-svg .m2 { fill: var(--green); }
.mark-svg .m3 { fill: var(--brown); }
.mark-text { display: flex; flex-direction: column; gap: 5px; line-height: 1; }
.mark-name {
  font-family: var(--caps); font-size: 21px; font-weight: 500; color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.34em; margin-right: -0.34em;
}
.mark-sub {
  font-family: var(--sans); font-size: 9.5px; font-weight: 500; color: var(--brown);
  text-transform: uppercase; letter-spacing: 0.42em;
}

/* Bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.bar nav { display: flex; gap: clamp(14px, 2.4vw, 30px); }
.bar nav a {
  font-size: 14px; text-decoration: none; white-space: nowrap; padding: 8px 0;
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease;
}
.bar nav a:hover { border-bottom-color: var(--accent); }

/* Hero: the picture carries it */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--dark); color: var(--on-dark);
  min-height: min(84vh, 840px);
  display: flex; align-items: flex-end;
}
.hero-pic { position: absolute; inset: 0; z-index: -2; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 58%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 34, 62, 0.9) 0%, rgba(13, 34, 62, 0.66) 42%, rgba(13, 34, 62, 0.06) 78%),
    linear-gradient(0deg, rgba(13, 34, 62, 0.7) 0%, rgba(13, 34, 62, 0) 38%);
}
.hero-in { width: 100%; padding-top: clamp(96px, 14vw, 180px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero-text { max-width: 720px; }
.hero .label { color: var(--on-dark); }
.hero .lede { margin-top: 26px; max-width: 33em; font-size: clamp(17px, 1.5vw, 20px); }
.action {
  display: inline-block; margin-top: 34px;
  background: var(--accent); color: var(--on-accent);
  padding: 15px 26px; font-size: 16px; font-weight: 600; text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.action:hover { transform: translateY(-2px); filter: brightness(1.05); }
.action:active { transform: translateY(0); }
figcaption { font-size: 13px; color: var(--soft); margin-top: 10px; }
.hero-pic figcaption {
  position: absolute; right: var(--pad); bottom: 18px; margin: 0;
  color: var(--on-dark); opacity: 0.85; font-size: 12px; letter-spacing: 0.04em;
}

/* Cream ground: where reading happens */
.ground { padding: var(--gap) 0 0; }
#what h2 { max-width: 13em; }

.crafts {
  margin-top: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  counter-reset: craft;
}
.crafts li {
  counter-increment: craft;
  border-top: 1px solid var(--line);
  padding: 20px 0 30px;
  display: grid; grid-template-columns: 2.4em 1fr; align-items: baseline;
}
.crafts li::before {
  content: counter(craft, decimal-leading-zero);
  font-family: var(--mono); font-size: 12px; color: var(--brown);
}
.crafts h3 { color: var(--head); }
.crafts p { grid-column: 2; margin-top: 6px; color: var(--soft); font-size: 16px; }

/* Green band: one large statement */
.support { background: var(--band); color: var(--on-band); margin-top: var(--gap); padding: clamp(64px, 9vw, 120px) 0; }
.statement { font-size: clamp(28px, 4vw, 52px); line-height: 1.16; max-width: 21em; }
.support .label { color: var(--on-band); font-size: 13px; }

.offers-sec { padding-top: clamp(48px, 7vw, 88px); }
.intro { font-size: clamp(18px, 1.7vw, 21px); max-width: 36em; }
.offers {
  margin-top: clamp(36px, 5vw, 60px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.offers article { border-top: 2px solid var(--navy); padding-top: 20px; }
.offers h3 { color: var(--head); }
.offers .num { font-family: var(--mono); font-size: 12px; color: var(--brown); display: block; margin-bottom: 16px; }
.offers .num::before { content: "0"; }
.offers p { margin-top: 10px; color: var(--soft); }

/* Plates */
.plates {
  margin-top: clamp(36px, 5vw, 60px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 26px);
}
.plates figure { grid-column: span 5; overflow: hidden; }
.plates figure.wide { grid-column: span 7; }
.plates figure:nth-child(5), .plates figure:nth-child(6) { grid-column: span 6; }
.plates img { width: 100%; height: clamp(220px, 30vw, 400px); object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.plates figure:hover img { transform: scale(1.025); }
.credit { margin-top: 26px; font-size: 14px; color: var(--soft); }

/* How we work */
.how-sec { padding-bottom: var(--gap); }
.how { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.how-head { position: sticky; top: 112px; }
.rules > div { border-top: 1px solid var(--line); padding: 22px 0 28px; }
.rules > div:last-child { border-bottom: 1px solid var(--line); }
.rules dt { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; color: var(--head); }
.rules dd { margin-top: 8px; color: var(--soft); max-width: 34em; }

/* People */
.how-sec { padding-bottom: 0; }
.people-sec { padding-bottom: var(--gap); }
.people {
  margin-top: clamp(36px, 5vw, 60px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 6vw, 88px);
}
.people article { border-top: 2px solid var(--navy); padding-top: 22px; }
.people .role { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brown); }
.people h3 { font-size: clamp(28px, 3vw, 38px); color: var(--head); margin: 10px 0 16px; }
.people article > p:not(.role):not(.creds-label) { color: var(--soft); max-width: 34em; }
.people article > p + p { margin-top: 12px; }
.people .creds-label { margin-top: 26px; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brown); }
.creds { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.creds li {
  font-family: var(--serif); font-size: 17px; color: var(--navy);
  border: 1px solid var(--line); padding: 6px 14px 7px; white-space: nowrap;
}

/* Logo film: the Blender animation, played once when it scrolls into view.
   Blended and feathered so the film's cream sits invisibly on the page's cream. */
.people-sec { padding-bottom: clamp(24px, 4vw, 48px); }
/* The logo film runs edge to edge as a band of sky: it opens in the same navy as the contact section and clears to the page cream.
   The top fades in from the page over a short distance (short, so it never reaches the top of the mark); the bottom meets the navy contact section. */
.signoff { padding: 0; display: block; }
.logo-film {
  display: block; width: 100%; height: min(72vh, 56.25vw); object-fit: cover; object-position: 50% 50%; cursor: pointer;
  /* Lift the film a touch so its finished cream clears the page cream, then darken clamps it to the page. */
  filter: brightness(1.02);
  mix-blend-mode: darken;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 9%);
}

/* Header mark: each leaf turns once as the page arrives, in the film's order. */
@keyframes leaf-turn {
  0% { transform: scaleX(1); animation-timing-function: ease-in; }
  25% { transform: scaleX(0); animation-timing-function: ease-out; }
  50% { transform: scaleX(-1); animation-timing-function: ease-in; }
  75% { transform: scaleX(0); animation-timing-function: ease-out; }
  100% { transform: scaleX(1); }
}
.bar .mark-svg { overflow: visible; }
.bar .mark-svg path { transform-box: fill-box; transform-origin: center; animation: leaf-turn 1.2s 1 both; }
.bar .mark-svg .m2 { animation-delay: 0.35s; }
.bar .mark-svg .m1 { animation-delay: 0.6s; }
.bar .mark-svg .m3 { animation-delay: 0.85s; }

/* Navy closes the page */
.close { background: var(--dark); color: var(--on-dark); padding-top: clamp(72px, 10vw, 128px); }
.close-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 6vw, 88px); align-items: end; }
.close .label { color: var(--on-dark); }
.close h2 { color: var(--on-dark); font-size: clamp(38px, 5.4vw, 70px); }
.close .lede { margin-top: 22px; max-width: 32em; font-size: clamp(17px, 1.5vw, 20px); opacity: 0.92; }
.email {
  font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2;
  color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.email[data-placeholder] { border: 1px dashed var(--accent); padding: 14px 18px; display: inline-block; font-size: 19px; }
.email a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.email a:hover, .email a:focus-visible { color: var(--on-dark); }
.foot {
  margin-top: clamp(64px, 9vw, 112px); padding-top: 26px; padding-bottom: 34px;
  border-top: 1px solid rgba(250, 247, 237, 0.24);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 14px;
}
.foot .mark-svg path { fill: var(--cream); }
.foot .mark-name, .foot .mark-sub { color: var(--cream); }
.foot .mark-sub { opacity: 0.8; }
.foot > p:last-child { opacity: 0.8; }

/* Reveal on scroll */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .rise.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .how, .close-in, .people { grid-template-columns: 1fr; }
  .hero { min-height: min(86vh, 700px); }
  .hero::before {
    background: linear-gradient(0deg, rgba(13, 34, 62, 0.95) 0%, rgba(13, 34, 62, 0.74) 55%, rgba(13, 34, 62, 0.18) 100%);
  }
  .hero-pic img { object-position: 70% 50%; }
  .hero-pic figcaption { display: none; }
  .how-head { position: static; }
  .plates figure, .plates figure.wide, .plates figure:nth-child(5), .plates figure:nth-child(6) { grid-column: span 12; }
  .plates img { height: auto; aspect-ratio: 16 / 10; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .bar-in { min-height: 64px; }
  .mark-svg { height: 34px; }
  .mark-name { font-size: 17px; letter-spacing: 0.28em; margin-right: -0.28em; }
  .mark-sub { font-size: 8.5px; }
  .bar nav { gap: 14px; }
  .bar nav a { font-size: 13px; }
  .bar nav a:not(:last-child) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .action, .plates img { transition: none; }
  .bar .mark-svg path { animation: none; }
}

@media print {
  .bar { position: static; }
  .js .rise { opacity: 1; transform: none; }
}
