@import url("./variables.css");

/* ============================================
   1. Reset & Base
   ============================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
hr { border: none; border-top: 1px solid var(--line-light); margin: 0; }

::selection { background: var(--cyan-teal); color: var(--black); }

/* ============================================
   2. Typography
   ============================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--accent { color: var(--cyan-teal); }

.h-display {
  font-size: var(--fs-display);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.h-hero {
  font-size: var(--fs-5xl);
  line-height: 0.96;
  letter-spacing: -0.04em;
}
.h-section {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.h-card {
  font-size: var(--fs-xl);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lead {
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--muted);
  max-width: 60ch;
}
.mono { font-family: var(--font-mono); }
.upper { text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================
   3. Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y);
}
.section--dark {
  background: var(--black);
  color: var(--white);
}
.section--ink {
  background: var(--ink);
  color: var(--white);
}
.section--paper {
  background: var(--paper);
  color: var(--black);
}
.section--flush-top { padding-top: 0; }
.section--flush-bot { padding-bottom: 0; }

.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.row { display: flex; gap: var(--s-4); }
.row--between { justify-content: space-between; align-items: center; }
.row--end { justify-content: flex-end; }
.row--wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: var(--s-4); }

.divider {
  border-top: 1px solid var(--line-light);
}
.section--dark .divider,
.section--ink .divider {
  border-top-color: var(--line);
}

/* ============================================
   4. Components
   ============================================ */

/* Buttons */
.btn {
  --btn-bg: var(--cyan-teal);
  --btn-fg: var(--black);
  --btn-bd: var(--cyan-teal);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  padding: 0.95rem 1.4rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition:
    background var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease),
    transform var(--dur-2) var(--ease);
}
.btn:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
}
.btn .arrow {
  display: inline-block;
  transition: transform var(--dur-2) var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --btn-bd: currentColor;
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.section--dark .btn--ghost:hover,
.section--ink .btn--ghost:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn--dark {
  --btn-bg: var(--black);
  --btn-fg: var(--white);
  --btn-bd: var(--black);
}
.btn--dark:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cyan-teal);
}
.btn--lg { padding: 1.1rem 1.7rem; font-size: var(--fs-base); }

/* Inline link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap var(--dur-2) var(--ease), color var(--dur-1) var(--ease);
}
.link-arrow:hover { gap: 0.85rem; color: var(--cyan-teal); }

/* Tag / chip */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-light);
  color: var(--muted);
  background: transparent;
}
.section--dark .tag,
.section--ink .tag {
  border-color: var(--line);
  color: var(--muted-2);
}
.tag--accent {
  border-color: var(--cyan-teal);
  color: var(--cyan-teal);
}
.tag--solid {
  background: var(--cyan-teal);
  color: var(--black);
  border-color: var(--cyan-teal);
}
.tag--status::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(56, 240, 115, 0.18);
}

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-light);
  overflow: hidden;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.18);
  border-color: var(--black);
}
.section--dark .card,
.section--ink .card {
  background: var(--ink-2);
  border-color: var(--line);
  color: var(--white);
}
.section--dark .card:hover,
.section--ink .card:hover {
  border-color: var(--cyan-teal);
  box-shadow: 0 24px 40px -20px rgba(18, 235, 214, 0.18);
}

.card__media {
  aspect-ratio: 16 / 10;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.card__body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}
.card__foot {
  padding: 0 1.4rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* Service card (dark, left rule) */
.service-card {
  position: relative;
  background: var(--ink-2);
  color: var(--white);
  padding: 2rem 1.8rem 2.2rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan-teal);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-height: 320px;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.service-card:hover {
  background: var(--black);
  border-left-color: var(--green);
  transform: translateY(-4px);
}
.service-card__num {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--muted-2);
  letter-spacing: 0.1em;
}
.service-card__title {
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.service-card__desc {
  color: var(--muted-2);
  font-size: var(--fs-md);
  flex: 1;
}
.service-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Placeholder media (striped) */
.ph {
  width: 100%; height: 100%;
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05) 0 6px,
      rgba(255, 255, 255, 0.02) 6px 14px
    ),
    linear-gradient(180deg, #1a1a19, #0c0c0b);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph--light {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.04) 0 6px,
      rgba(0, 0, 0, 0.015) 6px 14px
    ),
    var(--paper);
}
.ph__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}
.ph--light .ph__label {
  color: var(--muted);
  border-color: var(--line-light);
  background: rgba(255, 255, 255, 0.6);
}

