/* ==========================================================================
   Wildebeest — wildebeest.or.id
   Company profile stylesheet
   ========================================================================== */

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --bg:            #040608;
  --bg-2:          #0A0D12;
  --surface:       rgba(18, 23, 30, 0.65);
  --surface-2:     rgba(23, 30, 38, 0.85);
  --line:          rgba(255, 255, 255, 0.12);
  --line-soft:     rgba(255, 255, 255, 0.06);

  --text:          #F8FAFC;
  --text-2:        #94A3B8;
  --muted:         #64748B;

  --accent:        #F59E0B;
  --accent-soft:   #FBBF24;
  --accent-dim:    rgba(245, 158, 11, 0.12);
  --accent-2:      #14B8A6;
  --accent-2-dim:  rgba(20, 184, 166, 0.12);
  
  --glow-accent:   rgba(245, 158, 11, 0.25);
  --glass-border:  rgba(255, 255, 255, 0.08);

  --radius:        16px;
  --radius-lg:     24px;
  --radius-sm:     10px;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container:     1180px;
  --nav-h:         76px;

  --shadow:        0 20px 40px -15px rgba(0, 0, 0, 0.8);
  --shadow-glow:   0 0 30px -10px var(--glow-accent);
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.05em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }

p { text-wrap: pretty; }

::selection { background: var(--accent); color: #10131a; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   4. Bilingual switching  (ID / EN)
   Only the inactive language is hidden, so each element keeps its natural
   display value. Scoped to `body` so <html lang="en"> never matches.
   -------------------------------------------------------------------------- */
html[data-lang="id"] body [lang="en"],
html[data-lang="en"] body [lang="id"] { display: none !important; }

/* --------------------------------------------------------------------------
   5. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(72px, 10vw, 128px); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
.section-head--center .eyebrow::before { display: none; }

.lead {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--text-2);
  margin-top: 20px;
}

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { 
  background: var(--accent); 
  color: #040608; 
  box-shadow: 0 4px 15px -3px var(--glow-accent);
}
.btn--primary:hover { 
  background: var(--accent-soft); 
  box-shadow: 0 8px 25px -5px var(--glow-accent);
}

.btn--ghost { 
  border-color: var(--line); 
  color: var(--text); 
  background: rgba(255, 255, 255, 0.02); 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { 
  border-color: var(--accent); 
  color: var(--accent); 
  background: rgba(245, 158, 11, 0.05);
}

.btn--sm { padding: 10px 20px; font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   7. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(4, 6, 8, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.nav.is-stuck { 
  border-bottom-color: var(--glass-border); 
  background: rgba(4, 6, 8, 0.85); 
  box-shadow: 0 4px 24px -8px rgba(0,0,0,0.5);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand svg { width: 34px; height: 34px; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand__dot { color: var(--accent); }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.92rem;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

/* Language switch */
.langswitch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
}
.langswitch button {
  padding: 5px 12px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.langswitch button[aria-pressed="true"] { background: var(--accent); color: #14181f; }

/* Mobile menu button */
.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.nav__burger span {
  position: relative;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  transition: background 0.2s;
}
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.28s var(--ease);
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(80px, 12vw, 140px));
  padding-bottom: clamp(80px, 10vw, 130px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 10%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 10%, #000 20%, transparent 80%);
  opacity: 0.8;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  width: 1000px;
  height: 800px;
  translate: -50% 0;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(20, 184, 166, 0.05) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 1; }
}
.hero > .container { position: relative; z-index: 1; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: 28px;
}
.hero__badge b {
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }

.hero__sub {
  max-width: 62ch;
  margin-top: 26px;
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  color: var(--text-2);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(56px, 8vw, 88px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--line-soft);
  overflow: hidden;
}
.stat { padding: 30px 26px; background: var(--bg); }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--accent);
}
.stat__label { font-size: 0.86rem; color: var(--muted); margin-top: 6px; }

/* --------------------------------------------------------------------------
   9. Clients
   -------------------------------------------------------------------------- */
