/* CreatingAS1 — brand tokens taken from the 2026 capabilities deck */
:root {
  --bg: #261c16;          /* cover brown */
  --bg-2: #33271f;        /* studio / project brown */
  --bg-3: #16110e;        /* capabilities near-black brown */
  --card: #241c17;
  --ink: #f2ebdf;         /* cream */
  --ink-2: #c9bdb0;       /* body text */
  --ink-3: #8c7f73;       /* meta */
  --orange: #e57237;
  --teal: #2fb8a8;
  --mint: #7ed9cf;
  --blue: #3d7ec4;
  --rust: #c4561f;
  --deep: #238478;
  --sand: #e8a576;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --rail: clamp(0px, 4.2vw, 60px);
  --max: 1320px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.1; margin: 0; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }

.eyebrow {
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent, var(--orange));
  margin-bottom: .9rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem var(--gutter);
  background: rgba(22, 17, 14, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242, 235, 223, .06);
}
.brand img { width: 150px; }
.site-nav { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); align-items: center; }
.site-nav a {
  text-decoration: none; font-weight: 400; font-size: .92rem; letter-spacing: .06em;
  color: var(--ink-2); transition: color .2s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta { color: var(--ink); border-bottom: 1px solid var(--orange); padding-bottom: 2px; }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; color: var(--ink); cursor: pointer;
  }
  .bars, .bars::before, .bars::after {
    display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s, opacity .25s;
  }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; } .bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-3); border-bottom: 1px solid rgba(242,235,223,.08);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 1rem var(--gutter); font-size: 1.05rem; border-top: 1px solid rgba(242,235,223,.06); }
  .site-nav .nav-cta { border-bottom: 0; color: var(--orange); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: calc(100svh - 64px);
  background: var(--bg);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("/assets/img/topo.jpg") right center / cover no-repeat;
  opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 5%, #000 70%);
}
.hero-text {
  position: relative;
  align-self: center;
  padding: clamp(3rem, 8vh, 6rem) var(--gutter);
  max-width: 40rem;
}
.hero-logo { width: min(460px, 100%); margin-left: -.6rem; margin-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.hero h1 {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.005em;
  max-width: 15ch;
}
.rule { display: block; width: 60px; height: 2px; background: var(--orange); margin: 1.8rem 0 1.4rem; }
.kicker {
  font-weight: 600; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); line-height: 1.6; margin-bottom: 2rem;
}
.contact-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.contact-lines li { display: flex; align-items: center; gap: .8rem; }
.contact-lines svg { width: 16px; height: 16px; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contact-lines a {
  text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; font-weight: 400; color: var(--ink-2);
}
.contact-lines a:hover { color: var(--ink); }

.hero-image { position: relative; margin: 0; }
.hero-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.hero-image figcaption {
  position: absolute; right: var(--gutter); bottom: 1.25rem;
  font-size: .8rem; letter-spacing: .06em; color: var(--ink);
  background: rgba(22,17,14,.7); padding: .3rem .7rem; border-radius: 2px;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero::before { -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); opacity: .6; }
  .hero-image { order: -1; height: 88vw; max-height: 560px; }
  .hero-image img {
    object-position: center 40%;
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent);
    mask-image: linear-gradient(180deg, #000 80%, transparent);
  }
  .hero-image figcaption { bottom: 2.5rem; }
  .hero-text { padding-top: 1rem; }
  .hero-logo { width: min(340px, 90%); }
}

/* ---------- Colored rail (signature device from the deck) ---------- */
.studio, .discipline, .skills { position: relative; padding-left: var(--rail); }
.rail {
  position: absolute; top: 0; bottom: 0; left: 0; width: var(--rail);
  background: var(--accent);
}
.rail span {
  position: sticky; top: 45vh;
  display: block;
  writing-mode: vertical-rl; transform: rotate(180deg);
  margin: 0 auto;
  font-weight: 600; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: #120d0a;
  white-space: nowrap;
  padding: 2rem 0;
}
@media (max-width: 720px) {
  .studio, .discipline, .skills { padding-left: 0; border-top: 6px solid var(--accent); }
  .rail { display: none; }
}

/* ---------- Studio ---------- */
.studio { background: var(--bg-2); }
.studio-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}
.portrait {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--orange);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
  max-width: 460px; width: 100%; justify-self: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); }
.prose h2 { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem); margin-bottom: 1.6rem; }
.prose p:not(.eyebrow) { max-width: 62ch; }
@media (max-width: 820px) {
  .studio-inner { grid-template-columns: 1fr; }
  .portrait { max-width: 300px; }
}

