/* KOMPAS Studio — Light Mode Monochrome v8 */
:root {
  /* Clean light palette: white / black / gray */
  --bg: #ffffff;
  --bg-2: #f4f4f4;
  --bg-soft: #fafafa;
  --bg-dark: #0a0a0a;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --ink-soft: #3a3a3a;
  --muted: #6b6b6b;
  --muted-soft: #9a9a9a;
  --line: rgba(10,10,10,.1);
  --line-strong: rgba(10,10,10,.22);
  --accent: #0a0a0a;
  --accent-2: #2a2a2a;
  --accent-soft: #4a4a4a;
  --blue: #2a2a2a;
  --blue-deep: #0a0a0a;
  --blue-light: #6b6b6b;
  --sage: #2a2a2a;
  --sage-soft: #6b6b6b;
  --cream: #ffffff;
  --gold: #4a4a4a;

  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 4px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --shadow: 0 12px 40px rgba(28,23,18,.07);
  --shadow-lg: 0 24px 60px rgba(28,23,18,.12);
  --container: 1280px;
  --container-wide: 1440px;
  --gutter: 28px;
  --nav-h: 72px;
  --ease: cubic-bezier(.65,0,.18,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--bg-2);
  overscroll-behavior-y: none;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'ss01' on;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100vh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
/* subtle light glow (monochrome) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(800px 600px at 85% -10%, rgba(10,10,10,.04), transparent 60%),
    radial-gradient(900px 700px at -10% 100%, rgba(10,10,10,.03), transparent 60%);
}

/* Grain overlay already exists with ::before */
/* Prevent iOS Safari input zoom (must be ≥16px) */
input, textarea, select, button { font-size: 16px; }
@media (min-width: 601px) {
  input, textarea, select, button { font-size: inherit; }
}
/* Remove 300ms tap delay */
a, button, input, textarea, select, [role="button"] { touch-action: manipulation; }
/* Disable hover effects on touch devices */
@media (hover: none) {
  .work-card:hover { transform: none; }
  .work-card:hover .img img { transform: none; filter: none; }
  .work-card:hover::after { box-shadow: 0 0 0 1px rgba(5,12,23,.08); }
  .btn:hover { box-shadow: 0 4px 14px rgba(28,23,18,.1); }
  .btn:hover::before { transform: translateY(100%); }
  .service-row:hover { color: var(--ink); }
  .service-row:hover::before { transform: translateY(100%); }
  .service-row:hover h3 { transform: none; }
  .service-row:hover p { opacity: 1; max-height: none; color: var(--muted); }
  .staff-card:hover .staff-photo img { transform: none; }
  .staff-card:hover .staff-photo { box-shadow: 0 4px 20px rgba(28,23,18,.05); }
}

body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none !important;
  z-index: 0;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--ink); color: var(--cream); }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.8vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.8rem); font-weight: 500; }
h3 { font-size: clamp(1.1rem, 1.4vw, 1.35rem); font-weight: 500; }
p { margin: 0 0 .9rem; color: var(--ink-soft); font-weight: 400; font-size: .96rem; }
em, .italic { font-style: italic; color: var(--accent); font-weight: 500; }

.eyebrow, .tag {
  font-family: var(--sans);
  text-transform: uppercase; letter-spacing: .2em;
  font-size: 10.5px; font-weight: 700; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; display: inline-block;
  width: 22px; height: 2px; background: var(--accent);
}
.index-num { font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-weight: 500; }

/* ===== Layout ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 72px 0; position: relative; }
.section-sm { padding: 52px 0; }

@media (max-width: 1280px) { :root { --gutter: 26px; } }
@media (max-width: 1024px) { :root { --gutter: 22px; } }
@media (max-width: 768px) {
  :root { --gutter: 18px; --nav-h: 62px; }
  section { padding: 56px 0; }
  body { font-size: 15px; line-height: 1.58; }
  p { font-size: .94rem; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  section { padding: 48px 0; }
}

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255,87,34,.5);
  z-index: 1000;
  transition: width .08s linear;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: env(safe-area-inset-top, 0);
  left: env(safe-area-inset-left, 0);
  right: env(safe-area-inset-right, 0);
  z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: all .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  height: 60px;
  box-shadow: 0 4px 20px rgba(10,10,10,.05);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 14px;
  line-height: 1;
  z-index: 102;
  position: relative;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 42px; height: 42px;
  display: inline-flex;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 18px rgba(255,87,34,.3));
  transition: filter .4s var(--ease), transform .6s var(--ease-out);
}
.brand:hover .brand-mark {
  filter: drop-shadow(0 10px 24px rgba(255,87,34,.55));
  transform: scale(1.06) rotate(-4deg);
}
.brand-mark svg { width: 100%; height: 100%; display: block; }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
  transition: transform .4s var(--ease);
}
.brand:hover .brand-text { transform: translateX(2px); }
.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #ffffff;
  position: relative;
  display: inline-block;
}
.brand-name::after {
  content: '';
  position: absolute;
  right: -6px; top: 4px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255,87,34,.8);
}
.brand-sub {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .24em;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
}
.site-footer .brand-name { color: #ffffff; }
.site-footer .brand-sub { color: rgba(255,255,255,.5); }
.site-header.scrolled .brand-mark { transform: scale(.92); }

@media (max-width: 600px) {
  .brand { gap: 10px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1.2rem; }
  .brand-sub { font-size: 8px; letter-spacing: .2em; }
}
@media (max-width: 380px) {
  .brand-sub { display: none; }
}

.nav-menu {
  display: flex; gap: clamp(14px, 2vw, 30px); list-style: none; padding: 0; margin: 0;
  align-items: center;
}
.nav-menu a {
  font-size: 13px; font-weight: 600;
  position: relative; padding: 6px 0;
  transition: color .25s var(--ease);
  color: rgba(255,255,255,.85);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--accent); }
.nav-menu a.active::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 4px; height: 4px; background: var(--accent); border-radius: 50%;
  transform: translateX(-50%);
}

.nav-right { display: flex; align-items: center; gap: 14px; margin-left: auto; z-index: 102; position: relative; }

.admin-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  transition: all .3s var(--ease);
  white-space: nowrap;
  position: relative; overflow: hidden;
  isolation: isolate;
}
.admin-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform .4s var(--ease);
  z-index: -1;
}
.admin-btn:hover { color: #fff; border-color: var(--accent); }
.admin-btn:hover::before { transform: translateY(0); }
.admin-btn svg { width: 14px; height: 14px; color: #ffffff; }
@media (max-width: 640px) {
  .admin-btn span { display: none; }
  .admin-btn { padding: 0; width: 40px; height: 40px; justify-content: center; }
  .admin-btn svg { width: 16px; height: 16px; }
}
.lang-switch { display: flex; gap: 1px; font-family: var(--mono); font-size: 10.5px; }
.lang-switch a {
  padding: 8px 10px; text-transform: uppercase;
  color: rgba(255,255,255,.5); font-weight: 500;
  position: relative;
  letter-spacing: .05em;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.lang-switch a.active { color: #ffffff; }
.lang-switch a.active::after {
  content: ''; position: absolute; inset: auto 18% 2px;
  height: 1px; background: var(--accent);
}

.nav-toggle {
  display: none; width: 44px; height: 44px; position: relative; z-index: 102;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-appearance: none;
  appearance: none;
  transition: all .3s var(--ease);
}
.nav-toggle:hover { background: var(--accent); border-color: var(--accent); }
.nav-toggle.open { background: var(--accent); border-color: var(--accent); }
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor;
  transition: all .3s;
  border-radius: 2px;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { bottom: 15px; }
.nav-toggle.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(135deg, #0f1c2e 0%, #1a2d44 100%);
    color: var(--cream);
    flex-direction: column; justify-content: center; align-items: flex-start;
    padding: calc(50px + env(safe-area-inset-top, 0)) calc(var(--gutter) + env(safe-area-inset-right, 0)) calc(50px + env(safe-area-inset-bottom, 0)) calc(var(--gutter) + env(safe-area-inset-left, 0));
    clip-path: circle(0% at calc(100% - 40px) 40px);
    transition: clip-path .6s var(--ease);
    gap: 0;
    z-index: 101;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-menu.open { clip-path: circle(160% at calc(100% - 40px) 40px); }
  .nav-menu a {
    font-family: var(--serif); font-size: clamp(1.8rem, 7vw, 3rem); font-weight: 400;
    color: var(--cream); padding: 8px 0;
    letter-spacing: -0.03em;
  }
  .nav-menu a.active, .nav-menu a:hover { color: var(--accent-soft); }
}

/* ===== Hero ===== */
.hero {
  min-height: auto;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0) + 28px) 0 60px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
