/* IAC — site theme. Calm UI on stone neutrals, accent taken from the IAC logo red.
   Shared by the home page and inner pages. */
:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --sunk: #ecebe5;
  --ink: #141412;
  --muted: #65625a;
  --line: #e0ddd5;
  --accent: #c41f2a;
  --accent-soft: #fbeceb;
  --on-accent: #ffffff;
  --overlay: rgba(20,20,18,.5);
  --sans: "Noto Sans Georgian", "Segoe UI", system-ui, sans-serif;
  --serif: "Noto Serif Georgian", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 20px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2,.8,.2,1);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f0f0e; --surface: #181816; --sunk: #21211e; --ink: #efede7; --muted: #a39f94; --line: #2d2c28;
  --accent: #ff7468; --accent-soft: #3a1a18; --on-accent: #120a09; --overlay: rgba(0,0,0,.62); color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0f0f0e; --surface: #181816; --sunk: #21211e; --ink: #efede7; --muted: #a39f94; --line: #2d2c28;
  --accent: #ff7468; --accent-soft: #3a1a18; --on-accent: #120a09; --overlay: rgba(0,0,0,.62); color-scheme: dark }

@view-transition { navigation: auto }
* { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; transition: background .4s, color .4s; overflow-x: clip }
h1, h2, h3, h4, p, figure, ul, ol, blockquote { margin: 0 }
ul { padding: 0; list-style: none }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; cursor: pointer }
img { display: block; width: 100%; height: 100%; object-fit: cover }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px }
::selection { background: var(--accent); color: var(--on-accent) }
.skip { position: absolute; left: 16px; top: -60px; z-index: 90; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px }
.skip:focus { top: 16px }
.g { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.w { max-width: 1320px; margin: 0 auto }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .01em }
.muted { color: var(--muted) }
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); white-space: nowrap }
.tag.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent) }
.tag.glass { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px) }
.ar { transition: transform .3s var(--ease); display: inline-block }
a:hover .ar, button:hover .ar { transform: translate(3px, -3px) }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 500; border: 1px solid transparent; transition: transform .25s var(--ease), background .25s, border-color .25s; white-space: nowrap }
.btn:active { transform: scale(.98) }
.btn.light { background: #fff; color: #141412 }
.btn.ink { background: var(--ink); color: var(--bg) }
.btn.line { border-color: var(--line); background: var(--surface) }
.btn.line:hover { border-color: var(--ink) }
.btn.glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px) }
.btn.glass:hover { background: rgba(255,255,255,.24) }
.btn svg { width: 16px; height: 16px }

/* ---------- Nav island ---------- */
.island { position: sticky; top: max(12px, calc(env(safe-area-inset-top, 0px) + 12px)); z-index: 40; display: flex; justify-content: center; pointer-events: none; padding-block: 12px 0 }
.island nav { pointer-events: auto; display: flex; align-items: center; gap: 4px; padding: 6px; background: color-mix(in srgb, var(--surface) 84%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line); border-radius: 999px; max-width: 100%; view-transition-name: nav }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 12px 0 4px; height: 40px; white-space: nowrap }
.brand .logo { width: 40px; height: 40px; border-radius: 50%; background: #fff; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line) }
.brand .logo img { width: 34px; height: auto; object-fit: contain }
.brand b { font-size: 14px; font-weight: 600; line-height: 1.1 }
.brand small { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); font-weight: 400 }
.links { display: flex; gap: 2px }
.links a { padding: 8px 13px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: background .25s, color .25s; white-space: nowrap }
.links a:hover { background: var(--sunk); color: var(--ink) }
.links a[aria-current] { background: var(--ink); color: var(--bg) }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; height: 40px; padding: 0 11px; border-radius: 999px; border: 0; background: transparent; font-size: 13px; color: var(--muted); transition: background .25s, color .25s; white-space: nowrap }
.icon-btn:hover { background: var(--sunk); color: var(--ink) }
.icon-btn kbd { font-family: var(--mono); font-size: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--muted) }
.icon-btn svg { width: 17px; height: 17px; flex: none }
.lang { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--sunk); font-family: var(--mono); font-size: 11px }
.lang a { padding: 6px 9px; border-radius: 999px; color: var(--muted) }
.lang a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08) }
.burger { display: none }

