/* =========================================================================
   Alin Rosca — Editorial dark / cool palette
   ========================================================================= */

:root {
  /* Hex fallbacks for browsers without oklch support */
  --bg:        #141e2c;
  --bg-2:      #192436;
  --bg-3:      #1f2d40;
  --line:      #2b3e52;
  --line-soft: #22334a;
  --fg:        #f3f5f7;
  --fg-2:      #ccd2d9;
  --muted:     #8da0b0;
  --muted-2:   #637585;
  --ice:       #8fcef0;
  --steel:     #6a96b5;
  --deep:      #2f6faa;

  --serif:  "Instrument Serif", "Times New Roman", serif;
  --sans:   "Geist", "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1440px;
  --pad: clamp(24px, 5vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@supports (color: oklch(0 0 0)) {
  :root {
    --bg:        oklch(0.16 0.018 245);
    --bg-2:      oklch(0.20 0.022 245);
    --bg-3:      oklch(0.24 0.025 245);
    --line:      oklch(0.32 0.020 245);
    --line-soft: oklch(0.26 0.018 245);
    --fg:        oklch(0.97 0.005 245);
    --fg-2:      oklch(0.82 0.015 245);
    --muted:     oklch(0.62 0.025 245);
    --muted-2:   oklch(0.48 0.025 245);
    --ice:       oklch(0.86 0.085 230);
    --steel:     oklch(0.62 0.060 240);
    --deep:      oklch(0.48 0.130 245);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
  background: var(--bg);
  background:
    radial-gradient(1200px 800px at 80% -10%, oklch(0.28 0.08 245 / 0.35), transparent 60%),
    radial-gradient(900px 600px at -10% 100%, oklch(0.30 0.06 235 / 0.25), transparent 60%),
    var(--bg);
}

/* subtle grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.7 0 0 0 0 0.9 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.45;
  z-index: 2;
}

/* faint grid */
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.025) 1px, transparent 1px);
  background-size: calc((100vw - var(--pad) * 2) / 12) 100%;
  background-position: var(--pad) 0;
  pointer-events: none;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--ice); color: var(--bg); }

/* =========================================================================
   Custom cursor
   ========================================================================= */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ice);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease),
              background .25s var(--ease), opacity .2s var(--ease);
  mix-blend-mode: difference;
}
.cursor.is-hover {
  width: 56px; height: 56px;
  background: var(--ice);
}
.cursor.is-text {
  width: 4px; height: 22px; border-radius: 2px;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid oklch(1 0 0 / 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}

@media (hover: none) {
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* =========================================================================
   Layout
   ========================================================================= */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 3;
}

main { position: relative; z-index: 3; }

section { position: relative; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--muted);
  display: inline-block;
}
.eyebrow.no-line::before { display: none; }

.num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* =========================================================================
   Header / nav
   ========================================================================= */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 32px;
  background: oklch(0.18 0.022 245 / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid oklch(0.32 0.020 245 / 0.7);
  border-radius: 999px;
  width: max-content;
  max-width: calc(100% - 48px);
  color: var(--fg);
}
.nav .brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav .brand .dot {
  width: 8px; height: 8px;
  background: oklch(0.7 0.18 145);
  border-radius: 50%;
  box-shadow: 0 0 12px oklch(0.7 0.18 145 / 0.7);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav ul a {
  position: relative;
  padding: 6px 0;
  opacity: 0.85;
}
.nav ul a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor;
  transition: right .4s var(--ease);
}
.nav ul a:hover::after, .nav ul a.active::after { right: 0; }

.nav .nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease);
  color: var(--fg);
}
.nav .nav-cta:hover { background: var(--fg); color: var(--bg); }
.nav .nav-cta-primary {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ice);
  color: oklch(0.16 0.018 245);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
  transition: background .3s var(--ease);
}
.nav .nav-cta-primary:hover { background: oklch(0.78 0.08 230); }

@media (max-width: 760px) {
  .nav ul { display: none; }
}

/* Hamburger button */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
@media (max-width: 760px) {
  .nav-burger { display: flex; }
}

