/* ============================================================
   Material · site styles
   ------------------------------------------------------------
   A dark hero with a blurred photograph behind the words, a
   light body, a dark close set in as a card, and a light footer.
   The nav floats over the hero with no bar of its own, turns to
   frosted glass once the page scrolls, and to light glass once
   the hero has passed. Statements are set in two tones and
   photographs given room. Headlines are Hanken Grotesk Light;
   text is Inter. One accent, forest, used once per section. No
   bands in between, no scroll hijacking, one card style. Motion
   is a rise on first sight and a slow drift in the hero picture,
   nothing else. Nothing on the page is black: the dark is a deep
   forest green and the ink is a green-black.
   ============================================================ */

:root {
  /* the brand palette */
  --forest: #123C2D;
  --moss: #3D6B54;
  --sage: #A9BEA6;
  --stone: #E7E2D7;
  --fog: #F0F5F2;
  --ink: #17251F;

  /* the light body */
  --bg: #ECF2EE;
  --bg-2: #F8FBF8;
  --fg: #17251F;
  --fg-2: #5E6F66;
  --accent: #1D4A39;
  --accent-2: #3D6B54;
  --line: rgba(23, 37, 31, 0.1);
  --line-strong: rgba(23, 37, 31, 0.24);

  /* the dark hero and close */
  --band: #12362A;
  --band-fg: #F0F5F2;
  --band-fg-2: rgba(240, 245, 242, 0.72);
  --band-line: rgba(240, 245, 242, 0.16);

  --display: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --header: 70px;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --gap: clamp(88px, 12vw, 176px);
  --r-card: 22px;
  --r-img: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pop: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--bg); }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ------------------------------------------------------------
   Type
   ------------------------------------------------------------ */
.eyebrow { font-size: 13px; font-weight: 500; color: var(--accent-2); }
.display { font-family: var(--display); font-weight: 300; font-size: clamp(46px, 7.6vw, 108px); line-height: 0.98; letter-spacing: -0.04em; max-width: 12ch; color: var(--fg); text-wrap: balance; }
.title { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -0.03em; max-width: 22ch; text-wrap: balance; color: var(--fg-2); }
.title .accent { color: var(--fg); }
.tagline { font-family: var(--display); font-weight: 300; font-size: clamp(19px, 2vw, 25px); line-height: 1.4; max-width: 36ch; color: var(--fg); }
.lead { font-family: var(--display); font-weight: 300; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; color: var(--fg-2); max-width: 52ch; }
.accent { color: var(--accent-2); }
h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; }

/* ------------------------------------------------------------
   Buttons and links
   ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; background: var(--accent); color: var(--bg); font-family: var(--text); font-size: 14.5px; font-weight: 500; letter-spacing: 0.005em; line-height: 1; border: 0; border-radius: 999px; white-space: nowrap; cursor: pointer; transition: background 0.3s var(--ease), transform 0.4s var(--pop), color 0.3s; }
.btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn .arr { display: inline-block; transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.link { display: inline-flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 500; color: var(--accent); padding-bottom: 2px; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.4s var(--ease); }
.link::after { content: "→"; transition: transform 0.4s var(--ease); }
.link:hover { background-size: 0% 1px; background-position: 100% 100%; }
.link:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------
   Header: floats over the hero with no bar of its own, frosted
   dark glass once the page has scrolled, frosted light glass
   once the hero has passed
   ------------------------------------------------------------ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; color: var(--band-fg); background-color: transparent; transition: background-color 0.35s var(--ease), color 0.35s; }
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -48px; z-index: -1; background: linear-gradient(180deg, rgba(10, 32, 25, 0.42), rgba(13, 43, 33, 0)); pointer-events: none; transition: opacity 0.35s var(--ease); }
.site-header.is-scrolled { background-color: rgba(18, 54, 42, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.is-scrolled::before, .site-header.is-light::before { opacity: 0; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
/* the wordmark: the Material lockup, the mark and the name, drawn in
   the current text colour so it turns with the header */