/* Mobile sheet */
.sheet { position: fixed; inset: 0; z-index: 55; background: var(--overlay); display: flex; align-items: flex-start; justify-content: center; padding: max(76px, calc(env(safe-area-inset-top, 0px) + 76px)) 16px 16px }
.sheet[hidden] { display: none }
.sheet .box { width: min(520px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; box-shadow: 0 24px 80px rgba(0,0,0,.25) }
.sheet a.it { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px; border-radius: var(--r-sm); font-size: 17px }
.sheet a.it:hover { background: var(--sunk) }
.sheet a.it[aria-current] { color: var(--accent); font-weight: 600 }
.sheet .row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 6px; border-top: 1px solid var(--line); margin-top: 6px }

/* ---------- Section scaffolding ---------- */
.sec { padding-block: clamp(64px, 8vw, 112px) }
.sec.tight { padding-top: 0 }
.sh { display: flex; justify-content: space-between; align-items: end; gap: 20px 24px; margin-bottom: 32px; flex-wrap: wrap }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--accent); font-family: var(--mono); font-size: 12px }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor }
.sh h2 { font-size: clamp(30px, 3.8vw, 52px); font-weight: 300; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; max-width: 20ch }
.sh h2 b, .panel h2 b { font-weight: 700 }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); transition: border-color .25s; white-space: nowrap }
.more:hover { border-color: var(--ink) }
.panel { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 2.6vw, 32px) }
.panel h2 { font-size: 24px; font-weight: 300; letter-spacing: -.02em; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px }

/* ---------- Footer ---------- */
footer { padding-block: 16px 32px }
.fbox { border-radius: var(--r); background: #141412; color: #efede7; padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px }
:root[data-theme="dark"] .fbox { background: var(--surface); border: 1px solid var(--line) }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fbox { background: var(--surface); border: 1px solid var(--line) } }
.fbox .flogo { width: 64px; height: 64px; border-radius: 16px; background: #fff; display: grid; place-items: center; margin-bottom: 18px }
.fbox .flogo img { width: 52px; height: auto; object-fit: contain }
.fbox p.big { font-size: clamp(22px, 2.4vw, 30px); font-weight: 200; letter-spacing: -.02em; line-height: 1.2 }
.fbox p.big b { font-weight: 700 }
.fbox h4 { margin: 0 0 14px; font-size: 12px; font-weight: 500; opacity: .55; font-family: var(--mono) }
.fbox li { margin-bottom: 9px; font-size: 14px }
.fbox a:hover { color: var(--accent) }
.fend { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; color: var(--muted) }
.fend a:hover { color: var(--ink) }

/* ---------- Search palette ---------- */
.pal { position: fixed; inset: 0; z-index: 60; background: var(--overlay); display: flex; justify-content: center; align-items: flex-start; padding: max(10vh, calc(env(safe-area-inset-top, 0px) + 24px)) max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)) }
.pal[hidden] { display: none }
.pal .box { width: min(640px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.25) }
.pal .in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line) }
.pal input { flex: 1; min-width: 0; height: 58px; border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); outline: none }
.pal ul { max-height: 52vh; overflow-y: auto; padding: 8px }
.pal li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px; border-radius: var(--r-sm); align-items: center }
.pal li a:hover, .pal li a.act { background: var(--sunk) }
.pal li b { font-weight: 500; font-size: 15px; line-height: 1.4 }
.pal .empty { padding: 24px; color: var(--muted); text-align: center }
.pal .hint { padding: 10px 18px; border-top: 1px solid var(--line); display: flex; gap: 16px; color: var(--muted); flex-wrap: wrap }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 70; background: rgba(8,8,7,.92); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: #fff; padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)) }
.lb[hidden] { display: none }
.lb .top, .lb .bot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px }
.lb figure { display: grid; place-items: center; min-height: 0 }
.lb figure img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px }
.lb button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center }
.lb button:hover { background: rgba(255,255,255,.18) }

