
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');

:root {
  --bg:      oklch(100% 0.00011 271.152);
  --bg-alt:  oklch(96% 0.008 248);
  --surface: oklch(100% 0 0);
  --fg:      oklch(18% 0.018 248);
  --fg-soft: oklch(32% 0.016 248);
  --muted:   oklch(52% 0.016 248);
  --faint:   oklch(68% 0.012 248);
  --border:  oklch(90% 0.006 250);
  --border-hair: oklch(93% 0.004 250);
  --accent:  oklch(58% 0.16 145);
  --accent-soft: oklch(72% 0.10 145);
  --accent-very-soft: oklch(98.881% 0.01842 145.718);
  --shadow:  0 24px 48px -24px rgba(0,0,0,0.08);
  --radius:  8px;
  --radius-lg: 14px;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Righteous', 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  max-width: 100vw;
}
html { 
  -webkit-text-size-adjust: 100%; 
  text-size-adjust: 100%; 
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-wrap: break-word;
}

img, video, canvas { 
  max-width: 100%; 
  height: auto; 
  display: block; 
}

.container { 
  max-width: 1360px;
  padding: 0 64px; 
  margin: 0 auto; 
  position: relative; 
}

/* ── Side rails ── */
.side-rail {
  position: fixed; top: 0; bottom: 0; width: 36px; z-index: 3;
  pointer-events: none; display: flex; align-items: center; justify-content: center;
}
.side-rail.right { right: 0; border-left: 1px solid var(--border-hair); }
.side-rail.left  { left: 0;  border-right: 1px solid var(--border-hair); }

.rail-text {
  font-family: var(--font-body); 
  font-size: 10px; 
  font-weight: 600;
  letter-spacing: .42em; 
  text-transform: uppercase; 
  color: var(--faint);
  writing-mode: vertical-rl; 
  white-space: nowrap;
}



.side-rail.right .rail-text { 
  transform: rotate(180deg); 
}

.side-rail.left  .rail-text { 
  transform: none; 
}

.logo-text {
  font-family: var(--font-mono); 
}


/* ── Nav ── */
.nav {
  padding: 20px 0; position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav.is-hidden { transform: translateY(-100%); pointer-events: none; }
.nav--menu-open { transform: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; pointer-events: auto !important; }
.nav.nav--solid {
  background: oklch(100% 0.00011 271.152 / 0.80); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-hair);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em;
  color: var(--fg); text-decoration: none; font-size: 18px;
  transition: color .4s ease;
}
.nav:not(.nav--solid) .brand { color: var(--surface); }
.brand-mark {
  width: 40px; height: 40px; display: inline-flex; align-items: center;
  justify-content: center; border: 1.5px solid var(--fg); border-radius: 50%;
  font-family: var(--font-mono); font-size: 16px; font-weight: 600;
  color: var(--fg); background: transparent; letter-spacing: 0;
  transition: border-color .4s ease, color .4s ease;
}
.nav:not(.nav--solid) .brand-mark { border-color: var(--surface); color: var(--surface); }


.nav-links { display: flex; gap: 38px; list-style: none; }
.nav-links a {
  color: oklch(100% 0 0 / .85); text-decoration: none; font-family: var(--font-body);
  font-size: 14px; font-weight: 500; position: relative;
}
.nav.nav--solid .nav-links a { color: var(--fg); }
.nav-links a:hover { color: var(--accent); }
.nav.nav--solid .nav-links a:hover { color: var(--accent); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle { display: none; }
.nav-overlay { display: none; }
.nav-close { display: none; }


/* ── Labels / shared elements ── */
.label {
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .20em;
  text-transform: uppercase; color: var(--accent); display: inline-flex;
  align-items: center; gap: 10px;
}
.label:before { content: ""; width: 20px; height: 1.5px; background: var(--accent); display: inline-block; }
.label.no-line:before { display: none; }
.label .ix { color: var(--muted); font-weight: 500; margin-left: 2px; }

.display {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.028em;
  color: var(--fg); line-height: 1;
}
.display em { font-style: italic; font-weight: 600; letter-spacing: -.018em; font-family: var(--font-display); }
.display .dot { color: var(--accent); }

.lead { font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--fg-soft); max-width: 36ch; }
.meta { font-family: var(--font-body); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.coord { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: var(--faint); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px;
  border-radius: 999px; font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: -.005em; text-decoration: none; border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); background: oklch(52% 0.14 145); }