.wordmark { display: block; width: 119px; height: 19px; color: inherit; background-color: currentColor; -webkit-mask: url("/images/material-logo-lockup.svg") no-repeat left center; -webkit-mask-size: contain; mask: url("/images/material-logo-lockup.svg") no-repeat left center; mask-size: contain; transition: background-color 0.35s var(--ease); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--band-fg-2); transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--band-fg); }
.nav a.btn { background: var(--band-fg); color: var(--band); padding: 10px 18px; font-size: 13.5px; margin-left: 6px; }
.nav a.btn:hover { background: #fff; color: var(--band); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; margin-right: -10px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nav-toggle:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.nav-toggle .bars { position: relative; display: block; width: 20px; height: 13px; }
.nav-toggle .bars i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle .bars i:nth-child(1) { top: 0; }
.nav-toggle .bars i:nth-child(2) { top: 5.75px; }
.nav-toggle .bars i:nth-child(3) { top: 11.5px; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(5.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-5.75px) rotate(-45deg); }
/* the light state */
.site-header.is-light { background-color: rgba(236, 242, 238, 0.88); color: var(--fg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.is-light .nav a { color: var(--fg-2); }
.site-header.is-light .nav a:hover, .site-header.is-light .nav a[aria-current="page"] { color: var(--fg); }
.site-header.is-light .nav a.btn { background: var(--accent); color: var(--bg); }
.site-header.is-light .nav a.btn:hover { background: var(--accent-2); }
.site-header.is-light .nav a.btn[aria-current="page"] { background: var(--accent-2); }

/* ------------------------------------------------------------
   Hero: the words sit low over a blurred photograph
   ------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(165deg, #1B4C39 0%, #14392C 52%, #0F2E24 100%); color: var(--band-fg); }
/* the light in the green: two layers of soft pools, each on its own clock,
   drifting a couple of pixels a second, so the pale parts are always on the
   move while the shapes stay too soft to look at */
.hero::before, .hero::after { content: ""; position: absolute; inset: -24%; z-index: 0; pointer-events: none; will-change: transform, opacity; }
.hero::before {
  background:
    radial-gradient(42% 50% at 24% 28%, rgba(58, 118, 88, 0.55), transparent 64%),
    radial-gradient(40% 38% at 70% 64%, rgba(15, 58, 43, 0.6), transparent 66%);
  filter: blur(50px);
  animation: tide-a 31s ease-in-out infinite alternate, breathe-a 23s ease-in-out infinite alternate;
}
.hero::after {
  background:
    radial-gradient(34% 42% at 78% 22%, rgba(104, 158, 128, 0.3), transparent 66%),
    radial-gradient(28% 32% at 44% 66%, rgba(88, 140, 112, 0.2), transparent 68%);
  filter: blur(60px);
  animation: tide-b 43s ease-in-out infinite alternate, breathe-b 37s ease-in-out infinite alternate;
}
@keyframes tide-a { from { transform: translate3d(-1.1%, -0.8%, 0) scale(1.03); } to { transform: translate3d(1.1%, 0.9%, 0) scale(1.07); } }
@keyframes tide-b { from { transform: translate3d(1.3%, 0.8%, 0) scale(1.06); } to { transform: translate3d(-1.4%, -1%, 0) scale(1.02); } }
@keyframes breathe-a { from { opacity: 0.75; } to { opacity: 1; } }
@keyframes breathe-b { from { opacity: 0.55; } to { opacity: 1; } }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 80px); align-items: end; align-content: end; min-height: 100svh; padding-top: calc(var(--header) + clamp(56px, 10vh, 120px)); padding-bottom: clamp(56px, 8vh, 96px); }
.hero .display { grid-column: 1; color: var(--band-fg); }
.hero .display .accent { color: var(--sage); }
.hero .aside { grid-column: 2; display: flex; flex-direction: column; gap: 22px; padding-bottom: 6px; }
.hero .tagline, .hero .lead { color: var(--band-fg-2); }
.hero .cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero .btn { background: var(--band-fg); color: var(--band); }
.hero .btn:hover { background: #fff; }
.hero .link { color: var(--band-fg); background-image: linear-gradient(var(--band-fg), var(--band-fg)); }
.hero .note { font-size: 13.5px; line-height: 1.5; color: rgba(240, 245, 242, 0.5); max-width: 42ch; }
.hero .note a { color: var(--band-fg-2); border-bottom: 1px solid rgba(240, 245, 242, 0.3); transition: color 0.2s, border-color 0.2s; }
.hero .note a:hover { color: var(--band-fg); border-color: var(--band-fg); }
.hero-media { position: absolute; inset: 0; margin: 0; }
.hero-media .frame { position: absolute; inset: -8%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.6) brightness(0.9) contrast(0.8) blur(34px); opacity: 0.26; mix-blend-mode: luminosity; transform: scale(1.06); animation: drift 30s ease-in-out infinite alternate; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 46, 36, 0.4) 0%, rgba(15, 46, 36, 0) 40%, rgba(15, 46, 36, 0.82) 100%); }
@keyframes drift { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, 1%); } }
.hero.short .wrap { min-height: 0; padding-top: calc(var(--header) + clamp(72px, 12vh, 140px)); padding-bottom: clamp(56px, 8vh, 96px); }
.hero.short .display { max-width: 15ch; font-size: clamp(40px, 6.4vw, 88px); }
.hero.short .aside { padding-bottom: 8px; }

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.section { padding: var(--gap) 0 0; }
.head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-cta { margin-top: clamp(28px, 4vw, 44px); }