@media (max-width: 768px) {
  .hero { padding: calc(var(--nav-h) + env(safe-area-inset-top, 0) + 12px) 0 36px; }
}
@media (min-width: 901px) {
  .hero {
    min-height: min(92vh, 820px);
    min-height: min(92dvh, 820px);
  }
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}
@media (max-width: 768px) { .hero-grid-bg { background-size: 50px 50px; } }

.hero-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0 18px;
  position: relative; z-index: 2;
  flex-wrap: wrap; gap: 10px;
}
.hero-top .meta {
  font-family: var(--mono); font-size: 10.5px; color: rgba(255,255,255,.7);
  display: flex; align-items: center; gap: 10px; letter-spacing: .04em; font-weight: 600;
  flex-wrap: wrap;
}
.hero-top .meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}
@media (max-width: 768px) {
  .hero-top { padding: 10px 0 14px; }
  .hero-top .meta { font-size: 9.5px; gap: 8px; }
  .hero-top .meta .sep { display: none; }
  .hero-top > div:nth-child(2) { display: none; }
}

.hero-main {
  position: relative; z-index: 2;
  padding: 18px 0 28px;
  flex: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-main { grid-template-columns: 1.3fr 1fr; gap: 20px; padding: 10px 0 16px; }
}
@media (max-width: 600px) {
  .hero-main { grid-template-columns: 1.4fr 1fr; gap: 12px; padding: 4px 0 10px; align-items: center; }
}
@media (max-width: 380px) {
  .hero-main { grid-template-columns: 1fr; gap: 16px; }
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 6.5vw, 6.4rem);
  line-height: .95;
  letter-spacing: -0.04em;
  font-weight: 400;
  margin: 0;
  word-break: break-word;
  hyphens: auto;
}
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em 0 0; }
.hero-title .word span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.hero-title.animated .word span { transform: translateY(0); }
.hero-title.animated .word:nth-child(2) span { transition-delay: .07s; }
.hero-title.animated .word:nth-child(3) span { transition-delay: .14s; }
.hero-title.animated .word:nth-child(4) span { transition-delay: .21s; }
.hero-title.animated .word:nth-child(5) span { transition-delay: .28s; }
.hero-title em {
  font-style: italic; font-weight: 400;
  color: var(--accent);
  display: inline-block;
  position: relative;
}
.hero-title em::after {
  content: ''; position: absolute; bottom: .1em; left: 0; right: 0;
  height: 4px; background: var(--accent); opacity: .18;
  border-radius: 3px;
}

.hero-bottom {
  display: grid; grid-template-columns: 1.2fr auto auto;
  align-items: end; gap: 16px 28px;
  padding-top: 22px; border-top: 1px solid var(--line-strong);
  position: relative; z-index: 2;
}
.hero-bottom p { max-width: 440px; font-size: .92rem; margin: 0; color: var(--ink-soft); line-height: 1.55; }
.hero-visual-mini {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .04em;
}
.hero-bottom .cta-cluster { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 1024px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 18px; padding-top: 20px; }
  .hero-visual-mini { order: 3; }
}

/* ===== Construction SVG ===== */
.construct-svg {
  width: 100%; height: 100%;
  display: block;
}
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 440px;
  margin-left: auto;
}
@media (max-width: 1024px) {
  .hero-visual { max-width: 320px; margin: 0 0 0 auto; aspect-ratio: 1/1; }
}
@media (max-width: 600px) {
  .hero-visual { max-width: 180px; margin: 0 0 0 auto; aspect-ratio: 1/1; }
}
@media (max-width: 380px) {
  .hero-visual { max-width: 240px; margin: 0 auto; }
}

.construct-svg .c-blueprint,
.construct-svg .c-base,
.construct-svg .c-floor,
.construct-svg .c-window,
.construct-svg .c-window-lit,
.construct-svg .c-roof,
.construct-svg .c-door,
.construct-svg .c-side,
.construct-svg .c-crane,
.construct-svg .c-ground { opacity: 0; }
.construct-svg .c-blueprint path,
.construct-svg .c-blueprint line,
.construct-svg .c-blueprint rect {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}

/* Blueprint drawing phase */
.construct-svg.building .c-blueprint {
  opacity: 1;
  animation: blueprint-glow 3s ease-in-out infinite alternate;
}
.construct-svg.building .c-blueprint path,
.construct-svg.building .c-blueprint line,
.construct-svg.building .c-blueprint rect {
  animation: draw-line 1.4s forwards cubic-bezier(.6,0,.2,1);
  filter: drop-shadow(0 0 4px rgba(255,87,34,.6));
}

/* Ground slam-in with dust */
.construct-svg.building .c-ground {
  animation: ground-slam .65s forwards cubic-bezier(.3,.9,.3,1);
  animation-delay: 1s;
}

/* Foundation with bounce */
.construct-svg.building .c-base {
  animation: foundation-drop .9s forwards cubic-bezier(.5,-0.4,.3,1.6);
  animation-delay: 1.4s;
  transform-origin: center bottom;
}

/* Side building rising */
.construct-svg.building .c-side {
  animation: rise-bounce .9s forwards cubic-bezier(.5,1.5,.5,1);
  animation-delay: 1.7s;
  transform-origin: center bottom;
}

/* Floors stacking with bounce */
.construct-svg.building .c-floor {
  transform-origin: bottom;
  animation: floor-stack .5s forwards cubic-bezier(.3,1.4,.4,1);
}
.construct-svg.building .c-floor:nth-child(1) { animation-delay: 2.0s; }
.construct-svg.building .c-floor:nth-child(2) { animation-delay: 2.2s; }
.construct-svg.building .c-floor:nth-child(3) { animation-delay: 2.4s; }
.construct-svg.building .c-floor:nth-child(4) { animation-delay: 2.6s; }
.construct-svg.building .c-floor:nth-child(5) { animation-delay: 2.8s; }
.construct-svg.building .c-floor:nth-child(6) { animation-delay: 3.0s; }
.construct-svg.building .c-floor:nth-child(7) { animation-delay: 3.2s; }
.construct-svg.building .c-floor:nth-child(8) { animation-delay: 3.4s; }

/* Windows popping in */
.construct-svg.building .c-window {
  animation: window-pop .35s forwards cubic-bezier(.3,1.5,.5,1);
}

/* Lit windows glow with pulse */
.construct-svg.building .c-window-lit {
  animation: window-light .8s forwards ease-out, window-pulse 3s ease-in-out infinite;
  animation-delay: inherit, 5.5s;
  filter: drop-shadow(0 0 6px rgba(255,87,34,.8));
}

/* Roof drop */
.construct-svg.building .c-roof {
  animation: roof-drop .55s forwards cubic-bezier(.5,1.4,.3,1);
  animation-delay: 3.8s;
}

/* Door */
.construct-svg.building .c-door {
  animation: door-in .4s forwards cubic-bezier(.3,1.5,.5,1);
  animation-delay: 4.0s;
}

/* Crane with continuous swing after entry */
.construct-svg.building .c-crane {
  animation: crane-entrance 1.5s forwards cubic-bezier(.4,0,.3,1), crane-swing 5s ease-in-out 2s infinite;
  transform-origin: 100px 420px;
}