.btn .arrow { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; }
.btn .arrow svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.code-inline {
  font-family: var(--font-mono); font-size: 13.5px; background: var(--border-hair);
  padding: 1px 6px; border-radius: 4px; font-weight: 500;
}

.sec-rule {
  position: sticky; 
  top: 0; 
  background: var(--bg);
  padding: 6px 0 10px; margin-bottom: 48px;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  font-family: var(--font-body); 
  font-size: 10px; 
  letter-spacing: .16em;
  text-transform: uppercase; 
  color: var(--faint); 
  font-weight: 500;
  border-bottom: 1px solid var(--border-hair);
}

.sec-rule .roman {
  font-family: var(--font-mono); font-weight: 600; color: var(--accent); font-size: 14px;
  letter-spacing: .04em; text-transform: none;
}
.sec-rule .page-number {
  font-family: var(--font-mono); font-weight: 600; color: var(--accent); 
}
.sec-rule .meta-grp { display: inline-flex; gap: 15px; }
.sec-rule .dot-mark { color: var(--accent); }

/* ── Hero ── */
.hero {
  position: relative; padding: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-video {
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  object-fit: cover; 
  z-index: 0; 
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: oklch(0% 0 0 / 0.181);
  z-index: 1; 
  pointer-events: none;
}

.hero .container {
  position: relative; 
  z-index: 2;
}

.hero-grid {
  display: flex; 
  align-items: center; 
  width: 100%; 
  position: relative; 
  flex: 1 1 auto;
}

.hero-copy { 
  padding: 9rem 0 4vh; 
  display: flex; 
  flex-direction: column; 
  position: relative; 
  max-width: 65ch; 
}

.hero-copy .label { margin-bottom: 26px; }
.hero .label { color: var(--accent-soft); }
.hero .label:before { background: var(--accent-soft); }
.hero .label .ix { color: oklch(100% 0 0 / .5); }
.hero h1 { color: var(--surface); }
.hero h1 .dot { color: var(--accent-soft); }
.hero .lead { color: oklch(100% 0 0 / .7); }
.hero .hero-foot { border-top-color: oklch(100% 0 0 / .15); }
.hero .meta { color: oklch(100% 0 0 / .5); }
.hero .coord { color: oklch(100% 0 0 / .5); }

.hero-copy .lead { margin-bottom: 30px; max-width: 38ch; font-size: 16px; }
.hero h1 {
  font-size: clamp(44px,5vw,60px); line-height: 1; margin-bottom: 28px;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.028em;
}
.hero h1 em { font-style: italic; font-weight: 600; }
.hero h1 .dot { color: var(--accent); }

.hero-actions { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 38px; }
.hero-social {
  display: flex; align-items: center; gap: 6px; margin-bottom: 28px;
}
.social-link {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  padding: 10px 18px; 
  border-radius: 8px;
  color: var(--surface); 
  text-decoration: none;
  font-family: var(--font-body); 
  font-size: 13px; font-weight: 600;
  letter-spacing: .02em;
  transition: transform .22s ease;
}
.social-link svg {
  width: 18px; height: 18px; flex-shrink: 0;
}
.social-link:hover {
  color: var(--accent-soft);
  transform: translateY(-1px);
}
.hero-foot {
  margin-top: auto; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}



/* ── Section base ── */

section { 
  position: relative; 
  padding: 20px 0;
}

/* ── About ── */
.about { min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; margin-top: 3rem;}
.about h2 { font-size: clamp(36px,4.6vw,54px); margin: 28px 0 34px; }
.about .lead { margin-bottom: 34px; max-width: 42ch; font-size: 17px; }
.about .footer-row { display: flex; align-items: center; gap: 20px; margin-top: 52px; color: var(--faint); 
  font-family: var(--font-body); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.about .footer-row .mark { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--fg); display: inline-flex; 
  align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 16px; font-weight: 600; color: var(--fg);}
.about .stamp { margin-left: auto; display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.4; }
.about .stamp span:first-child { color: var(--accent); font-weight: 600; }
.about-art { position: relative; aspect-ratio: 1 / 1; max-width: 620px; margin-left: auto; }
.about-art-img {width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); display: block;}
.about-caption { position: absolute; right: 18px; bottom: 4px; font-family: var(--font-body); font-size: 9.5px; color: var(--faint); 
  text-align: right; letter-spacing: .06em; line-height: 1.45;}
