:root {
  --ink: #141f26;
  --ink-soft: #2a3d4a;
  --paper: #ece6d8;
  --paper-2: #ddd4c2;
  --steel: #4a6270;
  --brass: #c4883a;
  --brass-soft: #e0b06a;
  --sage: #5d7a56;
  --line: rgba(20, 31, 38, 0.12);
  --line-lt: rgba(236, 230, 216, 0.15);
  --shadow: 0 24px 60px rgba(10, 16, 20, 0.22);
  --ease: cubic-bezier(0.16, 0.8, 0.24, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.mono {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* ===== progress rail ===== */
.progress-rail {
  position: fixed;
  left: clamp(12px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.progress-rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.35;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.progress-rail a.active { opacity: 1; transform: translateX(4px); }

.progress-rail .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease-bounce);
}

.progress-rail a.active .dot {
  background: var(--brass);
  border-color: var(--brass);
  transform: scale(1.3);
}

.progress-rail span:last-child {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  display: none;
}

@media (min-width: 1100px) {
  .progress-rail span:last-child { display: block; }
}

@media (max-width: 760px) {
  .progress-rail { display: none; }
}

/* ===== header ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
}

header * { pointer-events: auto; }

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.brand .mark { width: 20px; height: 20px; flex-shrink: 0; }
.brand .mark svg { width: 100%; height: 100%; }

nav ul { display: flex; gap: 26px; list-style: none; }

nav a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.3s;
}

nav a:hover { opacity: 1; }

.nav-cta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid currentColor;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.nav-cta:hover { background: #fff; color: var(--ink); }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.35s;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 860px) {
  header { mix-blend-mode: normal; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
  nav ul {
    display: none;
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 28px clamp(20px, 4vw, 40px);
    gap: 20px;
    border-bottom: 1px solid var(--line);
  }
  nav ul.open { display: flex; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
}

.btn {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s var(--ease);
  border: none;
  cursor: pointer;
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ===== SECTION 01: HERO — clip-path reveal + floating nodes ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  position: relative;
  overflow: hidden;
}

.hero-bg-num {
  position: absolute;
  font-family: "Fraunces", serif;
  font-size: clamp(12rem, 28vw, 22rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(20, 31, 38, 0.06);
  top: 50%;
  left: -2%;
  transform: translateY(-50%);
  line-height: 0.85;
  pointer-events: none;
  user-select: none;
}

.hero-left {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(100px, 14vh, 160px) clamp(20px, 5vw, 60px) clamp(40px, 6vh, 60px);
  position: relative;
  z-index: 2;
}

.hero-left .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  overflow: hidden;
}

.hero-left .tag span {
  display: inline-block;
  transform: translateY(110%);
  animation: slide-up 0.8s var(--ease) forwards;
}

.hero-left .tag span:nth-child(2) { animation-delay: 0.08s; }

@keyframes slide-up {
  to { transform: translateY(0); }
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.02;
  margin-bottom: 24px;
}

.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero h1 .word-inner {
  display: inline-block;
  transform: translateY(105%);
  animation: slide-up 0.9s var(--ease) forwards;
}

.hero h1 .word:nth-child(1) .word-inner { animation-delay: 0.15s; }
.hero h1 .word:nth-child(2) .word-inner { animation-delay: 0.22s; }
.hero h1 .word:nth-child(3) .word-inner { animation-delay: 0.29s; }
.hero h1 .word:nth-child(4) .word-inner { animation-delay: 0.36s; }
.hero h1 .word:nth-child(5) .word-inner { animation-delay: 0.43s; }
.hero h1 .word:nth-child(6) .word-inner { animation-delay: 0.5s; }

.hero h1 em {
  font-style: italic;
  color: var(--brass);
}

.hero-desc {
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateX(-30px);
  animation: fade-slide-x 1s var(--ease) 0.55s forwards;
}

@keyframes fade-slide-x {
  to { opacity: 1; transform: translateX(0); }
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-in 0.8s var(--ease) 0.75s forwards;
}

@keyframes fade-in { to { opacity: 1; } }

.hero-right {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  transform: scale(1.15);
  animation: hero-zoom 1.8s var(--ease) forwards;
}

@keyframes hero-zoom {
  to { transform: scale(1); }
}

.hero-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-node {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--brass);
  border-radius: 50%;
  opacity: 0;
  animation: node-pop 0.5s var(--ease-bounce) forwards;
}

.hero-node::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  opacity: 0.4;
  animation: node-ring 2s ease-out infinite;
}

@keyframes node-pop {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes node-ring {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}

.hero-node:nth-child(1) { top: 18%; left: 25%; animation-delay: 0.9s; }
.hero-node:nth-child(2) { top: 35%; left: 55%; animation-delay: 1.1s; }
.hero-node:nth-child(3) { top: 60%; left: 30%; animation-delay: 1.3s; }
.hero-node:nth-child(4) { top: 75%; left: 65%; animation-delay: 1.5s; }
.hero-node:nth-child(5) { top: 45%; left: 80%; animation-delay: 1.7s; }

.hero-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-soft), transparent);
  transform-origin: left center;
  transform: scaleX(0);
  animation: line-grow 1.2s var(--ease) forwards;
}

.hero-line:nth-child(6) { top: 26%; left: 25%; width: 30%; animation-delay: 1s; }
.hero-line:nth-child(7) { top: 42%; left: 40%; width: 40%; animation-delay: 1.2s; }
.hero-line:nth-child(8) { top: 68%; left: 30%; width: 35%; animation-delay: 1.4s; }

@keyframes line-grow { to { transform: scaleX(1); } }

.hero-stat-bar {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(20, 31, 38, 0.92);
  color: var(--paper);
  z-index: 3;
}

.hero-stat-bar div {
  padding: 22px 28px;
  border-right: 1px solid var(--line-lt);
  opacity: 0;
  transform: translateY(20px);
  animation: stat-rise 0.7s var(--ease) forwards;
}

.hero-stat-bar div:nth-child(1) { animation-delay: 1s; }
.hero-stat-bar div:nth-child(2) { animation-delay: 1.15s; }
.hero-stat-bar div:nth-child(3) { animation-delay: 1.3s; border-right: none; }

@keyframes stat-rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-stat-bar .num {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--brass-soft);
}

.hero-stat-bar .lbl {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aabb4;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: auto;
  }

  .hero-left {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-right {
    grid-column: 1;
    grid-row: 2;
    height: 45vh;
    min-height: 280px;
  }

  .hero-right img { clip-path: none; }

  .hero-stat-bar {
    grid-column: 1;
    grid-row: 3;
  }
}

/* ===== SECTION 02: APPROACH — step selector + morphing panel ===== */
.section-approach {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 12vh, 140px) 0;
  position: relative;
  overflow: hidden;
}

.section-approach::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid var(--line-lt);
  top: -200px;
  right: -200px;
  opacity: 0.3;
  animation: orbit-spin 40s linear infinite;
}

@keyframes orbit-spin { to { transform: rotate(360deg); } }

.approach-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.approach-layout h2 {
  color: var(--paper);
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.08;
  margin-bottom: 20px;
}

.approach-layout .lead { color: #a8b8c0; max-width: 48ch; }

.step-dial {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 40px;
}

.step-btn {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  cursor: pointer;
  text-align: left;
  color: #7a919c;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease-bounce);
  font-family: inherit;
}

.step-btn:hover { color: var(--paper); transform: translateX(6px); }

.step-btn.active {
  border-left-color: var(--brass);
  background: rgba(196, 136, 58, 0.08);
  color: var(--paper);
}

.step-btn .num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--brass-soft);
}