.clients { border-block: 1px solid var(--line-soft); background: var(--bg-2); padding-block: 40px; }
.clients__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 46px;
}
.clients__label {
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.client {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-2);
}
.client img {
  height: 50px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.4s var(--ease);
}
.client__name {
  opacity: 0.7;
  transition: opacity 0.3s var(--ease), color 0.3s;
}
.client:hover .client__name { opacity: 1; color: var(--text); }
.client:hover img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: 36px 32px 38px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s, box-shadow 0.4s var(--ease);
}
.card:hover { 
  border-color: rgba(255,255,255,0.15); 
  transform: translateY(-6px); 
  background: var(--surface-2); 
  box-shadow: var(--shadow);
}

.card__idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0.8;
}
.card h3 { margin-top: 14px; }
.card p { margin-top: 12px; font-size: 0.94rem; color: var(--text-2); }

.taglist { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; list-style: none; }
.tag {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   11. Portfolio
   -------------------------------------------------------------------------- */
.work { display: grid; gap: 20px; }

.work__item {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.work__item:hover { 
  border-color: rgba(255, 255, 255, 0.15); 
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.work__visual {
  position: relative;
  min-height: 260px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 20% 15%, rgba(233, 162, 59, 0.14), transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--bg-2));
  border-right: 1px solid var(--line-soft);
}
.work__item:nth-child(even) .work__visual {
  background:
    radial-gradient(circle at 20% 15%, rgba(79, 195, 174, 0.14), transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--bg-2));
}
.work__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}
.work__client {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.work__item:nth-child(even) .work__client { color: var(--accent-2); }
.work__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.work__meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.8rem; color: var(--muted); }

.work__body { padding: 34px 34px 36px; }
.work__body p { color: var(--text-2); font-size: 0.96rem; }
.work__list { margin-top: 20px; list-style: none; display: grid; gap: 10px; }
.work__list li { position: relative; padding-left: 24px; font-size: 0.93rem; color: var(--text-2); }
.work__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  rotate: 45deg;
}
.work__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.work__link:hover { border-bottom-color: var(--accent); }
.work__link svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   12. Process
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 8px; }
.step { position: relative; padding: 34px 24px 0 0; border-top: 1px solid var(--line); }
.step::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.step__n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.step h3 { margin-top: 10px; font-size: 1.08rem; }
.step p { margin-top: 10px; font-size: 0.9rem; color: var(--text-2); }

/* --------------------------------------------------------------------------
   13. Team
   -------------------------------------------------------------------------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person {
  padding: 30px 28px 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.person:hover { border-color: var(--line); transform: translateY(-4px); }
.person__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(150deg, var(--accent-dim), var(--accent-2-dim));
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}
/* Photo sits over the initials; main.js removes it if the file is missing,
   so the initials stay as the fallback and no broken image ever shows. */
.person__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person h3 { margin-top: 20px; font-size: 1.12rem; }
.person__role {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.person p { margin-top: 14px; font-size: 0.91rem; color: var(--text-2); }
.person__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.86rem;
  color: var(--text-2);
  transition: color 0.2s;
}
.person__link:hover { color: var(--accent); }
.person__link svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.contact__left {
  padding: clamp(32px, 4vw, 52px);
  background:
    radial-gradient(circle at 15% 10%, rgba(233, 162, 59, 0.13), transparent 58%),
    linear-gradient(160deg, var(--surface-2), var(--bg-2));
  border-right: 1px solid var(--line-soft);
}
.contact__right { padding: clamp(32px, 4vw, 52px); display: grid; align-content: start; gap: 24px; }

