@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f3f0e9;
  --surface: #fbfaf6;
  --surface-strong: #ffffff;
  --ink: #10161f;
  --ink-soft: #56606e;
  --line: #d3cfc5;
  --line-strong: #aaa59a;
  --accent: #b84e2d;
  --accent-ink: #ffffff;
  --accent-soft: #f3ddd5;
  --navy: #152236;
  --shadow: 0 24px 70px rgba(25, 30, 36, 0.11);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 5%, rgba(184, 78, 45, 0.12), transparent 27rem),
    var(--bg);
  color: var(--ink);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--surface);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
}

.site-header nav a {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  min-height: 700px;
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  padding: clamp(68px, 10vw, 132px) 0;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  margin-bottom: 30px;
  font-size: clamp(3.6rem, 7vw, 6.8rem);
  letter-spacing: -0.045em;
}

.hero-positioning {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.6vw, 1.32rem);
  line-height: 1.5;
}

.hero-actions,
.closing-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 19px;
  border: 1px solid var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.button-primary {
  background: var(--ink);
  color: var(--surface);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.hero-visual {
  position: relative;
  margin: 0;
  padding: 16px 16px 0;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.hero-visual::before {
  position: absolute;
  inset: -18px auto auto -18px;
  width: 94px;
  height: 94px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
  content: "";
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.hero-visual figcaption {
  padding: 15px 4px 16px;
  color: #cbd4df;
  font-size: 0.76rem;
  line-height: 1.5;
}

.portfolio-context {
  display: grid;
  gap: clamp(32px, 7vw, 92px);
  grid-template-columns: 1.08fr 0.92fr;
  padding: clamp(80px, 10vw, 132px) 0;
  border-top: 1px solid var(--line);
}

.context-intro,
.section-header,
.operating-model,
.spanish-section,
.closing {
  display: grid;
  gap: 26px;
  grid-template-columns: 80px minmax(0, 1fr);
}

.section-number {
  margin: 2px 0 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

h2 {
  margin-bottom: 26px;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  letter-spacing: -0.035em;
}

.supporting-statement {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.8vw, 1.28rem);
}

.boundary-panel {
  align-self: start;
  padding: clamp(28px, 4vw, 48px);
  border-top: 4px solid var(--accent);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(25, 30, 36, 0.06);
}

.boundary-panel h2 {
  margin-bottom: 18px;
  font-family: "Geist", system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.boundary-panel p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.boundary-panel p:last-child {
  margin-bottom: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.modules-section {
  padding: clamp(78px, 10vw, 132px) 0;
  border-top: 1px solid var(--line);
}

.section-header {
  align-items: end;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
}

.section-header > div {
  display: grid;
  gap: 26px;
  grid-template-columns: 80px minmax(0, 1fr);
}

.section-header h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.section-header > p {
  max-width: 430px;
  margin-bottom: 4px;
  color: var(--ink-soft);
}

.module-list {
  display: grid;
  gap: 1px;
  margin-top: clamp(52px, 7vw, 92px);
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module {
  display: grid;
  min-width: 0;
  background: var(--surface);
  grid-template-rows: auto 1fr;
}

.module:nth-child(3),
.module:nth-child(6) {
  background: var(--surface-strong);
}

.module-visual {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  background: var(--navy);
}

.module-visual img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  object-position: top center;
  opacity: 0.88;
  transition: opacity 180ms ease, transform 180ms ease;
}

.module:hover .module-visual img {
  opacity: 1;
  transform: scale(1.01);
}

.module-index {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  padding: 5px 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
}

.module-copy {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 4vw, 48px);
}

.module-copy h3 {
  margin-bottom: 20px;
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  line-height: 1.2;
}

.decision-question {
  max-width: 520px;
  color: var(--ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.25;
}

.module-copy > p:not(.decision-question) {
  color: var(--ink-soft);
}

.module-boundary {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
}

.module-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
  text-underline-offset: 4px;
}

.operating-model {
  padding: clamp(90px, 11vw, 150px) 0;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
}

.model-intro {
  display: grid;
  align-content: start;
  gap: 0 26px;
  grid-template-columns: 80px minmax(0, 1fr);
}

.model-intro h2,
.model-intro > p:last-child {
  grid-column: 2;
}

.model-intro > p:last-child {
  max-width: 520px;
  color: var(--ink-soft);
}

.model-steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.model-steps li {
  display: grid;
  gap: 20px;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.model-steps span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.model-steps p {
  margin: 0;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.spanish-section {
  padding: clamp(76px, 9vw, 120px) clamp(24px, 6vw, 80px);
  background: var(--navy);
  color: #f5f2eb;
}

.spanish-section h2 {
  max-width: 760px;
}

.spanish-section p {
  max-width: 820px;
  color: #c7d0db;
}

.spanish-section .text-link {
  color: #f0a78f;
}

.closing {
  align-items: end;
  padding: clamp(90px, 12vw, 160px) 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) auto;
}

.closing > div:first-child {
  display: grid;
  gap: 26px;
  grid-template-columns: 80px minmax(0, 1fr);
}

.closing h2 {
  max-width: 760px;
  margin-bottom: 0;
}

footer {
  display: flex;
  min-height: 160px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

footer a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

footer p {
  margin: 0;
  text-align: right;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10161f;
    --surface: #151e2a;
    --surface-strong: #192431;
    --ink: #f2efe8;
    --ink-soft: #adb8c5;
    --line: #2d3947;
    --line-strong: #536071;
    --accent: #e47b59;
    --accent-ink: #10161f;
    --accent-soft: #543127;
    --navy: #0a1018;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  }

  body {
    background:
      radial-gradient(circle at 82% 5%, rgba(228, 123, 89, 0.13), transparent 27rem),
      var(--bg);
  }

  .hero-visual figcaption {
    color: #adb8c5;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    width: min(86%, 720px);
    margin-left: auto;
  }

  .portfolio-context,
  .operating-model {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .section-header > p {
    margin-left: 106px;
  }

  .closing {
    align-items: start;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    min-height: 68px;
  }

  .brand > span:last-child,
  .site-header nav a:first-child {
    display: none;
  }

  .site-header nav {
    gap: 16px;
  }

  .hero {
    gap: 48px;
    padding: 72px 0 86px;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 5rem);
  }

  .hero-visual {
    width: 94%;
  }

  .portfolio-context,
  .context-intro,
  .section-header > div,
  .operating-model,
  .model-intro,
  .spanish-section,
  .closing,
  .closing > div:first-child {
    grid-template-columns: 1fr;
  }

  .section-number {
    margin-bottom: 8px;
  }

  .section-header > p,
  .model-intro h2,
  .model-intro > p:last-child {
    grid-column: auto;
    margin-left: 0;
  }

  .module-list {
    grid-template-columns: 1fr;
  }

  .module-copy {
    min-height: 0;
  }

  .module-boundary {
    margin-top: 28px;
  }

  .spanish-section {
    width: 100%;
  }

  footer {
    min-height: 130px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  footer p {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .site-header nav a {
    font-size: 0.78rem;
  }

  .hero-actions,
  .closing-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    width: calc(100% - 8px);
    padding: 9px 9px 0;
  }

  .hero-visual::before {
    display: none;
  }

  .module-visual {
    min-height: 180px;
  }

  .module-copy {
    padding: 26px 22px;
  }

  .spanish-section {
    padding-inline: 22px;
  }
}

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

  .module-visual img {
    transition: none;
  }
}