.step-btn .label {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.step-panel {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line-lt);
  overflow: hidden;
}

.step-panel-inner {
  position: absolute;
  inset: 0;
  padding: clamp(30px, 4vw, 50px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
}

.step-panel-inner.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.step-panel-inner .big-num {
  position: absolute;
  top: 20px;
  right: 30px;
  font-family: "Fraunces", serif;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 700;
  color: rgba(236, 230, 216, 0.04);
  line-height: 1;
}

.step-panel-inner h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--paper);
  margin-bottom: 12px;
}

.step-panel-inner p { color: #a8b8c0; max-width: 40ch; font-size: 1rem; }

.step-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--brass);
  width: 0;
  transition: width 0.1s linear;
}

@media (max-width: 860px) {
  .approach-layout { grid-template-columns: 1fr; }
  .step-panel { min-height: 320px; }
}

/* ===== SECTION 03: GALLERY — horizontal film strip ===== */
.section-gallery {
  padding: clamp(80px, 12vh, 130px) 0;
  overflow: hidden;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.gallery-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  max-width: 14ch;
  line-height: 1.05;
}

.film-strip {
  display: flex;
  gap: 20px;
  padding: 0 clamp(20px, 4vw, 40px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.film-strip::-webkit-scrollbar { display: none; }
.film-strip.dragging { cursor: grabbing; scroll-snap-type: none; }

.film-frame {
  flex: 0 0 clamp(280px, 38vw, 420px);
  scroll-snap-align: center;
  position: relative;
  transform: rotate(var(--tilt, 0deg)) translateY(var(--lift, 20px));
  opacity: 0;
  transition: transform 0.7s var(--ease-bounce), opacity 0.6s var(--ease), box-shadow 0.4s;
}

.film-frame.in-view {
  opacity: 1;
  --lift: 0px;
}

.film-frame:nth-child(odd) { --tilt: -1.5deg; }
.film-frame:nth-child(even) { --tilt: 1.2deg; }

.film-frame:hover {
  --tilt: 0deg;
  transform: rotate(0deg) translateY(-8px) scale(1.03);
  z-index: 2;
}

.film-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 8px solid #fff;
  box-shadow: 0 8px 30px rgba(20, 31, 38, 0.15);
}

.film-frame figcaption {
  margin-top: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  transform: translateX(8px);
  transition: transform 0.4s var(--ease);
}

.film-frame:hover figcaption { transform: translateX(0); color: var(--brass); }

.film-hint {
  text-align: center;
  margin-top: 30px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--steel);
  animation: hint-pulse 2s ease-in-out infinite;
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ===== SECTION 04: SERVICES — bento grid with unique hovers ===== */
.section-services {
  padding: clamp(80px, 12vh, 130px) 0;
  background: var(--paper-2);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 12px;
  margin-top: 50px;
}

.bento-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.4s;
}