/* what we do: four dark cards, each with its photograph behind the words */
.services-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.service { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; min-height: 380px; padding: 26px 26px 28px; border-radius: var(--r-card); overflow: hidden; background: var(--band); color: var(--band-fg); isolation: isolate; }
.service figure { position: absolute; inset: 0; z-index: -1; }
.service figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.12) brightness(0.72); transform: scale(1.02); transition: transform 1.2s var(--ease), filter 0.8s; }
/* Services are not pages yet, so nothing should read as clickable. Uncomment the three rules below when each service gets its own page. */
/* .service:hover figure img { transform: scale(1.06); filter: grayscale(0) brightness(0.74); } */
.service figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 43, 33, 0.12) 0%, rgba(13, 43, 33, 0.5) 55%, rgba(13, 43, 33, 0.86) 100%); }
.service .index { position: absolute; top: 24px; left: 26px; font-size: 13px; font-weight: 500; color: var(--band-fg-2); }
.service h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.12; color: var(--band-fg); }
.service p { font-size: 15px; line-height: 1.5; color: var(--band-fg-2); max-width: 30ch; }
/* .service::after { content: "→"; position: absolute; top: 20px; right: 22px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(240, 245, 242, 0.3); display: grid; place-items: center; font-size: 15px; color: var(--band-fg); transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); } */
/* .service:hover::after { background: var(--band-fg); color: var(--band); transform: rotate(-45deg); } */