/* Sun glow (the circle.c-base at top) */
.construct-svg.building .c-base[cx] {
  animation: sun-glow-in 1s forwards ease-out, sun-pulse 4s ease-in-out 2s infinite;
  animation-delay: .5s;
  filter: drop-shadow(0 0 20px rgba(255,87,34,.6));
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes blueprint-glow {
  0% { opacity: .7; }
  100% { opacity: 1; }
}

@keyframes ground-slam {
  0% { opacity: 0; transform: translateY(-20px); }
  60% { opacity: 1; transform: translateY(4px); }
  80% { transform: translateY(-2px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes foundation-drop {
  0% { opacity: 0; transform: translateY(-80px) scaleX(.85); }
  55% { opacity: 1; transform: translateY(6px) scaleX(1.1); }
  75% { transform: translateY(-2px) scaleX(.96); }
  100% { opacity: 1; transform: translateY(0) scaleX(1); }
}

@keyframes rise-bounce {
  0% { opacity: 0; transform: translateY(60px) scaleY(.6); }
  60% { opacity: 1; transform: translateY(-8px) scaleY(1.08); }
  80% { transform: translateY(3px) scaleY(.98); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); }
}

@keyframes floor-stack {
  0% { opacity: 0; transform: translateY(-40px) scaleY(.3); }
  50% { opacity: 1; transform: translateY(8px) scaleY(1.15); }
  70% { transform: translateY(-3px) scaleY(.96); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); }
}

@keyframes window-pop {
  0% { opacity: 0; transform: scale(0) rotate(-10deg); transform-origin: center; }
  60% { opacity: 1; transform: scale(1.25) rotate(3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes window-light {
  0% { opacity: 0; }
  40% { opacity: .2; }
  60% { opacity: .9; }
  70% { opacity: .4; }
  85% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes window-pulse {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px rgba(255,87,34,.8)); }
  50% { opacity: .75; filter: drop-shadow(0 0 12px rgba(255,87,34,1)); }
}

@keyframes roof-drop {
  0% { opacity: 0; transform: translateY(-40px); }
  55% { opacity: 1; transform: translateY(6px); }
  80% { transform: translateY(-2px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes door-in {
  0% { opacity: 0; transform: scale(0); }
  60% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes crane-entrance {
  0% { opacity: 0; transform: translateX(-80px) rotate(-20deg); }
  60% { opacity: 1; transform: translateX(8px) rotate(5deg); }
  80% { transform: translateX(-3px) rotate(-2deg); }
  100% { opacity: 1; transform: translateX(0) rotate(0); }
}

@keyframes crane-swing {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-1.5deg); }
}

@keyframes sun-glow-in {
  0% { opacity: 0; transform: scale(.3); }
  60% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes sun-pulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(255,87,34,.6)); }
  50% { filter: drop-shadow(0 0 35px rgba(255,87,34,.9)); }
}

/* ===== Buttons ===== */
.btn {
  --bg: var(--ink);
  --fg: #ffffff;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
  position: relative; overflow: hidden;
  background: var(--bg); color: var(--fg);
  transition: color .35s var(--ease), transform .25s var(--ease), box-shadow .3s var(--ease);
  isolation: isolate;
  white-space: nowrap;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform .45s var(--ease);
  z-index: -1;
}
.btn:hover { color: #fff; box-shadow: 0 10px 26px rgba(255,87,34,.42); }
.btn:hover::before { transform: translateY(0); }
.btn:hover .arrow { transform: translateX(3px); }
.btn .arrow { transition: transform .35s var(--ease); display: inline-block; font-weight: 700; }
.btn-outline { --bg: transparent; --fg: var(--ink); border: 2px solid var(--ink); }
.btn-outline::before { background: var(--ink); }
.btn-outline:hover { color: #fff; border-color: var(--ink); }
.btn-light { --bg: #ffffff; --fg: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 10.5px; }
.btn-accent { --bg: var(--accent); --fg: #fff; }
.btn-accent::before { background: var(--ink); }

@media (max-width: 480px) {
  .btn { padding: 12px 18px; font-size: 10.5px; }
}

/* ===== Marquee ===== */
.marquee {
  overflow: hidden; white-space: nowrap;
  padding: 16px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg);
}
.marquee-track { display: inline-flex; animation: marquee 50s linear infinite; gap: 40px; }
.marquee-track > span {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.6vw, 2.8rem);
  font-weight: 400; letter-spacing: -0.025em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 40px;
  line-height: 1;
}
.marquee-track > span::before {
  content: '✺'; color: var(--accent); font-size: .7em;
}
.marquee-track em { color: var(--accent); font-style: italic; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 600px) {
  .marquee { padding: 12px 0; }
  .marquee-track { animation-duration: 35s; gap: 28px; }
  .marquee-track > span { gap: 28px; }
}

/* ===== Section heads ===== */
.section-head {
  margin-bottom: 44px;
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px;
  align-items: end;
}
.section-head.center { text-align: center; grid-template-columns: 1fr; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head h2 { margin: 0; }
.section-head .lead { font-size: .98rem; max-width: 520px; color: var(--ink-soft); margin: 0; }
@media (max-width: 1024px) {
  .section-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }
}

.split-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.split-head h2 { margin-bottom: 0; }

/* ===== Section mark ===== */
.section-mark {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .14em; font-weight: 600;
  padding-bottom: 14px; margin-bottom: 22px;
  border-bottom: 2px solid var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 6px;
}
.section-mark .count { color: var(--accent); font-weight: 700; }
@media (max-width: 480px) { .section-mark { font-size: 10px; padding-bottom: 10px; margin-bottom: 16px; } }

/* ===== Works — Bento ===== */
.works-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.works-bento .work-card { grid-column: span 4; }
.works-bento .work-card:nth-child(6n+1) { grid-column: span 7; }
.works-bento .work-card:nth-child(6n+2) { grid-column: span 5; }
.works-bento .work-card:nth-child(6n+3) { grid-column: span 5; }
.works-bento .work-card:nth-child(6n+4) { grid-column: span 7; }
.works-bento .work-card:nth-child(6n+5) { grid-column: span 6; }
.works-bento .work-card:nth-child(6n+6) { grid-column: span 6; }
@media (max-width: 1024px) {
  .works-bento .work-card, .works-bento .work-card:nth-child(n) { grid-column: span 6; }
}
@media (max-width: 600px) {
  .works-bento { gap: 22px; }
  .works-bento .work-card, .works-bento .work-card:nth-child(n) { grid-column: span 12; }
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px 22px;
}
@media (max-width: 1024px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .works-grid { grid-template-columns: 1fr; gap: 24px; } }

.work-card {
  position: relative; display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}
.work-card .img {
  aspect-ratio: 4/3;
  overflow: hidden; background: var(--bg-soft);
  position: relative;
  border-radius: var(--radius-lg);
}
.works-bento .work-card:nth-child(6n+1) .img,
.works-bento .work-card:nth-child(6n+4) .img { aspect-ratio: 16/10; }
@media (max-width: 1024px) {
  .works-bento .work-card .img,
  .works-bento .work-card:nth-child(n) .img { aspect-ratio: 4/3 !important; }
}

.work-card .img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.work-card:hover .img img { transform: scale(1.05); }
.work-card .img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(28,23,18,.55) 100%);
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none;
}
.work-card:hover .img::after { opacity: 1; }

.work-card .placeholder {
  width: 100%; height: 100%; position: relative;
  background: linear-gradient(135deg, #d4cec0 0%, #b8aa93 100%);
  overflow: hidden;
}
.work-card .placeholder::before {
  content: ''; position: absolute; inset: 15%;
  background:
    linear-gradient(to bottom, transparent 48%, rgba(28,23,18,.1) 48%, rgba(28,23,18,.1) 52%, transparent 52%),
    linear-gradient(to right, transparent 48%, rgba(28,23,18,.1) 48%, rgba(28,23,18,.1) 52%, transparent 52%);
  background-size: 36px 36px;
}
.work-card .placeholder::after {
  content: '✦'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 40px; color: rgba(28,23,18,.2); font-family: var(--serif);
}

.work-card .overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 20px; color: var(--cream); z-index: 2;
  transform: translateY(12px);
  opacity: 0;
  transition: all .4s var(--ease);
}
.work-card:hover .overlay { transform: translateY(0); opacity: 1; }
.work-card .overlay .idx { font-family: var(--mono); font-size: 10.5px; opacity: .75; }
.work-card .overlay h3 { color: var(--cream); margin: 4px 0 0; font-weight: 400; font-size: 1.15rem; }

.work-card .content {
  padding: 14px 4px 2px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
}
.work-card .content .info h3 { margin: 6px 0 6px; font-weight: 500; font-size: 1.08rem; color: var(--ink); }
.work-card .content .cat { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 700; }
.work-card .content .meta { font-size: 12px; color: var(--ink-soft); display: flex; gap: 8px; flex-wrap: wrap; font-weight: 500; }
.work-card .content .meta span + span::before { content: '·'; margin-right: 8px; }
.work-card .content .arrow-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: all .35s var(--ease);
  flex-shrink: 0;
}
.work-card:hover .content .arrow-btn { background: var(--accent); transform: rotate(-45deg); }

/* ===== Filter bar ===== */
.filter-bar {
  display: flex; gap: 0; flex-wrap: nowrap; margin-bottom: 36px;
  border-bottom: 1px solid var(--line-strong);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar a {
  padding: 12px 18px; font-size: 12.5px; font-weight: 600;
  position: relative;
  white-space: nowrap;
  transition: color .25s;
  color: var(--ink);
}
.filter-bar a.active { color: var(--accent); }
.filter-bar a.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 3px; background: var(--accent);
}
.filter-bar a:hover { color: var(--accent-2); }
@media (max-width: 600px) {
  .filter-bar a { padding: 10px 14px; font-size: 12px; }
  .filter-bar { margin-bottom: 24px; }
}

/* ===== Services rows ===== */
.services-list { border-top: 1px solid var(--line-strong); }
.service-row {
  display: grid; grid-template-columns: 56px 1fr auto 44px;
  gap: 22px; align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-strong);
  position: relative; overflow: hidden;
  transition: color .35s;
}
.service-row::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #0f1c2e 0%, #2c4a6d 100%);
  transform: translateY(100%);
  transition: transform .5s var(--ease);
  z-index: 0;
}
.service-row:hover::before { transform: translateY(0); }
.service-row:hover { color: var(--cream); }
.service-row:hover .service-icon { color: var(--accent-soft); }
.service-row > * { position: relative; z-index: 1; }
.service-row .idx { font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-weight: 500; }
.service-row h3 {
  font-size: clamp(1.1rem, 2vw, 1.6rem); margin: 0 0 4px; font-weight: 500;
  transition: transform .4s var(--ease);
}
.service-row:hover h3 { transform: translateX(10px); }
.service-row p {
  font-size: .88rem; max-width: 420px; margin: 0; color: var(--muted);
  opacity: 0; transform: translateY(6px);
  transition: all .4s var(--ease);
  max-height: 0;
}
.service-row:hover p { opacity: 1; transform: translateY(0); color: rgba(250,246,236,.6); max-height: 200px; }
.service-row .service-icon {
  width: 38px; height: 38px; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  transition: all .4s var(--ease);
}
.service-row .arrow-ico {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  transition: all .4s var(--ease);
}
.service-row:hover .arrow-ico { transform: rotate(-45deg); border-color: var(--accent-soft); color: var(--accent-soft); }
@media (max-width: 768px) {
  .service-row { grid-template-columns: 36px 1fr 36px; gap: 14px; padding: 18px 0; }
  .service-row .service-icon { display: none; }
  .service-row .idx { font-size: 10.5px; }
  .service-row h3 { font-size: 1.08rem; }
  .service-row p { display: block; opacity: 1; max-height: none; color: var(--muted); margin-top: 6px; font-size: .85rem; max-width: none; }
  .service-row:hover p { color: rgba(255,255,255,.72); }
}
@media (max-width: 480px) {
  .service-row { grid-template-columns: 28px 1fr 30px; gap: 10px; padding: 16px 0; }
  .service-row .arrow-ico { width: 30px; height: 30px; }
}

/* ===== About ===== */
.about-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.about-wrap.about-wrap--single { display: block; max-width: 900px; }
@media (max-width: 1024px) { .about-wrap { grid-template-columns: 1fr; gap: 36px; } }

.about-visual {
  position: relative; aspect-ratio: 5/6;
  overflow: hidden; border-radius: var(--radius-lg);
  background: var(--bg-soft);
  max-height: 560px;
}
.about-visual::before {
  content: ''; position: absolute; inset: 16px;
  border: 1px solid var(--accent); opacity: .45; z-index: 2; pointer-events: none;
}
.about-visual > * { position: relative; z-index: 1; height: 100%; width: 100%; }
@media (max-width: 1024px) {
  .about-visual {
    aspect-ratio: 4/3;
    max-width: 420px;
    max-height: 320px;
    margin: 0 auto;
  }
}
@media (max-width: 768px) {
  .about-visual { display: none; }
}

.stats-inline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 20px;
  margin-top: 30px;
  border-top: 1px solid var(--line-strong);
  padding-top: 28px;
}
@media (max-width: 1024px) { .stats-inline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .stats-inline { grid-template-columns: 1fr; gap: 20px; } }
.stats-inline .num {
  font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 500; color: var(--ink); line-height: 1;
  letter-spacing: -0.035em;
}
.stats-inline .num em { font-style: italic; color: var(--accent); font-weight: 600; }
.stats-inline .lbl {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 8px; font-weight: 700;
}