.about-caption b { color: var(--fg); display: block; font-weight: 600; }



/* ── Capabilities ── */


.capabilities { min-height: 100vh; display: flex; flex-direction: column;  overflow: hidden; background: var(--bg-alt); }
.capabilities .sec-rule {background: var(--bg-alt);}
.capabilities-grid { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.capabilities-head h2 { font-size: clamp(36px,4.6vw,54px); margin: 2rem 0 2rem; max-width: 28ch; }
.capabilities-head p { font-family: var(--font-body); font-size: 10.5px; margin: 30px 0 40px; letter-spacing: .16em; text-transform: uppercase; 
  color: var(--faint); font-weight: 500; }

/* Capabilities rows */

.capabilities-list { display: flex; flex-direction: column; width: 100%; }
.capability-row {
  display: flex; gap: 40px;
  padding: 15px 100px;
  border-radius: var(--radius-lg);
  transition: background .25s ease;
}
.capability-row:hover { background: oklch(18% 0.018 248 / .03); }
.capability-body { flex: 1; }
.capability-heading {
  display: flex; align-items: baseline;
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  letter-spacing: -.02em; color: var(--fg);
}
.capability-heading strong { font-weight: inherit; }
.capability-num {
  color: var(--accent); width: 1.6em; text-align: right;
  padding-right: .25em; flex-shrink: 0;
  font-family: var(--font-mono); font-size: .85em; font-weight: 500;
}
.capability-tagline {
  padding-left: calc(1.6em + .25em);
  font-family: var(--font-body); font-size: 14px; color: var(--muted);
  margin-top: 6px;
}
.capability-icon { flex-shrink: 0; width: 52px; height: 52px; padding-top: 5px; }
.capability-icon img { width: 100%; height: 100%; object-fit: contain; }
.labs-foot {
  display: flex; align-items: center; justify-content: right; margin-top: 48px; padding-top: 22px; }

/* ── Work Section ── */
.work-section { min-height: 100vh; }


.work-section-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; margin-bottom: 20px; }
.work-section-head h2 { font-size: clamp(38px,4.6vw,62px); }
.work-section-head .right { display: flex; align-items: flex-start; gap: 14px; padding-top: 14px; }
.work-section-head .plus { color: var(--accent); font-size: 24px; line-height: 1; font-family: var(--font-body); font-weight: 700; }
.work-section-head .right p { font-family: var(--font-body); font-size: 13px; color: var(--fg-soft); max-width: 22ch; line-height: 1.55; }

.work-section-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 36px;
}
.proj-card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border-hair); overflow: hidden; 
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease; text-decoration: none; color: inherit; display: flex; 
  flex-direction: column; }
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border); }
.proj-card .proj-img {
  aspect-ratio: 16 / 9; overflow: hidden; position: relative;
}
.proj-card .proj-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-card .proj-img .proj-badge {
  position: absolute; top: 14px; left: 14px; padding: 5px 12px;
  border-radius: 4px; background: var(--surface);
  font-family: var(--font-body); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.proj-card .proj-body { padding: 10px 15px 15px; flex: 1; display: flex; flex-direction: column; }
.proj-card .proj-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--faint);
  letter-spacing: .04em; margin-bottom: 14px;
}
.proj-card .proj-meta .proj-year { color: var(--accent); font-weight: 600; }
.proj-card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: -.014em; margin-bottom: 12px;
}
.proj-card p {
  font-family: var(--font-body); font-size: 13.5px; color: var(--muted);
  line-height: 1.55; margin-bottom: 20px;
}
.proj-card .proj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.proj-card .proj-tags span {
  padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border);
  font-family: var(--font-body); font-size: 10.5px; color: var(--muted);
  font-weight: 500; letter-spacing: .04em;
}

