/* Layout: a dark screening room. Wide 2.39:1 frames, clapper-slate metadata in mono,
   and one kasavu band (ivory cloth with a gold kara border) for the founding story. */
:root {
  color-scheme: dark;
  --stage: #120e0c;        /* theatre black, warm */
  --wing: #1b1512;         /* raised surface */
  --rope: #3a2e25;         /* hairlines */
  --screen: #efe6d4;       /* primary text on dark */
  --dim: #a99c88;          /* secondary text on dark */
  --gold: #d4af37;         /* brand gold */
  --gold-ink: #7d5f10;     /* gold that reads on kasavu */
  --kasavu: #f5efe1;       /* ivory cloth band */
  --ink: #1d1612;          /* text on kasavu */
  --ink-soft: #5d5145;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --slate: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--stage); color: var(--screen);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--stage); }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(64px, 9vw, 128px); }
.label {
  font-family: var(--slate); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin: 0;
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 em, h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
p { margin: 0; }
.lede { color: var(--dim); max-width: 60ch; }
.head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px;
  font: 600 14px/1 var(--body); letter-spacing: .04em; text-decoration: none;
  border: 1px solid var(--gold); border-radius: 2px; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-solid { background: var(--gold); color: var(--stage); }
.btn-solid:hover { background: var(--screen); border-color: var(--screen); }
.btn-line { background: transparent; color: var(--screen); border-color: var(--rope); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--stage) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rope);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.nav .logo img { height: 52px; width: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { font-size: 14px; text-decoration: none; color: var(--dim); transition: color .2s; }
.nav ul a:hover { color: var(--screen); }
.nav .btn { min-height: 40px; padding: 0 18px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--rope); color: var(--screen); border-radius: 2px; min-height: 40px; padding: 0 14px; font: 500 12px var(--slate); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav .cta { display: none; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; gap: 0; background: var(--stage); border-bottom: 1px solid var(--rope); padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open ul { display: flex; }
  .nav ul a { display: block; padding: 14px 0; font-size: 16px; color: var(--screen); border-bottom: 1px solid var(--rope); }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) 0; }
.hero-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero-top > * { min-width: 0; }
.hero h1 { font-size: clamp(2.9rem, 8.2vw, 7rem); line-height: .96; margin-top: 22px; }
.hero-side { display: flex; flex-direction: column; gap: 26px; padding-bottom: 10px; }
.hero-side p { color: var(--dim); }
.hero-side .row { display: flex; flex-wrap: wrap; gap: 12px; }
.frame { margin-top: clamp(36px, 5vw, 64px); overflow: hidden; background: var(--wing); aspect-ratio: 2.39 / 1; max-width: 100%; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; animation: settle 1.8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
.slate { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rope); border-top: 0; }
.slate div { padding: 16px 18px; border-left: 1px solid var(--rope); min-width: 0; }
.slate div:first-child { border-left: 0; }
.slate dt { font: 400 11px var(--slate); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.slate dd { margin: 6px 0 0; font: 500 14px/1.35 var(--slate); color: var(--screen); }
dl { margin: 0; }
@media (max-width: 860px) {
  .hero-top { grid-template-columns: 1fr; align-items: start; }
  .frame { aspect-ratio: 16 / 10; }
  .slate { grid-template-columns: 1fr 1fr; }
  .slate div:nth-child(3) { border-left: 0; }
  .slate div:nth-child(n+3) { border-top: 1px solid var(--rope); }
}

/* ---------- kasavu band: about ---------- */
.kasavu { background: var(--kasavu); color: var(--ink); position: relative; margin-top: clamp(64px, 9vw, 128px); }
.kasavu::before, .kasavu::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14px;
  background: linear-gradient(var(--gold) 0 8px, transparent 8px 11px, var(--gold) 11px 12px, transparent 12px);
}
.kasavu::before { top: 0; }
.kasavu::after { bottom: 0; transform: scaleY(-1); }
.kasavu .label { color: var(--gold-ink); }
.kasavu h2 em { color: var(--gold-ink); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about > * { min-width: 0; }
.about .copy { display: flex; flex-direction: column; gap: 22px; }
.about .copy p { color: var(--ink-soft); max-width: 58ch; }
.about .quote { font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.25; color: var(--ink); }
.about figure { margin: 0; }
.about figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.about figcaption { font: 400 12px var(--slate); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; }
.lineage { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; list-style: none; border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.lineage li { padding: 22px 24px 0 0; min-width: 0; }
.lineage span { font: 500 12px var(--slate); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.lineage h3 { font-size: 1.6rem; margin: 10px 0 8px; }
.lineage p { color: var(--ink-soft); font-size: 15px; max-width: 34ch; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .lineage { grid-template-columns: 1fr; }
  .lineage li { padding: 22px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
}

/* ---------- services ---------- */
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rope); }
.svc li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 48px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rope); transition: padding .25s, background .25s; }
.svc h3 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); transition: color .25s; }
.svc p { color: var(--dim); max-width: 46ch; }
@media (hover: hover) {
  .svc li:hover { padding-left: 18px; background: linear-gradient(90deg, var(--wing), transparent 70%); }
  .svc li:hover h3 { color: var(--gold); font-style: italic; }
}
@media (max-width: 700px) { .svc li { grid-template-columns: 1fr; padding: 22px 0; } }