.bento-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.bento-card:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.bento-card:nth-child(2) { grid-column: span 5; }
.bento-card:nth-child(3) { grid-column: span 5; }
.bento-card:nth-child(4) { grid-column: span 4; }
.bento-card:nth-child(5) { grid-column: span 4; }
.bento-card:nth-child(6) { grid-column: span 4; }

.bento-card .idx {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  color: var(--brass);
  margin-bottom: 16px;
}

.bento-card h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 10px;
}

.bento-card p { color: var(--ink-soft); font-size: 0.9rem; }

.bento-card ul {
  list-style: none;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--steel);
}

.bento-card ul li {
  padding: 4px 0;
  border-top: 1px dashed var(--line);
}

/* card 1: diagonal wipe */
.bento-card:nth-child(1)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-101%) skewX(-8deg);
  transition: transform 0.6s var(--ease);
  z-index: 0;
}

.bento-card:nth-child(1):hover::after { transform: translateX(0) skewX(0deg); }
.bento-card:nth-child(1) > * { position: relative; z-index: 1; transition: color 0.4s 0.1s; }
.bento-card:nth-child(1):hover > * { color: var(--paper); }
.bento-card:nth-child(1):hover h3 { color: var(--paper); }

/* card 2: border draw */
.bento-card:nth-child(2) .border-draw {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bento-card:nth-child(2) .border-draw rect {
  fill: none;
  stroke: var(--brass);
  stroke-width: 2;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  transition: stroke-dashoffset 0.8s var(--ease);
}

.bento-card:nth-child(2):hover .border-draw rect { stroke-dashoffset: 0; }

/* card 3: image peek */
.bento-card:nth-child(3) .peek-img {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5) rotate(-20deg);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease-bounce);
}

.bento-card:nth-child(3):hover .peek-img {
  opacity: 0.85;
  transform: scale(1) rotate(0deg);
}

/* card 4: tilt 3d */
.bento-card:nth-child(4) { transition: opacity 0.6s, transform 0.6s, box-shadow 0.3s; transform-style: preserve-3d; }
.bento-card:nth-child(4).visible { transform: perspective(800px) rotateY(0deg); }
.bento-card:nth-child(4):hover { transform: perspective(800px) rotateY(-4deg) rotateX(3deg) translateY(-4px); box-shadow: var(--shadow); }

/* card 5: counter tick */
.bento-card:nth-child(5) .tick {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.4s, background 0.4s;
}

.bento-card:nth-child(5):hover .tick {
  border-color: var(--sage);
  background: var(--sage);
}

