/* Banriar Investments — shared styles */

/* Layout: a set of architectural drawing sheets. Obsidian "night" sheets alternate with ivory "paper" sheets,
   each carrying a sheet number (A-01…) and a 12-column construction grid. One gold accent: wattle. */
:root {
  /* Pantone 2025 palette: Mocha Mousse carries ~60% of the page (the "paper" sheets),
     Warm Espresso the night sheets, Alabaster the surfaces and light text. */
  --mocha: #A47864;
  --mocha-light: #C29A86;   /* mocha tint for small accent text on espresso (AA) */
  --mocha-deep: #6B4636;    /* mocha shade for accent text on alabaster (AA) */
  --alabaster: #F9F6F0;
  --espresso: #2C1E1A;

  --obsidian: var(--espresso);
  --ink: #231713;
  --ink-2: #382722;
  --ivory: var(--alabaster);
  --paper: var(--alabaster);
  --wattle: var(--mocha-light);
  --wattle-deep: var(--mocha-deep);
  --stone: #8A6F62;
  --stone-dark: #5A4136;
  --line-dark: rgba(249,246,240,.12);
  --line-light: rgba(44,30,26,.16);
  --text-on-dark: #F9F6F0;
  --muted-on-dark: #CDB9AE;
  --text-on-light: #140C09;
  --muted-on-light: #22150F;

  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
html { scroll-behavior: smooth; }
body { background: var(--obsidian); color: var(--text-on-dark); font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--obsidian); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; text-wrap: balance; letter-spacing: -0.01em; line-height: 1.02; }
::selection { background: var(--wattle); color: var(--obsidian); }
:focus-visible { outline: 2px solid var(--wattle); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1280px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
@media (min-width: 768px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }

.eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.sheet-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.sheet-tag b { font-weight: 500; border: 1px solid currentColor; padding: 2px 7px; }

/* Sheets */
.sheet { position: relative; perspective: 1400px; }
.sheet--dark { background: var(--obsidian); color: var(--text-on-dark); }
.sheet--ink { background: var(--ink); color: var(--text-on-dark); }
.sheet--paper { background: var(--paper); color: var(--text-on-light); color-scheme: light; }
.sheet--ivory { background: var(--ivory); color: var(--text-on-light); color-scheme: light; }
.grid-lines { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.grid-lines .wrap { height: 100%; display: grid; grid-template-columns: repeat(12, 1fr); }
.grid-lines span { border-left: 1px solid var(--line-light); height: 100%; }
.grid-lines span:last-child { border-right: 1px solid var(--line-light); }
.sheet--dark .grid-lines span, .sheet--ink .grid-lines span { border-color: var(--line-dark); }
@media (max-width: 767px) { .grid-lines span:nth-child(n+5) { display: none; } .grid-lines .wrap { grid-template-columns: repeat(4,1fr); } .grid-lines span:nth-child(4) { border-right: 1px solid var(--line-light); } }
.unfold { transform-style: preserve-3d; will-change: transform; }

/* Nav */
.nav { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(44,30,26,.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line-dark); }
.nav a.link { font-size: 13px; color: var(--muted-on-dark); transition: color .25s; position: relative; }
.nav a.link:hover { color: var(--text-on-dark); }
.nav a.link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--wattle); transition: right .35s cubic-bezier(.7,0,.2,1); }
.nav a.link:hover::after { right: 0; }
.mark { font-family: var(--f-display); font-size: 26px; font-weight: 600; letter-spacing: .02em; line-height: 1; }
.mark small { display: block; font-family: var(--f-mono); font-size: 9px; letter-spacing: .24em; color: var(--wattle); margin-top: 4px; }