/* ---------- Scroll-driven reveal (progressive; content is visible without it) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 20% }
    @keyframes rise { from { transform: translateY(36px) scale(.985) } to { transform: none } }
    .progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; background: var(--accent); transform-origin: 0 50%; animation: grow linear both; animation-timeline: scroll(root) }
    @keyframes grow { from { transform: scaleX(0) } to { transform: scaleX(1) } }
  }
}

@media (max-width: 1180px) {
  .links { display: none }
  .burger { display: inline-flex }
}
@media (max-width: 720px) {
  .icon-btn .lbl, .icon-btn kbd, .brand small { display: none }
  .island nav .lang { display: none }
  .fbox { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) }
  .fbox > :first-child { grid-column: 1 / -1 }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation: none !important; transition: none !important }
  @view-transition { navigation: none }
}

/* ================= Home page ================= */
/* Home page: slider bento → about → projects → news + services → tours → gallery → resources → partners → contact */
.hero { padding-block: 24px 20px }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 128px; gap: 12px }
.tile { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 20px; transition: border-color .3s }
a.tile:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)) }
.tile .bgi { position: absolute; inset: 0 }
.tile .bgi img { transition: transform 1.2s var(--ease) }
a.tile:hover .bgi img { transform: scale(1.04) }
.tile:not(.main) > :not(.bgi) { position: relative; z-index: 1 }
.tile.photo { color: #fff; border-color: transparent; background: #1c1b18 }
.tile.photo .bgi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,9,.84) 0%, rgba(10,10,9,.2) 55%, rgba(10,10,9,.08) 100%) }
.tile .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px }
.tile h3 { font-size: 17px; font-weight: 600; line-height: 1.35; text-wrap: balance }

/* Main slideshow tile */
.main { grid-column: span 8; grid-row: span 4; justify-content: flex-end; padding: clamp(22px, 3vw, 40px); color: #fff; border: 0; background: #1c1b18 }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease) }
.slide.on { opacity: 1 }
.slide img { transform: scale(1.06); transition: transform 7s linear }
.slide.on img { transform: scale(1) }
.main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,9,.86) 0%, rgba(10,10,9,.3) 50%, rgba(10,10,9,.05) 100%); pointer-events: none }
.main .over { position: relative; z-index: 2 }
.main .kick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px }
.main h1 { font-size: clamp(36px, 5vw, 72px); line-height: 1.03; letter-spacing: -.025em; font-weight: 200; max-width: 14ch; text-wrap: balance; animation: weight 1.6s var(--ease) .2s both }
@keyframes weight { from { font-weight: 100; letter-spacing: .01em } to { font-weight: 200; letter-spacing: -.025em } }
.main h1 b { font-weight: 700 }
.main p { max-width: 50ch; margin-top: 16px; color: rgba(255,255,255,.84); font-size: 15px }
.main .row { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; align-items: center }
.dots { position: absolute; z-index: 3; right: clamp(22px, 3vw, 40px); bottom: clamp(22px, 3vw, 40px); display: flex; gap: 6px }
.dots button { width: 28px; height: 28px; border: 0; background: transparent; padding: 0; display: grid; place-items: center }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.45); transition: width .4s var(--ease), background .3s }
.dots button[aria-current="true"]::before { width: 22px; background: #fff }
.side-a { grid-column: span 4; grid-row: span 2 }
.side-b { grid-column: span 2; grid-row: span 2 }
.side-c { grid-column: span 2; grid-row: span 2; background: var(--accent); color: var(--on-accent); border-color: transparent }
.side-c .tag { background: transparent; color: var(--on-accent); border-color: color-mix(in srgb, var(--on-accent) 45%, transparent) }
.side-c .mono { color: color-mix(in srgb, var(--on-accent) 80%, transparent) }
.side-c .big { font-family: var(--serif); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.3 }
.side-b .th { width: 100%; height: 64px; border-radius: 10px; overflow: hidden; margin-bottom: 10px }

/* Ticker */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding-block: 14px; margin-top: 12px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent) }
.ticker .tr { display: flex; gap: 48px; width: max-content; animation: run 60s linear infinite }
.ticker:hover .tr { animation-play-state: paused }
@keyframes run { to { transform: translateX(-50%) } }
.ticker a { display: inline-flex; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); white-space: nowrap }
.ticker a:hover { color: var(--ink) }
.ticker b { color: var(--ink); font-weight: 500; font-family: var(--mono); font-size: 12px }
.ticker i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: inline-block }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px }
.about .txt { padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 22px }
.about .lead { font-family: var(--serif); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.6; font-weight: 300 }
.about .lead::first-letter { color: var(--accent) }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: auto }
.facts div { padding: 18px 12px 0 0 }
.facts b { display: block; font-size: clamp(26px, 2.4vw, 36px); font-weight: 200; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums }
.facts span { font-size: 13px; color: var(--muted) }
.collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; min-height: 440px }
.collage > * { border-radius: var(--r); overflow: hidden; background: var(--sunk) }
.collage > :first-child { grid-row: span 2 }

