/* ── RESET & ROOT ── */
:root {
  --bg: #080808;
  --card: #0f0f0f;
  --text: #F0EDE6;
  --muted: #4a4a4a;
  --muted2: #808080;
  --b: rgba(255,255,255,0.07);
  --b2: rgba(255,255,255,0.13);
  --fd: 'Syne', sans-serif;
  --fm: 'DM Mono', monospace;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: #080808; }
html, body {
  background-color: #080808 !important;
  color: var(--text);
  font-family: var(--fm);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}
.site-nav, .hero, .metrics, .mq, .section, .cta-block, .site-footer,
.blog-header, .posts-grid, .single-header, .single-content, .contact-grid,
.error-page, .pagination { position: relative; z-index: 1; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 52px;
  border-bottom: 1px solid transparent;
  transition: all .3s;
}
.site-nav.scrolled {
  padding: 13px 52px;
  background: rgba(8,8,8,0.96);
  border-color: var(--b);
  backdrop-filter: blur(24px);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 28px; height: 28px; object-fit: contain; }
.nav-logo span { font-family: var(--fd); font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.nav-menu { display: flex; gap: 32px; list-style: none; }
.nav-menu a { font-size: 11px; color: var(--muted2); letter-spacing: .08em; text-transform: uppercase; transition: color .2s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--text); }
.nav-cta {
  font-family: var(--fm); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; padding: 10px 20px;
  background: #fff; color: #080808; transition: opacity .2s;
}
.nav-cta:hover { opacity: .85; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: all .25s; }
.burger.on span:first-child { transform: rotate(45deg) translate(4.5px, 4.5px); }
.burger.on span:nth-child(2) { opacity: 0; }
.burger.on span:last-child { transform: rotate(-45deg) translate(4.5px, -4.5px); }
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 190;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.on { display: flex; }
.mobile-menu a { font-family: var(--fd); font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.mobile-menu .mm-cta {
  font-family: var(--fm); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; padding: 13px 34px;
  background: #fff; color: #080808; margin-top: 6px;
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: var(--fm); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; padding: 13px 24px;
  background: #fff; color: #080808; display: inline-block; transition: opacity .2s;
}
.btn-primary:hover { opacity: .85; color: #080808; }
.btn-ghost {
  font-family: var(--fm); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; padding: 13px 24px;
  border: 1px solid var(--b2); color: var(--muted2); display: inline-block; transition: all .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.25); color: var(--text); }

/* ── HERO ── */
.hero { padding: 96px 52px 72px; overflow: hidden; }
.hero-tag {
  font-size: 10px; letter-spacing: .18em; color: var(--muted2);
  text-transform: uppercase; margin-bottom: 36px;
  display: flex; align-items: center; gap: 14px;
}
.hero-tag::before { content: ''; width: 24px; height: 1px; background: rgba(255,255,255,.25); }
.hero h1 {
  font-family: var(--fd); font-weight: 800; line-height: .92;
  letter-spacing: -.04em; font-size: clamp(56px, 8.5vw, 120px); margin-bottom: 48px;
}
.h1-outline { -webkit-text-stroke: 1.5px var(--text); color: transparent; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hero-sub { font-size: 14px; color: var(--muted2); max-width: 400px; line-height: 1.85; }
.hero-sub strong { color: var(--text); font-weight: 400; }
.hero-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

/* ── METRICS ── */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--b); border-bottom: 1px solid var(--b); }
.met { padding: 30px 44px; border-right: 1px solid var(--b); }
.met:last-child { border-right: none; }
.met-n { font-family: var(--fd); font-size: clamp(26px, 3vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 6px; }
.met-l { font-size: 10px; color: var(--muted2); letter-spacing: .1em; text-transform: uppercase; }

/* ── MARQUEE ── */
.mq { padding: 13px 0; overflow: hidden; border-bottom: 1px solid var(--b); }
.mq-track { display: flex; white-space: nowrap; animation: mq 32s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-item { font-family: var(--fd); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 36px; display: inline-flex; align-items: center; gap: 14px; }
.mq-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted2); }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTIONS ── */
.section { padding: 96px 52px; }
.section-top0 { padding-top: 0; }
.sec-tag {
  font-size: 10px; letter-spacing: .14em; color: var(--muted2);
  text-transform: uppercase; margin-bottom: 44px;
  display: flex; align-items: center; gap: 12px;
}
.sec-tag::after { content: ''; width: 28px; height: 1px; background: rgba(255,255,255,.2); }
.section-title { font-family: var(--fd); font-size: clamp(32px, 4.5vw, 54px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }

/* ── PILLARS ── */
.pillars { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--b); border: 1px solid var(--b); margin-top: 52px; }
.pillar { background: var(--bg); padding: 44px 40px; position: relative; overflow: hidden; transition: background .3s; }
.pillar:hover { background: var(--card); }
.pillar-bar { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.pillar:hover .pillar-bar { transform: scaleX(1); }
.pillar-num { font-size: 10px; color: var(--muted); letter-spacing: .14em; margin-bottom: 18px; }
.pillar-name { font-family: var(--fd); font-size: 20px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.02em; }
.pillar-desc { font-size: 13px; color: var(--muted2); line-height: 1.78; margin-bottom: 20px; }
.pillar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ptag { font-size: 10px; padding: 4px 10px; border: 1px solid var(--b); color: var(--muted2); letter-spacing: .04em; transition: border-color .2s; }
.pillar:hover .ptag { border-color: var(--b2); }

/* ── WORK ── */
.work-list { display: flex; flex-direction: column; gap: 1px; background: var(--b); border: 1px solid var(--b); margin-top: 52px; }
.work-row { background: var(--bg); display: grid; grid-template-columns: 1fr 150px; transition: background .3s; position: relative; overflow: hidden; }
.work-row::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: #fff; transform: scaleY(0); transform-origin: bottom; transition: transform .36s cubic-bezier(.4,0,.2,1); }
.work-row:hover { background: var(--card); }
.work-row:hover::after { transform: scaleY(1); }
.work-main { padding: 34px 40px; border-right: 1px solid var(--b); }
.work-stat { padding: 34px 28px; display: flex; flex-direction: column; justify-content: center; }
.work-sector { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.work-brand { font-family: var(--fd); font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.work-desc { font-size: 13px; color: var(--muted2); line-height: 1.75; max-width: 540px; margin-bottom: 14px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wtag { font-size: 10px; padding: 4px 10px; border: 1px solid var(--b); color: var(--muted2); letter-spacing: .04em; }
.work-stat-n { font-family: var(--fd); font-size: clamp(20px, 2.5vw, 30px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.work-stat-l { font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 5px; }

/* ── CLIENTS ── */
.clients-list { display: flex; flex-wrap: wrap; border: 1px solid var(--b); margin-top: 44px; }
.client-item { padding: 20px 32px; border-right: 1px solid var(--b); border-bottom: 1px solid var(--b); font-family: var(--fd); font-size: 14px; font-weight: 700; color: var(--muted); transition: color .2s; cursor: default; }
.client-item:hover { color: var(--text); }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 88px; align-items: start; }
.about-text p { font-size: 14px; color: var(--muted2); line-height: 1.85; margin-bottom: 14px; margin-top: 22px; }
.about-chip { display: inline-block; border: 1px solid var(--b2); padding: 9px 16px; font-size: 11px; color: var(--muted2); letter-spacing: .04em; margin-bottom: 22px; }
.about-points { display: flex; flex-direction: column; }
.about-point { padding: 22px 0; border-bottom: 1px solid var(--b); display: flex; gap: 20px; }
.about-point:first-child { border-top: 1px solid var(--b); }
.about-point-num { font-size: 10px; color: var(--muted2); letter-spacing: .1em; min-width: 24px; padding-top: 2px; }
.about-point-body strong { font-family: var(--fd); font-size: 15px; font-weight: 700; display: block; margin-bottom: 4px; }
.about-point-body span { font-size: 13px; color: var(--muted2); line-height: 1.7; }

/* ── LABS ── */
.labs-box { border: 1px solid var(--b); padding: 56px; position: relative; overflow: hidden; }
.labs-box::before { content: 'LABS'; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); font-family: var(--fd); font-size: 160px; font-weight: 800; color: rgba(255,255,255,.018); letter-spacing: -.05em; pointer-events: none; user-select: none; line-height: 1; }
.labs-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.labs-sub { font-size: 14px; color: var(--muted2); max-width: 360px; line-height: 1.8; }
.labs-items { display: grid; grid-template-columns: repeat(5,1fr); gap: 1px; background: var(--b); }
.lab-item { background: var(--bg); padding: 24px 20px; transition: background .3s; }
.lab-item:hover { background: var(--card); }
.lab-item-name { font-family: var(--fd); font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.lab-item-desc { font-size: 12px; color: var(--muted2); line-height: 1.65; }

/* ── CTA BLOCK ── */
.cta-block {
  margin: 0 52px 96px;
  border: 1px solid var(--b2);
  padding: 72px 60px;
  display: flex; justify-content: space-between; align-items: center; gap: 36px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-block::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(255,255,255,.022) 0%, transparent 70%); pointer-events: none; }
.cta-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cta-right p { font-size: 13px; color: var(--muted2); text-align: right; line-height: 1.7; }

/* ── FOOTER ── */
.site-footer { padding: 36px 52px; border-top: 1px solid var(--b); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo img { width: 22px; height: 22px; object-fit: contain; }
.footer-logo span { font-family: var(--fd); font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 11px; color: var(--muted); letter-spacing: .04em; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 11px; color: var(--muted); }

/* ── SCROLL OFFSET for fixed nav ── */
#services, #work, #clients, #about {
  scroll-margin-top: 80px;
}
.blog-header { padding: 120px 52px 64px; border-bottom: 1px solid var(--b); }
.blog-header h1 { font-family: var(--fd); font-size: clamp(36px,5vw,64px); font-weight: 800; letter-spacing: -.03em; margin-top: 16px; }
.posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--b); border: 1px solid var(--b); margin: 52px; }
.post-card { background: var(--bg); padding: 36px 32px; transition: background .3s; position: relative; overflow: hidden; }
.post-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.post-card:hover { background: var(--card); }
.post-card:hover::before { transform: scaleX(1); }
.post-cat { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted2); margin-bottom: 14px; }
.post-title { font-family: var(--fd); font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 12px; }
.post-title a { color: var(--text); transition: opacity .2s; }
.post-title a:hover { opacity: .7; }
.post-excerpt { font-size: 13px; color: var(--muted2); line-height: 1.75; margin-bottom: 20px; }
.post-meta { font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.post-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 24px; }

/* ── SINGLE POST ── */
.single-header { padding: 120px 52px 52px; border-bottom: 1px solid var(--b); max-width: 800px; }
.single-cat { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted2); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.single-cat::after { content: ''; width: 28px; height: 1px; background: rgba(255,255,255,.2); }
.single-header h1 { font-family: var(--fd); font-size: clamp(32px,4.5vw,52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 20px; }
.single-meta { font-size: 11px; color: var(--muted2); letter-spacing: .06em; }
.single-thumb { width: calc(100% - 104px); margin: 0 52px; aspect-ratio: 16/6; object-fit: cover; border: 1px solid var(--b); margin-top: 52px; }
.single-content { max-width: 720px; margin: 52px auto; padding: 0 52px; font-size: 15px; color: var(--muted2); line-height: 1.9; }
.single-content h2,.single-content h3 { font-family: var(--fd); color: var(--text); margin: 40px 0 16px; letter-spacing: -.02em; }
.single-content h2 { font-size: 28px; font-weight: 800; }
.single-content h3 { font-size: 22px; font-weight: 700; }
.single-content p { margin-bottom: 20px; }
.single-content a { color: var(--text); border-bottom: 1px solid var(--b2); transition: border-color .2s; }
.single-content a:hover { border-color: var(--text); }
.single-content ul, .single-content ol { padding-left: 24px; margin-bottom: 20px; }
.single-content li { margin-bottom: 8px; }
.single-content blockquote { border-left: 2px solid #fff; padding-left: 24px; margin: 32px 0; font-style: italic; color: var(--muted2); }
.single-content img { width: 100%; border: 1px solid var(--b); margin: 24px 0; }
.single-content pre { background: var(--card); padding: 20px; border: 1px solid var(--b); overflow-x: auto; margin-bottom: 20px; font-size: 13px; }

/* ── CONTACT PAGE ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 120px 52px 96px; }
.contact-info p { font-size: 14px; color: var(--muted2); line-height: 1.85; margin-top: 20px; margin-bottom: 32px; }
.contact-detail { padding: 20px 0; border-bottom: 1px solid var(--b); font-size: 13px; color: var(--muted2); }
.contact-detail:first-of-type { border-top: 1px solid var(--b); }
.contact-detail strong { font-family: var(--fd); font-size: 11px; font-weight: 700; color: var(--text); display: block; margin-bottom: 4px; letter-spacing: .04em; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted2); }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--card);
  border: 1px solid var(--b);
  color: var(--text);
  font-family: var(--fm);
  font-size: 13px;
  padding: 14px 16px;
  transition: border-color .2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--b2); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-submit { background: #fff; color: #080808; border: none; font-family: var(--fm); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 14px 28px; cursor: pointer; transition: opacity .2s; align-self: flex-start; }
.form-submit:hover { opacity: .85; }

/* ── 404 ── */
.error-page { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 52px; }
.error-page h1 { font-family: var(--fd); font-size: clamp(80px,15vw,180px); font-weight: 800; letter-spacing: -.05em; -webkit-text-stroke: 1.5px var(--text); color: transparent; line-height: 1; margin-bottom: 16px; }
.error-page p { font-size: 14px; color: var(--muted2); margin-bottom: 32px; }

/* ── ANIMATE ── */
.fu { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fu.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 52px; }
.page-numbers { font-family: var(--fm); font-size: 12px; padding: 10px 16px; border: 1px solid var(--b); color: var(--muted2); transition: all .2s; letter-spacing: .06em; }
.page-numbers:hover, .page-numbers.current { border-color: var(--b2); color: var(--text); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .site-nav, .site-nav.scrolled { padding: 14px 20px; }
  .nav-menu, .nav-cta { display: none; }
  .burger { display: flex; }

  .hero { padding: 72px 20px 52px; }
  .hero h1 { font-size: clamp(30px, 7.8vw, 48px); margin-bottom: 32px; }
  .h1-outline { -webkit-text-stroke: 1px var(--text); }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero-sub { max-width: 100%; font-size: 13px; }
  .hero-btns { width: 100%; }
  .hero-btns .btn-primary, .hero-btns .btn-ghost { flex: 1; text-align: center; }

  .metrics { grid-template-columns: 1fr 1fr; }
  .met { padding: 20px 18px; }
  .met:nth-child(2) { border-right: none; }
  .met:nth-child(3) { border-top: 1px solid var(--b); }
  .met:nth-child(4) { border-top: 1px solid var(--b); border-right: none; }
  .met-n { font-size: 28px; }

  .section { padding: 56px 20px; }
  .section-top0 { padding-top: 0; }

  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 30px 22px; }

  .work-row { grid-template-columns: 1fr; }
  .work-row::after { display: none; }
  .work-main { padding: 24px 20px; border-right: none; border-bottom: 1px solid var(--b); }
  .work-stat { padding: 16px 20px 22px; flex-direction: row; align-items: center; gap: 12px; }

  .clients-list { margin-top: 28px; }
  .client-item { padding: 16px 22px; font-size: 13px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-text p { margin-top: 14px; }

  .labs-box { padding: 28px 20px; }
  .labs-box::before { display: none; }
  .labs-top { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
  .labs-items { grid-template-columns: 1fr 1fr; }
  .labs-items .lab-item:last-child { grid-column: 1 / -1; }

  .cta-block { margin: 0 20px 60px; padding: 40px 24px; flex-direction: column; align-items: flex-start; }
  .cta-right { align-items: flex-start; }
  .cta-right p { text-align: left; }
  .cta-block .section-title { font-size: 28px; }

  .site-footer { padding: 28px 20px; }
  .footer-links { display: none; }

  .posts-grid { grid-template-columns: 1fr; margin: 20px; }
  .blog-header { padding: 90px 20px 40px; }
  .single-header { padding: 90px 20px 40px; }
  .single-thumb { width: calc(100% - 40px); margin: 0 20px; margin-top: 32px; }
  .single-content { padding: 0 20px; margin: 32px auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; padding: 90px 20px 60px; }
  .error-page { padding: 20px; }
}