/* Liquid-fill buttons */
.btn { --fill: var(--wattle); --fg-hover: var(--obsidian); position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: .01em; border: 1px solid currentColor; transition: color .45s cubic-bezier(.7,0,.2,1), border-color .45s; cursor: pointer; white-space: nowrap; }
.btn::before { content: ""; position: absolute; z-index: -1; left: var(--x, 50%); top: var(--y, 50%); width: var(--d, 300px); height: var(--d, 300px); border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%; background: var(--fill); transform: translate(-50%,-50%) scale(0) rotate(0deg); transition: transform .65s cubic-bezier(.7,0,.2,1); }
.btn:hover, .btn:focus-visible { color: var(--fg-hover); border-color: var(--fill); }
.btn:hover::before, .btn:focus-visible::before { transform: translate(-50%,-50%) scale(1) rotate(120deg); }
.btn--solid { background: var(--wattle); color: var(--obsidian); border-color: var(--wattle); --fill: var(--ivory); }
.btn--light { color: var(--text-on-dark); border-color: rgba(236,231,220,.35); }
.btn--ink { color: var(--text-on-light); border-color: rgba(44,30,26,.3); --fill: var(--ink); --fg-hover: var(--ivory); }
.btn .arr { transition: transform .4s; }
.btn:hover .arr { transform: translateX(4px); }
.magnetic { display: inline-block; }

/* Hero */
.hero { position: relative; min-height: 640px; height: 100svh; max-height: 980px; overflow: hidden; background: var(--obsidian); }
#terrain { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-vignette { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(120% 80% at 70% 40%, transparent 30%, rgba(44,30,26,.7) 75%, var(--obsidian) 100%),
  linear-gradient(180deg, rgba(44,30,26,.55) 0%, transparent 22%, transparent 70%, var(--obsidian) 100%); }
.glass { background: rgba(36,24,20,.42); backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); border: 1px solid rgba(249,246,240,.12); box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06); }
.hero h1 { font-size: clamp(48px, 8.4vw, 124px); line-height: .92; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: inline-block; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--wattle); }
.announce { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 14px 6px 6px; border-radius: 999px; }
.announce .pill { background: var(--wattle); color: var(--obsidian); font-weight: 700; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.coord { font-family: var(--f-mono); font-size: 11px; color: var(--muted-on-dark); letter-spacing: .06em; font-variant-numeric: tabular-nums; }

/* About */
.big-year { font-family: var(--f-display); font-size: clamp(110px, 20vw, 300px); line-height: .8; font-weight: 500; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--text-on-light); }
.fact { border-top: 1px solid var(--line-light); padding-top: 16px; }
.fact .n { font-family: var(--f-display); font-size: 52px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Matrix */
.tabs { position: relative; display: inline-grid; grid-template-columns: repeat(3, auto); border: 1px solid var(--line-light); border-radius: 999px; padding: 5px; background: var(--paper); }
.tab { position: relative; z-index: 1; padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted-on-light); transition: color .35s; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ivory); }
.tab-ind { position: absolute; z-index: 0; top: 5px; bottom: 5px; border-radius: 999px; background: var(--ink); box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }
@media (max-width: 560px) { .tabs { display: grid; width: 100%; } .tab { padding: 10px 8px; font-size: 13px; } }
.matrix { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; border: 1px solid var(--line-light); background: var(--paper); box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 40px 80px -50px rgba(40,30,10,.35); }
.matrix.is-flipped .m-text { order: 2; }
.matrix.is-flipped .m-draw { order: 1; }
.matrix.is-wide { grid-template-columns: 1fr 1.5fr; }
.m-text { padding: clamp(24px, 4vw, 56px); min-width: 0; }
.m-draw { position: relative; min-width: 0; border-left: 1px solid var(--line-light); background:
  linear-gradient(var(--line-light) 1px, transparent 1px) 0 0/24px 24px,
  linear-gradient(90deg, var(--line-light) 1px, transparent 1px) 0 0/24px 24px, var(--ivory); }
