/* Estúdio Maré — concept site by Gabriel Cerezo */

:root {
  --stone: #f2eee7;
  --paper: #f8f6f1;
  --sand: #e4ddd1;
  --rule: #d6cec1;
  --ink: #1f1c18;
  --ink-2: #4c473f;
  --ink-3: #6b645a;
  --clay: #8a6a4a;
  --clay-ink: #77583a;
  --dark: #24211d;
  --dark-2: #2d2924;
  --on-dark: #ede7dd;
  --on-dark-2: #b9b0a3;
  --clay-light: #cfa983;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1440px;
  --section: clamp(88px, 12vw, 176px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ul[role="list"], ol { list-style: none; padding: 0; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.approach :focus-visible, .contact :focus-visible, .lightbox :focus-visible, .hero :focus-visible { outline-color: var(--clay-light); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--stone); padding: 10px 16px; text-decoration: none; font-size: 14px;
}
.skip:focus { top: 12px; }

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

.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--clay-ink); margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--clay-light); }

.section-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(38px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -.015em;
  max-width: 16ch; text-wrap: balance;
}
.section-title em { color: var(--clay); font-weight: 300; }
.section-note { color: var(--ink-3); font-size: 15px; max-width: 34ch; }

/* ------------ Header ------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-solid, .site-header.is-open {
  background: rgba(242, 238, 231, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); text-shadow: none;
  box-shadow: 0 1px 0 var(--rule);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark {
  font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap;
}
.nav ul { display: flex; gap: clamp(20px, 3vw, 44px); list-style: none; padding: 0; }
.nav a {
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none; align-items: center; gap: 12px; background: none; border: 0; padding: 10px 0;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
}
.menu-toggle-lines { width: 22px; height: 10px; position: relative; }
.menu-toggle-lines span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-toggle-lines span:first-child { top: 0; }
.menu-toggle-lines span:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:last-child { top: 4px; transform: rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--rule); background: var(--stone); height: calc(100dvh - 76px); overflow-y: auto; }
.mobile-menu nav { padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; min-height: 100%; }
.mobile-menu ol { display: grid; }
.mobile-menu li { border-bottom: 1px solid var(--rule); }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 18px; padding: 18px 0; text-decoration: none;
  font-family: var(--serif); font-size: 40px; font-weight: 300; line-height: 1.1;
}
.mobile-menu a span { font-family: var(--sans); font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.mobile-menu-foot { margin-top: auto; padding-top: 32px; color: var(--ink-3); font-size: 14px; }

/* ------------ Hero ------------ */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 1040px; color: #fff;
  display: flex; align-items: flex-end; overflow: hidden; background: #1a1714;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 55% 55%;
  animation: hero-in 2.4s var(--ease) both;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,17,14,.62) 0%, rgba(20,17,14,.28) 12%, rgba(20,17,14,0) 26%),
    linear-gradient(0deg, rgba(20,17,14,.78) 0%, rgba(20,17,14,.25) 45%, rgba(20,17,14,0) 70%);
}
.hero-content {
  position: relative; width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 140px var(--gutter) clamp(40px, 7vh, 80px);
}
.hero-kicker {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .9; margin-bottom: 18px;
  animation: rise 1.2s .2s var(--ease) both;
}
.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(56px, 12.5vw, 200px); line-height: .9; letter-spacing: -.03em;
  animation: rise 1.4s .35s var(--ease) both;
}
.hero-title em { font-weight: 300; color: #ead9c4; }
.hero-foot {
  margin-top: clamp(28px, 4vw, 48px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.35);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  animation: rise 1.4s .55s var(--ease) both;
}
.hero-lede { max-width: 36ch; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.5; }
.hero-cue {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; flex-shrink: 0;
}
.hero-cue svg { transition: transform .4s var(--ease); }
.hero-cue:hover svg { transform: translateY(4px); }
.hero-caption {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .8;
}

@keyframes hero-in { from { transform: scale(1.06); opacity: .4; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------ Intro ------------ */
.intro { padding-top: var(--section); padding-bottom: calc(var(--section) * .8); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 112px); align-items: end; }
.intro-statement {
  font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.3vw, 50px); line-height: 1.16; letter-spacing: -.01em;
  text-wrap: pretty;
}
.intro-aside { color: var(--ink-2); font-size: 16px; display: grid; gap: 20px; max-width: 40ch; }
.signature { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink); }
.figures {
  margin-top: clamp(56px, 8vw, 112px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.figures > div { padding: 22px 20px 0 0; border-right: 1px solid var(--rule); }
.figures > div + div { padding-left: 20px; }
.figures > div:last-child { border-right: 0; }
.figures dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.figures dd { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5.5vw, 80px); line-height: 1; margin-top: 10px; }

/* ------------ Work ------------ */
.work { padding-bottom: var(--section); }
.section-head { display: grid; gap: 8px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head .section-note { margin-top: 18px; }
.section-head-row { grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.section-head-row .section-note { margin-top: 0; }

.work-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.2vw, 32px); row-gap: clamp(56px, 7vw, 112px);
}
.card-btn {
  display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0;
}
.card-media { display: block; overflow: hidden; background: var(--sand); position: relative; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter .8s var(--ease);
  filter: saturate(.86);
}
.card-media::after {
  content: "View project"; position: absolute; left: 16px; bottom: 16px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--stone); color: var(--ink); padding: 9px 14px;
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.card-btn:hover .card-media img, .card-btn:focus-visible .card-media img { transform: scale(1.035); filter: saturate(1); }
.card-btn:hover .card-media::after, .card-btn:focus-visible .card-media::after { opacity: 1; transform: none; }
.card-meta {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: 14px;
  padding-top: 16px; border-bottom: 1px solid transparent;
}
.card-no { font-size: 12px; color: var(--ink-3); letter-spacing: .08em; }
.card-name { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); font-weight: 400; line-height: 1.1; }
.card-place { grid-column: 2; font-size: 13px; color: var(--ink-3); letter-spacing: .04em; margin-top: 4px; }
.card-year { grid-row: 1; grid-column: 3; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.c1 { grid-column: 1 / span 5; }  .c1 .card-media { aspect-ratio: 4 / 5; }
.c2 { grid-column: 7 / span 6; margin-top: clamp(80px, 14vw, 220px); } .c2 .card-media { aspect-ratio: 3 / 2; }
.c3 { grid-column: 2 / span 6; } .c3 .card-media { aspect-ratio: 4 / 3; }
.c4 { grid-column: 9 / span 4; margin-top: clamp(40px, 8vw, 140px); } .c4 .card-media { aspect-ratio: 4 / 5; }
.c5 { grid-column: 1 / span 4; } .c5 .card-media { aspect-ratio: 3 / 4; }
.c6 { grid-column: 6 / span 7; margin-top: clamp(60px, 10vw, 160px); } .c6 .card-media { aspect-ratio: 16 / 10; }
.c7 { grid-column: 1 / span 7; } .c7 .card-media { aspect-ratio: 16 / 10; }
.c8 { grid-column: 9 / span 4; margin-top: clamp(40px, 6vw, 100px); } .c8 .card-media { aspect-ratio: 4 / 5; }
.c9 { grid-column: 4 / span 6; } .c9 .card-media { aspect-ratio: 3 / 2; }

/* Index table */
.index { margin-top: clamp(96px, 12vw, 176px); }
.index-title { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--clay-ink); margin-bottom: 20px; }
.index-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.index-table th {
  text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  padding: 0 12px 12px 0; border-bottom: 1px solid var(--ink);
}
.index-table td { padding: 0 12px 0 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); height: 60px; }
.index-table td:first-child, .index-table th:first-child { width: 8%; font-variant-numeric: tabular-nums; }
.index-table td:last-child, .index-table th:last-child { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
.index-table button, .index-plain {
  font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.2; color: var(--ink);
  background: none; border: 0; padding: 4px 0; text-align: left;
}
.index-table button { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .5s var(--ease); }
.index-table tr:hover button, .index-table button:focus-visible { background-size: 100% 1px; }
.index-table tbody tr { transition: background-color .3s; }
.index-table tbody tr:hover { background: var(--paper); }
.index-plain { color: var(--ink-2); }

/* ------------ Approach ------------ */
.approach { background: var(--dark); color: var(--on-dark); padding: var(--section) 0; }
.approach .section-title em { color: var(--clay-light); }
.approach-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 8vw, 140px); }
.approach-head { position: relative; }
.approach-head .section-title { max-width: 13ch; font-size: clamp(36px, 4.6vw, 68px); }
.approach-figure { margin-top: clamp(40px, 5vw, 72px); }
.approach-figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; filter: sepia(.15) saturate(.8); }
.approach-figure figcaption, .studio-figure figcaption { font-size: 13px; color: var(--on-dark-2); margin-top: 14px; }
.principles { display: grid; align-content: start; padding-top: 8px; }
.principle {
  display: grid; grid-template-columns: 64px 1fr; column-gap: 16px;
  padding: 32px 0 36px; border-top: 1px solid rgba(237, 231, 221, .18);
}
.principle:last-child { border-bottom: 1px solid rgba(237, 231, 221, .18); }
.principle-no { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--clay-light); grid-row: span 2; line-height: 1.3; }
.principle h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; margin-bottom: 12px; }
.principle p { color: var(--on-dark-2); max-width: 52ch; }
.approach-quote { margin-top: var(--section); text-align: center; }
.approach-quote p {
  font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(30px, 4.4vw, 64px); line-height: 1.12;
  max-width: 22ch; margin: 0 auto; text-wrap: balance;
}
.approach-quote cite { display: block; margin-top: 28px; font-style: normal; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }
.approach-quote cite a { color: var(--clay-light); text-underline-offset: 4px; }