/* Projects */
.filters { display: flex; gap: 8px; flex-wrap: wrap }
.chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); transition: all .25s }
.chip:hover { color: var(--ink) }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink) }
.pgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px }
.pc { grid-column: span 4; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .3s }
.pc:hover { border-color: color-mix(in srgb, var(--ink) 28%, var(--line)) }
.pc.wide { grid-column: span 8 }
.pc[hidden] { display: none !important }
.pc .ph { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sunk) }
.pc.wide .ph { aspect-ratio: 16 / 7.6 }
.pc .ph img { transition: transform 1s var(--ease) }
.pc:hover .ph img { transform: scale(1.04) }
.pc .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1 }
.pc .row { display: flex; gap: 6px; flex-wrap: wrap }
.pc h3 { font-size: 18px; font-weight: 600; line-height: 1.4; text-wrap: pretty }
.pc .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--muted); padding-top: 6px }
.pc .foot .ar { color: var(--ink) }

/* News + services */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 12px }
.news li a { display: grid; grid-template-columns: 76px minmax(0, 1fr) 20px; gap: 16px; align-items: center; padding-block: 14px; border-top: 1px solid var(--line) }
.news li:first-child a { border-top: 0; padding-top: 4px }
.news .th { width: 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden; background: var(--sunk) }
.news b { font-weight: 500; font-size: 15px; line-height: 1.45; display: block; margin-top: 2px }
.news .mono { color: var(--muted) }
.news a:hover b { color: var(--accent) }
.svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
.svc a { border-radius: var(--r-sm); background: var(--sunk); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; min-height: 74px; transition: background .25s }
.svc a:hover { background: var(--accent-soft) }
.svc svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px }
.svc b { font-weight: 500; font-size: 14px; line-height: 1.45 }
.svc a.all { background: var(--ink); color: var(--bg); justify-content: space-between; align-items: center }
.svc a.all b { font-weight: 600 }

/* Tours */
.ttypes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px }
.ttypes a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--muted); transition: border-color .25s, color .25s }
.ttypes a:hover { color: var(--ink); border-color: var(--ink) }
.ttypes a.hot { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)) }
.tours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.tour { position: relative; border-radius: var(--r); overflow: hidden; min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; color: #fff; background: #1c1b18 }
.tour .bgi { position: absolute; inset: 0 }
.tour .bgi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,9,.88) 0%, rgba(10,10,9,.15) 55%, rgba(10,10,9,.35) 100%) }
.tour .bgi img { transition: transform 1.2s var(--ease) }
.tour:hover .bgi img { transform: scale(1.04) }
.tour > :not(.bgi) { position: relative }
.tour h3 { font-size: clamp(28px, 3vw, 42px); font-weight: 200; letter-spacing: -.02em; line-height: 1.05 }
.tour h3 b { font-weight: 700 }
.tour p { color: rgba(255,255,255,.82); font-size: 14px; max-width: 40ch; margin-top: 10px }
.tour .bar { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap }
.tour .acts { display: flex; gap: 8px; flex-wrap: wrap }

/* Gallery */
.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 12px }
.gal a { border-radius: var(--r-sm); overflow: hidden; background: var(--sunk); position: relative }
.gal a img { transition: transform 1s var(--ease), filter .4s }
.gal a:hover img { transform: scale(1.05) }
.gal a::after { content: "⤢"; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9); color: #141412; display: grid; place-items: center; font-size: 15px; opacity: 0; transform: translateY(6px); transition: all .3s var(--ease) }
.gal a:hover::after, .gal a:focus-visible::after { opacity: 1; transform: none }
.gal .tall { grid-row: span 2 }
.gal .wide { grid-column: span 2 }