.matrix.is-flipped .m-draw { border-left: 0; border-right: 1px solid var(--line-light); }
@media (max-width: 860px) { .matrix, .matrix.is-wide { grid-template-columns: 1fr; } .matrix.is-flipped .m-text { order: 2; } .m-draw, .matrix.is-flipped .m-draw { border: 0; border-bottom: 1px solid var(--line-light); order: 1; } }
.m-draw svg { width: 100%; height: 100%; min-height: 300px; display: block; }
.drw { fill: none; stroke: var(--text-on-light); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.drw.thin { stroke-width: .8; stroke: var(--stone-dark); }
.drw.dash { stroke-dasharray: 4 5; stroke: var(--stone); }
.drw.gold { stroke: var(--wattle-deep); stroke-width: 1.8; }
.drw-fill { fill: rgba(194,154,134,.16); stroke: none; }
.drw-t { font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; fill: var(--stone-dark); }
.title-block { position: absolute; right: 14px; bottom: 14px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: var(--stone-dark); border: 1px solid var(--line-light); background: var(--paper); padding: 8px 10px; line-height: 1.5; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-light); }
.steps li span:first-child { font-family: var(--f-mono); font-size: 11px; color: var(--wattle-deep); padding-top: 3px; }

/* Estates */
.estates { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
@media (max-width: 1000px) { .estates { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .estates { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 4px; overflow: hidden; transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .55s, opacity .55s, box-shadow .55s, border-color .55s; box-shadow: 0 20px 50px -30px rgba(0,0,0,.8); outline: none; }
.card:hover, .card:focus-within, .card:focus { transform: scale(1.035); border-color: rgba(194,154,134,.45); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(194,154,134,.2); z-index: 2; }
@media (hover: hover) {
  .estates:has(.card:hover) .card:not(:hover), .estates:has(.card:focus-within) .card:not(:focus-within) { filter: blur(3px) saturate(.6); opacity: .55; transform: scale(.985); }
}
.card .plan { aspect-ratio: 16/10; background: #231713; border-bottom: 1px solid var(--line-dark); position: relative; max-width: 100%; }
.card .plan svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card .body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 { font-size: 32px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--muted-on-dark); }
.chip--new { background: var(--wattle); border-color: var(--wattle); color: var(--obsidian); font-weight: 500; }
.chip--gold { color: var(--wattle); border-color: rgba(194,154,134,.4); }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px; }
.card dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); padding-top: 3px; }
.card .more { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted-on-dark); }
.card .more a { color: var(--text-on-dark); font-weight: 600; }
.card .more a:hover { color: var(--wattle); }

/* Wattle */
.site-plan { width: 100%; height: auto; max-width: 100%; }
.sp-line { fill: rgba(194,154,134,.08); stroke: var(--wattle); stroke-width: 1.6; stroke-linejoin: round; }
.sp-t { font-family: var(--f-mono); font-size: 10px; fill: var(--muted-on-dark); letter-spacing: .1em; }
.sp-dot { fill: var(--wattle); }
.sp-hatch { stroke: rgba(249,246,240,.08); stroke-width: 1; }
.data-table { width: 100%; font-size: 13px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data-table td { padding: 9px 0; border-top: 1px solid var(--line-dark); }
.data-table td:first-child { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); }
.data-table td:last-child { text-align: right; }

/* Docs list */
.doc-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-light); align-items: baseline; }
.doc-row:last-child { border-bottom: 1px solid var(--line-light); }
.doc-row span:last-child { font-family: var(--f-mono); font-size: 11px; color: var(--muted-on-light); letter-spacing: .08em; text-align: right; }

