/* ==========================================================================
   Advanced Next Tech — public website
   Concept: "precision engineering sheet" — drafting-paper surfaces, graphite
   ink, one signal-orange accent, hairline rules and blueprint details.
   ========================================================================== */

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center; color: var(--text);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s ease, border-color .35s ease, transform .45s var(--ease-out), color .35s ease;
}
.site-header.is-overlay:not(.is-scrolled) {
  background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.site-header.is-hidden { transform: translateY(-101%); }
.header-inner { position: relative; display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand .brand-mark { width: 42px; height: 22px; transition: color var(--dur-2); }
.brand:hover .brand-mark { color: var(--accent); }
.brand-name { display: block; font-weight: 650; font-size: 1.02rem; letter-spacing: -.01em; font-stretch: 108%; line-height: 1.1; white-space: nowrap; }
.brand-sub { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-top: 3px; white-space: nowrap; }

.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav > ul > li > a {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  font-size: .95rem; font-weight: 500; color: var(--text-2); text-decoration: none; border: 0; background: none;
  border-radius: var(--r-sm); transition: color var(--dur-1);
}
.main-nav > ul > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-3) var(--ease-out);
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > a[aria-current="page"] { color: var(--text); }
.main-nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-trigger .bi { font-size: .7rem; transition: transform var(--dur-2); }
.has-mega.is-open .nav-trigger .bi { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle .bi-sun-fill { display: none; }
[data-theme="dark"] .theme-toggle .bi-sun-fill { display: inline-block; }
[data-theme="dark"] .theme-toggle .bi-moon-stars-fill { display: none; }
.menu-toggle { display: none; }
.burger { position: relative; width: 18px; height: 12px; }
.burger::before, .burger::after, .burger span { content: ""; position: absolute; left: 0; right: 0; height: 1.6px; background: currentColor; border-radius: 2px; }
.burger::before { top: 0; }
.burger span { top: 5px; }
.burger::after { bottom: 0; width: 60%; left: auto; }

/* Services mega menu */
.has-mega { position: static; }
.mega {
  position: absolute; top: calc(100% - 6px); left: 50%; width: min(960px, calc(100vw - 2 * var(--gutter)));
  display: grid; grid-template-columns: 1fr 1fr 280px; gap: 6px; padding: 10px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
  transition: opacity var(--dur-2) ease, transform var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-2);
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.mega-item {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px; border-radius: var(--r-md);
  text-decoration: none; color: var(--text); transition: background-color var(--dur-1);
}
.mega-item:hover, .mega-item:focus-visible { background: var(--bg-2); }
.mega-item .ico {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); font-size: 1.1rem; transition: all var(--dur-2);
}
.mega-item:hover .ico { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.mega-item strong { display: block; font-size: .92rem; font-weight: 600; line-height: 1.3; }
.mega-item span.desc { display: block; font-size: .8rem; color: var(--text-3); line-height: 1.45; margin-top: 3px; }
.mega-aside {
  grid-row: 1 / span 3; grid-column: 3; display: flex; flex-direction: column; gap: 12px; padding: 22px;
  border-radius: var(--r-md); background: var(--ink-950); color: #efede7; position: relative; overflow: hidden;
}
.mega-aside .blueprint { position: absolute; inset: 0; --gl: rgba(255, 255, 255, .06); mask-image: linear-gradient(160deg, #000 20%, transparent 80%); }
.mega-aside > * { position: relative; }
.mega-aside h4 { font-size: 1.3rem; }
.mega-aside p { font-size: .85rem; color: #a9a7a1; margin: 0; }
.mega-aside .btn { margin-top: auto; }

/* Mobile menu (native <dialog>) */
.mobile-menu {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0;
  border: 0; background: var(--ink-950); color: #efede7; overflow-y: auto;
}
.mobile-menu::backdrop { background: transparent; }
.mobile-menu[open] { animation: menu-in .5s var(--ease-out) both; }
@keyframes menu-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.mobile-menu .mm-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mobile-menu .icon-btn { color: #efede7; border-color: rgba(255, 255, 255, .16); }
.mm-links { list-style: none; padding: 20px 0; }
.mm-links a {
  display: flex; align-items: baseline; gap: 18px; padding: 14px 0; text-decoration: none; color: #efede7;
  font-size: clamp(2rem, 9vw, 3rem); font-weight: 600; font-stretch: 112%; letter-spacing: -.03em; line-height: 1.1;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  animation: mm-item .6s var(--ease-out) both; animation-delay: calc(var(--i) * 60ms + 120ms);
}
.mm-links a .n { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; color: var(--signal); }
.mm-links a[aria-current="page"] { color: var(--signal); }
@keyframes mm-item { from { opacity: 0; transform: translateY(18px); } }
.mm-services { display: grid; gap: 2px; padding: 4px 0 18px 42px; }
.mm-services a { font-size: .95rem; color: #a9a7a1; text-decoration: none; padding: 5px 0; }
.mm-foot { display: grid; gap: 18px; padding: 24px 0 40px; border-top: 1px solid rgba(255, 255, 255, .1); }
.mm-foot .eyebrow { color: #86857f; }
.mm-foot a { color: #efede7; }
.mm-contact { display: grid; gap: 6px; font-size: .95rem; }
.mm-contact a { text-decoration: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(40px, 8vh, 104px));
  min-height: min(100svh, 1000px);
  display: flex; flex-direction: column;
  background: var(--ink-950); color: var(--text);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -2; --gl: rgba(255, 255, 255, .055);
  mask-image: radial-gradient(ellipse 85% 75% at 70% 35%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 70% 35%, #000 25%, transparent 78%);
}
.hero-glow {
  position: absolute; z-index: -1; width: 1100px; height: 1100px; right: -380px; bottom: -560px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 90, 31, .22), rgba(255, 90, 31, .06) 45%, transparent 70%);
  pointer-events: none;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media .shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 9, 11, .92) 0%, rgba(8, 9, 11, .15) 45%, rgba(8, 9, 11, .5) 100%),
    rgba(8, 9, 11, var(--shade, .5));
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; flex: 1; padding-bottom: clamp(40px, 6vh, 72px); }
.hero--media .hero-inner { grid-template-columns: minmax(0, 1fr); align-items: end; }
.hero-copy { max-width: 760px; }
.hero--media .hero-copy { max-width: 900px; }
.hero .eyebrow { color: #a7a59f; margin-bottom: 26px; }
.hero-title {
  font-size: clamp(2.7rem, 1.25rem + 4.6vw, 5.6rem);
  font-weight: 600; line-height: .98; letter-spacing: -.038em; font-stretch: 114%;
  color: #f4f2ed;
}
.hero-title .accent { font-style: normal; color: var(--signal); }
.hero-lead { margin: 28px 0 0; max-width: 34em; font-size: clamp(1.05rem, .98rem + .35vw, 1.3rem); line-height: 1.55; color: #b9b7b0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero .btn-outline { color: #f4f2ed; border-color: rgba(255, 255, 255, .24); }
.hero .btn-outline:hover { border-color: #f4f2ed; background: rgba(255, 255, 255, .06); }

/* word-by-word title reveal (JS adds .w spans) */
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .w > span { display: inline-block; }
html.js .hero-title.is-split .w > span { transform: translateY(108%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 55ms + 120ms); }
html.js .hero-title.is-split.is-in .w > span { transform: none; }
html.js .hero [data-hero-fade] { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms + 450ms); }
html.js .hero.is-in [data-hero-fade] { opacity: 1; transform: none; }

/* frames (default hero) */
.hero-frames { position: relative; height: clamp(420px, 44vw, 600px); }
.frame {
  position: absolute; display: block; overflow: visible; text-decoration: none; color: #f4f2ed;
  background: #1a1d22; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.frame .img { position: absolute; inset: 0; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), filter .6s; filter: saturate(.92) contrast(1.02); }
.frame:hover img { transform: scale(1.05); filter: saturate(1.05); }
.frame .cap {
  position: absolute; left: 0; bottom: 0; right: 0; display: flex; gap: 10px; align-items: baseline;
  padding: 26px 14px 12px; font-size: .78rem; line-height: 1.3;
  background: linear-gradient(0deg, rgba(8, 9, 11, .88), transparent);
}
.frame .cap .mono { font-size: .68rem; letter-spacing: .06em; color: var(--signal); flex: none; }
.frame .cap .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame--a { right: 0; top: 0; width: 76%; height: 78%; }
.frame--a .cap { top: 0; bottom: auto; padding: 12px 14px 30px; background: linear-gradient(180deg, rgba(8, 9, 11, .85), transparent); }
.frame--b { left: 0; bottom: 0; width: 54%; height: 44%; z-index: 2; }
.frame--c { right: 7%; bottom: 3%; width: 30%; height: 28%; z-index: 3; }
.frame--a .crop-marks { --c: rgba(255, 90, 31, .9); }
.frame .crop-marks { --c: rgba(255, 255, 255, .45); inset: -8px; }
.hero-annot {
  position: absolute; left: 3%; top: 4%; height: 50%; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: #8d8b85;
}
.hero-annot span:not(.dim) { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.hero-annot .dim { position: relative; width: 1px; flex: 1; min-height: 40px; background: rgba(255, 255, 255, .25); margin-left: 4px; }
.hero-annot .dim::before, .hero-annot .dim::after { content: ""; position: absolute; left: -4px; width: 9px; height: 1px; background: rgba(255, 255, 255, .5); }
.hero-annot .dim::before { top: 0; }
.hero-annot .dim::after { bottom: 0; }

/* stats strip */
.hero-stats { border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-stats-row { display: flex; align-items: stretch; gap: 24px; }
.hero-stats dl { flex: 1; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.hero-stat:last-child { border-right: 0; }
.faq-index { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.hero-stat { padding: 26px 24px 30px 0; border-right: 1px solid rgba(255, 255, 255, .12); margin-right: 24px; }
.hero-stat dd { font-size: clamp(2rem, 1.4rem + 1.8vw, 3.2rem); font-weight: 600; font-stretch: 112%; letter-spacing: -.03em; line-height: 1; color: #f4f2ed; }
.hero-stat dt { margin-top: 10px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #8d8b85; }
.scroll-cue {
  align-self: center; display: inline-flex; align-items: center; gap: 12px; padding: 20px 0;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #8d8b85; text-decoration: none;
}
.scroll-cue .line { width: 1px; height: 40px; background: rgba(255, 255, 255, .2); position: relative; overflow: hidden; }
.scroll-cue .line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--signal); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { to { top: 100%; } }

/* ==========================================================================
   Ticker
   ========================================================================== */
.ticker { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.ticker-label {
  flex: none; display: flex; align-items: center; padding: 0 22px 0 var(--gutter); border-right: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3);
  background: var(--bg); position: relative; z-index: 1; max-width: 42%;
}
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track ul { display: flex; list-style: none; }
.ticker-track li {
  display: flex; align-items: center; gap: 28px; padding: 20px 28px 20px 0; white-space: nowrap;
  font-size: 1.05rem; font-weight: 500; font-stretch: 110%; letter-spacing: -.01em; color: var(--text-2);
}
.ticker-track li::after { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--accent); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 100px); }
.section--alt { background: var(--bg-2); }
.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px;
  border-top: 1px solid var(--line-strong); padding-top: 18px; margin-bottom: clamp(40px, 5.5vw, 76px);
}
.section-index {
  display: flex; gap: 12px; align-items: baseline;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3);
}
.section-head > .section-index { grid-column: 1 / span 3; }
.section-index .num { color: var(--accent-text); }
.section-title { grid-column: 4 / span 7; font-size: clamp(2rem, 1.15rem + 2.8vw, 3.6rem); letter-spacing: -.032em; line-height: 1.02; }
.section-intro { grid-column: 4 / span 6; color: var(--text-2); font-size: clamp(1rem, .96rem + .25vw, 1.15rem); margin: 0; max-width: 58ch; }
.section-head .head-action { grid-column: 10 / -1; grid-row: 2; justify-self: end; align-self: end; }
.section[data-theme="dark"] { background: var(--bg); color: var(--text); }

/* services — spec-sheet grid */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc-cell {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 330px;
  padding: clamp(24px, 2.6vw, 38px); text-decoration: none; color: var(--text);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .4s ease;
}
.svc-cell::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.svc-cell:hover { background: var(--surface); }
.svc-cell:hover::before { transform: scaleX(1); }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc-num { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; color: var(--text-3); }
.svc-icon { font-size: 1.7rem; color: var(--text); transition: color .3s, transform .6s var(--ease-out); }
.svc-cell:hover .svc-icon { color: var(--accent-text); transform: translateY(-3px); }
.svc-title { margin-top: auto; font-size: clamp(1.2rem, 1.05rem + .45vw, 1.45rem); line-height: 1.18; letter-spacing: -.02em; }
.svc-text { color: var(--text-2); font-size: .95rem; margin: 0; }
.svc-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .88rem; font-weight: 600; }
.svc-more .bi { transition: transform var(--dur-2) var(--ease-out); }
.svc-cell:hover .svc-more .bi { transform: translateX(4px); }

/* featured work */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(250px, 23vw, 330px); gap: clamp(12px, 1.4vw, 20px); }
.work-card { grid-column: span 4; position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--ink-800); color: #f4f2ed; text-decoration: none; isolation: isolate; }
.work-card:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.work-card:nth-child(2), .work-card:nth-child(3) { grid-column: span 5; }
.work-card:nth-child(1):nth-last-child(2) { grid-row: span 1; }
.work-card:nth-child(4):last-child, .work-card:nth-child(7):last-child { grid-column: span 12; }
.work-card:nth-child(4):nth-last-child(2), .work-card:nth-child(5):last-child,
.work-card:nth-child(7):nth-last-child(2), .work-card:nth-child(8):last-child { grid-column: span 6; }
.work-face img, .work-card .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 1.2s var(--ease-out); }
.work-card .ph { display: grid; place-items: center; font-size: 2rem; color: #55585e; }
.work-face::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(8, 9, 11, .9) 0%, rgba(8, 9, 11, .35) 42%, rgba(8, 9, 11, 0) 70%); }
.work-card:hover .work-face img { transform: scale(1.05); }
.work-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(18px, 2vw, 28px); display: grid; gap: 10px; }
.work-cat { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(244, 242, 237, .72); }
.work-title { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); line-height: 1.22; letter-spacing: -.015em; max-width: 30ch; }
.work-grid > .work-card:nth-child(1) .work-title { font-size: clamp(1.4rem, 1rem + 1.2vw, 2.2rem); max-width: 22ch; }
.work-top { position: absolute; z-index: 2; top: clamp(14px, 1.6vw, 22px); left: clamp(14px, 1.6vw, 22px); right: clamp(14px, 1.6vw, 22px); display: flex; justify-content: space-between; align-items: flex-start; }
.work-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(10, 12, 15, .45); color: #f4f2ed; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .3s, transform .5s var(--ease-out); }
.work-card:hover .work-go { background: var(--signal); color: var(--on-signal); transform: rotate(45deg); }

/* process — dimension line */
.process { display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); list-style: none; counter-reset: step; }
.process-step { position: relative; padding: 30px 28px 0 0; border-top: 1px solid var(--line-strong); }
.process-step::before, .process-step:last-child::after { content: ""; position: absolute; top: -7px; left: 0; width: 1px; height: 13px; background: var(--line-strong); }
.process-step:last-child::after { left: auto; right: 0; }
.process-num { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; color: var(--accent-text); margin-bottom: 18px; }
.process-step h3 { font-size: clamp(1.4rem, 1.15rem + .8vw, 1.9rem); margin-bottom: 12px; }
.process-step p { color: var(--text-2); font-size: .98rem; margin: 0; max-width: 30ch; }

/* insight cards */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.post-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--text); }
.post-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-3); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-cover--type { display: flex; flex-direction: column; justify-content: space-between; padding: 18px; background: var(--ink-950); color: #efede7; }
.post-cover--type .blueprint { position: absolute; inset: 0; --gl: rgba(255, 255, 255, .06); }
.post-cover--type > * { position: relative; }
.post-cover--type .src { font-family: var(--font-mono); font-size: clamp(1.1rem, .9rem + 1vw, 1.6rem); letter-spacing: -.01em; text-transform: uppercase; line-height: 1.1; word-break: break-all; }
.post-cover--type .kind { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #8d8b85; }
.post-cover--type .kind i { color: var(--signal); font-size: .9rem; }
.post-cover--type::after { content: ""; position: absolute; right: 0; bottom: 0; width: 34%; height: 4px; background: var(--signal); transform-origin: right; transition: transform .6s var(--ease-out); }
.post-card:hover .post-cover--type::after { transform: scaleX(1.9); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.post-meta .sep { width: 4px; height: 4px; background: var(--line-2); border-radius: 50%; }
.post-title { font-size: clamp(1.15rem, 1.05rem + .35vw, 1.4rem); line-height: 1.22; letter-spacing: -.018em; }
.post-card:hover .post-title { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.post-excerpt { color: var(--text-2); font-size: .95rem; margin: 0; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); }
.faq-side { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: grid; gap: 18px; }
.faq-side h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.3rem); letter-spacing: -.032em; }
.faq-side p { color: var(--text-2); margin: 0; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); font-weight: 550; letter-spacing: -.012em; line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-text); }
.faq-icon { position: relative; flex: none; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%; transition: transform .5s var(--ease-out), background-color .3s, border-color .3s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease-out); }
.faq-item[open] .faq-icon { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-body { padding: 0 60px 26px 0; color: var(--text-2); }
.faq-body p:last-child { margin: 0; }
.faq-body a { color: var(--accent-text); }
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-item::details-content { height: 0; overflow: clip; transition: height .45s var(--ease-out), content-visibility .45s allow-discrete; }
  .faq-item[open]::details-content { height: auto; }
}

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--bg); color: var(--text); padding-block: clamp(80px, 10vw, 150px) 0; isolation: isolate; }
.cta-band .blueprint { position: absolute; inset: 0; z-index: -1; --gl: rgba(255, 255, 255, .05); mask-image: radial-gradient(ellipse 70% 90% at 85% 10%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 10%, #000, transparent 70%); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; padding-bottom: clamp(56px, 7vw, 96px); }
.cta-band h2 { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 5.2rem); line-height: .98; letter-spacing: -.038em; }
.cta-grid p { color: var(--text-2); font-size: 1.1rem; max-width: 40ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.cta-cell { padding: 22px 22px 26px 0; border-right: 1px solid var(--line); min-width: 0; }
.cta-cell + .cta-cell { padding-left: 22px; }
.cta-cell:last-child { border-right: 0; }
.cta-cell .eyebrow { margin-bottom: 8px; }
.cta-cell a, .cta-cell span.v { display: block; color: var(--text); text-decoration: none; font-weight: 550; overflow-wrap: anywhere; }
.cta-cell a:hover { color: var(--accent-text); }

/* ==========================================================================
   Footer — styled after an engineering drawing's title block
   ========================================================================== */
.site-footer { background: var(--bg); color: var(--text); border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: 40px; padding-bottom: clamp(48px, 6vw, 80px); }
.footer-brand .logo-stack { width: 132px; color: var(--text); margin-bottom: 24px; }
.footer-brand p { color: var(--text-2); font-size: .93rem; max-width: 42ch; }
.footer-col h2, .footer-col h3 { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-stretch: 100%; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: .93rem; transition: color var(--dur-1); }
.footer-col a:hover { color: var(--text); }
.footer-col address { font-style: normal; color: var(--text-2); font-size: .9rem; line-height: 1.55; }
.footer-col address strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.footer-col address + address { margin-top: 16px; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text-2); }
.socials a:hover { color: var(--on-signal); background: var(--signal); border-color: var(--signal); }
.titleblock { display: grid; grid-template-columns: 2.2fr 1.6fr 1.6fr 1.4fr auto; border: 1px solid var(--line-2); border-bottom: 0; }
.tb-cell { padding: 14px 16px 16px; border-right: 1px solid var(--line-2); min-width: 0; }
.tb-cell:last-child { border-right: 0; }
.tb-cell .k { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.tb-cell .v { display: block; font-size: .86rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-cell a { color: inherit; text-decoration: none; }
.tb-cell a:hover { color: var(--accent-text); }
.tb-top { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text); font-weight: 600; font-size: .86rem; text-decoration: none; min-width: 120px; }
.tb-top:hover { background: var(--signal); color: var(--on-signal); }

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.page-hero { position: relative; padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.page-hero .blueprint { position: absolute; inset: 0; z-index: -1; mask-image: linear-gradient(100deg, transparent 30%, #000 75%); -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 75%); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); list-style: none; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-2); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px 48px; align-items: end; }
.page-title { font-size: clamp(2.6rem, 1.2rem + 5vw, 5.8rem); line-height: .97; letter-spacing: -.04em; }
.page-lead { grid-column: 1; font-size: clamp(1.05rem, 1rem + .35vw, 1.28rem); color: var(--text-2); max-width: 54ch; margin: 0; }
.page-facts { grid-column: 2; grid-row: 1 / span 2; align-self: end; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.page-facts > div { padding: 16px 12px 4px 0; }
.page-facts dd { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); font-weight: 600; font-stretch: 112%; letter-spacing: -.03em; line-height: 1; }
.page-facts dt { margin-top: 8px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

/* ==========================================================================
   Services page + service detail
   ========================================================================== */
.svc-rows { border-top: 1px solid var(--line-strong); }
.svc-row { display: grid; grid-template-columns: 90px minmax(0, 6fr) minmax(0, 5fr); gap: clamp(20px, 3.5vw, 56px); padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.svc-row .no { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; color: var(--accent-text); padding-top: 8px; }
.svc-row h2 { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.5rem); letter-spacing: -.028em; margin-bottom: 16px; }
.svc-row h2 a { text-decoration: none; color: inherit; }
.svc-row h2 a:hover { color: var(--accent-text); }
.svc-row .lead { color: var(--text-2); font-size: 1.08rem; }
.check-list { list-style: none; display: grid; gap: 10px; margin: 22px 0 26px; }
.check-list li { position: relative; padding-left: 26px; color: var(--text-2); font-size: .96rem; line-height: 1.5; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.svc-figure { position: relative; aspect-ratio: 16 / 11; }
.svc-figure .img { position: absolute; inset: 0; overflow: hidden; border-radius: 2px; background: var(--bg-3); }
.svc-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.svc-row:hover .svc-figure img { transform: scale(1.04); }
.svc-figure .ico-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.4rem; color: var(--text-3); }

.svc-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink-950); color: var(--text); padding: clamp(48px, 7vw, 100px) 0 clamp(48px, 6vw, 88px); }
.svc-hero .bg { position: absolute; inset: 0; z-index: -2; }
.svc-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.svc-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 12, 15, .96) 0%, rgba(10, 12, 15, .75) 55%, rgba(10, 12, 15, .35) 100%); }
.svc-hero .crumbs a { color: #b9b7b0; }
.svc-hero-inner { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: end; }
.svc-hero .big-no { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; color: var(--signal); display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.svc-hero .big-no .bi { font-size: 1.4rem; color: #f4f2ed; }
.svc-hero h1 { font-size: clamp(2.3rem, 1.2rem + 4vw, 4.8rem); line-height: 1; letter-spacing: -.038em; color: #f4f2ed; }
.svc-hero p.lead { margin-top: 22px; font-size: 1.2rem; color: #b9b7b0; max-width: 48ch; }
.svc-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); }
.cap-list { list-style: none; counter-reset: cap; border-top: 1px solid var(--line-strong); }
.cap-list li { counter-increment: cap; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; line-height: 1.5; }
.cap-list li::before { content: counter(cap, decimal-leading-zero); font-family: var(--font-mono); font-size: .78rem; color: var(--accent-text); padding-top: 4px; }
.prose-sm { color: var(--text-2); font-size: 1.05rem; }
.side-card { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--line-strong); background: var(--surface); }
.side-card .hd { padding: 12px 18px; border-bottom: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; display: flex; justify-content: space-between; }
.side-card .bd { padding: 22px 18px; display: grid; gap: 14px; }
.side-card .bd p { margin: 0; color: var(--text-2); font-size: .95rem; }
.other-svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.other-svcs a { display: flex; align-items: center; gap: 14px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 550; font-size: .98rem; line-height: 1.3; transition: background-color .3s; }
.other-svcs a:hover { background: var(--surface); }
.other-svcs .bi { font-size: 1.3rem; color: var(--accent-text); }

/* ==========================================================================
   Projects listing
   ========================================================================== */
.filter-bar { position: sticky; top: var(--header-h); z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: top .45s var(--ease-out); }
.site-header.is-hidden ~ main .filter-bar { top: 0; }
.filter-inner { display: flex; align-items: center; gap: 16px; padding-block: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 2px; mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px;
  border: 1px solid var(--line-2); border-radius: 99px; background: transparent; color: var(--text-2);
  font-size: .88rem; font-weight: 500; white-space: nowrap; transition: all var(--dur-1);
}
.chip .count { font-family: var(--font-mono); font-size: .7rem; color: var(--text-3); }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.is-active .count { color: inherit; opacity: .65; }
.search { position: relative; flex: 0 1 320px; }
.search .bi { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search input { height: 40px; min-height: 40px; padding-left: 40px; border-radius: 99px; background: var(--surface); }
.result-line { display: flex; justify-content: space-between; align-items: center; padding: 26px 0 18px; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.p-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 3vw, 44px) clamp(18px, 2vw, 28px); }
.p-card a { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--text); }
.p-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-3); }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .5s; }
.p-media::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.p-card a:hover .p-media img { transform: scale(1.05); }
.p-card a:hover .p-media::after { transform: scaleX(1); }
.p-media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: 2rem; }
.p-count { position: absolute; right: 10px; bottom: 12px; display: inline-flex; gap: 6px; align-items: center; padding: 5px 9px; border-radius: 4px; background: rgba(10, 12, 15, .72); color: #f4f2ed; font-family: var(--font-mono); font-size: .68rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.p-media .tag-id { position: absolute; left: 10px; top: 10px; }
.p-meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.p-title { font-size: clamp(1.08rem, 1rem + .3vw, 1.28rem); line-height: 1.25; letter-spacing: -.015em; }
.p-card a:hover .p-title { color: var(--accent-text); }
.p-text { color: var(--text-2); font-size: .93rem; margin: -6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
[data-item].is-hidden { display: none !important; }
.empty-state { text-align: center; padding: clamp(56px, 8vw, 110px) 20px; border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--text-2); }
.empty-state .bi { font-size: 2rem; color: var(--text-3); display: block; margin: 0 auto 14px; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--text); }
.draft-banner { background: var(--warning-soft); color: var(--warning); border-bottom: 1px solid var(--line); font-size: .9rem; }
.draft-banner .container { display: flex; gap: 10px; align-items: center; padding-block: 12px; }