/* ===== Counter section ===== */
.counter-section {
  background: linear-gradient(135deg, #050c17 0%, #0a1628 50%, #1e3a5f 100%);
  color: #ffffff;
  padding: 72px 0;
  position: relative; overflow: hidden;
}
.counter-section::before {
  content: ''; position: absolute; inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 80px 80px;
}
@media (max-width: 768px) { .counter-section { padding: 48px 0; } .counter-section::before { background-size: 50px 50px; } }
.counter-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  position: relative;
}
@media (max-width: 768px) { .counter-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }
@media (max-width: 420px) { .counter-grid { grid-template-columns: 1fr; gap: 24px; } }
.counter { padding: 0 20px; border-left: 1px solid rgba(255,255,255,.18); }
.counter:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 768px) {
  .counter { padding: 0; border-left: none; }
}
.counter .num {
  font-family: var(--serif); font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: #ffffff; font-weight: 500; line-height: .95;
  letter-spacing: -0.035em;
  display: block;
}
.counter .num em { font-style: italic; color: var(--accent); font-weight: 600; }
.counter .lbl {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.75); margin-top: 12px; display: block; font-weight: 600;
}

/* ===== Staff ===== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 24px;
}
.staff-grid.three { grid-template-columns: repeat(3, 1fr); }
.staff-grid.staff-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  gap: 30px;
}
@media (max-width: 1100px) { .staff-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .staff-grid,
  .staff-grid.three { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
}
@media (max-width: 420px) {
  .staff-grid,
  .staff-grid.three { grid-template-columns: 1fr; gap: 28px; }
}

.staff-card { text-align: left; position: relative; }
.staff-photo {
  aspect-ratio: 3/4; background: var(--bg-soft);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 14px;
  position: relative;
}
.staff-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(28,23,18,.22) 100%);
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
}
.staff-card:hover .staff-photo::after { opacity: 1; }
.staff-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.staff-card:hover .staff-photo img { transform: scale(1.04); }
.staff-photo .placeholder-face {
  width: 100%; height: 100%;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  padding: 18%;
  color: #ffffff;
}
.staff-photo .placeholder-face svg { width: 100%; height: 100%; max-width: 260px; display: block; }
.staff-card h3 {
  margin: 0 0 3px; font-size: 1.05rem; font-weight: 500;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.staff-card h3 .idx { font-family: var(--mono); font-size: 10.5px; color: var(--muted); font-weight: 500; }
.staff-position {
  color: var(--accent); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 700;
}
.staff-social { margin-top: 10px; display: flex; gap: 8px; }
.staff-social a {
  width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: all .3s var(--ease);
}
.staff-social a:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.staff-social svg { width: 14px; height: 14px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

.form-field { margin-bottom: 18px; position: relative; }
.form-field label {
  display: block; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .14em; color: var(--ink); margin-bottom: 8px; font-weight: 700;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 0 0 12px;
  border: 0; border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-family: inherit; font-size: 1rem;
  color: var(--ink); font-weight: 500;
  transition: border-color .25s;
  -webkit-appearance: none;
  appearance: none;
}
.form-field input:focus, .form-field textarea:focus {
  outline: 0; border-color: var(--accent);
}
.form-field textarea { min-height: 100px; resize: vertical; line-height: 1.5; padding-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

.contact-info {
  list-style: none; padding: 0; margin: 0 0 20px;
  border-top: 1px solid var(--line-strong);
}
.contact-info li {
  display: grid; grid-template-columns: 90px 1fr; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line-strong);
  align-items: baseline;
}
.contact-info strong {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-soft); font-weight: 700;
}
.contact-info .val { font-size: 1rem; color: var(--ink); word-break: break-word; font-weight: 500; }
.contact-info .val a:hover { color: var(--accent); }
@media (max-width: 480px) {
  .contact-info li { grid-template-columns: 80px 1fr; gap: 12px; padding: 14px 0; }
  .contact-info .val { font-size: .9rem; }
}

.alert {
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px;
  font-size: .9rem; border: 1px solid;
}
.alert-success { background: rgba(42,139,84,.08); color: #1a6b3d; border-color: rgba(42,139,84,.3); }
.alert-error { background: rgba(201,62,62,.08); color: #8a1f1f; border-color: rgba(201,62,62,.3); }

.map-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
}
.map-wrap iframe {
  width: 100%; height: 340px; border: 0; display: block;
  filter: grayscale(1) contrast(1.05);
}
@media (max-width: 768px) { .map-wrap iframe { height: 260px; } }

/* ===== Page header ===== */
.page-header {
  padding: calc(var(--nav-h) + 48px) 0 40px;
  position: relative; overflow: hidden;
}
.page-header .page-title-wrap {
  display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: end;
  margin-top: 20px;
}
.page-header h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.6rem); line-height: .98;
  margin: 0; font-weight: 500;
  letter-spacing: -0.045em; color: var(--ink);
}
.page-header .lead { max-width: 380px; font-size: 1rem; color: var(--ink-soft); margin: 0; }
.breadcrumbs { font-family: var(--mono); font-size: 10.5px; color: var(--ink-soft); margin-top: 14px; letter-spacing: .05em; font-weight: 600; }
.breadcrumbs a:hover { color: var(--accent); }
@media (max-width: 1024px) {
  .page-header { padding: calc(var(--nav-h) + 32px) 0 28px; }
  .page-header .page-title-wrap { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
}

/* ===== Work detail ===== */
.work-hero {
  padding: calc(var(--nav-h) + 32px) 0 0;
  position: relative;
}
.work-title-wrap {
  display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: end;
  padding-bottom: 30px;
}
.work-title-wrap h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.8rem); margin: 0;
  font-weight: 400; letter-spacing: -0.035em;
}
@media (max-width: 1024px) { .work-title-wrap { grid-template-columns: 1fr; gap: 12px; padding-bottom: 24px; } }

