
:root {
  --paper: #f3f0e9;
  --paper-bright: #fbfaf6;
  --ink: #152b32;
  --ink-soft: #405259;
  --teal: #3e7d7b;
  --teal-dark: #285b5d;
  --mist: #d7e2dd;
  --rule: rgba(21, 43, 50, 0.24);
  --font: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .3em; }
a:focus-visible, button:focus-visible { outline: 3px solid #e69b45; outline-offset: 4px; }
.skip-link { position: fixed; top: .6rem; left: .6rem; z-index: 20; padding: .7rem 1rem; background: var(--paper-bright); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(100%, var(--max));
  min-height: 74px;
  margin: 0 auto;
  padding: .85rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; min-width: 0; }
.brand-mark { display: grid; gap: 3px; width: 28px; flex: 0 0 28px; transform: rotate(-8deg); }
.brand-mark i { display: block; height: 2px; background: var(--teal); }
.brand-mark i:nth-child(2) { width: 75%; margin-left: auto; }
.brand strong { display: block; font-size: 1.05rem; letter-spacing: .02em; line-height: 1.05; }
.brand small { display: block; margin-top: .18rem; color: var(--ink-soft); font-size: .64rem; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); font-size: .83rem; font-weight: 650; letter-spacing: .04em; }
nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
nav a:not(.nav-call):hover { color: var(--teal-dark); }
.nav-call { padding: .55rem 1.1rem; border: 1px solid var(--ink); }
.nav-call:hover { background: var(--ink); color: var(--paper-bright); }

main { width: min(100%, var(--max)); margin: 0 auto; }
.hero { padding: clamp(1rem, 2.5vw, 2.25rem) var(--pad) clamp(3.5rem, 7vw, 7rem); }
.hero-stage { position: relative; min-height: min(720px, calc(100svh - 135px)); }
.hero-photo { position: absolute; inset: 0 0 0 15%; margin: 0; overflow: hidden; background: #c9c7c0; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,43,50,.22), transparent 38%); pointer-events: none; }
.hero-photo img { object-position: 58% center; }
.hero-photo figcaption {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 1;
  padding: .35rem .55rem; background: rgba(251,250,246,.87); color: var(--ink);
  font-size: .65rem; letter-spacing: .08em; text-transform: uppercase;
}
.hero-copy {
  position: absolute; z-index: 2; left: 0; top: 50%; transform: translateY(-50%);
  width: min(600px, 50%); padding: clamp(2rem, 4vw, 4.25rem) clamp(1.6rem, 3.7vw, 3.8rem) clamp(2.2rem, 4vw, 4rem) 0;
  background: var(--paper);
}
.hero-copy::after { content: ""; position: absolute; top: 0; right: -44px; width: 45px; height: 100%; background: var(--paper); clip-path: polygon(0 0, 100% 12%, 68% 100%, 0 100%); }
.eyebrow { margin: 0 0 1rem; color: var(--teal-dark); font-size: .71rem; font-weight: 750; letter-spacing: .15em; line-height: 1.3; text-transform: uppercase; }
h1, h2 { margin: 0; font-weight: 650; letter-spacing: -.055em; text-wrap: balance; }
h1 { max-width: 10.5ch; font-size: clamp(3.4rem, 6vw, 6.4rem); line-height: .92; }
.hero-intro { max-width: 41rem; margin: 1.6rem 0 0; color: var(--ink-soft); font-size: clamp(1rem, 1.2vw, 1.16rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.8rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; padding: .75rem 1rem; border: 1px solid transparent; font-size: .83rem; font-weight: 720; letter-spacing: .02em; text-decoration: none; }
.button-primary { min-width: 190px; background: var(--teal-dark); color: white; }
.button-primary:hover { background: var(--ink); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: .5rem; font-size: .83rem; font-weight: 680; }
.hero-note { width: min(650px, 70%); margin: 1.25rem 0 0 auto; display: flex; gap: 1rem; color: var(--ink-soft); font-size: .78rem; }
.hero-note span { color: var(--teal-dark); font-weight: 800; }

.section-shell { padding-left: var(--pad); padding-right: var(--pad); }
.intro { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.35fr) minmax(260px, .75fr); gap: clamp(2rem, 5vw, 5.5rem); padding-top: clamp(4rem, 8vw, 8rem); padding-bottom: clamp(5rem, 10vw, 10rem); border-top: 1px solid var(--rule); }
.section-index { padding-top: .3rem; color: var(--ink-soft); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; writing-mode: vertical-rl; }
h2 { font-size: clamp(2.65rem, 5vw, 5.6rem); line-height: .96; }
.intro-aside { align-self: end; padding: 1.3rem 0 0 1.4rem; border-left: 2px solid var(--teal); }
.intro-aside p { margin: 0 0 1.4rem; color: var(--ink-soft); }
.inline-call { display: inline-flex; gap: 1rem; font-size: .93rem; font-weight: 750; }

.essay { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .65fr); grid-template-areas: "main copy" "main detail"; gap: clamp(2rem, 5vw, 5.2rem); align-items: start; padding-bottom: clamp(6rem, 11vw, 11rem); }
figure { min-width: 0; }
.essay-main { grid-area: main; margin: 0; padding-left: clamp(0rem, 5vw, 5rem); }
.image-wrap { position: relative; overflow: hidden; background: #c9c7c0; }
.portrait { aspect-ratio: 4 / 5; }
.square { aspect-ratio: 1 / 1; }
.image-wrap img { transition: transform .6s ease; }
.image-wrap:hover img { transform: scale(1.012); }
.image-number { position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; background: var(--paper); color: var(--teal-dark); font-size: .7rem; font-weight: 800; }
.essay figcaption { margin-top: .7rem; color: var(--ink-soft); font-size: .65rem; letter-spacing: .04em; }
.essay-text { grid-area: copy; padding-top: clamp(1rem, 6vw, 6rem); }
.essay-text h2 { font-size: clamp(2.5rem, 4.6vw, 4.8rem); }
.essay-text > p:not(.eyebrow) { max-width: 31rem; margin: 1.6rem 0; color: var(--ink-soft); }
.button-outline { border-color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--paper-bright); }
.essay-detail { grid-area: detail; width: 86%; margin: clamp(2rem, 6vw, 6rem) 0 0 auto; }