/* Mobile menu panel */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.nav-mobile.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.nav-mobile a {
  font-family: var(--serif);
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 400;
  color: var(--fg);
  letter-spacing: -0.02em;
  transition: color .2s var(--ease);
}
.nav-mobile a:hover { color: var(--ice); }
.nav-mobile .nav-mobile-cta {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 12px 24px;
  border-radius: 999px;
  color: var(--fg);
}
.nav-mobile .nav-mobile-cta.primary {
  background: var(--ice);
  color: var(--bg);
  border-color: var(--ice);
}
@media (min-width: 761px) {
  .nav-mobile { display: none !important; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  padding-top: 100px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  position: relative;
  align-items: center;
  text-align: center;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta .cell .l { display: block; color: var(--muted-2); margin-bottom: 4px; font-size: 10px; }
.hero-meta .cell .v { color: var(--fg-2); font-size: 12px; }
.hero-meta .live::before {
  content: "";
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0.7 0.18 145);
  margin-right: 6px;
  box-shadow: 0 0 8px oklch(0.7 0.18 145 / 0.8);
  vertical-align: middle;
  animation: pulse 2s var(--ease) infinite;
}

@media (max-width: 760px) {
  .hero-meta { grid-template-columns: 1fr 1fr; }
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 196px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.hero-title em {
  font-style: italic;
  color: var(--ice);
  font-weight: 400;
}
.hero-title .stack { display: block; }
.hero-title .indent { display: inline-block; padding-left: 0; }

.hero-sub {
  max-width: 560px;
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--fg-2);
  line-height: 1.55;
  margin-top: 28px;
  text-align: center;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue .bar {
  position: relative;
  width: 60px; height: 1px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue .bar::after {
  content: ""; position: absolute; left: -50%; top: 0;
  width: 50%; height: 100%; background: var(--ice);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateX(0); }
  100% { transform: translateX(300%); }
}

/* =========================================================================
   Marquee
   ========================================================================= */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 28px 0;
  background: oklch(0.18 0.022 245);
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
  width: max-content;
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 88px);
  font-style: italic;
  color: var(--fg);
  align-items: center;
}
.marquee-track .star {
  font-family: var(--sans);
  font-style: normal;
  font-size: 28px;
  color: var(--ice);
  display: inline-block;
  transform: translateY(-6px);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================================
   Section header
   ========================================================================= */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: end;
  padding: 120px 0 56px;
  border-top: 1px solid var(--line);
}
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.sec-head h2 em { font-style: italic; color: var(--ice); }
.sec-head .lede {
  color: var(--fg-2);
  max-width: 540px;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
}

@media (max-width: 760px) {
  .sec-head { grid-template-columns: 1fr; }
}

/* =========================================================================
   About / Bio
   ========================================================================= */
.about {
  padding-bottom: 120px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-grid p {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.3;
  color: var(--fg);
}
.about-grid p em { color: var(--ice); font-style: italic; }

.about-side {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-side .row { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.about-side .row span:first-child { color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.1em; }
.about-side .row span:last-child { color: var(--fg-2); }

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================================================
   Work
   ========================================================================= */
.work { padding-bottom: 120px; }

.work-list {
  border-top: 1px solid var(--line);
}
.work-item {
  display: grid;
  grid-template-columns: 60px 1fr 1.4fr 220px 200px 24px;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding .5s var(--ease);
}
.work-item:hover { padding-left: 24px; padding-right: 24px; }
.work-item .wi-num { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.work-item .wi-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.work-item .wi-title em { font-style: italic; color: var(--ice); }
.work-item .wi-desc { color: var(--fg-2); font-size: 14px; line-height: 1.5; }
.work-item .wi-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.work-item .wi-arrow { font-family: var(--serif); font-size: 22px; color: var(--fg); transition: transform .4s var(--ease); }
.work-item:hover .wi-arrow { transform: translateX(8px); }

/* hover preview floating panel */
.work-item .preview {
  width: 200px;
  height: 120px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  overflow: hidden;
  transform-origin: right center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  z-index: 1;
  position: relative;
}
.work-item:hover .preview {
  transform: scale(2.2);
  box-shadow: 0 24px 60px oklch(0 0 0 / 0.5);
  z-index: 10;
}

@media (max-width: 980px) {
  .work-item { grid-template-columns: 32px 1fr 120px 24px; }
  .work-item .wi-desc, .work-item .wi-meta { display: none; }
  .work-item .preview { width: 120px; height: 75px; }
}

/* placeholder visuals */
.ph {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, oklch(0.28 0.03 245) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, oklch(0.30 0.08 240), oklch(0.22 0.04 245));
  position: relative;
  display: flex;
  align-items: center; justify-content: center;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.55);
  background: oklch(0 0 0 / 0.5);
  padding: 6px 10px;
  border: 1px solid oklch(1 0 0 / 0.12);
}

/* =========================================================================
   Services / Pricing
   ========================================================================= */
.services { padding-bottom: 120px; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.svc {
  background: var(--bg);
  padding: 36px 32px 44px;
  position: relative;
  overflow: hidden;
  transition: background .4s var(--ease);
}
.svc:hover { background: var(--bg-2); }
.svc .svc-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.svc h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 38px);
  letter-spacing: -0.01em;
  margin-top: 12px;
  line-height: 1.05;
}
.svc h3 em { font-style: italic; color: var(--ice); }
.svc .svc-desc {
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
  min-height: 84px;
}
.svc ul {
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-2);
  margin-top: 24px;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc ul li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.svc ul li::before {
  content: "+";
  color: var(--ice);
  font-family: var(--mono);
}
.svc .svc-price {
  margin-top: 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
}
.svc .svc-price .p {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.01em;
}
.svc .svc-price .u {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 980px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Testimonials
   ========================================================================= */
.testi { padding-bottom: 120px; }
.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.testi-card {
  background: var(--bg);
  padding: 44px 40px;
  position: relative;
}
.testi-card blockquote {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.35;
  color: var(--fg);
}
.testi-card blockquote em { font-style: italic; color: var(--ice); }
.testi-card .who {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi-card .who .av {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ice), var(--deep));
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--bg);
  font-weight: 500;
}
.testi-card .who .nm {
  display: flex; flex-direction: column;
}
.testi-card .who .nm b { font-family: var(--sans); font-weight: 500; font-size: 14px; color: var(--fg); }
.testi-card .who .nm span { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.testi-card .quote-mark {
  position: absolute;
  top: 24px; right: 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 80px;
  color: var(--line);
  line-height: 1;
}

@media (max-width: 880px) {
  .testi-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   CTA / Contact
   ========================================================================= */
.cta {
  padding-top: 140px;
  padding-bottom: 120px;
  border-top: 1px solid var(--line);
  position: relative;
}
.cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(60px, 12vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-align: center;
}
.cta h2 em { font-style: italic; color: var(--ice); }
.cta .cta-sub {
  text-align: center;
  color: var(--fg-2);
  font-size: clamp(15px, 1.1vw, 17px);
  margin-top: 32px;
}

/* contact form */
.contact-form {
  max-width: 680px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cf-field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cf-field input,
.cf-field textarea {
  background: oklch(0.18 0.022 245 / 0.6);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--fg);
  width: 100%;
  transition: border-color .2s var(--ease);
  resize: none;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: var(--muted); }
.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--ice);
}
.contact-form button[type="submit"] {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ice);
  color: oklch(0.16 0.018 245);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: background .25s var(--ease);
}
.contact-form button[type="submit"]:hover { background: oklch(0.78 0.08 230); }
@media (max-width: 600px) { .cf-row { grid-template-columns: 1fr; } }

