/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --bg: #f3eee8;
  --bg-2: #ebe4da;
  --bg-3: #e3d9cc;
  --surface: #fbf8f4;
  --glass: rgba(255, 252, 248, 0.62);
  --glass-strong: rgba(255, 252, 248, 0.86);
  --ink: #1f1b18;
  --ink-2: #5a524b;
  --ink-3: #8a8178;
  --line: rgba(31, 27, 24, 0.12);
  --line-2: rgba(31, 27, 24, 0.2);
  --accent: #c4673f;
  --accent-ink: #9e4c29;
  --accent-soft: #ecc7b3;
  --blue: #8fa8c8;
  --sage: #9fb39a;
  --sample: #6d7f8f;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 1px rgba(60, 40, 20, 0.04), 0 10px 30px -12px rgba(60, 40, 20, 0.22);
  --shadow-lg: 0 2px 2px rgba(60, 40, 20, 0.04), 0 30px 70px -25px rgba(60, 40, 20, 0.35);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; }
p { margin: 0; }
em.serif, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: 16px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { scroll-margin-top: 90px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ''; width: 18px; height: 1.5px; background: currentColor; opacity: 0.5; }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(34px, 5vw, 60px); max-width: 14ch; margin-top: 14px; }
.section-head p { max-width: 42ch; color: var(--ink-2); }