/* ------------ Studio ------------ */
.studio { padding: var(--section) 0; }
.studio-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.studio-body { display: grid; gap: 18px; color: var(--ink-2); margin-top: 36px; max-width: 54ch; }
.studio-figure { margin-top: clamp(0px, 6vw, 96px); }
.studio-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.studio-figure figcaption { color: var(--ink-3); }
.sub-title {
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--clay-ink);
  margin: clamp(80px, 10vw, 144px) 0 32px; padding-top: 20px; border-top: 1px solid var(--ink);
}
.team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.person-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); margin-bottom: 18px; }
.person-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%;
  filter: grayscale(1) contrast(1.02) brightness(1.02) sepia(.12);
  transition: filter .8s var(--ease), transform 1.2s var(--ease);
}
.person:hover .person-photo img { filter: grayscale(0) sepia(0); transform: scale(1.02); }
.person h4 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.15; }
.person-role { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-ink); margin: 6px 0 10px; }
.person-bio { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

.rec-list li {
  display: grid; grid-template-columns: 80px 140px 1fr; gap: 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.rec-year { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 14px; }
.rec-kind { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.rec-what { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; }

/* ------------ Journal ------------ */
.journal { padding: var(--section) 0; background: var(--paper); border-top: 1px solid var(--rule); }
.journal-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: clamp(28px, 3.5vw, 56px); align-items: start; }
.note { border-top: 1px solid var(--ink); padding-top: 22px; }
.note-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 2.5vw, 36px); }
.note-figure { overflow: hidden; }
.note-figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.note-date { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.note h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; margin-bottom: 16px; text-wrap: balance; }
.note > p:not(.note-date), .note-body > p:not(.note-date) { color: var(--ink-2); font-size: 15.5px; }
.note details { margin-top: 18px; }
.note summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-ink); padding: 6px 0;
}
.note summary::-webkit-details-marker { display: none; }
.note summary::after { content: "+"; font-size: 18px; line-height: 1; transition: transform .35s var(--ease); }
.note details[open] summary::after { transform: rotate(45deg); }
.note .when-open { display: none; }
.note details[open] .when-open { display: inline; }
.note details[open] .when-closed { display: none; }
.note-more { display: grid; gap: 14px; padding-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.note details[open] .note-more { animation: rise .6s var(--ease) both; }

/* ------------ Contact ------------ */
.contact { background: var(--dark); color: var(--on-dark); padding: var(--section) 0; }
.contact .section-title em { color: var(--clay-light); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 8vw, 140px); align-items: start; }
.contact-lede { color: var(--on-dark-2); margin-top: 28px; max-width: 46ch; font-size: 17px; }
.contact-list { margin-top: 44px; display: grid; gap: 0; }
.contact-list > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(237,231,221,.16); }
.contact-list dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); padding-top: 3px; }
.contact-list dd { font-size: 16px; overflow-wrap: anywhere; }
.map { margin-top: 36px; color: var(--on-dark); border: 1px solid rgba(237,231,221,.16); padding: 8px; }
.map svg { display: block; width: 100%; height: auto; }