.work-section-foot { margin-top: 10px; display: flex; justify-content:right; align-items: right; padding-top: 10px; }
.work-section-foot .left, .work-section-foot .right { font-family: var(--font-body); font-size: 11px; color: var(--faint);
  letter-spacing: .14em; text-transform: uppercase; font-weight: 500;}
.work-section-foot .left { display: inline-flex; align-items: center; gap: 12px; }
.work-section-foot .left .ring { width: 20px; height: 20px; border: 1.5px solid var(--faint); border-radius: 50%; }
.work-section-foot .right { display: inline-flex; align-items: center; gap: 10px; }
.work-section-foot .right b { color: var(--fg); font-weight: 700; }
.work-section-foot .right a {
  color: var(--accent); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid transparent; transition: border-color .18s ease;
}
.work-section-foot .right a:hover { border-bottom-color: var(--accent); }

/* ── CTA ── */
.cta { background: var(--bg-alt); min-height: 100vh; }
.cta .sec-rule {background: var(--bg-alt); }

.cta-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; margin-top: 5rem; }
.cta h2 { font-size: clamp(38px,5vw,56px); margin: 32px 0; }
.cta .meta { margin-bottom: 36px; font-size: 12px; }
.cta-actions { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.cta-foot {
  display: flex; gap: 28px; align-items: center; margin-top: 32px;
  padding-top: 22px; border-top: 1px solid var(--border);
  font-family: var(--font-body); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); font-weight: 500;
}
.cta-foot .stamp { color: var(--accent); font-weight: 700; }
/* ── Contact Form ── */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.form__group {
  margin-bottom: 20px;
}
.form__group label {
  display: block;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form__group input,
.form__group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
  box-sizing: border-box;
  resize: vertical;
}
.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(58% 0.16 145 / .12);
}

.submit__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.submit__btn:hover {
  transform: translateY(-1px);
  background: oklch(52% 0.14 145);
}

.form__message {
  font-family: var(--font-body);
  font-size: 13px;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 880px) {
  .contact-form {
    padding: 28px 22px;
  }
}

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 30px 0 30px; margin-top: 60px; background: var(--bg-alt);}

.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; justify-content: start; gap: 80px; margin-bottom: 60px; }
.foot-brand .brand { margin-bottom: 18px; }
.foot-brand p { font-family: var(--font-body); font-size: 13.5px; color: var(--muted); line-height: 1.55; max-width: 38ch;}
.foot-col h5 { font-family: var(--font-body); font-size: 11px; color: var(--fg); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 0px; }
.foot-col a { font-family: var(--font-body); font-size: 13.5px; color: var(--fg-soft); text-decoration: none; }
.foot-col a:hover { color: var(--accent); }

.foot-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-body); font-size: 11px; letter-spacing: .14em; color: var(--faint); font-weight: 500; }
.foot-bottom .right { display: inline-flex; gap: 24px; align-items: center; }
.foot-mega { margin-top: 60px; padding-bottom: 12px; border-top: 1px solid var(--border); }
.foot-mega .word { font-family: var(--font-mono); font-weight: 900; font-size: clamp(48px,10vw,100px); letter-spacing: -.04em; 
  line-height: 1.05; color: var(--fg); white-space: nowrap; margin-top: 30px; padding-bottom: .18em; }
.foot-mega .word em { font-style: italic; font-weight: 700; color: var(--accent); }

/* ── Scroll reveal ── */
[data-reveal] {
  opacity: 0; translate: 0 28px;
  transition: opacity .9s cubic-bezier(.22,1,.36,1) var(--reveal-delay, 0ms),
              translate .9s cubic-bezier(.22,1,.36,1) var(--reveal-delay, 0ms),
              scale .9s cubic-bezier(.22,1,.36,1) var(--reveal-delay, 0ms);
  will-change: opacity, translate, scale;
}
[data-reveal=right] { translate: 36px 0; }
[data-reveal=rise-lg] { translate: 0 64px; scale: .985; }
[data-reveal][data-revealed=true] { opacity: 1; translate: 0 0; scale: 1; }