/* ---------- team ---------- */
.team { background: var(--wing); border-block: 1px solid var(--rope); }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.person { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.person img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 15%; filter: saturate(.92); }
.person h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 6px; }
.person p.bio { color: var(--dim); font-size: 16px; }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.reel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.reel button { padding: 0; border: 0; background: var(--wing); cursor: zoom-in; overflow: hidden; aspect-ratio: 3 / 2; min-width: 0; }
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .3s; }
@media (hover: hover) { .reel button:hover img { transform: scale(1.04); filter: brightness(1.08); } }
@media (max-width: 700px) {
  .reel { grid-template-columns: 1fr 1fr; gap: 8px; }
  .reel button:first-child { grid-column: span 2; }
}
dialog.light { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 90vh; color: var(--screen); }
dialog.light::backdrop { background: rgba(8, 6, 5, .92); }
dialog.light img { max-width: 100%; max-height: 80vh; margin-inline: auto; }
.light-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; font: 400 12px var(--slate); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.light-bar div { display: flex; gap: 8px; }
.light-bar button { background: none; border: 1px solid var(--rope); color: var(--screen); min-height: 40px; padding: 0 14px; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; border-radius: 2px; }
.light-bar button:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- press ---------- */
.press { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rope); }
.press article { padding: 28px 28px 28px 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.press article + article { padding-left: 28px; border-left: 1px solid var(--rope); }
.press .tag { font: 400 11px var(--slate); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.press h3 { font-size: 1.7rem; }
.press p { color: var(--dim); font-size: 15.5px; }
@media (max-width: 800px) {
  .press { grid-template-columns: 1fr; }
  .press article, .press article + article { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--rope); }
}

/* ---------- contact ---------- */
.contact { background: var(--wing); border-top: 1px solid var(--rope); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 96px); }
.contact-grid > * { min-width: 0; }
.contact h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.reach { display: flex; flex-direction: column; margin-top: 36px; border-top: 1px solid var(--rope); }
.reach div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--rope); }
.reach dt { font: 400 11px var(--slate); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.reach dd { margin: 0; display: flex; align-items: center; gap: 12px; user-select: all; }
.copy-btn { user-select: none; background: none; border: 1px solid var(--rope); color: var(--dim); font: 400 11px var(--slate); letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 2px; cursor: pointer; }
.copy-btn:hover { color: var(--gold); border-color: var(--gold); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font: 400 11px var(--slate); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--stage); color: var(--screen); border: 1px solid var(--rope); border-radius: 2px;
  font: 400 16px/1.4 var(--body); padding: 14px 14px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
#form-note { color: var(--dim); font-size: 14.5px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { form { grid-template-columns: 1fr; } }

footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 28px; font: 400 12px var(--slate); letter-spacing: .1em; color: var(--dim); }
footer a { color: var(--screen); text-decoration: none; border-bottom: 1px solid var(--gold); }

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

/* ---------- inner pages: team, gallery ---------- */
.nav ul a[aria-current="page"] { color: var(--gold); }
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--rope); }
.page-hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
.page-hero .wrap > * { min-width: 0; }
.page-hero h1 { font-size: clamp(3rem, 9vw, 7.5rem); line-height: .94; margin-top: 20px; }
.page-hero p.lede { padding-bottom: 12px; }
.profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.profile + .profile { border-top: 1px solid var(--rope); }
.profile.flip .shot { order: 2; }
.profile .shot img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 15%; }
.profile .words { display: flex; flex-direction: column; gap: 18px; }
.profile h2 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
.profile .words p:not(.label) { color: var(--dim); max-width: 60ch; }
.closer { background: var(--wing); border-top: 1px solid var(--rope); }
.closer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.more { font: 500 12px var(--slate); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold); align-self: flex-start; padding-bottom: 3px; }
.more:hover { color: var(--screen); border-color: var(--screen); }
@media (max-width: 860px) {
  .page-hero .wrap { grid-template-columns: 1fr; align-items: start; }
  .profile { grid-template-columns: 1fr; }
  .profile.flip .shot { order: 0; }
}
