/* Bridgefield Studio — theme: Sunset Boulevard (teal night, burnt orange, coral, warm sand) */

@font-face {
  font-family: "Young Serif";
  src: url("/assets/fonts/young-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --night: #183039;
  --teal: #264653;
  --orange: #e76f51;
  --coral: #f4a261;
  --sand: #e9c46a;
  --paper: #f8f0de;
  --soft: #c3cfcc;
  --rule: rgba(233, 196, 106, 0.28);

  --display: "Young Serif", Georgia, serif;
  --body: "Schibsted Grotesk", system-ui, sans-serif;

  --step--1: 0.889rem;
  --step-0: 1.0625rem;
  --step-1: 1.266rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.3rem + 2.4vw, 2.85rem);
  --latin-display: "Young Serif", Georgia, serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}

a { color: var(--sand); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 62ch; }
ul, ol, dl, dd { margin: 0; padding: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--sand); color: var(--night); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding-block: 1.4rem; flex-wrap: wrap; }
.brand { font-family: var(--latin-display); font-size: var(--step-1); color: var(--paper); text-decoration: none; }
.brand:hover { color: var(--sand); }
.nav { display: flex; gap: clamp(0.9rem, 2.4vw, 2rem); list-style: none; flex-wrap: wrap; font-size: var(--step--1); }
.nav a { color: var(--paper); text-decoration: none; padding-block: 0.3rem; }
.nav a:hover { color: var(--sand); text-decoration: underline; }
.nav .lang a { color: var(--sand); border: 1px solid var(--rule); padding: 0.3rem 0.8rem; border-radius: 999px; }

/* ---------- Hero: a letterboxed frame, sun setting west over the Pacific ---------- */
.frame {
  position: relative;
  aspect-ratio: 2.39 / 1;
  min-height: 21rem;
  overflow: hidden;
  background: var(--teal);
  border-radius: 4px;
}
.sky {
  position: absolute; inset: 0 0 34% 0; overflow: hidden;
  background: linear-gradient(to bottom, #1d3b47 0%, #2d4d59 30%, #7d5f62 58%, #d9775a 80%, #f4a261 93%, #e9c46a 100%);
}
.sun {
  position: absolute; left: 68%; bottom: 0;
  width: clamp(7rem, 17vw, 13rem); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fbe7a8 0%, var(--sand) 45%, var(--coral) 100%);
  box-shadow: 0 0 5rem 1.5rem rgba(244, 162, 97, 0.45);
  transform: translate(-50%, 45%);
  animation: sunset 5s cubic-bezier(0.25, 0.6, 0.3, 1) both;
}
@keyframes sunset { from { transform: translate(-50%, -15%); } to { transform: translate(-50%, 45%); } }
.sea {
  position: absolute; inset: 66% 0 0 0;
  background: linear-gradient(to bottom, #2f5360 0%, var(--teal) 30%, #1a343e 100%);
}
.sea::before { /* the sun's reflection, broken into bands by the swell */
  content: ""; position: absolute; top: 0; bottom: 0; left: 68%;
  width: clamp(5rem, 13vw, 10rem); transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, rgba(244, 162, 97, 0.75) 0 3px, transparent 3px 11px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  clip-path: polygon(0 0, 100% 0, 68% 100%, 32% 100%);
}
.subs { /* the headline sits where a film subtitle would: centred, low in the frame */
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) clamp(1.1rem, 3.2vw, 2.6rem);
  text-align: center;
  text-shadow: 0 2px 0 rgba(15, 32, 39, 0.75), 0 0 1.2rem rgba(15, 32, 39, 0.7);
}
.subs h1 { font-size: clamp(1.7rem, 0.8rem + 3.6vw, 3.6rem); max-width: 22ch; margin-inline: auto; }
.subs .second { display: block; margin-top: 0.5em; font-family: var(--body); font-weight: 600; font-size: clamp(1rem, 0.7rem + 1.1vw, 1.5rem); color: var(--sand); letter-spacing: 0.02em; }

.lede { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem var(--gutter); align-items: end; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5.5rem); }
.lede p { font-size: var(--step-1); line-height: 1.5; margin: 0; max-width: 46ch; }
.actions { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: flex-end; }
.btn { display: inline-block; padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid var(--sand); }
.btn-solid { background: var(--sand); color: var(--night); }
.btn-solid:hover { background: var(--coral); border-color: var(--coral); color: var(--night); }
.btn-line { color: var(--sand); }
.btn-line:hover { background: rgba(233, 196, 106, 0.12); color: var(--sand); }