/* Stagger delays */
.hero-copy > [data-reveal]:nth-of-type(1) { --reveal-delay: 0ms; }
.hero-copy > [data-reveal]:nth-of-type(2) { --reveal-delay: 80ms; }
.hero-copy > [data-reveal]:nth-of-type(3) { --reveal-delay: .16s; }
.hero-copy > [data-reveal]:nth-of-type(4) { --reveal-delay: .24s; }
.hero-copy > [data-reveal]:nth-of-type(5) { --reveal-delay: .32s; }
.hero-copy > [data-reveal]:nth-of-type(6) { --reveal-delay: .4s; }
.work-section-grid > .proj-card[data-reveal]:nth-child(1) { --reveal-delay: 0ms; }
.work-section-grid > .proj-card[data-reveal]:nth-child(2) { --reveal-delay: .12s; }
.work-section-grid > .proj-card[data-reveal]:nth-child(3) { --reveal-delay: .24s; }

/* ── Responsive ── */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; translate: 0 0 !important; scale: 1 !important; transition: none !important; }
  .nav { transition: none !important; }
}


@media (hover: none) and (pointer: coarse) { 
  .side-rail {
    display: none;
  }
}

@media (max-width: 1280px) {
  .container { padding: 0 44px; }
}

@media (max-width: 1180px) {
  .nav-inner { gap: 18px; }
  .nav-links { gap: 28px; }
  .side-rail { display: none; }  
}

@media (max-width: 1080px) {
  .container { padding: 0 32px; }
  .hero h1 { font-size: clamp(36px,4.6vw,54px); }
  .foot-grid { grid-template-columns: auto auto auto; }
  .foot-grid .foot-col:nth-child(3), .foot-grid .foot-col:nth-child(5) { display: none; }
}

@media (max-width: 880px) {
  .container { padding: 0 24px; }
  .about { min-height: 0; }
  .hero-grid, .about-grid, .cta-grid { grid-template-columns: 1fr; gap: 48px; }
  .capability-row { padding: 15px 40px; gap: 28px; }
  .capability-heading { font-size: 24px; }
  .capabilities { min-height: 0; }
  .hero-grid .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(32px,5.5vw,48px); }
  .hero-copy { padding: clamp(5rem,12vh,9rem) 0 clamp(1rem,3vh,4vh); }
  .hero-copy .lead { max-width: none; }
  .hero-social { flex-wrap: wrap; }
  .social-link { padding: 8px 14px; font-size: 12px; }
  .social-link svg { width: 15px; height: 15px; }
  .work-section-head { grid-template-columns: 1fr; gap: 28px; }
  .work-section-grid { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .hero-grid { gap: 28px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-foot { flex-wrap: wrap; gap: 12px 24px; padding-top: 18px; }
  .sec-rule { flex-wrap: wrap; gap: 6px 13px; font-size: 8px;}
  .sec-rule .meta-grp { gap: 5px; flex-wrap: wrap; }
  .sec-rule .roman { font-size: 10px; }
  .about-art { max-width: 460px; margin: 0 auto; }
  .about-caption { right: 12px; }
  .about .footer-row { flex-wrap: wrap; gap: 14px 20px; margin-top: 36px; }
  .capabilities .container { padding: 0 32px; }
  .capabilities-grid { gap: 28px; }
  .cta-actions { flex-wrap: wrap; }
  .cta-foot { flex-wrap: wrap; gap: 14px 24px; }
  .foot-grid { grid-template-columns: auto auto auto; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .foot-bottom .right { flex-wrap: wrap; gap: 12px 20px; }
  .nav { padding: 14px 0; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 8px; z-index: 70; position: relative;
  }
  .nav-toggle-bar {
    width: 24px; height: 2px; border-radius: 2px;
    background: var(--surface);
  }
  .nav--solid .nav-toggle-bar { background: var(--fg); }

  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 60;
    background: var(--bg); opacity: 0; pointer-events: none;
  }
  .nav--menu-open .nav-overlay { opacity: 1; pointer-events: auto; }

  .nav-close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 24px; right: 24px;
    width: 44px; height: 44px;
    background: none; border: 1px solid var(--border);
    border-radius: 50%; font-size: 28px; font-weight: 300;
    color: var(--fg); cursor: pointer; line-height: 1;
    z-index: 70;
  }
  .nav-close:hover { border-color: var(--accent); color: var(--accent); }

  .nav-links {
    position: fixed; inset: 0; z-index: 65;
    display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center;
    gap: clamp(28px,5vh,42px);
    padding-left: clamp(32px,8vw,80px);
    opacity: 0; pointer-events: none;
  }
  .nav--menu-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-links a {
    font-size: clamp(32px,8vw,56px); font-weight: 800;
    letter-spacing: -.02em; color: var(--fg);
    position: relative;
    transition: transform .22s ease, color .18s ease;
  }
  .nav-links a::before {
    content: "\2192";
    position: absolute;
    left: clamp(-28px,-5vw,-44px);
    opacity: 0;
    color: var(--accent);
    font-weight: 400;
    transition: opacity .18s ease;
  }
  .nav-links a:hover {
    transform: translateX(14px);
    color: var(--accent);
  }
  .nav-links a:hover::before {
    opacity: 1;
  }
  .nav-links a::after { display: none; }
  .nav--menu-open .nav-links a::after { display: none; }

  .nav--menu-open .nav-toggle-bar:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .nav--menu-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav--menu-open .nav-toggle-bar:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
  .nav--menu-open .nav-toggle { opacity: 0; }
  .foot-mega .word { font-size: clamp(42px,8vw,64px); }
}