/* magnetic button */
.magnet-wrap {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}
.magnet {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 24px 44px;
  background: var(--ice);
  color: var(--bg);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  transition: transform .6s var(--ease);
  will-change: transform;
}
.magnet .dot {
  width: 8px; height: 8px;
  background: var(--bg);
  border-radius: 50%;
}
.magnet:hover { background: var(--fg); }

/* =========================================================================
   Footer
   ========================================================================= */
footer {
  border-top: 1px solid var(--line);
  padding-top: 60px;
  padding-bottom: 32px;
  position: relative;
  z-index: 3;
}
.foot-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}
.foot-top h3 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 400;
}
.foot-top ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot-top a { color: var(--fg-2); transition: color .25s; font-size: 14px; }
.foot-top a:hover { color: var(--ice); }

.foot-mark {
  font-family: var(--serif);
  font-size: clamp(80px, 18vw, 280px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--fg);
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.foot-mark em { font-style: italic; color: var(--ice); }
.foot-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 24px;
}

@media (max-width: 760px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
}

/* =========================================================================
   Reveal animations
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

.line-mask {
  display: block;
  clip-path: inset(-5px -50vw -30px -50vw);
}
.line-mask > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
}
.line-mask.in > span { transform: translateY(0); }

.stagger > * { transition-delay: var(--d, 0s); }

/* =========================================================================
   Page-specific
   ========================================================================= */
.page-hero {
  padding-top: 120px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line);
}
.page-hero .crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.page-hero .crumbs span { color: var(--fg-2); }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.page-hero h1 em { font-style: italic; color: var(--ice); }
.page-hero .lede {
  margin-top: 36px;
  max-width: 640px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--fg-2);
}

/* services page: process timeline */
.process { padding-top: 120px; padding-bottom: 120px; }
.process-list { border-top: 1px solid var(--line); }
.process-step {
  display: grid;
  grid-template-columns: 100px 1fr 1.5fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.process-step .ps-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ice);
  letter-spacing: 0.14em;
}
.process-step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.process-step h3 em { font-style: italic; color: var(--ice); }
.process-step p {
  color: var(--fg-2);
  line-height: 1.6;
  max-width: 560px;
  font-size: 15px;
}
.process-step .ps-meta {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.process-step .ps-meta span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 880px) {
  .process-step { grid-template-columns: 1fr; gap: 12px; }
}