.bento-card:nth-child(5):hover .tick::after {
  content: "";
  position: absolute;
  left: 7px; top: 4px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* card 6: ripple */
.bento-card:nth-child(6) .ripple {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brass-soft);
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

.bento-card:nth-child(6):hover .ripple {
  animation: ripple-out 0.8s var(--ease) forwards;
}

@keyframes ripple-out {
  0% { opacity: 0.5; transform: scale(0); }
  100% { opacity: 0; transform: scale(25); }
}

@media (max-width: 900px) {
  .bento-card:nth-child(n) { grid-column: span 12; grid-row: span 1; }
}

/* ===== services accordion (full TZ content) ===== */
.services-intro {
  color: var(--ink-soft);
  max-width: 62ch;
  margin-top: 16px;
  font-size: 0.95rem;
}

.services-accordion {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.svc-item {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), border-color 0.35s;
}

.svc-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.svc-item[open] {
  border-color: var(--brass);
}

.svc-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: "Fraunces", serif;
  font-size: 1.12rem;
  font-weight: 600;
  transition: background 0.3s;
}

.svc-item summary::-webkit-details-marker { display: none; }

.svc-item summary::after {
  content: "+";
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.2rem;
  color: var(--brass);
  transition: transform 0.4s var(--ease-bounce);
  flex-shrink: 0;
}

.svc-item[open] summary::after {
  transform: rotate(45deg);
}

.svc-item summary:hover { background: rgba(196, 136, 58, 0.06); }

.svc-body {
  padding: 0 28px 26px;
  animation: svc-open 0.45s var(--ease);
}

@keyframes svc-open {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.svc-body p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.svc-body ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4px 20px;
  font-size: 0.82rem;
  color: var(--steel);
}

.svc-body ul li {
  padding: 5px 0 5px 14px;
  position: relative;
}

.svc-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brass);
}

.svc-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--brass);
  background: rgba(196, 136, 58, 0.08);
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ===== admin, role, mission sections ===== */
.section-content {
  padding: clamp(80px, 12vh, 120px) 0;
}

.section-content.dark {
  background: var(--ink);
  color: var(--paper);
}

.section-content.dark h2,
.section-content.dark h3 { color: var(--paper); }

.section-content.dark p,
.section-content.dark li { color: #a8b8c0; }

.content-block {
  max-width: 720px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.content-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.content-block h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.content-block p { margin-bottom: 14px; color: var(--ink-soft); }

.content-block ul {
  list-style: none;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
}

.content-block ul li {
  font-size: 0.88rem;
  color: var(--steel);
  padding: 6px 0 6px 14px;
  position: relative;
}

.content-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 4px;
  height: 4px;
  background: var(--brass);
  border-radius: 50%;
}

.content-block .highlight {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  color: var(--brass);
  margin: 24px 0 12px;
}

.section-content.dark .content-block p { color: #a8b8c0; }

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.mission-grid blockquote {
  font-family: "Fraunces", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.35;
  color: var(--ink);
  border-left: 3px solid var(--brass);
  padding-left: 24px;
}

.mission-pillars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mission-pillars span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 16px;
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.3s, background 0.3s;
}

.mission-pillars span.pop {
  opacity: 1;
  transform: translateX(0);
}

.mission-pillars span:hover {
  border-color: var(--brass);
  background: rgba(196, 136, 58, 0.08);
}

@media (max-width: 760px) {
  .mission-grid { grid-template-columns: 1fr; }
}

.hero-subtitle {
  font-family: "Fraunces", serif;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: var(--steel);
  margin-bottom: 20px;
  opacity: 0;
  animation: fade-slide-x 1s var(--ease) 0.4s forwards;
}

.hero-desc-ext {
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 16px;
  opacity: 0;
  animation: fade-in 0.8s var(--ease) 0.85s forwards;
}

.hero-desc-ext strong { color: var(--ink); font-weight: 600; }

.promise-lead {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.promise-lead.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===== SECTION 05: WHO WE SERVE — slot reel ===== */
.section-serve {
  padding: clamp(80px, 12vh, 130px) 0;
  position: relative;
}

.serve-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.serve-split h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.08;
}

.slot-window {
  height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
  position: relative;
  mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent);
}

.slot-track {
  display: flex;
  flex-direction: column;
  animation: slot-scroll 28s linear infinite;
}

.slot-track:hover { animation-play-state: paused; }

@keyframes slot-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.slot-item {
  padding: 18px 28px;
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  color: var(--paper);
  border-bottom: 1px solid var(--line-lt);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background 0.3s, padding-left 0.3s var(--ease);
}