@media (max-width: 640px) {
  .hero-actions .btn { padding: 12px 18px; font-size: 13px; }
  .foot-mega .word { font-size: clamp(36px,10vw,52px); }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: clamp(30px,9vw,40px); }
  .hero-copy { padding: clamp(3rem,8vh,5rem) 0 clamp(0.5rem,2vh,2vh); }
  .hero .lead { font-size: 14px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .about h2, .capabilities-head h2, .work-section-head h2, .cta h2 { font-size: clamp(30px,8.5vw,44px); }
  .cta h2 { font-size: clamp(34px,10vw,54px); }
  .capability-row { gap: 18px; padding: 10px 10px; }
  .capability-heading { font-size: 22px; }
  .capability-icon { width: 44px; height: 44px; }
  .work-section-grid { grid-template-columns: 1fr; gap: 24px; }
  section { padding: 10px 0 40px; }
  .foot-grid { grid-template-columns: auto; gap: 24px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; justify-content: center; }
  .foot-mega .word { font-size: clamp(32px,11vw,48px); }
}

@media (max-width: 420px) {

  .container { padding: 0 14px; }
  .hero h1 { font-size: clamp(26px,8vw,34px); }
  .hero-foot { font-size: 9.5px; }
  .social-link { padding: 6px 12px; font-size: 11px; }
  .social-link svg { width: 14px; height: 14px; }
  .sec-rule { font-size: 7px; gap: 3px 6px; }
  .sec-rule .roman {font-size: 7px; }
  .foot-mega .word { font-size: clamp(28px,10vw,40px); }
  .capability-row { gap: 16px; padding: 15px 10px; }
  .capability-heading { font-size: 20px; }
  .capability-icon { width: 38px; height: 38px;}
  .capability-tagline { padding-left: calc(1.6em + .25em); font-size: 13px; }
}

/* ================================================================
   BLOG
   ================================================================ */

/* ── Blog listing page ── */
.blog-header {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 36px;
}
.blog-header h1 {
  font-family: var(--font-display);
  font-size: clamp(38px,4.6vw,62px);
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1;
  margin: 12px 0;
}
.blog-header p {
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.search-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  width: 100%;
  max-width: 320px;
  margin-left: auto;
}
.search-wrapper svg {
  width: 18px;
  height: 18px;
  color: var(--faint);
  flex-shrink: 0;
}
.search-wrapper input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg);
  width: 100%;
}
.search-wrapper input::placeholder { color: var(--faint); }