/* ---------- Capabilities index ---------- */
.capabilities {
  background: var(--bg-3);
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
}
.capabilities > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.capabilities h2 { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem); margin-bottom: 2.5rem; }
.cap-grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.4rem;
}
.cap-grid a {
  display: block; height: 100%;
  background: var(--card);
  border-top: 2px solid var(--c);
  padding: 1.6rem 1.8rem 1.7rem;
  text-decoration: none;
  transition: background .2s;
}
.cap-grid a:hover { background: #2e241e; }
.cap-grid h3 { font-family: var(--sans); font-weight: 500; font-size: 1.2rem; margin-bottom: .35rem; }
.cap-grid p { margin: 0; color: var(--ink-2); }

/* ---------- Discipline sections ---------- */
.discipline { background: var(--bg); }
.discipline:nth-of-type(even) { background: var(--bg-2); }
.d-inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
}
.d-hero { margin: 0; overflow: hidden; }
.d-hero img { width: 100%; aspect-ratio: 3.36 / 1; object-fit: cover; }
@media (max-width: 720px) { .d-hero img { aspect-ratio: 16 / 10; } }

.statement {
  position: relative;
  max-width: 44rem;
  margin: clamp(-5rem, -6vw, -2rem) 0 0 auto;
  background: rgba(22, 17, 14, .94);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
}
.statement h2 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); margin-bottom: 1.2rem; }
.statement p:last-child { margin-bottom: 0; }
.statement-solo { margin: 0; background: none; border: 0; border-left: 2px solid var(--accent); border-radius: 0; padding: .5rem 0 .5rem clamp(1.25rem, 3vw, 2.5rem); max-width: 52rem; }
@media (max-width: 720px) { .statement:not(.statement-solo) { margin-top: -1.5rem; margin-left: .75rem; margin-right: .75rem; } }

.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; align-items: center;
}
.split .d-hero img { aspect-ratio: 5 / 6; }
.split .statement { margin: 0 0 0 -3rem; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split .d-hero img { aspect-ratio: 4 / 3; object-position: center 60%; }
  .split .statement { margin: -1.5rem .75rem 0; }
}

.project { margin-top: clamp(3rem, 7vw, 5.5rem); }
.project header { margin-bottom: 1.3rem; }
.featured { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .35rem; }
.project h3 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); }
.year { font-size: .5em; color: var(--ink-3); margin-left: .35em; white-space: nowrap; }
.year::before { content: "— "; }
.place { font-size: .85rem; letter-spacing: .04em; color: var(--ink-3); margin: .5rem 0 0; }
.project > p { max-width: 68ch; }

/* Galleries — mosaics mirror the deck layouts */
.gallery { display: grid; gap: 10px; margin-top: 2.2rem; }
.gallery button {
  padding: 0; border: 0; background: #0d0a08; cursor: zoom-in; overflow: hidden; min-height: 0;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery button:hover img { transform: scale(1.03); }

.g4 { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: repeat(2, clamp(160px, 17vw, 240px)); }
.g4 > :nth-child(1) { grid-row: span 2; }
.g4 > :nth-child(4) { grid-column: span 2; }
.g3 { grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, clamp(160px, 17vw, 240px)); }
.g3 > :nth-child(1) { grid-row: span 2; }

@media (max-width: 720px) {
  .g4, .g3 { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 38vw; }
  .g4 > *, .g3 > * { grid-row: auto; grid-column: auto; }
  .g4 > :nth-child(1), .g3 > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .g4 > :nth-child(4) { grid-column: span 2; }
}

/* ---------- Skills ---------- */
.skills { background: var(--bg-3); }
.skills-inner { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) var(--gutter); }
.skills h2 { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem); margin-bottom: 1.4rem; }
.lede { max-width: 68ch; margin-bottom: 3rem; }
.skill-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 0 1.75rem;
}
.skill-list li {
  border-top: 1.5px solid var(--c);
  padding: 1.1rem 0 1.9rem;
  color: var(--ink); font-weight: 400; line-height: 1.35;
}

/* ---------- Contact ---------- */
.contact { position: relative; background: var(--bg); overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0;
  background: url("/assets/img/topo.jpg") center / cover no-repeat;
  opacity: .7;
}
.contact-inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
}
.contact-logo { width: min(380px, 80%); margin-bottom: 2.5rem; margin-left: -.5rem; }
.contact h2 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.2rem); max-width: 16ch; margin-bottom: 1rem; }
.contact p { max-width: 44ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.btn {
  display: inline-block; text-decoration: none;
  background: var(--orange); color: #1a120d;
  font-weight: 500; letter-spacing: .04em;
  padding: .9rem 1.5rem; border-radius: 2px;
  transition: background .2s;
}
.btn:hover { background: #f08a54; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(242,235,223,.4); }
.btn-ghost:hover { background: rgba(242,235,223,.08); }
@media (max-width: 480px) { .btn { width: 100%; text-align: center; } }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding: 1.5rem var(--gutter);
  background: var(--bg-3);
  font-size: .85rem; color: var(--ink-3);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink-3); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
}
.lightbox::backdrop { background: rgba(10, 7, 5, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox button {
  position: fixed; background: rgba(38,28,22,.8); color: var(--ink);
  border: 1px solid rgba(242,235,223,.2); border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

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