.work-meta-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 20px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
}
@media (max-width: 768px) { .work-meta-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; padding: 18px 0; } }
@media (max-width: 420px) { .work-meta-grid { grid-template-columns: 1fr; gap: 16px; } }
.work-meta-grid .lbl {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .14em; color: var(--accent); margin-bottom: 8px; font-weight: 700;
}
.work-meta-grid .val { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); font-weight: 500; }

.work-hero-img {
  aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-soft);
}
.work-hero-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .work-hero-img { aspect-ratio: 4/3; } }

.work-gallery {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px;
}
.work-gallery .g-img {
  grid-column: span 6;
  aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-soft);
  position: relative; display: block;
}
.work-gallery .g-img:nth-child(3n+1) { grid-column: span 12; aspect-ratio: 16/9; }
.work-gallery .g-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.work-gallery .g-img:hover img { transform: scale(1.03); }
@media (max-width: 700px) { .work-gallery .g-img, .work-gallery .g-img:nth-child(n) { grid-column: span 12; aspect-ratio: 4/3; } }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .06s; }
.reveal-d2 { transition-delay: .12s; }
.reveal-d3 { transition-delay: .18s; }
.reveal-d4 { transition-delay: .24s; }

.img-reveal { position: relative; overflow: hidden; }
.img-reveal::after {
  content: ''; position: absolute; inset: 0;
  background: var(--bg);
  transform: translateY(0);
  transition: transform 1s var(--ease-out);
  z-index: 2;
}
.img-reveal.in::after { transform: translateY(-100%); }

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(180deg, #050c17 0%, #020711 100%);
  color: #ffffff;
  padding: 60px 0 calc(24px + env(safe-area-inset-bottom, 0));
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 70px 70px;
  pointer-events: none;
}
.site-footer::after {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,87,34,.22) 0%, transparent 70%);
  pointer-events: none;
}
@media (max-width: 768px) { .site-footer { padding: 48px 0 20px; } .site-footer::before { background-size: 50px 50px; } }

.footer-big {
  font-family: var(--serif); font-size: clamp(1.8rem, 5.5vw, 4.6rem);
  line-height: .95; font-weight: 500; letter-spacing: -0.04em;
  margin: 0 0 44px; color: #ffffff;
  position: relative;
}
.footer-big em { color: var(--accent); font-style: italic; font-weight: 600; }
.footer-big a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.footer-big a:hover { color: #ffffff; }

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px;
  padding-top: 36px; border-top: 1px solid rgba(255,255,255,.25);
  margin-bottom: 30px;
  position: relative;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; } .footer-grid > :first-child { grid-column: 1 / -1; margin-bottom: 8px; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 26px; } .footer-grid > :first-child { grid-column: auto; } }
.site-footer h4 {
  color: var(--accent); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .2em; margin-bottom: 16px; font-family: var(--sans); font-weight: 700;
  opacity: 1;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.88); font-size: .9rem; font-weight: 500; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: rgba(255,255,255,.65); font-size: 10.5px; font-family: var(--mono);
  letter-spacing: .05em; font-weight: 500;
}
.social-row { display: flex; gap: 8px; margin-top: 16px; }
.social-row a {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .3s var(--ease);
  color: #ffffff;
}
.social-row a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.social-row svg { width: 13px; height: 13px; }

/* ===== Back to top ===== */
.back-top {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0));
  right: calc(20px + env(safe-area-inset-right, 0));
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
  transform: translateY(80px); opacity: 0;
  transition: all .35s var(--ease);
  box-shadow: var(--shadow);
  -webkit-appearance: none;
  appearance: none;
}
.back-top.visible { transform: translateY(0); opacity: 1; }
.back-top:hover { background: var(--accent); }

/* ===== Pagination ===== */
.pagination {
  display: flex; justify-content: center; gap: 6px; margin-top: 36px;
  font-family: var(--mono); font-size: 11.5px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 999px;
  transition: all .25s var(--ease);
}
.pagination a:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.pagination .current { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); font-family: var(--serif); font-size: 1.15rem; }