/* ── Filter pills ── */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--fg-soft);
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  transition: all .18s ease;
}
.filter-pill:hover { background: oklch(18% 0.018 248 / .04); }
.filter-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Tags ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tag-financing  { background: oklch(58% 0.14 145 / .82); color: #fff; }
.tag-lifestyle  { background: oklch(60% 0.15 255 / .82); color: #fff; }
.tag-community  { background: oklch(58% 0.15 35 / .82); color: #fff; }
.tag-muted {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .02em;
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
}
.empty-state p:first-child {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}
.empty-state a { color: var(--accent); text-decoration: underline; }

/* ── Article detail ── */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 28px;
  transition: color .18s ease;
}
.article-back:hover { color: var(--fg); }
.article-back svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.article-hero {

  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-header-meta .dot {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: .04em;
}

.article-detail h1 {
  font-family: var(--font-display);
  font-size: clamp(32px,4.2vw,48px);
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1.08;
  margin-bottom: 16px;
}
.article-detail .subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.article-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.article-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.article-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.author-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.author-bio {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.share-buttons {
  display: flex;
  gap: 8px;
}
.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;        
  cursor: pointer;
  text-decoration: none;
  transition: all .18s ease;
}
.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.share-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.article-content {
  font-family: var(--font-body);
  line-height: 1.75;
}
.article-content .introduction {
  font-size: 17px;
  color: var(--fg-soft);
  margin-bottom: 36px;
}
.content-section {
  margin-bottom: 32px;
}
.content-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.014em;
  margin-bottom: 14px;
  color: var(--fg);
}
.content-section p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg-soft);
  line-height: 1.75;
}
.article-conclusion {
  margin-top: 36px;
  padding: 28px 32px;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-conclusion p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg-soft);
  line-height: 1.75;
  font-style: italic;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* ── Mobile share bar ── */
.mobile-share {
  display: none;
  margin-top: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mobile-share .share-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}
.mobile-share .share-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.share-btn-wide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s ease;
}
.share-btn-wide:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.share-btn-wide svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* ── Related section ── */
.related-section {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.related-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px,3.2vw,36px);
  font-weight: 700;
  letter-spacing: -.018em;
  margin-bottom: 32px;
}

/* ── Spacing for blog page ── */
.blog-page-content { padding: 120px 0 60px; }

/* ── Animations ── */
.animate-slide-up {
  opacity: 0;
  translate: 0 28px;
  animation: slideUp .6s cubic-bezier(.22,1,.36,1) forwards;
}
.animate-slide-down {
  opacity: 0;
  translate: 0 -18px;
  animation: slideDown .5s cubic-bezier(.22,1,.36,1) forwards;
}
.animate-fade-in {
  opacity: 0;
  animation: fadeIn .6s cubic-bezier(.22,1,.36,1) forwards;
  animation-fill-mode: forwards;
}
@keyframes slideUp   { to { opacity: 1; translate: 0 0; } }
@keyframes slideDown { to { opacity: 1; translate: 0 0; } }
@keyframes fadeIn    { to { opacity: 1; } }
.stagger-1 { animation-delay: .08s; }
.stagger-2 { animation-delay: .16s; }
.stagger-3 { animation-delay: .24s; }
.stagger-4 { animation-delay: .32s; }
.stagger-5 { animation-delay: .4s; }
.stagger-6 { animation-delay: .48s; }

/* ── Blog section on homepage ── */
.blog-section { padding-top: 20px; min-height: 100vh; }
.blog-section .sec-rule { background: var(--bg); margin-bottom: 3rem;}
.blog-section-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 5rem;}
.blog-section-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hair);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-section-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border);
}
.blog-section-card .card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.blog-section-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-section-card .card-body {
  padding: 18px 18px 5px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-section-card .card-category {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.blog-section-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.012em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.blog-section-card p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-section-card .card-date {
  font-family: var(--font-body);
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: .04em;
  margin-top: auto;
}

/* ── Blog responsive ── */
@media (max-width: 1080px) {
  .blog-section-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 880px) {
  .blog-header { grid-template-columns: 1fr; gap: 24px; }
  .search-wrapper { max-width: none; margin-left: 0; }
  .article-detail { max-width: none; }
  .article-author-bar { flex-direction: column; align-items: flex-start; gap: 16px; }
  .mobile-share { display: block; }
  .share-buttons { display: none; }
  .blog-section-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .blog-section-grid { grid-template-columns: 1fr; }
}