/* ============================================
   5. Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.0);
  color: var(--white);
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--solid {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav--light {
  color: var(--black);
}
.nav--light.nav--solid {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--line-light);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.nav__brand svg,
.nav__brand .brand-mark { height: 26px; width: auto; display: block; }
.nav--light .brand-mark { filter: invert(1); }
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.nav__link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.4rem 0;
  opacity: 0.85;
  transition: opacity var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.nav__link:hover { opacity: 1; color: var(--cyan-teal); }
.nav__link.is-active { opacity: 1; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--cyan-teal);
}
.nav__cta { margin-left: var(--s-3); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  width: 44px; height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; left: 0; right: 0; }
.nav-toggle span::after  { position: absolute; top: 6px;  left: 0; right: 0; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 60;
  background: var(--black);
  color: var(--white);
  padding: calc(var(--nav-h) + 1rem) var(--gutter) var(--gutter);
  display: none;
  flex-direction: column;
  gap: var(--s-4);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

/* ============================================
   6. Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: var(--s-9);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent 85%);
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  background: radial-gradient(circle, var(--cyan-teal) 0%, transparent 60%);
  top: -20vmax; right: -20vmax;
  pointer-events: none;
}
.hero__glow--2 {
  background: radial-gradient(circle, var(--blue) 0%, transparent 60%);
  top: auto; right: auto; left: -20vmax; bottom: -25vmax;
  opacity: 0.18;
}

/* Hero brand motif: stacks of the Akieni peak mark, compressed -> stretched,
   blended into the background for atmosphere without competing with the title. */
.hero__motif {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 62% 55% at 28% 38%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.9) 78%, rgba(0,0,0,1) 100%);
  mask-image: radial-gradient(ellipse 62% 55% at 28% 38%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.9) 78%, rgba(0,0,0,1) 100%);
}
.hero__motif-row {
  position: absolute;
  display: flex;
  align-items: flex-end;
  gap: 0;
  left: 0;
  right: -6vw;
  width: 106vw;
}
.hero__motif-row--a { bottom: -1vh; }
.hero__motif-row--b { bottom: 9vh; opacity: 0.85; }
.hero__motif-row--c { bottom: 19vh; opacity: 0.55; }
.hero__motif-row--d { bottom: 29vh; opacity: 0.4; }
.hero__motif-row--e { bottom: 40vh; opacity: 0.3; }
.peak {
  display: block;
  flex-shrink: 0;
  height: var(--h, 9vh);
  width: var(--w, 6vw);
  background-image: url("../img/akieni-icon-white.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center bottom;
  opacity: 0.18;
}
/* Vertical column of stretched peaks anchored on the right edge */
.hero__motif-col {
  position: absolute;
  right: -4vw;
  top: 8vh;
  width: 32vw;
  display: flex;
  flex-direction: column;
  gap: 2vh;
  opacity: 0.6;
}
.hero__motif-col .peak {
  width: 100%;
  opacity: 0.13;
}
@media (max-width: 720px) {
  .hero__motif-row--c,
  .hero__motif-row--d,
  .hero__motif-row--e { display: none; }
  .hero__motif-col { display: none; }
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
}
.hero__title {
  font-size: var(--fs-display);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 14ch;
}
.hero__title .accent { color: var(--cyan-teal); }
.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--s-5);
  border-top: 1px solid var(--line);
  padding-top: var(--s-5);
}
.hero__lede {
  max-width: 48ch;
  color: var(--muted-2);
  font-size: var(--fs-lg);
}
.hero__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero__cluster {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
}