/* ---------- Sections ---------- */
.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band-teal { background: var(--teal); }
.head { margin-bottom: clamp(2rem, 4vw, 3.2rem); max-width: 46rem; }
.head h2 { font-size: var(--step-3); }
.head .second { display: block; margin-top: 0.55rem; font-family: var(--body); font-weight: 600; font-size: var(--step-0); color: var(--sand); }
.head p { margin-top: 1.2rem; color: var(--soft); font-size: var(--step-1); line-height: 1.5; }

/* who we work with: one row per audience */
.rows { border-top: 1px solid var(--rule); }
.rows > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0.6rem var(--gutter); padding-block: 1.6rem; border-bottom: 1px solid var(--rule); }
.rows dt { font-family: var(--display); font-size: var(--step-2); line-height: 1.2; }
.rows dd { color: var(--soft); }
.rows dd p { margin-bottom: 0.4em; }

/* distribution: two routes */
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); }
.routes h3 { font-size: var(--step-2); margin-bottom: 0.9rem; color: var(--coral); }
.routes p { color: var(--soft); }
.steps { list-style: none; counter-reset: step; margin-top: 1.4rem; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.3rem 3rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--sand); color: var(--sand); display: grid; place-items: center; font-weight: 600; font-size: var(--step--1); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1rem; top: 2.1rem; bottom: 0.2rem; width: 1px; background: var(--rule); }
.steps strong { display: block; color: var(--paper); font-weight: 600; }
.steps span { color: var(--soft); }
.plain { list-style: none; margin-top: 1.4rem; border-top: 1px solid var(--rule); }
.plain li { padding-block: 0.85rem; border-bottom: 1px solid var(--rule); }
.plain strong { color: var(--paper); font-weight: 600; }
.plain span { color: var(--soft); }

/* incubator */
.parts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(1.8rem, 4vw, 3rem) var(--gutter); }
.parts > div { grid-column: span 2; }
.parts > div.wide { grid-column: span 3; }
.parts dt { font-family: var(--display); font-size: var(--step-1); line-height: 1.25; margin-bottom: 0.5rem; padding-top: 1rem; border-top: 2px solid var(--orange); }
.parts dd { color: var(--soft); }
.parts dd p { margin-bottom: 0.4em; }
.tag { display: inline-block; font-family: var(--body); font-size: var(--step--1); font-weight: 600; color: var(--night); background: var(--sand); padding: 0.05rem 0.6rem; border-radius: 999px; margin-left: 0.4rem; vertical-align: 0.15em; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); }
.pair h3 { font-size: var(--step-2); margin-bottom: 0.8rem; color: var(--coral); }
.pair p, .pair li { color: var(--soft); }
.pair ul { list-style: none; }
.pair li { padding: 0.55rem 0 0.55rem 1.3rem; position: relative; }
.pair li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--orange); }

/* questions */
.faq { max-width: 48rem; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-family: var(--display); font-size: var(--step-1); line-height: 1.3; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 0.9rem; font-family: var(--body); font-size: var(--step-2); line-height: 1; color: var(--sand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--soft); padding-bottom: 1.2rem; margin: 0; }

/* contact */
.contact { text-align: left; }
.contact .mail { display: inline-block; font-family: var(--latin-display); font-size: clamp(1.7rem, 1rem + 3.4vw, 3.4rem); line-height: 1.1; color: var(--sand); margin-block: 0.6rem 1.4rem; overflow-wrap: anywhere; }
.contact p { color: var(--soft); }

.foot { border-top: 1px solid var(--rule); padding-block: 1.8rem; font-size: var(--step--1); color: var(--soft); }
.foot .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot p { margin: 0; }

@media (max-width: 760px) {
  .frame { aspect-ratio: 4 / 5; }
  .sun { left: 50%; }
  .sea::before { display: none; }
  .lede, .routes, .pair, .rows > div { grid-template-columns: minmax(0, 1fr); }
  .actions { justify-content: flex-start; }
  .parts { grid-template-columns: minmax(0, 1fr); }
  .parts > div, .parts > div.wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sun { animation: none; }
}