.enquiry { background: var(--stone); color: var(--ink); padding: clamp(28px, 4vw, 56px); display: grid; gap: 22px; }
.enquiry :focus-visible { outline-color: var(--clay); }
.enquiry-title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; margin-bottom: 6px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid #a69d8f; border-radius: 0;
  padding: 10px 0; font-size: 16px; color: var(--ink); transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f1c18' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; padding-right: 22px;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #8a8276; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); outline: none; box-shadow: 0 1px 0 var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.btn {
  justify-self: start; display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--stone); border: 0; padding: 16px 28px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px;
  transition: background-color .3s var(--ease), gap .3s var(--ease);
}
.btn:hover { background: var(--clay-ink); gap: 18px; }
.form-status:empty { display: none; }
.form-status {
  border-left: 2px solid var(--clay); padding: 12px 16px; background: var(--paper);
  font-size: 15px; color: var(--ink-2);
}
.form-status strong { color: var(--ink); font-weight: 500; }

/* ------------ Footer ------------ */
.site-footer { background: var(--stone); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--rule); }
.footer-mark { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); font-weight: 300; line-height: 1; }
.footer-tag { color: var(--ink-3); margin-top: 14px; max-width: 34ch; }
.site-footer nav ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer nav a { text-decoration: none; font-size: 15px; }
.site-footer nav a:hover { color: var(--clay-ink); text-decoration: underline; text-underline-offset: 4px; }
.site-footer address { font-style: normal; color: var(--ink-2); font-size: 15px; }
.footer-base { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 40px; font-size: 13px; color: var(--ink-3); }
.footer-base a { text-decoration: none; white-space: nowrap; }
.footer-base a:hover { color: var(--ink); }