/* recent work: photograph cards, the logo above, the result below */
.work-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project > a, .project > div { position: relative; display: flex; flex-direction: column; height: 100%; }
.project figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-img); background: var(--bg-2); }
.project figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transform: scale(1.02); transition: transform 1s var(--ease); }
.project:hover figure img { transform: scale(1.06); }
.project figure::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(13, 43, 33, 0.84) 0%, rgba(13, 43, 33, 0.28) 45%, rgba(13, 43, 33, 0) 65%); }
.project .caption { position: absolute; top: 18px; left: 22px; right: 22px; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.project .brand { height: 20px; width: auto; max-width: 150px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); opacity: 0.92; }
.project .brand.tall { height: 24px; }
.project .metric { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; color: var(--band-fg); }
.project .metric > b { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(36px, 3.4vw, 50px); line-height: 1; letter-spacing: -0.03em; }
.project .metric small { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--band-fg-2); }
.project .desc { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--band-fg-2); max-width: 30ch; }
.project .desc b { color: var(--band-fg); font-weight: 500; }
.project--cta > div { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 22px; padding: clamp(22px, 2.2vw, 28px); background: var(--band); color: var(--band-fg); border-radius: var(--r-img); }
.project--cta h3 { font-size: clamp(24px, 2vw, 30px); line-height: 1.08; font-weight: 300; color: var(--band-fg); max-width: 12ch; }
.project--cta h3 .accent { color: var(--sage); }
.project--cta .btn { background: var(--band-fg); color: var(--band); }
.project--cta .btn:hover { background: #fff; }

/* studio portfolio: the words sit on the picture */
.venture-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.venture > a, .venture > div { position: relative; display: flex; flex-direction: column; height: 100%; }
.venture figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-img); background: var(--bg-2); }
.venture figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transform: scale(1.02); transition: transform 1s var(--ease); }
.venture:hover figure img { transform: scale(1.06); }
.venture figure::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(13, 43, 33, 0.8) 0%, rgba(13, 43, 33, 0.28) 45%, rgba(13, 43, 33, 0) 65%); }
.venture .status { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 7px 11px; background: rgba(240, 245, 242, 0.92); color: var(--forest); border-radius: 999px; font-size: 12px; font-weight: 500; }
.venture .text { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; display: flex; flex-direction: column; gap: 6px; color: var(--band-fg); }
.venture .nm { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; letter-spacing: -0.02em; }
.venture .tg { font-size: 14.5px; line-height: 1.45; color: var(--band-fg-2); }
.venture .dm { font-size: 13px; font-weight: 500; color: var(--sage); margin-top: 4px; }
.venture--cta { grid-column: 1 / -1; }
.venture--cta > div { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 48px); background: var(--band); color: var(--band-fg); border-radius: var(--r-card); }
.venture--cta h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.08; font-weight: 300; color: var(--band-fg); max-width: 20ch; }
.venture--cta h3 .accent { color: var(--sage); }
.venture--cta .btn { background: var(--band-fg); color: var(--band); }
.venture--cta .btn:hover { background: #fff; }

/* the model: three parts */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.three .cell { border-top: 1px solid var(--line-strong); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.three .who { font-size: 13px; font-weight: 500; color: var(--accent-2); }
.three h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.12; }
.three p { max-width: 30ch; font-size: 15px; color: var(--fg-2); }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.tm .shot { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r-img); background: linear-gradient(160deg, #D5E3D7, #BCCFBF); margin-bottom: 14px; }
.tm .shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(0.85); transition: transform 0.7s var(--ease); }
.tm:hover .shot img { transform: scale(1.04); }
.tm .nm { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: -0.02em; }
.tm .role { font-size: 13px; font-weight: 500; color: var(--accent-2); margin-top: 4px; }
.tm .bio { font-size: 14px; line-height: 1.5; color: var(--fg-2); margin-top: 8px; max-width: 32ch; }
.logos { margin-top: clamp(48px, 6vw, 80px); padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.logos .set { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.logos .set li { display: flex; }
.logos img { height: 20px; width: auto; opacity: 0.6; filter: grayscale(1); transition: opacity 0.3s; }
.logos li:hover img { opacity: 1; }

/* ------------------------------------------------------------
   Close: a dark card with a soft glow from below. Footer: light,
   with a line above
   ------------------------------------------------------------ */
.close { margin-top: var(--gap); padding-bottom: clamp(40px, 6vw, 80px); }
.close .band { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--band); color: var(--band-fg); padding: clamp(96px, 14vw, 200px) var(--pad); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.close .band::before { content: ""; position: absolute; inset: -10%; background: radial-gradient(60% 80% at 50% 100%, rgba(80, 133, 105, 0.55), transparent 70%); pointer-events: none; }
.close .band > * { position: relative; }
.close h2 { font-family: var(--display); font-weight: 300; font-size: clamp(42px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -0.04em; max-width: 16ch; text-wrap: balance; color: var(--band-fg); }
.close h2 .accent { color: var(--sage); }
.close p { color: var(--band-fg-2); max-width: 50ch; font-size: 16px; }
.close .btn { background: var(--band-fg); color: var(--band); }
.close .btn:hover { background: #fff; }
.site-footer { background: var(--bg); color: var(--fg-2); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 30px; font-size: 13.5px; }
.site-footer .wordmark { width: 106px; height: 17px; color: var(--fg); }
.site-footer .row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .links a { color: var(--fg-2); transition: color 0.2s; }
.site-footer .links a:hover { color: var(--fg); }
.site-footer .links a.in { display: inline-flex; align-items: center; }
.site-footer .links .ic { display: none; width: 17px; height: 17px; fill: currentColor; }

/* 404 */
.notfound { background: var(--band); color: var(--band-fg); min-height: 100svh; padding-top: var(--header); display: flex; align-items: center; }
.notfound .wrap { width: 100%; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; padding-top: 80px; padding-bottom: 80px; }
.notfound .display, .notfound .tagline { color: var(--band-fg); }
.notfound .display .accent { color: var(--sage); }
.notfound .btn { background: var(--band-fg); color: var(--band); }

/* ------------------------------------------------------------
   Build with us: the form
   ------------------------------------------------------------ */
.build { --clay: #9B4B34; padding: calc(var(--header) + clamp(56px, 8vw, 104px)) 0 clamp(80px, 10vw, 140px); }
.build [hidden] { display: none !important; }
.build .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.build .intro { display: flex; flex-direction: column; gap: 18px; }
.build .intro .display { font-size: clamp(36px, 4.4vw, 60px); max-width: 16ch; }
.build .intro .sub { font-size: 15.5px; line-height: 1.6; color: var(--fg-2); max-width: 38ch; }
.build .panel { max-width: 560px; width: 100%; border-top: 1px solid var(--line-strong); padding-top: 34px; }
.form { display: flex; flex-direction: column; gap: 32px; }
.f { display: flex; flex-direction: column; gap: 4px; }
.f label { display: block; font-size: 13px; font-weight: 500; color: var(--accent-2); }
.f label .req { color: var(--clay); }
.req-note { font-size: 13px; font-weight: 500; color: var(--fg-2); margin: 0 0 28px; }
.req-note span { color: var(--clay); }
.f .in { -webkit-appearance: none; appearance: none; display: block; width: 100%; margin: 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; padding: 10px 0 12px; font: inherit; font-size: 17px; line-height: 1.4; color: var(--fg); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.f .in:focus { border-bottom-color: var(--accent-2); box-shadow: 0 1px 0 var(--accent-2); }
.f .in::placeholder { color: var(--fg-2); }
.f .in:-webkit-autofill, .f .in:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--bg) inset; -webkit-text-fill-color: var(--fg); }
.f textarea.in { height: auto; min-height: 0; resize: none; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s, height 0.25s var(--ease); }
.f.err .in { border-bottom-color: var(--clay); }
.f.err .in:focus { box-shadow: 0 1px 0 var(--clay); }
.f .msg { font-size: 13px; line-height: 1.5; color: var(--clay); margin-top: 6px; }
.f .msg:empty { display: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form .actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 6px; }
button.btn:disabled { opacity: 0.6; cursor: default; transform: none; background: var(--accent); }
.form.is-sending .f { opacity: 0.55; pointer-events: none; transition: opacity 0.3s; }
.sending { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; }
.sending .bar { display: block; height: 2px; width: 100%; background: var(--line); border-radius: 2px; overflow: hidden; }
.sending .bar i { display: block; height: 100%; width: 38%; background: var(--accent-2); border-radius: 2px; animation: sweep 1.3s var(--ease) infinite; }
.sending .txt { font-size: 13px; color: var(--fg-2); }
@keyframes sweep { 0% { transform: translateX(-110%); } 100% { transform: translateX(290%); } }
.done { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 4px; }
.done.is-in { animation: rise 0.55s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.done h2 { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.03em; margin: 0; color: var(--fg); outline: none; }
.done p { font-size: 15.5px; line-height: 1.6; color: var(--fg-2); max-width: 38ch; }
.fallback { font-size: 14px; line-height: 1.55; color: var(--fg); }
.fallback a { color: var(--accent); font-weight: 500; border-bottom: 1px solid var(--accent-2); padding-bottom: 1px; }

/* ------------------------------------------------------------
   Reveals: things rise a little the first time they appear.
   The hero and the form intro reveal themselves without waiting
   for scripts or fonts.
   ------------------------------------------------------------ */
.js .r { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.r.in { opacity: 1; transform: none; }
.js .hero .r, .js .build .r { animation: reveal 0.9s var(--ease) both; }
.js .hero .r:nth-child(2), .js .build .intro .r:nth-child(2) { animation-delay: 0.1s; }
.js .hero .aside .r:nth-child(1) { animation-delay: 0.2s; }
.js .hero .aside .r:nth-child(2) { animation-delay: 0.32s; }
.js .hero .aside .r:nth-child(3) { animation-delay: 0.44s; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.services-list .r:nth-child(2), .work-list .r:nth-child(2), .venture-list .r:nth-child(2), .three .r:nth-child(2), .team-grid .r:nth-child(2) { transition-delay: 0.07s; }
.services-list .r:nth-child(3), .work-list .r:nth-child(3), .venture-list .r:nth-child(3), .three .r:nth-child(3), .team-grid .r:nth-child(3) { transition-delay: 0.14s; }
.services-list .r:nth-child(4), .work-list .r:nth-child(4), .venture-list .r:nth-child(4), .team-grid .r:nth-child(4) { transition-delay: 0.21s; }
.work-list .r:nth-child(5), .team-grid .r:nth-child(n+5) { transition-delay: 0.28s; }
.work-list .r:nth-child(n+6) { transition-delay: 0.35s; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; align-items: start; gap: 28px; min-height: 0; padding-top: clamp(72px, 12vh, 140px); }
  .hero .display, .hero .aside { grid-column: 1; }
  .hero .aside { padding-bottom: 0; }
  .service { min-height: 300px; }
  .work-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .venture-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .three { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .build .wrap { grid-template-columns: 1fr; gap: 40px; }
}
/* below this width the nav folds into the hamburger */
@media (max-width: 760px) {
  .site-header .bar { position: relative; padding-top: 14px; padding-bottom: 14px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px var(--pad) 20px;
    background: var(--band);
    border-bottom: 1px solid var(--band-line);
    box-shadow: 0 18px 30px -22px rgba(0, 0, 0, 0.5);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav a { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; padding: 14px 0; border-bottom: 1px solid var(--band-line); color: var(--band-fg); }
  .nav a.btn { justify-content: center; margin: 18px 0 0; padding: 15px 16px; font-size: 14px; border-bottom: 0; }
  /* with the menu open the bar itself goes solid, so the panel reads as one piece */
  .site-header:has(.nav.is-open) { background-color: var(--band); }
  .site-header.is-light:has(.nav.is-open) { background-color: var(--bg); }
  .site-header.is-light .nav { background: var(--bg); border-color: var(--line); }
  .site-header.is-light .nav a { color: var(--fg); border-color: var(--line); }
  .site-header.is-light .nav a.btn { color: var(--bg); }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .services-list { grid-template-columns: 1fr; gap: 14px; }
  .service { min-height: 260px; }
  .work-list { grid-template-columns: 1fr; gap: 16px; }
  .venture-list { grid-template-columns: 1fr; gap: 16px; }
  .project--cta > div, .venture--cta > div { flex-direction: column; align-items: flex-start; gap: 20px; }
  .three { grid-template-columns: 1fr; gap: 22px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .tm .nm { font-size: 17px; }
  .tm .bio { font-size: 13px; }
  .logos .set { gap: 22px; }
  .logos img { height: 18px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .site-footer .links a:not(.in) { display: none; }
  .site-footer .links .lbl { display: none; }
  .site-footer .links .ic { display: block; }
  .close .band { padding-top: 72px; padding-bottom: 80px; }
  .hero .cta-row { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .r { opacity: 1; transform: none; transition: none; animation: none; }
  .js .hero .r, .js .build .r { animation: none; }
  .hero-media img, .hero::before, .hero::after { animation: none; }
  .btn, .link, .project figure img, .venture figure img, .service figure img, .tm .shot img, .site-header, .site-header::before { transition: none; }
}