/* ── Buttons, chips, badges ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.2s, box-shadow 0.3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(31, 27, 24, 0.6); }
.btn-primary:hover { background: #000; }
.btn-ghost { background: var(--glass); border-color: var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { background: var(--glass-strong); }
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.badge-sample {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(109, 127, 143, 0.13); color: #4c5b68; white-space: nowrap;
}
.badge-sample::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sample); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--glass); cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { background: var(--glass-strong); color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .count { font-size: 12px; opacity: 0.7; }
.placeholder-note {
  display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px; background: rgba(109, 127, 143, 0.1);
}

/* ── Navigation (glass pill) ────────────────────────────────────────────── */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 32px), 980px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; position: relative; flex: none;
  background: linear-gradient(145deg, #f8e3d6, var(--accent) 120%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 4px 10px -4px rgba(196, 103, 63, 0.6);
}
.brand-mark::after { content: ''; position: absolute; inset: 8px 7px 7px 11px; border-radius: 3px; background: rgba(255, 255, 255, 0.85); }
.brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--ink-3); letter-spacing: 0; line-height: 1.1; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.nav-links a[aria-current='page'] { color: var(--ink); background: rgba(255, 255, 255, 0.9); }
.nav-cta { min-height: 42px; padding: 0 18px; font-size: 14px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before { display: block; width: 16px; height: 1.6px; background: currentColor; position: relative; transition: transform 0.3s var(--ease); }
.nav-toggle span::before { content: ''; position: absolute; top: 5px; }
.nav-toggle span { transform: translateY(-2.5px); }
.nav-toggle[aria-expanded='true'] span { transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(-5px) rotate(-90deg); }

@media (max-width: 820px) {
  .nav { padding-left: 16px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px; border-radius: 24px; background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
  }
  .nav-links a { min-height: 48px; padding: 0 16px; font-size: 16px; }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links .mobile-only { display: block; }
}
.nav-links .mobile-only { display: none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden;
  background:
    radial-gradient(60% 55% at 72% 40%, #fbf4ec 0%, transparent 70%),
    radial-gradient(40% 40% at 12% 85%, #ecdcd0 0%, transparent 70%),
    linear-gradient(180deg, #eee8f0 0%, var(--bg) 60%);
}
.hero-stage { position: absolute; inset: 0; }
.hero-stage canvas { width: 100%; height: 100%; cursor: grab; }
.hero-stage canvas:active { cursor: grabbing; }
.hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(40px, 9vh, 96px); pointer-events: none; }
.hero-content > * { pointer-events: auto; }
.hero h1 { font-size: clamp(44px, 7.4vw, 104px); max-width: 11ch; margin: 22px 0 22px; letter-spacing: -0.04em; }
.hero h1 .serif { color: var(--accent-ink); }
.hero-lede { max-width: 46ch; font-size: clamp(16px, 1.4vw, 18.5px); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-hint {
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(40px, 9vh, 96px);
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-hint svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .hero { align-items: stretch; grid-template-rows: 54svh auto; }
  .hero-stage { position: relative; inset: auto; grid-row: 1; }
  .hero-fallback { object-fit: contain; object-position: 50% 60%; }
  .hero-content { grid-row: 2; padding-bottom: 56px; margin-top: -24px; }
  .hero h1 { margin-top: 16px; }
  .hero-hint { display: none; }
}

/* ── Marquee ────────────────────────────────────────────────────────────── */
.marquee { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.marquee-item { display: flex; align-items: center; gap: 40px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.marquee-item:nth-child(even) { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-ink); }
.marquee-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 -2px 3px rgba(158, 76, 41, 0.35); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Services ───────────────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; min-height: 340px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card h3 { font-size: 22px; margin-top: auto; }
.service-card p { color: var(--ink-2); font-size: 15px; }
.service-card ul { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.service-card li::before { content: '—'; margin-right: 8px; color: var(--ink-3); }
.service-num { font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.08em; }
.clay-icon { position: relative; height: 96px; margin: 6px 0 4px; }
.clay-icon i { position: absolute; display: block; border-radius: 10px; box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.85), inset 0 -6px 10px rgba(80, 50, 30, 0.12), 0 12px 18px -10px rgba(80, 50, 30, 0.4); }
/* architecture: stacked blocks */
.ci-architecture i:nth-child(1) { left: 8px; bottom: 6px; width: 92px; height: 44px; background: #f4ece3; }
.ci-architecture i:nth-child(2) { left: 34px; bottom: 50px; width: 86px; height: 34px; background: #f9f4ee; }
.ci-architecture i:nth-child(3) { left: 0; bottom: 6px; width: 14px; height: 86px; background: var(--accent-soft); border-radius: 6px; }
/* interiors: arch and sphere */
.ci-interiors i:nth-child(1) { left: 10px; bottom: 6px; width: 70px; height: 84px; border-radius: 40px 40px 10px 10px; background: #eadfd2; }
.ci-interiors i:nth-child(2) { left: 70px; bottom: 6px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); }
.ci-interiors i:nth-child(3) { left: 112px; bottom: 6px; width: 22px; height: 60px; border-radius: 11px; background: #dfe6dc; }
/* visualisation: camera-ish lens */
.ci-visualisation i:nth-child(1) { left: 8px; bottom: 10px; width: 100px; height: 66px; border-radius: 18px; background: #eef1f4; }
.ci-visualisation i:nth-child(2) { left: 36px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #b8c9da 60%, #8fa8c8); }
.ci-visualisation i:nth-child(3) { left: 112px; bottom: 50px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); }
/* drawings: sheets */
.ci-drawings i:nth-child(1) { left: 22px; bottom: 14px; width: 84px; height: 66px; border-radius: 6px; background: #f6f2ea; transform: rotate(-8deg); }
.ci-drawings i:nth-child(2) { left: 36px; bottom: 10px; width: 84px; height: 66px; border-radius: 6px; background: #fff; background-image: linear-gradient(#e6ddd0 1px, transparent 1px), linear-gradient(90deg, #e6ddd0 1px, transparent 1px); background-size: 12px 12px; }
.ci-drawings i:nth-child(3) { left: 112px; bottom: 10px; width: 10px; height: 74px; border-radius: 5px; background: var(--accent-soft); transform: rotate(18deg); }
@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } .service-card { min-height: 0; } }

/* ── About ──────────────────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(70% 50% at 50% 30%, #fbf6f0, #e6dbcd);
  border: 1px solid var(--line); display: grid; place-items: center;
}
.portrait .head { width: 34%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(160deg, #fbf8f4, #e2d5c5); box-shadow: inset 0 -10px 20px rgba(80, 50, 30, 0.12), 0 20px 30px -18px rgba(80, 50, 30, 0.5); transform: translateY(-30%); }
.portrait .body { position: absolute; bottom: -12%; width: 70%; aspect-ratio: 1.3; border-radius: 50% 50% 0 0; background: linear-gradient(160deg, #f4e6dc, var(--accent-soft)); box-shadow: inset 0 10px 20px rgba(255, 255, 255, 0.6); }
.portrait .placeholder-note { position: absolute; left: 16px; top: 16px; background: var(--glass-strong); }
.about h2 { font-size: clamp(32px, 4.4vw, 54px); margin: 14px 0 22px; }
.about p { color: var(--ink-2); margin-bottom: 14px; max-width: 56ch; }
.tool-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding: 0; list-style: none; }
.tool-list li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 420px; } }

/* ── Featured projects + compare slider ─────────────────────────────────── */
.featured-list { display: grid; gap: clamp(56px, 8vw, 110px); }
.featured { display: grid; grid-template-columns: 1.45fr 0.8fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.featured:nth-child(even) { grid-template-columns: 0.8fr 1.45fr; }
.featured:nth-child(even) .compare { order: 2; }
.featured-info h3 { font-size: clamp(30px, 3.6vw, 46px); margin: 16px 0 14px; }
.featured-info p { color: var(--ink-2); }
.meta-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 24px 0 28px; padding: 18px 0; border-block: 1px solid var(--line); font-size: 14.5px; }
.meta-list dt { color: var(--ink-3); font-weight: 600; }
.meta-list dd { margin: 0; }
@media (max-width: 900px) {
  .featured, .featured:nth-child(even) { grid-template-columns: 1fr; }
  .featured:nth-child(even) .compare { order: 0; }
}

.compare {
  --pos: 50%;
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); box-shadow: var(--shadow-lg); isolation: isolate; user-select: none; touch-action: pan-y;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .compare-top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.compare-handle::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1b18' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.35);
}
.compare input[type='range'] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3;
}
.compare input[type='range']:focus-visible ~ .compare-handle::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.compare-label {
  position: absolute; bottom: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.88); pointer-events: none;
}
.compare-label.l { left: 14px; }
.compare-label.r { right: 14px; }

/* ── Process ────────────────────────────────────────────────────────────── */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process li { position: relative; padding: 28px 22px 0 0; border-top: 1px solid var(--line-2); counter-increment: step; }
.process li::before {
  content: '0' counter(step); position: absolute; top: -15px; left: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700; background: var(--surface); border: 1px solid var(--line-2);
}
.process h3 { font-size: 22px; margin: 8px 0 10px; }
.process p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process li { padding: 0 0 30px 52px; border-top: 0; border-left: 1px solid var(--line-2); margin-left: 15px; }
  .process li:last-child { border-left-color: transparent; }
  .process li::before { top: -2px; left: -15px; }
  .process h3 { margin-top: 0; }
}

/* ── Contact CTA + footer ───────────────────────────────────────────────── */
.cta {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 10px); padding: clamp(36px, 6vw, 80px);
  background: radial-gradient(70% 90% at 90% 10%, #f6d9c9 0%, transparent 60%), radial-gradient(60% 80% at 0% 100%, #dfe6ee 0%, transparent 60%), var(--surface);
  border: 1px solid var(--line);
}
.cta h2 { font-size: clamp(36px, 6vw, 76px); max-width: 13ch; letter-spacing: -0.035em; margin: 14px 0 20px; }
.cta p { color: var(--ink-2); max-width: 48ch; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.contact-item { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--glass-strong); border: 1px solid var(--line); min-width: 0; }
.contact-item span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.contact-item a, .contact-item strong { font-weight: 600; font-size: 17px; text-decoration: none; overflow-wrap: anywhere; }
.contact-item a:hover { color: var(--accent-ink); }
.contact-item em { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.cta .orb { position: absolute; border-radius: 50%; pointer-events: none; box-shadow: inset 0 -10px 20px rgba(80, 50, 30, 0.15), inset 0 6px 10px rgba(255, 255, 255, 0.8), 0 30px 40px -24px rgba(80, 50, 30, 0.5); }
.cta .orb.a { width: 120px; height: 120px; right: 8%; top: 14%; background: linear-gradient(150deg, #f9e7dc, var(--accent-soft)); }
.cta .orb.b { width: 54px; height: 54px; right: 22%; top: 46%; background: linear-gradient(150deg, #f1f4f7, #c7d4e2); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } .cta .orb { display: none; } }

.footer { padding: 56px 0 36px; color: var(--ink-2); font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; font-weight: 600; color: var(--ink); }
.footer-links a:hover { color: var(--accent-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: 13px; color: var(--ink-3); }

/* ── Reveal on scroll ───────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ── Project cards ──────────────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.project-card {
  display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; text-decoration: none; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.project-card:hover img { transform: scale(1.04); }
.project-card .body { display: grid; gap: 6px; padding: 18px 20px 20px; }
.project-card h3 { font-size: 20px; }
.project-card .sub { font-size: 14px; color: var(--ink-2); }
.project-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* ── Projects page ──────────────────────────────────────────────────────── */
.page-head { padding: 120px 0 28px; }
.page-head h1 { font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.04em; margin: 14px 0 14px; }
.page-head p { color: var(--ink-2); max-width: 56ch; }
.page-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.view-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.view-switch a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.view-switch a.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.country-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 16px; }

.map-shell {
  position: relative; height: min(76svh, 760px); min-height: 460px; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: radial-gradient(80% 70% at 50% 15%, #f8f4ef, #e8e0d5 75%); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.map-shell:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.map-canvas { position: absolute; inset: 0; touch-action: none; }
.map-canvas canvas { width: 100%; height: 100%; }
.map-nodes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.map-node {
  position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: auto; cursor: pointer;
  display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; will-change: transform;
}
.map-node .dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff;
  background: radial-gradient(circle at 35% 30%, #e59a76, var(--accent) 70%);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85), 0 10px 18px -6px rgba(120, 50, 20, 0.6);
  transition: transform 0.25s var(--ease);
}
.map-node .name {
  position: absolute; left: 50%; bottom: calc(100% + 10px); margin-left: 0; translate: -50% 0;
  padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap;
  background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.25s var(--ease); pointer-events: none;
}
.map-node:hover .dot, .map-node:focus-visible .dot, .map-node.active .dot { transform: scale(1.15); }
.map-node:hover .name, .map-node:focus-visible .name, .map-node.active .name { opacity: 1; transform: none; }
.map-node:focus-visible { outline: none; }
.map-node:focus-visible .dot { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--accent); }
.map-node.active { z-index: 2; }

.map-controls { position: absolute; z-index: 3; left: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.map-controls button {
  width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.8); cursor: pointer;
  background: var(--glass-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.map-controls button:hover { background: #fff; }
.map-controls svg { width: 18px; height: 18px; }
.map-hint {
  position: absolute; z-index: 3; left: 72px; bottom: 14px; max-width: calc(100% - 90px);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--ink-2);
  background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); font-size: 14px; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--ink-2); }

.country-panel {
  position: absolute; z-index: 4; top: 14px; right: 14px; bottom: 14px; width: min(380px, calc(100% - 28px));
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, 0.85); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  transform: translateX(calc(100% + 30px)); visibility: hidden; transition: transform 0.5s var(--ease), visibility 0s 0.5s;
}
.country-panel.open { transform: none; visibility: visible; transition: transform 0.5s var(--ease), visibility 0s; }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 24px; letter-spacing: -0.02em; }
.panel-head p { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.panel-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.panel-close:hover { background: #fff; }
.panel-close svg { width: 16px; height: 16px; }
.panel-list { list-style: none; margin: 0; padding: 10px; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 6px; align-content: start; }
.panel-item a { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: 16px; text-decoration: none; transition: background 0.2s; }
.panel-item a:hover, .panel-item a:focus-visible { background: rgba(255, 255, 255, 0.85); }
.panel-item img { width: 96px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: var(--bg-2); }
.panel-item strong { display: block; font-size: 15.5px; line-height: 1.25; }
.panel-item span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.panel-item .badge-sample { margin-top: 6px; font-size: 10.5px; padding: 3px 8px; }
.panel-foot { padding: 12px 20px 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.panel-foot a { font-weight: 600; }
@media (max-width: 760px) {
  .map-shell { height: 72svh; min-height: 440px; }
  .country-panel {
    top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 56%;
    transform: translateY(calc(100% + 20px));
  }
  .map-controls { left: 10px; bottom: auto; top: 10px; }
  .map-hint { left: 10px; right: 10px; bottom: 10px; max-width: none; text-align: center; border-radius: 14px; }
}

.list-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px; }
.list-tools select {
  min-height: 40px; padding: 0 38px 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a524b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 14px no-repeat;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer;
}
.list-tools .spacer { flex: 1; }
.list-count { font-size: 14px; color: var(--ink-2); }
.empty { padding: 40px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ── Project (case study) page ──────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.crumbs a { text-decoration: none; font-weight: 600; color: var(--ink); }
.crumbs a:hover { color: var(--accent-ink); }
.case-head { padding: 120px 0 36px; }
.case-head h1 { font-size: clamp(42px, 7vw, 96px); letter-spacing: -0.04em; margin: 18px 0 16px; }
.case-head .summary { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); max-width: 44ch; }
.case-hero { border-radius: calc(var(--radius) + 6px); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-2); box-shadow: var(--shadow-lg); }
.case-hero img { width: 100%; height: 100%; object-fit: cover; }
.case-body { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 6vw, 90px); padding: clamp(48px, 7vw, 96px) 0; }
.case-facts { position: sticky; top: 100px; align-self: start; }
.case-facts .meta-list { margin-top: 0; }
.permission-note { font-size: 13px; color: var(--ink-2); padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(109, 127, 143, 0.1); }
.case-text p { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 62ch; margin-bottom: 18px; }
.case-text h2 { font-size: clamp(26px, 3vw, 36px); margin: 46px 0 20px; }
.case-text h2:first-child { margin-top: 0; }
@media (max-width: 900px) { .case-body { grid-template-columns: 1fr; } .case-facts { position: static; } }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery figure { margin: 0; grid-column: span 3; }
.gallery figure:nth-child(5n + 1) { grid-column: span 6; }
.gallery figure:nth-child(5n + 4), .gallery figure:nth-child(5n + 5) { grid-column: span 3; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: var(--bg-2); aspect-ratio: 16 / 10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.kind-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
@media (max-width: 640px) { .gallery figure, .gallery figure:nth-child(n) { grid-column: span 6; } }

.case-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 40px; }
.case-nav a { display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease); }
.case-nav a:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.case-nav span { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.case-nav strong { font-size: 20px; letter-spacing: -0.02em; }
.case-nav .next { text-align: right; }
@media (max-width: 560px) { .case-nav { grid-template-columns: 1fr; } .case-nav .next { text-align: left; } }

/* Lightbox */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(24, 20, 17, 0.97); color: #fff; }
.lightbox::backdrop { background: rgba(24, 20, 17, 0.6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 16px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lb-caption { text-align: center; padding: 14px 16px 20px; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.lb-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.18); }
.lb-btn svg { width: 18px; height: 18px; }
.lb-nav { display: flex; gap: 8px; }

/* Sample-content banner */
.sample-banner { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 10px 16px; text-align: center; font-size: 13px; color: #44515c; background: #e4e8ec; }
.sample-banner strong { font-weight: 700; }
@media (max-width: 560px) { .sample-banner { font-size: 12px; padding: 8px 14px; } .sample-banner .long { display: none; } }
@media (min-width: 561px) { .sample-banner .short { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-group[aria-hidden='true'] { display: none; }
  .reveal { opacity: 1; transform: none; }
}