/* about: bio + ledger */
.bio-block {
  padding-top: 120px;
  padding-bottom: 120px;
}
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.bio-grid .bio-aside {
  position: sticky; top: 120px;
}
.bio-grid .bio-aside .portrait {
  aspect-ratio: 3/4;
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 40px oklch(0 0 0 / 0.4), 0 0 0 4px var(--bg), 0 0 0 5px var(--line);
}
.bio-grid .bio-aside .meta {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.bio-grid .bio-aside .meta div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.bio-grid .bio-aside .meta div span:last-child { color: var(--fg-2); }

.bio-body p {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  margin-bottom: 28px;
}
.bio-body p em { font-style: italic; color: var(--ice); }
.bio-body p:first-of-type::first-letter {
  font-size: 4em;
  float: left;
  line-height: 0.85;
  padding-right: 12px;
  padding-top: 6px;
  color: var(--ice);
  font-style: italic;
}

@media (max-width: 880px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-grid .bio-aside { position: relative; top: 0; }
}

/* timeline */
.timeline { padding-top: 80px; padding-bottom: 120px; border-top: 1px solid var(--line); }
.tl-row {
  display: grid;
  grid-template-columns: 120px 1fr 1.4fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-soft);
}
.tl-row .yr {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ice);
  letter-spacing: 0.1em;
}
.tl-row .ti {
  font-family: var(--serif);
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.2;
}
.tl-row .dx { color: var(--fg-2); line-height: 1.55; font-size: 14px; }

@media (max-width: 760px) {
  .tl-row { grid-template-columns: 80px 1fr; }
  .tl-row .dx { grid-column: 1 / -1; }
}

/* pricing big block on services page */
.pricing-detail {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 24px;
}
.tier {
  background: var(--bg);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
}
.tier.featured { background: var(--bg-2); }
.tier .t-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.tier .t-name.fea { color: var(--ice); }
.tier .t-price {
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 24px;
}
.tier .t-price em { font-style: italic; color: var(--ice); }
.tier .t-price small { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0.08em; }
.tier .t-tag { margin-top: 16px; color: var(--fg-2); font-size: 14px; line-height: 1.5; min-height: 60px; }
.tier ul {
  list-style: none;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--fg-2);
  margin-top: 28px;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.tier ul li { display: flex; align-items: baseline; gap: 10px; }
.tier ul li::before { content: ""; width: 14px; height: 1px; background: var(--ice); flex-shrink: 0; transform: translateY(-4px); }
.tier .t-btn {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.tier .t-btn:hover { background: var(--ice); color: var(--bg); border-color: var(--ice); }
.tier.featured .t-btn { background: var(--ice); color: var(--bg); border-color: var(--ice); }
.tier.featured .t-btn:hover { background: var(--fg); border-color: var(--fg); }

@media (max-width: 980px) { .pricing-detail { grid-template-columns: 1fr; } }

/* faq block tiny on services */
.faq { padding-top: 80px; padding-bottom: 120px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { font-family: var(--mono); font-size: 20px; color: var(--ice); transition: transform .4s var(--ease); }
.faq-item[open] summary .ic { transform: rotate(45deg); }
.faq-item .ans {
  margin-top: 14px;
  color: var(--fg-2);
  line-height: 1.6;
  max-width: 720px;
  font-size: 15px;
}

/* =========================================================================
   Responsive — reusable grid classes
   ========================================================================= */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.grid-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; border-top: 1px solid var(--line); padding-top: 40px; }

@media (max-width: 760px) {
  .grid-2col { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 880px) {
  .grid-3col { grid-template-columns: 1fr; }
}

/* =========================================================================
   Responsive — additional mobile fixes
   ========================================================================= */

/* Nav: hide enquire button on very small screens */
@media (max-width: 480px) {
  .nav { gap: 16px; padding: 10px 14px; }
  .nav .brand { font-size: 18px; }
  .nav .nav-cta { display: none; }
  .nav .nav-cta-primary { font-size: 11px; padding: 7px 12px; }
}

/* Work item: simplify further on small screens */
@media (max-width: 600px) {
  .work-item { grid-template-columns: 32px 1fr 24px; gap: 16px; }
  .work-item .wi-desc,
  .work-item .wi-meta,
  .work-item .preview { display: none; }
}

/* Footer: single column on very small screens */
@media (max-width: 480px) {
  .foot-top { grid-template-columns: 1fr; }
  .foot-legal { flex-direction: column; gap: 8px; text-align: center; }
}

/* Page hero: tighten padding on mobile */
@media (max-width: 600px) {
  .page-hero { padding-top: 80px; padding-bottom: 48px; }
  .hero { padding-top: 80px; }
  .cta { padding-top: 80px; padding-bottom: 80px; }
  .bio-block { padding-top: 60px; padding-bottom: 60px; }
  .process { padding-top: 60px; padding-bottom: 60px; }
}

/* Ensure images never overflow on mobile */
img { max-width: 100%; height: auto; }

/* Smooth scrolling for anchor links */
html { scroll-behavior: smooth; }