.contact__row { display: grid; gap: 4px; }
.contact__key {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__val { font-size: 1rem; color: var(--text); }
.contact__val a { border-bottom: 1px solid var(--line); transition: color 0.2s, border-color 0.2s; }
.contact__val a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.placeholder {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--accent-soft);
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding-block: 56px 32px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-soft);
}
.footer__about { max-width: 34ch; margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer li a { font-size: 0.9rem; color: var(--text-2); transition: color 0.2s; }
.footer li a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.84rem;
  color: var(--muted);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__bottom a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   16. Legal / prose pages
   -------------------------------------------------------------------------- */
.page-head {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.page-head .lead { max-width: 62ch; }
.page-meta {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.legal { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }

.toc { position: sticky; top: calc(var(--nav-h) + 28px); }
.toc h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.toc a {
  display: block;
  padding: 6px 12px;
  border-left: 1px solid var(--line-soft);
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.toc a:hover { color: var(--text); border-left-color: var(--accent); }

.prose { max-width: 74ch; }
.prose h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  margin-top: 52px;
  padding-top: 8px;
  scroll-margin-top: 104px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin-top: 30px; }
.prose p { margin-top: 14px; color: var(--text-2); font-size: 0.96rem; }
.prose ul, .prose ol { margin-top: 14px; padding-left: 20px; display: grid; gap: 9px; }
.prose li { color: var(--text-2); font-size: 0.95rem; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(233, 162, 59, 0.35); }
.prose a:hover { border-bottom-color: var(--accent); }

.callout {
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.callout p { margin-top: 0; }
.callout p + p { margin-top: 10px; }

/* --------------------------------------------------------------------------
   17. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px) scale(0.98); filter: blur(4px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .legal { grid-template-columns: 1fr; gap: 34px; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { border: 1px solid var(--line-soft); border-radius: 100px; padding: 5px 13px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
  .step { padding-right: 0; }
  .step:nth-child(n + 3) { margin-top: 32px; }
}

@media (max-width: 880px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 12px 14px; font-size: 1rem; }
  .nav__burger { display: flex; }
  .nav__actions .btn { display: none; }

  .work__item { grid-template-columns: 1fr; }
  .work__visual { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .team { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact__left { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(n + 2) { margin-top: 30px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   19. Case study page
   -------------------------------------------------------------------------- */
.case { padding-block: clamp(56px, 8vw, 92px); border-bottom: 1px solid var(--line-soft); }
.case:last-of-type { border-bottom: 0; }

.case__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.case__head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.case__intro { color: var(--text-2); font-size: 1rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 40px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--line-soft);
  overflow: hidden;
}
.fact { padding: 20px 22px; background: var(--surface); }
.fact dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact dd { margin-top: 7px; font-size: 0.94rem; color: var(--text); }

.case__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.block {
  padding: 26px 24px 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
}
.block h3 { font-size: 1.02rem; }
.block h3 + * { margin-top: 14px; }
.block p { font-size: 0.93rem; color: var(--text-2); }
.block .work__list { margin-top: 14px; }
.block .work__list li { font-size: 0.9rem; }

@media (max-width: 1024px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .case__cols { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .case__head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   20. Icons & glyphs
   All icons are inline SVG drawn in-house — no external assets, no licensing.
   -------------------------------------------------------------------------- */
.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Service card: icon badge + running index */
.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--accent-dim);
  color: var(--accent);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.card:hover .card__icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #14181f;
}
.card__top + h3 { margin-top: 20px; }

/* Portfolio panel: large decorative project glyph */
.work__glyph {
  position: absolute;
  right: 26px;
  bottom: 24px;
  z-index: 0;
  width: 128px;
  height: 128px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--accent);
  opacity: 0.14;
  pointer-events: none;
}
.work__item:nth-child(even) .work__glyph { color: var(--accent-2); }

/* Process step icon */
.step__icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Contact rows */
.contact__key { display: inline-flex; align-items: center; gap: 8px; }
.contact__key .icon { width: 14px; height: 14px; stroke-width: 1.7; color: var(--accent); }

/* Case study heading badge */
.case__badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--accent);
}
.case__badge .icon { width: 27px; height: 27px; }

@media (max-width: 880px) {
  .work__glyph { width: 96px; height: 96px; right: 22px; bottom: 18px; opacity: 0.11; }
}
@media (max-width: 720px) {
  /* panel copy wraps into the glyph area at this width — drop the decoration */
  .work__glyph { display: none; }
}
@media (max-width: 640px) {
  .card__icon { width: 42px; height: 42px; }
}

/* --------------------------------------------------------------------------
   21. Compact work list
   With nine projects, only the five largest get a full panel on the home page.
   The rest appear here and link through to their full case study.
   -------------------------------------------------------------------------- */
.worklist__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 56px 0 20px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.worklist__head h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.worklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.worklist__item {
  display: block;
  padding: 30px 28px 28px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s, box-shadow 0.4s var(--ease);
}
.worklist__item:hover { 
  border-color: rgba(255,255,255,0.15); 
  transform: translateY(-4px); 
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.worklist__client {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.worklist__title {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.worklist__desc { display: block; margin-top: 10px; font-size: 0.9rem; color: var(--text-2); }
.worklist__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--accent);
}
.worklist__more svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 880px) {
  .worklist { grid-template-columns: 1fr; }
  .worklist__head { margin-top: 40px; }
}