.contact { position: relative; margin: 0 var(--pad); padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 5rem); background: var(--ink); color: var(--paper-bright); overflow: hidden; }
.contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(270px, .75fr); gap: clamp(3rem, 8vw, 9rem); }
.contact .eyebrow { color: #93c5bd; }
.contact h2 { max-width: 9ch; }
.contact-details { align-self: end; }
.contact-row { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 1rem; padding: 1.15rem 0; border-top: 1px solid rgba(255,255,255,.28); }
.contact-row address { font-style: normal; }
.contact-row a { width: fit-content; }
.contact-label { color: #aab5b6; font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; }
.button-light { width: 100%; margin-top: 1.4rem; background: var(--mist); color: var(--ink); }
.button-light:hover { background: white; }
.contact-stitch { position: absolute; right: -90px; bottom: -90px; width: 300px; height: 300px; border: 1px dashed rgba(147,197,189,.42); border-radius: 50%; }
.contact-stitch::after { content: ""; position: absolute; inset: 40px; border: 1px dashed rgba(147,197,189,.25); border-radius: inherit; }

footer { width: min(100%, var(--max)); margin: 0 auto; padding: 1.6rem var(--pad) 2rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; color: var(--ink-soft); font-size: .7rem; }
footer p { margin: 0; }
footer p:first-child { display: flex; gap: 1rem; }
footer a { justify-self: end; }
.demo-notice { text-align: center; }

@media (max-width: 900px) {
  .site-header { min-height: 68px; padding-top: .65rem; padding-bottom: .65rem; }
  .hero { padding-top: 1.4rem; padding-bottom: 5rem; }
  .hero-stage { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { position: relative; left: auto; top: auto; transform: none; width: 100%; padding: 1rem 0 1.8rem; order: 1; }
  .hero-copy::after { display: none; }
  h1 { max-width: 13ch; font-size: clamp(3.2rem, 9vw, 5.2rem); }
  .hero-intro { max-width: 46rem; margin-top: 1.1rem; }
  .hero-actions { margin-top: 1.2rem; }
  .hero-photo { position: relative; inset: auto; width: calc(100% - 2rem); height: clamp(260px, 38vw, 350px); margin: 0 0 0 auto; order: 2; }
  .hero-photo img { object-position: 60% 60%; }
  .hero-note { width: calc(100% - 2rem); margin-top: .8rem; }
  .intro { grid-template-columns: 35px minmax(0, 1fr); gap: 1.4rem; }
  .intro-aside { grid-column: 2; max-width: 35rem; }
  .essay { grid-template-columns: minmax(0, 1.1fr) minmax(250px, .9fr); gap: 2.5rem; }
  .essay-main { padding-left: 0; }
  .essay-detail { width: 100%; margin-top: 2rem; }
  .contact-inner { gap: 3rem; }
  footer { grid-template-columns: 1fr 1fr; }
  .demo-notice { grid-column: 1 / -1; grid-row: 2; text-align: left; }
}

@media (max-width: 620px) {
  :root { --pad: 1.15rem; }
  html { scroll-behavior: auto; }
  .site-header { min-height: 64px; gap: .7rem; }
  .brand-mark { width: 22px; flex-basis: 22px; }
  .brand strong { font-size: .93rem; }
  .brand small { font-size: .56rem; letter-spacing: .08em; }
  nav { gap: .45rem; }
  nav a:not(.nav-call) { display: none; }
  .nav-call { min-width: 76px; justify-content: center; padding: .45rem .75rem; }
  .hero { padding-top: .7rem; padding-bottom: 3.75rem; }
  .hero-copy { padding: .65rem 0 1.15rem; }
  .hero-copy .eyebrow { margin-bottom: .7rem; }
  h1 { max-width: none; font-size: clamp(2.75rem, 12.7vw, 3.35rem); line-height: .94; letter-spacing: -.06em; }
  .hero-intro { margin-top: .8rem; font-size: .96rem; line-height: 1.48; }
  .hero-actions { margin-top: 1rem; gap: .55rem 1rem; }
  .button { min-height: 48px; }
  .button-primary { min-width: 165px; }
  .text-link { min-height: 44px; }
  .hero-photo { width: calc(100% - .75rem); height: 205px; }
  .hero-photo figcaption { right: .55rem; bottom: .55rem; font-size: .54rem; }
  .hero-note { width: calc(100% - .75rem); margin-top: .6rem; font-size: .68rem; line-height: 1.35; }
  .intro { grid-template-columns: 1fr; gap: 1.4rem; padding-top: 3.8rem; padding-bottom: 5rem; }
  .section-index { writing-mode: horizontal-tb; }
  h2, .essay-text h2 { font-size: clamp(2.65rem, 13vw, 3.5rem); }
  #intro-title {
    font-size: clamp(2rem, 8.5vw, 2.35rem);
    line-height: 1.02;
    text-wrap: wrap;
  }
  .intro-copy h2 br, .essay-text h2 br, .contact h2 br { display: none; }
  .intro-aside { grid-column: 1; padding-left: 1rem; }
  .essay { grid-template-columns: 1fr; grid-template-areas: "copy" "main" "detail"; gap: 2.5rem; }
  .essay-text { padding-top: 0; }
  .essay-main { width: calc(100% - 1.6rem); margin-left: auto; }
  .portrait { aspect-ratio: 4 / 5; }
  .essay-detail { width: 72%; margin: .2rem 0 0; }
  .contact { margin: 0; padding: 3.8rem var(--pad); }
  .contact-inner { grid-template-columns: 1fr; gap: 2.8rem; }
  .contact-row { grid-template-columns: 68px minmax(0, 1fr); }
  .contact-stitch { width: 220px; height: 220px; }
  footer { grid-template-columns: 1fr; gap: .75rem; }
  footer p:first-child { flex-direction: column; gap: .05rem; }
  footer a { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
  .demo-notice { grid-column: auto; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