.text-center { text-align: center; }
.mt-1 { margin-top: 14px; } .mt-2 { margin-top: 26px; } .mt-3 { margin-top: 36px; }
.mb-0 { margin-bottom: 0 !important; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, #050c17 0%, #0a1628 50%, #1e3a5f 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 64px 36px;
  position: relative; overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,87,34,.38) 0%, transparent 48%),
    radial-gradient(circle at 85% 70%, rgba(30,58,95,.6) 0%, transparent 55%),
    radial-gradient(circle at 50% 110%, rgba(255,138,90,.3) 0%, transparent 55%);
}
.cta-band h2 { color: #ffffff; font-size: clamp(1.7rem, 4vw, 3.2rem); margin: 0 auto 18px; max-width: 740px; font-weight: 500; position: relative; }
.cta-band h2 em { color: var(--accent); font-style: italic; font-weight: 600; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 580px; margin: 0 auto 26px; font-size: 1rem; position: relative; }
.cta-band .btn { position: relative; }
@media (max-width: 600px) { .cta-band { padding: 44px 22px; } }

/* ===== Process — build phases ===== */
.process {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 32px;
}
@media (max-width: 1024px) { .process { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; gap: 22px; } }
.process-step {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  position: relative;
}
.process-step::before {
  content: ''; position: absolute; top: -1px; left: 0; width: 32px; height: 2px;
  background: var(--accent);
}
.process-step .num {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  margin-bottom: 10px; letter-spacing: .05em; font-weight: 500;
}
.process-step .step-visual {
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  border-radius: 10px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.process-step .step-visual svg { width: 100%; height: 100%; display: block; }
.process-step h3 { font-size: 1.1rem; margin: 0 0 6px; font-weight: 500; letter-spacing: -.01em; }
.process-step p { font-size: .86rem; margin: 0; color: var(--muted); line-height: 1.5; }

/* ===== Carousel ===== */
.carousel {
  position: relative;
  width: 100%;
}
.carousel-viewport {
  overflow: hidden;
  margin: 0 calc(var(--gutter) * -1);
  padding: 4px var(--gutter);
}
.carousel-track {
  display: flex;
  gap: 22px;
  transition: transform .6s var(--ease);
  will-change: transform;
  touch-action: pan-y;
}
.carousel-track .work-card {
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;
  margin: 0;
}
@media (max-width: 1100px) {
  .carousel-track .work-card { flex: 0 0 calc((100% - 22px) / 2); }
}
@media (max-width: 640px) {
  .carousel-track { gap: 18px; }
  .carousel-track .work-card { flex: 0 0 100%; }
}
.carousel-track .work-card .img { aspect-ratio: 4/3 !important; }

.carousel-controls {
  display: flex; align-items: center; gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.carousel-nav {
  display: flex; gap: 10px;
}
.carousel-nav button {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .35s var(--ease);
  position: relative; overflow: hidden;
}
.carousel-nav button svg { width: 18px; height: 18px; transition: transform .35s var(--ease); position: relative; z-index: 1; }
.carousel-nav button::before {
  content: ''; position: absolute; inset: 0;
  background: var(--ink);
  transform: scale(0);
  border-radius: 50%;
  transition: transform .4s var(--ease);
}
.carousel-nav button:hover:not(:disabled)::before { transform: scale(1); }
.carousel-nav button:hover:not(:disabled) { color: #fff; border-color: var(--ink); }
.carousel-nav button:hover:not(:disabled) svg { transform: translateX(3px); }
.carousel-nav button[data-prev]:hover:not(:disabled) svg { transform: translateX(-3px); }
.carousel-nav button:disabled { opacity: .28; cursor: not-allowed; }
@media (max-width: 600px) {
  .carousel-nav button { width: 46px; height: 46px; }
}

.carousel-progress {
  flex: 1; min-width: 140px;
  height: 2px;
  background: var(--line-strong);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.carousel-progress-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 33%;
  background: var(--accent);
  transition: width .5s var(--ease);
}
.carousel-counter {
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  font-weight: 600; letter-spacing: .05em;
  white-space: nowrap;
}
.carousel-dots {
  display: flex; gap: 6px; justify-content: center;
  margin-top: 20px;
}
.carousel-dots button {
  width: 8px; height: 8px; padding: 0;
  border-radius: 50%;
  border: 0;
  background: var(--line-strong);
  transition: all .3s var(--ease);
  cursor: pointer;
}
.carousel-dots button.active {
  width: 28px; border-radius: 4px; background: var(--accent);
}

/* ===== Helpers ===== */
.section-alt {
  background: linear-gradient(180deg, #0a1628 0%, #050c17 100%);
  color: #ffffff;
  position: relative;
}
.section-alt::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 90% 10%, rgba(255,87,34,.28), transparent 55%),
    radial-gradient(ellipse 55% 45% at 10% 90%, rgba(61,93,133,.25), transparent 60%);
  pointer-events: none;
}
.section-alt > * { position: relative; }
.section-alt h1, .section-alt h2, .section-alt h3, .section-alt h4 { color: #ffffff; }
.section-alt p, .section-alt .lead { color: rgba(255,255,255,.72); }
.section-alt .section-mark { color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.18); }
.section-alt .section-mark .count { color: var(--accent-soft); }
.section-alt .eyebrow { color: var(--accent-soft); }
.section-alt .eyebrow::before { background: var(--accent-soft); }
.section-alt .btn-outline { --fg: #ffffff; border-color: #ffffff; }
.section-alt .btn-outline::before { background: #ffffff; }
.section-alt .btn-outline:hover { color: var(--ink); }
.section-sage {
  background: linear-gradient(135deg, #0a1628 0%, #050c17 100%);
  color: #ffffff;
}
.section-sage .eyebrow, .section-sage h2, .section-sage h3 { color: #ffffff; }
.section-sage .lead, .section-sage p { color: rgba(255,255,255,.72); }

/* ===== Extra color + animation polish ===== */

/* Animated gradient background on hero grid */
.hero-grid-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 45% 35% at 88% 25%, rgba(255,107,53,.3), transparent 70%),
    radial-gradient(ellipse 55% 45% at 10% 75%, rgba(90,125,158,.3), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(44,74,109,.12), transparent 70%);
  animation: hero-glow 14s ease-in-out infinite alternate;
}
@keyframes hero-glow {
  0% { opacity: .6; transform: translate(0, 0) scale(1); }
  100% { opacity: 1; transform: translate(20px, -10px) scale(1.08); }
}

/* Work cards — stronger border for definition */
.work-card .img {
  box-shadow: inset 0 0 0 1px rgba(5,12,23,.08), 0 2px 14px rgba(5,12,23,.08);
}
.work-card .img img {
  transition: transform .9s var(--ease-out), filter .5s;
}
.work-card:hover .img img { filter: saturate(1.12) brightness(1.02); }

/* Ring around cover on hover */
.work-card::after {
  content: ''; position: absolute; inset: -1px;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow .4s var(--ease);
  pointer-events: none !important;
  z-index: 3;
}
.work-card:hover::after { box-shadow: 0 0 0 2px var(--accent); }

/* Card slide-up on hover */
.work-card { transition: transform .5s var(--ease); }
.work-card:hover { transform: translateY(-5px); }

/* Shiny sweep over arrow button */
.work-card .content .arrow-btn { position: relative; overflow: hidden; }
.work-card .content .arrow-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.work-card:hover .content .arrow-btn::before { transform: translateX(120%); }

/* Eyebrow line grows on hover of section head */
.section-head .eyebrow { transition: color .3s; }
.section-head .eyebrow::before { transition: width .5s var(--ease); }
.section-head:hover .eyebrow::before { width: 40px; }

/* Subtle float on hero visual */
.hero-visual { animation: float-y 9s ease-in-out infinite; }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Window lit pulse (after construction finishes) */
.construct-svg.building .c-window-lit {
  animation: window-light .8s forwards cubic-bezier(.3,1.2,.5,1), lit-pulse 2.8s ease-in-out 5.5s infinite;
  filter: drop-shadow(0 0 6px rgba(255,87,34,.9));
}
@keyframes lit-pulse {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px rgba(255,87,34,.9)); }
  50% { opacity: .65; filter: drop-shadow(0 0 14px rgba(255,87,34,1)); }
}

/* Marquee gradient fade edges */
.marquee { position: relative; }
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px;
  pointer-events: none; z-index: 1;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #0a1628, transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, #0a1628, transparent); }
@media (max-width: 600px) { .marquee::before, .marquee::after { width: 40px; } }

/* Stat number gradient accent */
.stats-inline .num em,
.counter .num em {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* (cleared — final button rules in dark theme block below) */

/* Staff card border animation */
.staff-photo { box-shadow: 0 4px 20px rgba(28,23,18,.05); transition: box-shadow .5s var(--ease); }
.staff-card:hover .staff-photo { box-shadow: 0 18px 50px rgba(28,23,18,.14); }

/* Counter section starry glow */
.counter-section::after {
  content: '';
  position: absolute; top: 20%; left: 10%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,107,53,.25) 0%, transparent 70%);
  pointer-events: none;
  animation: counter-glow 8s ease-in-out infinite alternate;
}
@keyframes counter-glow {
  0% { transform: translate(0,0) scale(1); opacity: .7; }
  100% { transform: translate(120px, -40px) scale(1.4); opacity: 1; }
}

/* Link hover underline growth */
.footer-big a {
  background: linear-gradient(var(--accent-soft), var(--accent-soft)) no-repeat;
  background-size: 100% 1px;
  background-position: 0 95%;
  text-decoration: none;
  transition: background-size .4s var(--ease), color .3s;
}
.footer-big a:hover { background-size: 100% 3px; }

/* Brand mark rotation on hover */
.brand { transition: color .3s; }
.brand-mark svg { transition: transform .7s var(--ease); }
.brand:hover .brand-mark svg { transform: rotate(90deg); }
.brand:hover { color: var(--accent); }

/* Nav toggle smooth spin */
.nav-toggle { transition: background .3s, transform .4s var(--ease); }
.nav-toggle.open { background: var(--accent); transform: rotate(90deg); }

/* Process step visual — gentle hover zoom */
.process-step .step-visual { transition: transform .5s var(--ease), box-shadow .4s; }
.process-step:hover .step-visual { transform: scale(1.02); box-shadow: 0 12px 28px rgba(28,23,18,.1); }

/* Reveal variants */
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all .9s var(--ease-out); }
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all .9s var(--ease-out); }
.reveal-right.in { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(.95); transition: all .9s var(--ease-out); }
.reveal-scale.in { opacity: 1; transform: scale(1); }