/* ==========================================================================
   Project detail
   ========================================================================== */
.proj-hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(460px, 74vh, 780px); display: flex; align-items: flex-end; background: var(--ink-950); color: var(--text); }
.proj-hero .bg { position: absolute; inset: 0; z-index: -2; }
.proj-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.proj-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 9, 11, .96) 0%, rgba(8, 9, 11, .55) 45%, rgba(8, 9, 11, .2) 100%); }
.proj-hero-inner { padding-block: calc(var(--header-h) + 40px) clamp(40px, 6vw, 72px); width: 100%; }
.proj-hero .crumbs { margin-bottom: 28px; }
.proj-hero .crumbs a { color: #b9b7b0; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.proj-tags .tag:not(.tag-id) { color: #d9d7d0; border-color: rgba(255, 255, 255, .25); }
.proj-hero h1 { font-size: clamp(2.1rem, 1.1rem + 3.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; color: #f4f2ed; max-width: 20ch; }
.proj-hero .lead { margin: 22px 0 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: #bdbbb4; max-width: 52ch; }
.proj-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.h-sub { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: clamp(1.4rem, 1.2rem + .7vw, 1.9rem); letter-spacing: -.025em; padding-bottom: 16px; border-bottom: 1px solid var(--line-strong); margin-bottom: 8px; }
.h-sub .count { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-stretch: 100%; }
.detail-list { list-style: none; counter-reset: d; margin-bottom: clamp(48px, 6vw, 80px); }
.detail-list li { counter-increment: d; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 1.06rem; line-height: 1.55; }
.detail-list li::before { content: counter(d, decimal-leading-zero); font-family: var(--font-mono); font-size: .76rem; color: var(--accent-text); padding-top: 4px; }
.spec-sheet { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--line-strong); background: var(--surface); }
.spec-head { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.spec-head span:last-child { color: var(--accent-text); }
.spec-row { display: grid; grid-template-columns: 108px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.spec-row dt { padding: 13px 14px; border-right: 1px solid var(--line); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.spec-row dd { padding: 11px 14px; font-size: .95rem; font-weight: 500; overflow-wrap: anywhere; }
.spec-actions { display: grid; gap: 10px; padding: 16px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); grid-auto-flow: dense; gap: 10px; margin-top: 18px; }
.g-item { position: relative; aspect-ratio: 4 / 3; padding: 0; border: 0; overflow: hidden; border-radius: 4px; background: var(--bg-3); cursor: zoom-in; }
.g-item.is-wide { grid-column: span 2; grid-row: span 2; }
.g-item img, .g-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.g-item:hover img { transform: scale(1.06); }
.g-item::after { content: "\F52A"; font-family: "bootstrap-icons"; position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(10, 12, 15, .6); color: #fff; font-size: .9rem; opacity: 0; transform: scale(.8); transition: all .35s var(--ease-out); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; transform: none; }
.g-item.is-video::after { content: "\F4F4"; opacity: 1; transform: none; width: 52px; height: 52px; left: 50%; top: 50%; right: auto; bottom: auto; margin: -26px 0 0 -26px; background: var(--signal); color: var(--on-signal); font-size: 1.3rem; }
.proj-pager { display: grid; grid-template-columns: 1fr auto 1fr; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); margin-top: clamp(56px, 7vw, 96px); }
.proj-pager a { display: flex; flex-direction: column; gap: 6px; padding: 24px 0; text-decoration: none; color: var(--text); min-width: 0; }
.proj-pager a:hover .t { color: var(--accent-text); }
.proj-pager .k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.proj-pager .t { font-weight: 600; font-size: 1.02rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-pager .next { text-align: right; align-items: flex-end; }
.proj-pager .all { align-self: stretch; justify-content: center; align-items: center; padding: 0 clamp(18px, 3vw, 40px); border-inline: 1px solid var(--line); flex-direction: row; gap: 10px; font-weight: 600; font-size: .9rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 9, 11, .97); color: #f4f2ed; overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: fade-in .3s ease both; }
@keyframes fade-in { from { opacity: 0; } }
.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(14px, 2vw, 28px); }
.lb-count { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; color: #b9b7b0; }
.lb-count b { color: var(--signal); font-weight: 500; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 clamp(8px, 6vw, 96px); min-height: 0; touch-action: pan-y; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; box-shadow: 0 40px 100px -30px #000; transition: opacity .25s ease; }
.lb-stage .is-loading { opacity: .25; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(20, 22, 26, .6); color: #f4f2ed; font-size: 1.2rem; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.lb-nav:hover { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.lb-prev { left: clamp(8px, 2vw, 28px); }
.lb-next { right: clamp(8px, 2vw, 28px); }
.lb-caption { font-size: .9rem; color: #b9b7b0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox .icon-btn { color: #f4f2ed; border-color: rgba(255, 255, 255, .2); }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .08); }
.lb-thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 60vw; }
.lb-thumbs button { flex: none; width: 54px; height: 40px; padding: 0; border: 1px solid transparent; border-radius: 3px; overflow: hidden; background: #222; opacity: .5; transition: opacity .2s, border-color .2s; }
.lb-thumbs button.is-active { opacity: 1; border-color: var(--signal); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Insights listing + article
   ========================================================================== */
.post-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; text-decoration: none; color: var(--text); padding-bottom: clamp(48px, 6vw, 80px); margin-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.post-feature .post-cover { aspect-ratio: 16 / 10; }
.post-feature .post-title { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.8rem); line-height: 1.06; letter-spacing: -.03em; margin: 14px 0; }
.post-feature .post-excerpt { font-size: 1.08rem; margin-bottom: 22px; }
.post-feature:hover .post-title { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .15em; }
.post-feature:hover .post-cover img { transform: scale(1.03); }
.article-head { max-width: 900px; margin-inline: auto; padding: clamp(40px, 6vw, 96px) 0 clamp(28px, 4vw, 48px); text-align: center; }
.article-head .crumbs { justify-content: center; }
.article-head h1 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.036em; }
.article-head .standfirst { margin: 22px auto 0; font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--text-2); max-width: 60ch; }
.article-head .post-meta { justify-content: center; margin-top: 26px; }
.article-cover { max-width: 1160px; margin: 0 auto clamp(40px, 5vw, 72px); aspect-ratio: 16 / 8; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-3); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 720px; margin-inline: auto; font-size: 1.125rem; line-height: 1.78; color: var(--text); }
.prose > * + * { margin-top: 1.15em; }
.prose p { margin: 0; }
.prose h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); margin-top: 2em; letter-spacing: -.025em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.8em; }
.prose h4 { font-size: 1.12rem; margin-top: 1.6em; }
.prose a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent-text); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent); font-size: 1.3rem; line-height: 1.5; font-stretch: 108%; color: var(--text); }
.prose img { border-radius: var(--r-sm); margin-block: 2em; width: 100%; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--bg-2); padding: 2px 6px; border-radius: 4px; }
.prose pre { background: var(--ink-950); color: #efede7; padding: 18px 20px; border-radius: var(--r-sm); overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.prose pre code { background: none; padding: 0; }
.prose hr { margin-block: 3em; }
.external-card { max-width: 720px; margin-inline: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 24px; align-items: center; padding: 28px; border: 1px solid var(--line-strong); background: var(--surface); }
.external-card .ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: var(--r-sm); background: var(--ink-950); color: var(--signal); font-size: 1.5rem; }
.external-card p { margin: 4px 0 0; color: var(--text-2); font-size: .95rem; }
.share-row { max-width: 720px; margin: clamp(40px, 5vw, 64px) auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.share-row .links { display: flex; gap: 8px; }
.tags-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.channels { border-top: 1px solid var(--line-strong); }
.channel { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.channel .k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding-top: 5px; }
.channel .v { display: grid; gap: 4px; min-width: 0; }
.channel .v a { color: var(--text); text-decoration: none; font-size: 1.08rem; font-weight: 550; overflow-wrap: anywhere; }
.channel .v a:hover { color: var(--accent-text); }
.channel .v small { color: var(--text-3); font-size: .82rem; }
.channel address { font-style: normal; color: var(--text-2); font-size: .95rem; line-height: 1.55; }
.channel .v strong { font-weight: 600; }
.form-card { position: relative; border: 1px solid var(--line-strong); background: var(--surface); }
.form-card .hd { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.form-card .hd span:last-child { color: var(--accent-text); }
.form-card form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 36px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-foot .help { max-width: 34ch; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: clamp(32px, 5vw, 64px); display: grid; gap: 14px; justify-items: start; }
.form-success .ok { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--signal); color: var(--on-signal); font-size: 1.6rem; }
.form-success h3 { font-size: 1.8rem; }
.form-success p { color: var(--text-2); margin: 0; }
.form-alert { padding: 12px 14px; border-radius: var(--r-sm); font-size: .92rem; background: var(--danger-soft); color: var(--danger); }
.form-alert.success { background: var(--success-soft); color: var(--success); }
.map-wrap { position: relative; border-top: 1px solid var(--line); height: clamp(320px, 42vw, 520px); background: var(--bg-3); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.9) contrast(1.05); transition: filter .6s; }
.map-wrap:hover iframe { filter: none; }
[data-theme="dark"] .map-wrap iframe { filter: grayscale(1) invert(.92) contrast(.9); }
[data-theme="dark"] .map-wrap:hover iframe { filter: none; }
.map-label { position: absolute; left: var(--gutter); top: 20px; z-index: 1; display: grid; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); max-width: 320px; }
.map-label .eyebrow { font-size: .64rem; }
.map-label strong { font-size: .95rem; }
.map-label a { font-size: .85rem; color: var(--accent-text); }