/* ------------ Concept badge ------------ */
.concept-badge {
  position: fixed; left: 16px; bottom: 16px; z-index: 40;
  font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1;
  color: var(--ink); background: rgba(242, 238, 231, .92); text-decoration: none;
  padding: 9px 14px 10px; border: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .3s, color .3s, opacity .3s;
}
.concept-badge:hover { background: var(--ink); color: var(--stone); }
body.menu-open .concept-badge, body.lb-open .concept-badge { opacity: 0; pointer-events: none; }

/* ------------ Lightbox ------------ */
.lightbox {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: var(--dark); color: var(--on-dark);
}
.lightbox::backdrop { background: rgba(20, 17, 14, .7); }
.lightbox[open] { animation: lb-in .5s var(--ease) both; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-inner { height: 100%; display: flex; flex-direction: column; max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 76px; flex-shrink: 0; border-bottom: 1px solid rgba(237,231,221,.14); }
.lb-count { font-size: 13px; letter-spacing: .12em; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.lb-nav { display: flex; gap: 8px; }
.lb-btn {
  background: none; border: 1px solid rgba(237,231,221,.28); color: var(--on-dark); min-width: 44px; height: 44px;
  padding: 0 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; transition: background-color .3s, color .3s;
}
.lb-btn:hover { background: var(--on-dark); color: var(--dark); }
.lb-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding: 28px 0 32px; }
.lb-gallery { display: flex; flex-direction: column; min-height: 0; gap: 14px; }
.lb-figure { min-height: 0; display: flex; flex-direction: column; }
.lb-figure img { width: auto; max-width: 100%; max-height: calc(100vh - 76px - 160px); max-height: calc(100dvh - 76px - 160px); object-fit: contain; transition: opacity .35s; }
.lb-figure img.is-loading { opacity: .15; }
.lb-figure figcaption { font-size: 13px; color: var(--on-dark-2); margin-top: 12px; }
.lb-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.lb-thumbs button { padding: 0; border: 1px solid transparent; background: none; width: 72px; height: 54px; opacity: .55; transition: opacity .3s, border-color .3s; }
.lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--clay-light); }
.lb-thumbs button:hover { opacity: 1; }
.lb-text { overflow-y: auto; padding-right: 4px; }
.lb-place { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--clay-light); }
.lb-title { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.4vw, 68px); line-height: 1; margin: 14px 0 24px; letter-spacing: -.01em; }
.lb-desc { display: grid; gap: 14px; color: var(--on-dark-2); font-size: 16px; }
.lb-desc p:first-child { color: var(--on-dark); font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.lb-facts { margin-top: 32px; display: grid; }
.lb-facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(237,231,221,.14); font-size: 14px; }
.lb-facts dt { color: var(--on-dark-2); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }

/* ------------ Reveal ------------ */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ------------ Responsive ------------ */
@media (max-width: 1100px) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .journal-grid { grid-template-columns: 1fr 1fr; }
  .note-feature { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .intro-grid, .approach-grid, .studio-top, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures > div:nth-child(2) { border-right: 0; }
  .figures > div:nth-child(3) { padding-left: 0; }
  .figures > div:nth-child(n+3) { margin-top: 24px; border-top: 1px solid var(--rule); }
  .work-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .c1 { grid-column: 1 / span 4; }
  .c2 { grid-column: 2 / span 5; margin-top: 0; }
  .c3 { grid-column: 1 / span 6; }
  .c4 { grid-column: 1 / span 3; margin-top: 0; }
  .c5 { grid-column: 4 / span 3; margin-top: 0; }
  .c6 { grid-column: 1 / span 6; margin-top: 0; }
  .c7 { grid-column: 1 / span 6; }
  .c8 { grid-column: 1 / span 3; margin-top: 0; }
  .c9 { grid-column: 4 / span 3; } .c9 .card-media { aspect-ratio: 4 / 5; }
  .studio-figure { margin-top: 0; }
  .section-head-row { grid-template-columns: 1fr; }
  .lb-body { grid-template-columns: 1fr; overflow-y: auto; }
  .lb-gallery { min-height: auto; }
  .lb-figure img { max-height: 62vh; }
  .lb-text { overflow: visible; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .header-inner { height: 64px; }
  .mobile-menu { height: calc(100dvh - 64px); }
  html { scroll-padding-top: 60px; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-title { font-size: clamp(54px, 17vw, 96px); }
  .hero-title em { display: block; }
  .hero-caption { display: none; }
  .work-grid { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .work-grid > .card { grid-column: 1 / -1; margin-top: 0; }
  .c1 .card-media, .c4 .card-media, .c5 .card-media, .c8 .card-media, .c9 .card-media { aspect-ratio: 4 / 5; }
  .c3 .card-media, .c2 .card-media, .c6 .card-media, .c7 .card-media { aspect-ratio: 4 / 3; }
  .card-media::after { display: none; }
  .hide-sm { display: none; }
  .index-table td:first-child, .index-table th:first-child { width: 44px; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .person h4 { font-size: 21px; }
  .person-bio { font-size: 13.5px; }
  .rec-list li { grid-template-columns: 56px 1fr; row-gap: 4px; }
  .rec-what { grid-column: 2; }
  .rec-kind { grid-row: 1; grid-column: 2; }
  .journal-grid { grid-template-columns: minmax(0, 1fr); }
  .note-feature { grid-template-columns: minmax(0, 1fr); }
  .note-figure img { aspect-ratio: 4 / 3; }
  .principle { grid-template-columns: 44px 1fr; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-base { flex-direction: column; gap: 10px; padding-bottom: 48px; }
  .concept-badge { left: 10px; bottom: 10px; font-size: 13px; padding: 7px 10px 8px; }
  .lb-btn.lb-close { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