/* Marquee strip */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding-block: 0.9rem;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.marquee__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted-2);
}
.marquee__track span::after {
  content: "◆";
  color: var(--cyan-teal);
  font-size: 0.6rem;
  margin-left: 1rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   7. Stats
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 2.5rem 1.6rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.stat:last-child { border-right: none; }
.stat__num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.stat__num .accent { color: var(--cyan-teal); }
.stat__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.section--paper .stat { border-right-color: var(--line-light); }
.section--paper .stat__label { color: var(--muted); }

/* ============================================
   8. Credo / pull quote
   ============================================ */
.credo {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-7);
  align-items: start;
}
.credo__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.credo__quote {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.credo__quote em {
  color: var(--cyan-teal);
  font-style: normal;
}

/* ============================================
   9. Project showcase
   ============================================ */
.proj {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
}
.proj__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  color: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.proj__card:hover { border-color: var(--cyan-teal); transform: translateY(-4px); }
.proj__media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.proj__body {
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.proj__title {
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.proj__client {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-teal);
}
.proj__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.proj__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.proj__card--lg { grid-column: span 7; }
.proj__card--sm { grid-column: span 5; }
.proj__card--full { grid-column: span 12; }
.proj__card--lg .proj__media { aspect-ratio: 16 / 10; }

/* Section header */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: end;
  margin-bottom: var(--s-7);
}
.section-head__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.section-head__aside {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  color: var(--muted);
}
.section--dark .section-head__aside,
.section--ink .section-head__aside { color: var(--muted-2); }
.section-head__aside .lead { color: inherit; }

/* ============================================
   10. Footer
   ============================================ */
.footer {
  background: var(--black);
  color: var(--white);
  padding-block: var(--s-9) var(--s-5);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--s-6);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--line);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.footer__brand p { color: var(--muted-2); max-width: 30ch; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 1rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col a {
  color: var(--white);
  opacity: 0.85;
  font-size: var(--fs-sm);
}
.footer__col a:hover { color: var(--cyan-teal); opacity: 1; }
.footer__bottom {
  margin-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.footer__bottom a { color: var(--muted-2); }
.footer__bottom a:hover { color: var(--white); }
.footer__legal { display: flex; gap: var(--s-4); }
.footer__big {
  font-size: clamp(4rem, 14vw, 14rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: var(--ink-2);
  margin-top: var(--s-7);
  user-select: none;
  pointer-events: none;
  overflow: hidden;
}

/* ============================================
   11. Scroll reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

/* ============================================
   12. Process steps
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.section--dark .steps,
.section--ink .steps {
  border-color: var(--line);
}
.step {
  padding: 2rem 1.6rem 2.6rem;
  border-right: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  position: relative;
}
.section--dark .step,
.section--ink .step { border-right-color: var(--line); }
.step:last-child { border-right: none; }
.step__num {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
  color: var(--cyan-teal);
}
.step__title {
  font-size: var(--fs-xl);
  letter-spacing: -0.02em;
}
.step__desc {
  color: var(--muted);
  font-size: var(--fs-md);
}
.section--dark .step__desc,
.section--ink .step__desc { color: var(--muted-2); }

/* ============================================
   13. Form
   ============================================ */
.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: var(--fs-md);
  background: transparent;
  color: inherit;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  outline: none;
  transition: border-color var(--dur-1) var(--ease);
}
.section--paper .field input,
.section--paper .field select,
.section--paper .field textarea { border-bottom-color: var(--line-light); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--cyan-teal);
}
.field textarea { resize: vertical; min-height: 110px; }

/* ============================================
   14. Logo lockup
   ============================================ */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.lockup svg,
.lockup .brand-mark { height: 32px; width: auto; display: block; }
.lockup--lg { font-size: 2rem; }
.lockup--lg svg,
.lockup--lg .brand-mark { height: 48px; width: auto; }

/* ============================================
   15. Values "is / is not"
   ============================================ */
.iso {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-light);
}
.iso__col {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.iso__col + .iso__col { border-left: 1px solid var(--line-light); }
.iso__col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.iso__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.iso__col li {
  font-size: var(--fs-lg);
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.iso__col li::before {
  content: "";
  width: 8px; height: 8px;
  display: inline-block;
  flex: none;
}
.iso__col--is li::before { background: var(--green); }
.iso__col--isnot li {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(0,0,0,0.2);
}
.iso__col--isnot li::before {
  background: var(--line-light);
  border: 1px solid var(--muted-2);
}

/* ============================================
   16. Tech badges
   ============================================ */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--white);
}
.section--dark .badge,
.section--ink .badge {
  background: var(--ink-2);
  border-color: var(--line);
  color: var(--white);
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--cyan-teal);
  border-radius: 50%;
}

/* ============================================
   17. Timeline
   ============================================ */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  padding-top: var(--s-6);
}
.timeline::before {
  content: "";
  position: absolute;
  top: var(--s-6);
  left: 0; right: 0;
  height: 1px;
  background: var(--line-light);
}
.section--dark .timeline::before,
.section--ink .timeline::before { background: var(--line); }
.tl-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-top: var(--s-5);
}
.tl-item::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 9px; height: 9px;
  background: var(--black);
  border-radius: 50%;
}
.section--dark .tl-item::before,
.section--ink .tl-item::before { background: var(--cyan-teal); }
.tl-year {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
  color: var(--cyan-teal);
}
.tl-title {
  font-size: var(--fs-lg);
  line-height: 1.2;
  font-weight: 600;
}
.tl-desc {
  font-size: var(--fs-sm);
  color: var(--muted);
}
.section--dark .tl-desc,
.section--ink .tl-desc { color: var(--muted-2); }

/* ============================================
   18. Utility
   ============================================ */
.acc { color: var(--cyan-teal); }
.acc-green { color: var(--green); }
.acc-blue { color: var(--blue); }
.center { text-align: center; }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-7 { margin-bottom: var(--s-7); }
.hide-mobile { }

/* ============================================
   19. Responsive
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-top: 1px solid var(--line); }
  .stat:nth-child(2n) { }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2n) { border-right: none; }
  .proj__card--lg, .proj__card--sm, .proj__card--full { grid-column: span 12; }
  .credo { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .iso { grid-template-columns: 1fr; }
  .iso__col + .iso__col { border-left: none; border-top: 1px solid var(--line-light); }
  .form { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
  .hero { min-height: 100vh; }
  .hero__title { font-size: clamp(3rem, 16vw, 5rem); }
  .credo__quote { font-size: 1.6rem; }
}