/* ==========================================================================
   404
   ========================================================================== */
.nf { min-height: calc(100svh - var(--header-h)); display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; isolation: isolate; padding: 80px 0; }
.nf .blueprint { position: absolute; inset: 0; z-index: -1; mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 70%); }
.nf-code { position: relative; display: inline-block; font-size: clamp(7rem, 4rem + 18vw, 17rem); font-weight: 700; font-stretch: 125%; letter-spacing: -.06em; line-height: .85; color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.nf-dim { display: flex; align-items: center; gap: 12px; white-space: nowrap; justify-content: center; margin-bottom: 18px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.nf-dim::before, .nf-dim::after { content: ""; height: 1px; width: min(18vw, 180px); background: linear-gradient(90deg, var(--line-2), var(--line-2)) center / 100% 1px no-repeat; border-inline: 1px solid var(--line-2); height: 11px; }
.nf h1 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); margin: 26px 0 12px; }
.nf p { color: var(--text-2); max-width: 44ch; margin: 0 auto 30px; }
.nf .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ==========================================================================
   Announcement popup + quick contact
   ========================================================================== */
.announce { padding: 0; border: 0; background: transparent; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow: visible; }
.announce::backdrop { background: rgba(6, 7, 9, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.announce[open] { animation: pop-in .5s var(--ease-out) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.announce--sm { width: 380px; } .announce--md { width: 520px; } .announce--lg { width: 820px; } .announce--xl { width: 1140px; }
.announce--fullscreen { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; }
.announce-inner { position: relative; overflow: hidden; border-radius: var(--r-md); background: #0a0c0f; box-shadow: var(--shadow-3); }
.announce--fullscreen .announce-inner { border-radius: 0; height: 100%; display: grid; place-items: center; }
.announce-inner img, .announce-inner video { width: 100%; max-height: calc(100vh - 110px); object-fit: var(--fit, contain); }
.announce--fullscreen .announce-inner img, .announce--fullscreen .announce-inner video { height: 100vh; max-height: none; }
.announce-close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #111316; font-size: 1.1rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.announce-close:hover { background: var(--signal); }
.announce-mute { position: absolute; right: 12px; bottom: 12px; z-index: 2; }
.announce-cta { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2; }
.announce-timer { position: absolute; left: 0; top: 0; height: 3px; background: var(--signal); animation: timer linear both; z-index: 3; }
@keyframes timer { from { width: 100%; } to { width: 0; } }

.qc { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 55; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.qc-toggle { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--ink-950); color: var(--signal); font-size: 1.3rem; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08) inset; transition: transform .4s var(--ease-out), background-color .2s; }
.qc-toggle:hover { transform: translateY(-2px); }
.qc.is-open .qc-toggle { background: var(--signal); color: var(--on-signal); transform: rotate(135deg); }
.qc-toggle .bi-plus-lg { display: none; }
.qc.is-open .qc-toggle .bi-plus-lg { display: block; }
.qc.is-open .qc-toggle .bi-chat-dots-fill { display: none; }
.qc-menu { display: grid; gap: 8px; justify-items: end; }
.qc-menu a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 99px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 550; box-shadow: var(--shadow-2); border: 1px solid var(--line); opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none; transition: opacity .3s, transform .4s var(--ease-out); }
.qc-menu a .bi { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-2); color: var(--accent-text); }
.qc.is-open .qc-menu a { opacity: 1; transform: none; pointer-events: auto; }
.qc.is-open .qc-menu a:nth-last-child(2) { transition-delay: 40ms; }
.qc.is-open .qc-menu a:nth-last-child(3) { transition-delay: 80ms; }
.qc.is-open .qc-menu a:nth-last-child(4) { transition-delay: 120ms; }
.qc-menu a:hover { border-color: var(--accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-grid; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  :root { --header-h: 66px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-frames { height: 340px; margin-top: 8px; }
  .hero-annot { display: none; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-index, .section-title, .section-intro, .section-head .head-action { grid-column: 1; grid-row: auto; justify-self: start; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 300px; }
  .work-card, .work-card:nth-child(n) { grid-column: span 1 !important; grid-row: span 1 !important; }
  .work-card:first-child { grid-column: span 2 !important; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .post-grid, .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-layout, .contact-layout, .proj-layout, .svc-layout, .cta-grid, .post-feature, .page-hero-grid, .svc-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .faq-side, .spec-sheet, .side-card { position: static; }
  .page-facts { grid-column: 1; grid-row: auto; max-width: 420px; }
  .svc-row { grid-template-columns: minmax(0, 1fr); }
  .svc-row .no { padding: 0; }
  .cta-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-cell:nth-child(2) { border-right: 0; }
  .cta-cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cta-cell:nth-child(3) { padding-left: 0; }
  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-cell { border-bottom: 1px solid var(--line-2); }
  .tb-cell:nth-child(2n) { border-right: 0; }
  .tb-top { grid-column: 1 / -1; padding: 16px; border-bottom: 1px solid var(--line-2); }
  .lb-thumbs { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand-sub { display: none; }
  .hero { min-height: auto; }
  .hero-frames { display: none; }
  .hero-stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stat { padding: 20px 12px 22px 0; margin-right: 12px; }
  .hero-stat:nth-child(2) { border-right: 0; }
  .hero-stat:nth-child(3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .scroll-cue { display: none; }
  .ticker-label { display: none; }
  .svc-grid, .post-grid, .p-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-cell { min-height: 0; }
  .svc-title { margin-top: 18px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 280px; }
  .work-card:first-child { grid-column: span 1 !important; }
  .process { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .cta-cells { grid-template-columns: minmax(0, 1fr); }
  .cta-cell, .cta-cell + .cta-cell, .cta-cell:nth-child(3) { padding: 16px 0; border-right: 0; border-top: 1px solid var(--line); }
  .cta-cell:first-child { border-top: 0; }
  .tb-cell:first-child { grid-column: 1 / -1; border-right: 0; }
  .tb-cell:nth-child(2) { border-right: 1px solid var(--line-2); }
  .tb-cell:nth-child(3) { border-right: 0; }
  .tb-cell:nth-child(4) { grid-column: 1 / -1; border-right: 0; }
  .channel { grid-template-columns: minmax(0, 1fr) auto; }
  .channel .k { grid-column: 1 / -1; padding: 0; }
  .filter-inner { flex-wrap: wrap; }
  .search { flex: 1 1 100%; order: -1; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .proj-pager { grid-template-columns: 1fr 1fr; }
  .proj-pager .all { display: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .lb-nav { top: auto; bottom: 16px; transform: none; width: 46px; height: 46px; }
  .lb-stage { padding: 0 0 72px; }
  .external-card { grid-template-columns: minmax(0, 1fr); }
  .faq-body { padding-right: 0; }
  .qc { bottom: max(14px, env(safe-area-inset-bottom)); right: 14px; }
  .qc-toggle { width: 50px; height: 50px; }
}
@media (hover: none) {
  .ticker-track { animation-duration: 60s; }
}
@media print {
  .site-header, .qc, .site-footer, .filter-bar, .announce { display: none !important; }
  .hero, .proj-hero, .svc-hero { min-height: 0; background: none; color: #000; }
}

/* ==========================================================================
   RECENT PROJECTS — each tile crossfades between projects (CSS-driven,
   independent random timing per tile, keeps running on background tabs)
   ========================================================================== */
.work-card { display: block; }
.work-face {
  position: absolute; inset: 0; display: block; text-decoration: none; color: #f4f2ed;
  overflow: hidden; isolation: isolate;
}
.work-rota .work-face {
  opacity: 0; pointer-events: none;
  animation: workFace var(--dur, 10s) var(--ease-in-out) infinite;
  animation-delay: calc(var(--delay, 0s) - var(--i, 0) / var(--n, 3) * var(--dur, 10s));
  will-change: opacity;
}
/* A single face (no rotation) stays fully visible */
.work-card:not(.work-rota) .work-face { opacity: 1; pointer-events: auto; }
.work-rota .work-face:first-child { opacity: 1; pointer-events: auto; }

@keyframes workFace {
  0%   { opacity: 1; pointer-events: auto; }
  12%  { opacity: 1; pointer-events: auto; }
  20%  { opacity: 0; pointer-events: none; }
  80%  { opacity: 0; pointer-events: none; }
  88%  { opacity: 1; pointer-events: auto; }
  100% { opacity: 1; pointer-events: auto; }
}
/* These gentle photo crossfades are the whole point of this section, so keep
   them running even when the global reduced-motion rule would freeze them.
   They only fade opacity - there is no movement, parallax or zoom. */
@media (prefers-reduced-motion: reduce) {
  .work-rota .work-face {
    animation-duration: var(--dur, 10s) !important;
    animation-iteration-count: infinite !important;
  }
}