/* Contact */
.field label { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-light); margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(44,30,26,.25); padding: 10px 0; font: inherit; font-size: 16px; color: var(--text-on-light); border-radius: 0; transition: border-color .3s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--stone-dark) 50%), linear-gradient(135deg, var(--stone-dark) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--wattle-deep); }
.contact-card { border-top: 1px solid var(--line-light); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.contact-card .val { font-family: var(--f-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; user-select: all; }
.copy { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border: 1px solid rgba(44,30,26,.25); border-radius: 999px; color: var(--text-on-light); transition: background .3s, color .3s; }
.copy:hover { background: var(--ink); color: var(--ivory); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%); background: var(--ink); color: var(--ivory); border: 1px solid rgba(194,154,134,.4); padding: 12px 18px; border-radius: 999px; font-size: 13px; z-index: 80; transition: transform .5s cubic-bezier(.2,.8,.2,1); max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast { visibility: hidden; transition: transform .5s cubic-bezier(.2,.8,.2,1), visibility 0s .5s; }
.toast.show { visibility: visible; transition: transform .5s cubic-bezier(.2,.8,.2,1), visibility 0s; }

/* Mobile menu */
#menuPanel { position: fixed; inset: 0; z-index: 45; background: rgba(44,30,26,.96); backdrop-filter: blur(10px); padding: calc(96px + env(safe-area-inset-top,0px)) var(--gutter-r) 40px var(--gutter-l); }
#menuPanel a { display: block; font-family: var(--f-display); font-size: 40px; font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--line-dark); }


/* Palette roles: mocha sheets, alabaster surfaces on them */
.sheet--paper, .sheet--ivory { background: var(--mocha); }
.m-draw { background:
  linear-gradient(var(--line-light) 1px, transparent 1px) 0 0/24px 24px,
  linear-gradient(90deg, var(--line-light) 1px, transparent 1px) 0 0/24px 24px, #F1EAE1; }
.drw-fill { fill: rgba(164,120,100,.22); }
.btn--solid { background: var(--mocha-light); border-color: var(--mocha-light); color: var(--espresso); --fill: var(--alabaster); }
.sheet--paper .btn--solid, .sheet--ivory .btn--solid { background: var(--espresso); border-color: var(--espresso); color: var(--alabaster); --fill: var(--alabaster); --fg-hover: var(--espresso); }
.big-year { -webkit-text-stroke: 1.2px var(--espresso); }
.hero h1 em { color: var(--mocha-light); }
::selection { background: var(--mocha); color: var(--alabaster); }
.sheet--paper :focus-visible, .sheet--ivory :focus-visible { outline-color: var(--espresso); }


/* ---------- WCAG 2.2 AA contrast fixes ---------- */
/* Sticky nav: near-opaque so links stay >=4.5:1 over any section, including alabaster panels */
.nav.is-scrolled { background: rgba(44,30,26,.95); }
/* Hero: guarantee a dark field behind text wherever terrain lines pass */
.hero-vignette { background:
  linear-gradient(90deg, rgba(44,30,26,.9) 0%, rgba(44,30,26,.74) 50%, rgba(44,30,26,0) 80%),
  radial-gradient(120% 80% at 70% 40%, transparent 30%, rgba(44,30,26,.7) 75%, var(--obsidian) 100%),
  linear-gradient(180deg, rgba(44,30,26,.55) 0%, transparent 22%, transparent 70%, var(--obsidian) 100%); }
@media (max-width: 1023px) { .hero-vignette { background: linear-gradient(180deg, rgba(44,30,26,.7) 0%, rgba(44,30,26,.8) 45%, var(--obsidian) 100%); } }
.glass { background: rgba(36,24,20,.88); }
.hero h1 em { color: #E8D3C8; } /* mocha blush: >=3:1 even over the brightest terrain line */
/* Form fields and search: visible boundaries (>=3:1, WCAG 1.4.11) */
.field input, .field select, .field textarea { border-bottom: 1.5px solid var(--stone-dark); }
::placeholder { color: #6B5A52; opacity: 1; }
/* Buttons on mocha: solid boundary */
.btn--ink { border-color: var(--espresso); }

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

/* ---------- Inner pages ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--obsidian); }
.page-hero-img { position: absolute; inset: -6% 0 0 0; width: 100%; height: 112%; object-fit: cover; opacity: .3; filter: saturate(.7) brightness(.85); }
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(44,30,26,.8) 0%, rgba(44,30,26,.6) 40%, var(--obsidian) 100%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(46px, 7.4vw, 108px); line-height: .95; }
.crumbs { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--wattle); }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.meta-row div { border-top: 1px solid var(--line-dark); padding-top: 10px; min-width: 120px; }
.meta-row .k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-dark); }
.meta-row .v { font-family: var(--f-display); font-size: 30px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-light); color: var(--text-on-light); transition: background .3s, color .3s, border-color .3s; }
.jump a:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.doc-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 48px; align-items: start; }
.doc-aside { position: sticky; top: calc(100px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; gap: 28px; } .doc-aside { position: static; } }
.search { width: 100%; background: var(--paper); border: 1.5px solid var(--stone-dark); border-radius: 999px; padding: 11px 16px; font: inherit; font-size: 15px; color: var(--text-on-light); }
.search:focus { outline: none; border-color: var(--wattle-deep); }
.doc-group { scroll-margin-top: 110px; }
.doc-group + .doc-group { margin-top: 44px; }
.doc-group h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.doc-group h2 small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted-on-light); font-weight: 400; }
.doc-link { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line-light); background: transparent; transition: background .35s, padding .35s; }
.doc-link:last-child { border-bottom: 1px solid var(--line-light); }
.doc-link:hover, .doc-link:focus-visible { background: var(--paper); padding-left: 22px; }
.doc-link .ty { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-align: center; padding: 6px 0; border: 1px solid currentColor; color: var(--espresso); background: rgba(249,246,240,.35); }
.doc-link .ty.ext { color: var(--espresso); border-style: dashed; }
.doc-link .t { font-weight: 600; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.doc-link .f { display: block; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted-on-light); font-weight: 400; margin-top: 2px; overflow-wrap: anywhere; }
.doc-link .go { font-size: 16px; color: var(--muted-on-light); transition: transform .35s, color .35s; }
.doc-link:hover .go { transform: translateX(4px); color: var(--mocha-deep); }
.note-card { border: 1px solid rgba(44,30,26,.35); background: rgba(249,246,240,.3); padding: 18px 20px; }
.siblings { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
@media (max-width: 900px) { .siblings { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.siblings a { border: 1px solid var(--line-dark); padding: 16px; border-radius: 4px; transition: border-color .35s, transform .45s cubic-bezier(.2,.8,.2,1), background .35s; display: flex; flex-direction: column; gap: 6px; }
.siblings a:hover { border-color: rgba(194,154,134,.5); transform: translateY(-4px); background: var(--ink-2); }
.siblings b { font-family: var(--f-display); font-size: 24px; font-weight: 600; line-height: 1.05; }
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; }
.gallery a { position: relative; overflow: hidden; border-radius: 3px; background: var(--ink-2); display: block; min-height: 180px; }
.gallery a:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.gallery a:nth-child(n+2) { grid-column: span 2; }
.gallery a:nth-child(6), .gallery a:nth-child(7) { grid-column: span 3; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery a:nth-child(n) { grid-column: span 1; grid-row: auto; } .gallery a:nth-child(1) { grid-column: span 2; } }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .6s; position: absolute; inset: 0; }
.gallery a:hover img { transform: scale(1.06); }
@media (hover: hover) { .gallery:has(a:hover) a:not(:hover) img { filter: blur(3px) saturate(.6) brightness(.7); } }
.img-missing { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--muted-on-dark); text-align: center; padding: 12px; }
#lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(44,30,26,.92); backdrop-filter: blur(12px); display: grid; place-items: center; padding: 40px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
#lightbox[hidden] { display: none; }
#lightbox figure { max-width: min(1200px, 100%); }
#lightbox img { max-height: 80vh; width: auto; margin: auto; display: block; border-radius: 3px; }
#lightbox figcaption { text-align: center; margin-top: 12px; }
#lightbox button { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); right: max(18px, env(safe-area-inset-right, 0px)); }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line-light); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.person { display: flex; gap: 16px; align-items: center; padding: 22px 18px 22px 0; border-bottom: 1px solid var(--line-light); min-width: 0; }
.mono { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-size: 22px; font-weight: 600; border: 1px solid var(--text-on-light); color: var(--text-on-light); transition: background .4s, color .4s; }
.person:hover .mono { background: var(--espresso); color: var(--alabaster); }
.person h3 { font-size: 26px; line-height: 1.05; }
.person p { font-size: 13px; color: var(--muted-on-light); }
.person a { color: var(--text-on-light); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