.slot-item:hover {
  background: rgba(196, 136, 58, 0.12);
  padding-left: 36px;
}

.slot-item .n {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  color: var(--brass-soft);
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .serve-split { grid-template-columns: 1fr; }
  .slot-window { height: 260px; }
}

/* ===== SECTION 06: PROJECT — sticky + draw path ===== */
.section-project {
  padding: clamp(80px, 12vh, 130px) 0;
  background: var(--paper-2);
}

.project-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
}

.project-sticky {
  position: sticky;
  top: 100px;
  align-self: start;
}

.project-sticky h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.project-sticky p { color: var(--ink-soft); margin-bottom: 24px; }

.project-sticky img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease);
}

.project-sticky img.revealed { clip-path: inset(0 0 0 0); }

.path-timeline { position: relative; padding-left: 40px; }

.path-timeline svg {
  position: absolute;
  left: 8px;
  top: 0;
  width: 4px;
  height: 100%;
  overflow: visible;
}

.path-timeline svg line {
  stroke: var(--line);
  stroke-width: 2;
}

.path-timeline svg .draw-line {
  stroke: var(--brass);
  stroke-width: 2;
  transition: stroke-dashoffset 2s var(--ease);
}

.path-step {
  position: relative;
  padding-bottom: 36px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.path-step.visible {
  opacity: 1;
  transform: translateX(0);
}

.path-step::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 2px solid var(--steel);
  transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease-bounce);
}

.path-step.visible::before {
  border-color: var(--brass);
  background: var(--brass);
  animation: dot-bounce 0.5s var(--ease-bounce);
}

@keyframes dot-bounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.path-step h4 {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.path-step p { font-size: 0.85rem; color: var(--ink-soft); }

@media (max-width: 860px) {
  .project-layout { grid-template-columns: 1fr; }
  .project-sticky { position: static; }
}

/* ===== SECTION 07: WHY — 3D flip cards ===== */
.section-why {
  padding: clamp(80px, 12vh, 130px) 0;
  background: var(--ink);
  color: var(--paper);
  perspective: 1200px;
}

.section-why h2 {
  color: var(--paper);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 50px;
}

.flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.flip-card {
  height: 200px;
  perspective: 800px;
  opacity: 0;
  transform: translateY(50px) rotateX(15deg);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.flip-card.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
}

.flip-card:hover .flip-inner { transform: rotateY(180deg); }

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 1px solid var(--line-lt);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flip-front { background: rgba(236, 230, 216, 0.04); }

.flip-front .num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  color: var(--brass-soft);
  margin-bottom: 12px;
}

.flip-front h3 {
  font-size: 1.15rem;
  color: var(--paper);
}

.flip-back {
  background: var(--brass);
  color: var(--ink);
  transform: rotateY(180deg);
}

.flip-back p { font-size: 0.88rem; line-height: 1.5; }

@media (max-width: 860px) {
  .flip-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .flip-grid { grid-template-columns: 1fr; }
  .flip-card { height: 180px; }
}

/* ===== SECTION 08: PROMISE — word highlight on scroll ===== */
.section-promise {
  padding: clamp(100px, 15vh, 180px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-promise::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(196, 136, 58, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.promise-text {
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  line-height: 1.25;
  max-width: 900px;
  margin: 0 auto;
}

.promise-text .w {
  display: inline;
  color: var(--steel);
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}

.promise-text .w.lit {
  color: var(--ink);
}

.promise-text .w.lit-accent {
  color: var(--brass);
  font-style: italic;
}

.promise-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 50px;
}

.promise-tags span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line);
  opacity: 0;
  transform: scale(0.8) rotate(-3deg);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease-bounce), border-color 0.3s, background 0.3s;
}

.promise-tags span.pop {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.promise-tags span:hover {
  border-color: var(--brass);
  background: var(--brass);
  color: var(--paper);
}

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 70px 0 28px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-lt);
}

footer h5 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 14px;
}

footer p { color: #9aabb4; font-size: 0.88rem; }

.foot-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.foot-mark svg { width: 24px; height: 24px; }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  color: #6a808a;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-link {
  color: var(--brass-soft);
  transition: color 0.3s;
}

.contact-link:hover { color: var(--paper); }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--brass-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover { color: var(--paper); }

footer .btn-primary { background: var(--brass); color: var(--ink); }

@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr; }
}

::selection { background: var(--brass); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