/* Resources */
.res { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px }
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px }
.cats a { border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; min-height: 120px; transition: border-color .25s, background .25s }
.cats a:hover { border-color: var(--accent); background: var(--accent-soft) }
.cats svg { width: 22px; height: 22px; color: var(--accent) }
.cats b { font-weight: 500; font-size: 14px; line-height: 1.4 }
.book { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start }
.book .cv { width: 96px; aspect-ratio: 7 / 10; border-radius: 6px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.14); background: var(--sunk) }
.book b { font-family: var(--serif); font-weight: 400; font-size: 16px; line-height: 1.5; display: block }
.book .row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center }
.book .pdf { display: inline-flex; gap: 6px; align-items: center; font-family: var(--mono); font-size: 11px; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent) }
.vids li a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding-block: 12px; border-top: 1px solid var(--line) }
.vids li:first-child a { border-top: 0; padding-top: 0 }
.vids .play { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center }
.vids .play svg { width: 14px; height: 14px; margin-left: 2px }
.vids b { font-weight: 500; font-size: 14px; line-height: 1.4; display: block }
.vids a:hover b { color: var(--accent) }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px }
.partners a { height: 104px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 16px; transition: border-color .25s }
.partners a:hover { border-color: var(--ink) }
.partners img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .3s, opacity .3s }
.partners a:hover img, .partners a:focus-visible img { filter: none; opacity: 1 }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px }
.contact dl { margin: 0; display: grid; gap: 0 }
.contact dl div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding-block: 14px; border-top: 1px solid var(--line) }
.contact dl div:first-child { border-top: 0; padding-top: 0 }
.contact dt { color: var(--muted); font-size: 14px }
.contact dd { margin: 0; font-weight: 500 }
.contact dd a:hover { color: var(--accent) }
.mapc { position: relative; border-radius: var(--r); overflow: hidden; min-height: 320px; background: var(--sunk); border: 1px solid var(--line) }
.mapc iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block }
/* Calmer map in dark mode so it doesn't glare next to the dark UI */
:root[data-theme="dark"] .mapc iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6) }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mapc iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6) } }
.mapc .map-btn { position: absolute; left: 16px; bottom: 16px; z-index: 1; box-shadow: 0 6px 20px rgba(0,0,0,.18) }

@media (max-width: 1080px) {
  .main { grid-column: span 12 }
  .side-a { grid-column: span 6 } .side-b, .side-c { grid-column: span 3 }
  .pc, .pc.wide { grid-column: span 6 }
  .about, .contact { grid-template-columns: minmax(0, 1fr) }
  .res { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) }
  .res > :first-child { grid-column: 1 / -1 }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)) }
  .partners { grid-template-columns: repeat(5, minmax(0, 1fr)) }
  .gal { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}
@media (max-width: 720px) {
  .bento { grid-auto-rows: 112px }
  .main { grid-row: span 5 }
  .side-a { grid-column: span 12 } .side-b, .side-c { grid-column: span 6 }
  .side-b .th { display: none }
  .tile { padding: 16px }
  .dots { top: 14px; bottom: auto; right: 14px }
  .pc, .pc.wide { grid-column: span 12 }
  .split, .tours, .res { grid-template-columns: minmax(0, 1fr) }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .collage { min-height: 320px }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .svc { grid-template-columns: minmax(0, 1fr) }
  .partners { grid-template-columns: repeat(3, minmax(0, 1fr)) }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px }
  .tour { min-height: 380px }
  .contact dl div { grid-template-columns: minmax(0, 1fr); gap: 2px }
  .news li a { grid-template-columns: 56px minmax(0, 1fr); gap: 14px }
  .news .th { width: 56px; height: 56px }
  .news li a > .ar { display: none }
  .main h1 { font-size: 34px }
}