/* Focus ring */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Improve placeholder color (cards) */
.work-card .placeholder {
  background: linear-gradient(135deg, #d4c3a0 0%, #b5643c 50%, #8a4626 100%);
}
.work-card .placeholder::before { opacity: .4; }

/* Lang switch underline animation */
.lang-switch a::after {
  content: ''; position: absolute; inset: auto 18% 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s var(--ease);
}
.lang-switch a.active::after { transform: scaleX(1); }
.lang-switch a:hover::after { transform: scaleX(.8); }

/* Back-to-top breathe */
.back-top { animation: btn-breathe 3s ease-in-out infinite; }
.back-top.visible { animation-play-state: running; }
@keyframes btn-breathe {
  0%, 100% { box-shadow: 0 10px 30px rgba(28,23,18,.15); }
  50% { box-shadow: 0 10px 40px rgba(181,100,60,.3); }
}

/* Pulse dot in hero-top */
.hero-top .meta .dot { box-shadow: 0 0 10px var(--accent); }

/* ===== Mobile-specific (iOS/Android) optimizations ===== */

/* Prevent horizontal scroll caused by wide content */
html, body { max-width: 100%; }

/* iOS-safe 100vh using dynamic viewport height */
:root { --vh-full: 100vh; --vh-full: 100dvh; }

/* Tap targets minimum 44×44 (Apple HIG + Material) */
a, button, input[type="submit"], .btn, .lang-switch a, .admin-btn,
.nav-toggle, .back-top, .carousel-nav button,
.staff-social a, .social-row a, .filter-bar a {
  min-height: 38px;
}
@media (max-width: 1024px) {
  .nav-menu a { min-height: 44px; }
}

/* Better focus ring for keyboard users only */
:focus { outline: 0; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Prevent text selection on UI controls */
.btn, .nav-menu a, .lang-switch a, .admin-btn,
.carousel-nav button, .filter-bar a, .back-top,
.hero-title .word { user-select: none; -webkit-user-select: none; }

/* Better scroll on mobile (momentum) */
.carousel-viewport,
.filter-bar,
.work-meta-grid,
.nav-menu.open { -webkit-overflow-scrolling: touch; }

/* Fix iOS form inputs (remove default shadow/appearance) */
input, textarea, select {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  background-clip: padding-box;
}

/* Smooth scroll into view for in-page links */
html { scroll-padding-top: calc(var(--nav-h) + 12px); }

/* Hide the scroll progress on print */
@media print {
  .scroll-progress, .site-header, .back-top, .carousel-controls,
  .carousel-dots, .social-row { display: none !important; }
}

/* Body overscroll color (iOS bounce) */
body { background-color: var(--bg); }

/* Active states for touch */
@media (hover: none) {
  .btn:active { transform: scale(.97); transition: transform .12s ease; }
  .btn:active::before { transform: translateY(0); }
  .btn:active { color: #fff; }
  .work-card:active .img img { transform: scale(1.02); }
  .carousel-nav button:active { background: var(--ink); color: #fff; }
  .lang-switch a:active { color: var(--accent); }
}

/* Increase spacing on iOS Safari address bar collapse/expand */
.hero { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0)); }

/* Increase hit area for small social icons on mobile */
@media (max-width: 600px) {
  .staff-social a { width: 38px; height: 38px; }
  .social-row a { width: 40px; height: 40px; }
  .carousel-nav button { width: 48px; height: 48px; }
  .back-top { width: 48px; height: 48px; }
  .nav-toggle { width: 46px; height: 46px; }
}

/* Fix contact form labels alignment on iOS */
.form-field { -webkit-transform: translateZ(0); }

/* Large touch area for footer links on mobile */
@media (max-width: 768px) {
  .site-footer li { margin-bottom: 12px; }
  .site-footer a { padding: 4px 0; display: inline-block; }
}

/* Prevent iOS pull-to-refresh triggering on navigation */
html { overscroll-behavior-y: contain; }

/* Android Chrome: fix overflow with dynamic viewport */
@supports (height: 100dvh) {
  .nav-menu { height: 100dvh; }
}

/* Sharper images on retina */
img { image-rendering: -webkit-optimize-contrast; }

/* ============================================================
   LIGHT MODE MONOCHROME OVERRIDES — v8
   ============================================================ */

/* Section mark */
.section-mark {
  color: var(--muted);
  border-bottom-color: var(--line-strong);
}
.section-mark .count { color: var(--ink); font-weight: 700; }

/* Eyebrow */
.eyebrow, .tag { color: var(--ink); }
.eyebrow::before { background: var(--ink); }

/* Work cards — clean white */
.work-card .img {
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(10,10,10,.06);
  background: var(--bg-2);
}
.work-card .content .info h3 { color: var(--ink); font-weight: 500; }
.work-card .content .meta { color: var(--muted); }
.work-card .content .cat { color: var(--ink); }
.work-card .content .arrow-btn {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}
.work-card:hover .content .arrow-btn { background: #fff; color: var(--ink); }
.work-card::after { border-radius: var(--radius-lg); }
.work-card:hover::after { box-shadow: 0 0 0 2px var(--ink); }

/* Buttons — solid black primary */
.btn {
  background: var(--ink) !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 0;
  box-shadow: 0 6px 18px rgba(10,10,10,.15);
  font-weight: 700;
}
.btn::before { background: #ffffff !important; }
.btn:hover { color: var(--ink) !important; box-shadow: 0 8px 22px rgba(10,10,10,.25); }
.btn:hover::before { transform: translateY(0); }

.btn-outline {
  background: transparent !important;
  background-image: none !important;
  border: 2px solid var(--ink) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  font-weight: 700;
}
.btn-outline::before { background: var(--ink) !important; }
.btn-outline:hover { color: #fff !important; border-color: var(--ink) !important; }

.btn-light {
  background: var(--ink) !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 0;
  box-shadow: 0 6px 18px rgba(10,10,10,.15);
}
.btn-light::before { background: #ffffff !important; }
.btn-light:hover { color: var(--ink) !important; }

/* Mobile button polish */
@media (max-width: 600px) {
  .cta-cluster { width: 100%; }
  .cta-cluster .btn { flex: 1 1 auto; min-width: 140px; justify-content: center; padding: 13px 18px; font-size: 11px; letter-spacing: .08em; }
}

/* Pointer events for mobile */
.btn, .admin-btn, .nav-toggle, .lang-switch a, .nav-menu a,
.carousel-nav button, .carousel-dots button, .filter-bar a,
.work-card, .staff-card, .staff-social a, .social-row a,
.back-top, .pagination a, .service-row, button[type], input, textarea, select,
a[href], .auth-submit, .auth-toggle-pass {
  pointer-events: auto !important;
  position: relative;
}

/* Decorative pseudo-elements — never block clicks */
body::before, body::after,
.hero-grid-bg, .hero-grid-bg::after,
.work-card::after, .work-card .img::after,
.staff-photo::after, .img-reveal::after,
.cta-band::before, .section-alt::before,
.counter-section::before, .counter-section::after,
.marquee::before, .marquee::after,
.site-footer::before, .site-footer::after {
  pointer-events: none !important;
}

@media (hover: none) {
  body::before { display: none; }
}

/* Filter bar */
.filter-bar { border-bottom-color: var(--line-strong); }
.filter-bar a { color: var(--muted); }
.filter-bar a:hover { color: var(--ink); }
.filter-bar a.active { color: var(--ink); }
.filter-bar a.active::after { background: var(--ink); }

/* Marquee */
.marquee {
  background: var(--bg);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.marquee-track > span { color: var(--ink); }
.marquee-track > span::before { color: var(--ink); }
.marquee-track em { color: var(--muted); }
.marquee::before { background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { background: linear-gradient(-90deg, var(--bg), transparent); }

/* Services list */
.services-list { border-top-color: var(--line-strong); }
.service-row {
  border-bottom-color: var(--line-strong);
  color: var(--ink);
}
.service-row h3 { color: var(--ink); }
.service-row .idx { color: var(--muted); }
.service-row p { color: var(--muted); }
.service-row::before {
  background: var(--ink);
}
.service-row:hover { color: #fff; }
.service-row:hover h3 { color: #fff; }
.service-row:hover p { color: rgba(255,255,255,.7); }
.service-row:hover .idx { color: rgba(255,255,255,.6); }
.service-row:hover .arrow-ico { border-color: #fff; color: #fff; }

/* Process steps — clean white cards */
.process-step {
  padding: 26px;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all .35s var(--ease);
  box-shadow: 0 2px 10px rgba(10,10,10,.04);
}
.process-step:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(10,10,10,.1);
}
.process-step::before { top: 0; left: 26px; width: 34px; background: var(--ink); }
.process-step h3 { color: var(--ink); }
.process-step p { color: var(--muted); }
.process-step .num { color: var(--muted); }
.process-step .step-visual {
  background: var(--bg-2);
  border: 1px solid var(--line);
}

/* Section alt — light gray */
.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.section-alt::before { display: none; }
.section-alt h1, .section-alt h2, .section-alt h3, .section-alt h4 { color: var(--ink); }
.section-alt p, .section-alt .lead { color: var(--ink-soft); }
.section-alt .section-mark { color: var(--muted); border-color: var(--line-strong); }
.section-alt .section-mark .count { color: var(--ink); }
.section-alt .eyebrow { color: var(--ink); }
.section-alt .eyebrow::before { background: var(--ink); }
.section-alt .btn-outline { border-color: var(--ink); color: var(--ink); }
.section-alt .btn-outline::before { background: var(--ink); }
.section-alt .btn-outline:hover { color: #fff; }

/* Counter section — deep black with white text */
.counter-section {
  background: var(--ink);
  color: #fff;
  border-top: 0;
  border-bottom: 0;
}
.counter-section::before {
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
}
.counter-section::after {
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
}
.counter { border-left-color: rgba(255,255,255,.15); }
.counter .num { color: #fff; }
.counter .num em { color: #fff; }
.counter .lbl { color: rgba(255,255,255,.65); }

/* Staff */
.staff-photo {
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.staff-photo .placeholder-face {
  background: var(--ink);
  color: #ffffff;
}
.staff-card h3 { color: var(--ink); }
.staff-card h3 .idx { color: var(--muted); }
.staff-position { color: var(--ink); font-weight: 700; }
.staff-social a {
  border-color: var(--line-strong);
  color: var(--ink);
}
.staff-social a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Stats inline */
.stats-inline { border-top-color: var(--line-strong); }
.stats-inline .num { color: var(--ink); }
.stats-inline .num em { color: var(--ink); font-weight: 600; }
.stats-inline .lbl { color: var(--muted); }

/* Contact info */
.contact-info { border-top-color: var(--line-strong); }
.contact-info li { border-bottom-color: var(--line-strong); }
.contact-info strong { color: var(--muted); }
.contact-info .val { color: var(--ink); }

/* Form fields — clean light inputs */
.form-field label { color: var(--muted); }
.form-field input,
.form-field textarea,
.form-field select {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 10px;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted-soft); }
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10,10,10,.05);
}
.alert-success { background: rgba(16,185,129,.08); color: #047857; border-color: rgba(16,185,129,.3); }
.alert-error { background: rgba(239,68,68,.08); color: #b91c1c; border-color: rgba(239,68,68,.3); }
.map-wrap { border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(10,10,10,.06); }

/* Page header */
.page-header h1 { color: var(--ink); }
.page-header .lead { color: var(--ink-soft); }
.breadcrumbs { color: var(--muted); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--ink); }

/* Work detail meta */
.work-meta-grid { border-color: var(--line-strong); }
.work-meta-grid .lbl { color: var(--muted); font-weight: 700; }
.work-meta-grid .val { color: var(--ink); }

/* Carousel controls */
.carousel-nav button {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.carousel-nav button::before { background: var(--ink); }
.carousel-nav button:hover:not(:disabled) { color: #fff; border-color: var(--ink); }
.carousel-nav button:hover:not(:disabled)::before { transform: scale(1); }
.carousel-progress { background: var(--line-strong); }
.carousel-progress-bar { background: var(--ink); }
.carousel-counter { color: var(--ink); }
.carousel-dots button { background: var(--line-strong); }
.carousel-dots button.active { background: var(--ink); }

/* Scroll progress */
.scroll-progress { height: 2px; background: var(--ink); box-shadow: none; }

/* Back to top */
.back-top { background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(10,10,10,.2); }
.back-top:hover { background: #fff; color: var(--ink); }

/* Pagination */
.pagination a, .pagination span {
  border-color: var(--line-strong);
  color: var(--ink);
}
.pagination a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Empty state */
.empty { color: var(--muted); }

/* Hero title italic em — underline subtle */
.hero-title em { color: var(--ink); font-style: italic; }
.hero-title em::after { background: var(--ink); opacity: .12; height: 6px; }

/* Hero grid bg */
.hero-grid-bg {
  background-image:
    linear-gradient(rgba(10,10,10,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,10,.05) 1px, transparent 1px);
}

/* Nav menu items */
.nav-menu a { color: var(--ink); }
.nav-menu a:hover, .nav-menu a.active { color: var(--ink); font-weight: 700; }
.nav-menu a.active::after { background: var(--ink); }

/* Lang switch */
.lang-switch a { color: var(--muted); }
.lang-switch a.active { color: var(--ink); }
.lang-switch a.active::after { background: var(--ink); }

/* Nav toggle */
.nav-toggle {
  background: var(--ink);
  color: #fff;
  border: 0;
}
.nav-toggle:hover, .nav-toggle.open { background: var(--ink-2); }

/* Mobile nav menu — keep dark */
@media (max-width: 1024px) {
  .nav-menu {
    background: var(--ink);
    color: #fff;
  }
  .nav-menu a { color: #fff; }
  .nav-menu a:hover, .nav-menu a.active { color: #fff; }
}

/* Admin button */
.admin-btn {
  background: var(--ink) !important;
  color: #fff !important;
  border: 1px solid var(--ink) !important;
  backdrop-filter: none;
}
.admin-btn::before { background: #fff !important; }
.admin-btn:hover { color: var(--ink) !important; }
.admin-btn svg { color: currentColor; }

/* Hero top meta */
.hero-top .meta { color: var(--ink-soft); }
.hero-top .meta .dot { background: var(--ink); box-shadow: 0 0 8px rgba(10,10,10,.4); }

/* Footer — stays dark */
.site-footer {
  background: var(--ink);
  color: #fff;
}
.site-footer::before {
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
}
.site-footer::after { display: none; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: rgba(255,255,255,.55); }
.footer-big { color: #fff; }
.footer-big em { color: rgba(255,255,255,.85); }
.footer-big a { color: #fff; text-decoration-color: rgba(255,255,255,.5); }
.footer-big a:hover { color: #fff; text-decoration-color: #fff; }
.site-footer h4 { color: rgba(255,255,255,.6); }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.footer-bottom { color: rgba(255,255,255,.45); border-top-color: rgba(255,255,255,.1); }
.social-row a { border-color: rgba(255,255,255,.2); color: #fff; }
.social-row a:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* CTA band — stays dark for contrast */
.cta-band {
  background: var(--ink);
  color: #fff;
}
.cta-band::before { display: none; }
.cta-band h2 { color: #fff; }
.cta-band h2 em { color: rgba(255,255,255,.75); }
.cta-band p { color: rgba(255,255,255,.75); }
.cta-band .btn-light { background: #fff !important; color: var(--ink) !important; }
.cta-band .btn-light::before { background: var(--accent-soft) !important; }
.cta-band .btn-light:hover { color: var(--ink) !important; }
.cta-band .eyebrow { color: rgba(255,255,255,.6); }
.cta-band .eyebrow::before { background: rgba(255,255,255,.7); }

/* Split head */
.split-head h2 { color: var(--ink); }

/* Card hover */
.work-card { transition: transform .5s var(--ease); }
.work-card:hover { transform: translateY(-5px); }
.work-card:hover .img img { filter: none; }