/* ================= Inner pages ================= */
/* Inner page template: used for project, news, service, tour and literature detail pages */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--muted); padding-block: 28px 18px }
.crumbs a:hover { color: var(--ink) }
.crumbs span[aria-current] { color: var(--ink) }
.head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding-bottom: 24px }
.head h1 { font-size: clamp(36px, 5.4vw, 76px); font-weight: 200; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; max-width: 16ch }
.head h1 b { font-weight: 700 }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px }
.cover { border-radius: var(--r); overflow: hidden; aspect-ratio: 21 / 9; background: var(--sunk); view-transition-name: cover }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 64px); padding-block: clamp(32px, 5vw, 64px) }
.prose { max-width: 68ch; font-size: 17px; line-height: 1.85 }
.prose > * + * { margin-top: 1.1em }
.prose .lead { font-family: var(--serif); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.7; font-weight: 300 }
.prose h2 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; margin-top: 1.8em; line-height: 1.3 }
.prose ul { display: grid; gap: 0; border-top: 1px solid var(--line) }
.prose li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: 16px; line-height: 1.55 }
.prose li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 8px; height: 1px; background: var(--accent) }
.prose figure { margin-block: 2em; }
.prose figure img { border-radius: var(--r-sm); aspect-ratio: 16 / 10 }
.prose figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; font-family: var(--mono) }
aside { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 96px; align-self: start }
aside .panel { padding: 20px }
aside h4 { margin: 0 0 12px; font-size: 12px; font-weight: 500; color: var(--muted); font-family: var(--mono) }
aside dl { margin: 0 }
aside dl div { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); font-size: 14px }
aside dl div:first-child { border-top: 0; padding-top: 0 }
aside dt { color: var(--muted) }
aside dd { margin: 0; font-weight: 500; text-align: right }
.file { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-sm); background: var(--sunk); font-size: 14px; transition: background .25s }
.file + .file { margin-top: 8px }
.file:hover { background: var(--accent-soft) }
.file .ic { width: 40px; height: 48px; border-radius: 6px; background: var(--surface); color: var(--accent); display: grid; place-items: center; font-family: var(--mono); font-size: 10px; font-weight: 500; border: 1px solid var(--line) }
.share { display: flex; gap: 8px; flex-wrap: wrap }
.share .btn { height: 40px; padding: 0 14px; font-size: 13px }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px }
.strip a { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sunk) }
.strip a img { transition: transform 1s var(--ease) }
.strip a:hover img { transform: scale(1.05) }
.rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.rel a { border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .3s }
.rel a:hover { border-color: color-mix(in srgb, var(--ink) 28%, var(--line)) }
.rel .ph { aspect-ratio: 16 / 10; overflow: hidden }
.rel .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1 }
.rel h3 { font-size: 16px; font-weight: 600; line-height: 1.4 }
.rel .foot { margin-top: auto; display: flex; justify-content: space-between; color: var(--muted) }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px }
.pager a { border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; transition: border-color .25s }
.pager a:hover { border-color: var(--ink) }
.pager a:last-child { text-align: right }
.pager b { font-weight: 500; line-height: 1.4 }
@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr) }
  aside { position: static }
  .rel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) }
}
@media (max-width: 640px) {
  .head { grid-template-columns: minmax(0, 1fr) }
  .head .more { justify-self: start }
  .cover { aspect-ratio: 4 / 3 }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .rel, .pager { grid-template-columns: minmax(0, 1fr) }
  .pager a:last-child { text-align: left }
  .prose { font-size: 16px }
}

/* ================= Blade build additions ================= */
.cats { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.clamp3, .clamp4 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden }
.clamp3 { -webkit-line-clamp: 3 } .clamp4 { -webkit-line-clamp: 4 }
.vids li a { grid-template-columns: 96px minmax(0, 1fr) }
.vth { position: relative; width: 96px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--sunk); display: block }
.vth .play { position: absolute; inset: 0; margin: auto; width: 32px; height: 32px; background: rgba(20,20,18,.75); color: #fff }
.vth .play svg { width: 11px; height: 11px }
.pc .ph:empty, .news .th:empty { background: linear-gradient(135deg, var(--sunk), var(--accent-soft)) }
.page-top { padding-bottom: clamp(24px, 4vw, 40px) }
.page-top .lead { max-width: 60ch; color: var(--muted); margin-top: 14px; font-size: 17px }
.list-sec { padding-bottom: clamp(56px, 7vw, 96px) }
.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r) }
.pdfview { margin-top: 2em; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface) }
.pdfview summary { cursor: pointer; padding: 14px 18px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px }
.pdfview summary::-webkit-details-marker { display: none }
.pdfview iframe { display: block; width: 100%; height: min(85vh, 900px); border: 0; border-top: 1px solid var(--line) }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-sm) }
.prose iframe { max-width: 100%; border-radius: var(--r-sm) }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px }
.prose p:empty { display: none }
.svc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.svc-list a { border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 28px; min-height: 150px; transition: border-color .25s, background .25s }
.svc-list a:hover { border-color: var(--accent); background: var(--accent-soft) }
.svc-list svg { width: 24px; height: 24px; color: var(--accent) }
.svc-list b { font-weight: 500; font-size: 16px; line-height: 1.45 }
.svc-list .n { font-family: var(--mono); font-size: 11px; color: var(--muted) }
.videos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.videos-grid .v { border-radius: var(--r); overflow: hidden; background: #000; aspect-ratio: 16 / 9 }
.videos-grid iframe { width: 100%; height: 100%; border: 0; display: block }
.gal.full { grid-auto-rows: 220px }
@media (max-width: 1080px) { .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 720px) {
  .cats { grid-template-columns: minmax(0, 1fr) }
  .cats a { min-height: 0; flex-direction: row; align-items: center; gap: 14px }
  .svc-list, .videos-grid { grid-template-columns: minmax(0, 1fr) }
  .gal.full { grid-auto-rows: 150px }
}
.tour h3 { font-weight: 300 }
