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

:root {
  --ink:        #0a0a0a;
  --ink2:       #525252;
  --ink3:       #767676;
  --line:       rgba(0, 0, 0, 0.09);
  --bg:         #ffffff;
  --bg-alt:     #f4f4f4;
  --surface:    #fafafa;
  --blue:       #4F6EF7;
  --blue-dark:  #3D5CE5;
  --blue-tint:  #F0F2FF;
  --rose:       #C47E8A;
  --rose-dark:  #9F5C67;
  --rose-tint:  #FDF2F4;
  --font:         'Geist', system-ui, -apple-system, sans-serif;
  --font-heading: 'Geist Mono', monospace;
  --font-mono:    'Geist Mono', monospace;
  --max-w:      900px;
  --col-gap:    48px;
}

/* Geist Mono 500 — eyebrows, nav, labels, tags */
.hero-eyebrow,
.section-label,
.aside-key,
.case-hero-num,
.proj-num,
.tag,
.trole,
.nav-logo,
.nav-links,
.nav-links a,
.nav-cta {
  font-family: var(--font-mono);
  font-weight: 500;
}

html { font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--rose-dark);
}

.wrap { max-width: var(--max-w); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-logo { font-size: 13px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13px; list-style: none; }
.nav-links a { color: var(--ink2); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--blue); }
.nav-links .nav-cta { color: var(--blue); font-weight: 500; }

/* HERO */
.hero { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); min-height: 380px; }
.hero-left { padding: 52px var(--col-gap) 52px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.hero-eyebrow { font-size: 11px; color: var(--rose); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 20px; }
.hero-h1 { font-size: 33px; font-weight: 700; line-height: 1.18; letter-spacing: -0.04em; font-family: var(--font-heading); }
.hero-sub { font-size: 14px; color: var(--ink2); line-height: 1.75; margin-bottom: 20px; letter-spacing: 0; }
.hero-sub strong { color: var(--ink); font-weight: 500; }
.hero-social { display: flex; gap: 20px; font-size: 13px; list-style: none; }
.hero-social a { color: var(--ink3); text-decoration: none; transition: color 0.15s; }
.hero-social a:hover { color: var(--blue); }
.hero-right { display: flex; align-items: stretch; justify-content: center; background: var(--rose-tint); overflow: hidden; }

/* SECTION LABEL */
.section-row { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.section-label { font-size: 11px; color: var(--ink3); letter-spacing: 0.06em; text-transform: uppercase; }

/* PROJECTS */
.project { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); min-height: 256px; }
.proj-left { border-right: 1px solid var(--line); padding: 36px var(--col-gap) 36px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.proj-right { display: flex; align-items: center; justify-content: center; background: var(--surface); overflow: hidden; }
.project.flip .proj-left { border-right: none; border-left: 1px solid var(--line); padding: 36px 24px 36px var(--col-gap); order: 2; }
.project.flip .proj-right { padding: 0; order: 1; }
.proj-num { font-size: 11px; color: var(--blue); letter-spacing: 0.05em; margin-bottom: 10px; }
.proj-title { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.25; margin-bottom: 10px; font-family: var(--font-heading); }
.proj-desc { font-size: 13px; color: var(--ink2); line-height: 1.7; }
.proj-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.tag { font-size: 11px; color: var(--ink3); border: 1px solid var(--line); padding: 3px 8px; border-radius: 4px; background: var(--bg); transition: border-color 0.15s, color 0.15s; }
.tag:hover { border-color: var(--blue); color: var(--blue); }
.proj-cta { display: inline-block; font-size: 13px; color: var(--ink2); text-decoration: none; margin-top: 14px; transition: color 0.15s; }
.proj-cta:hover { color: var(--blue); }

/* PROJECT IMAGE */
.proj-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* SCREEN MOCKUP SHELL */
.screen { width: 88%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.s-dots { display: flex; gap: 4px; margin-bottom: 2px; }
.s-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.s-bar { height: 6px; border-radius: 3px; background: var(--line); }
.s-row { display: flex; gap: 6px; }
.s-block { border-radius: 5px; background: var(--surface); border: 1px solid var(--line); }

/* TESTIMONIALS */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.tcard { padding: 32px var(--col-gap) 32px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.tcard:nth-child(even) { border-right: none; padding: 32px 24px; }
.tcard:nth-child(n+3) { border-top: 1px solid var(--line); }
.tquote-mark { font-size: 24px; color: var(--ink3); line-height: 1; margin-bottom: 2px; }
.tquote { font-size: 14px; line-height: 1.72; color: var(--ink2); }
.tname { font-size: 13px; font-weight: 500; color: var(--ink); }
.trole { font-size: 11px; color: var(--ink3); margin-top: 2px; }

/* ABOUT */
.about { display: grid; grid-template-columns: 2fr 1fr; }
.about-main { padding: 40px var(--col-gap) 40px 24px; border-right: 1px solid var(--line); }
.about-main p { font-size: 14px; color: var(--ink2); line-height: 1.8; margin-bottom: 14px; }
.about-main p:last-child { margin: 0; }
.about-main strong { color: var(--ink); font-weight: 500; }
.about-aside { display: flex; flex-direction: column; }
.aside-cell { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 20px 24px 20px 28px; border-bottom: 1px solid var(--line); }
.aside-cell:last-child { border-bottom: none; }
.aside-key { font-size: 10px; color: var(--ink3); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 6px; }
.aside-val { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.aside-val a { color: inherit; text-decoration: none; transition: color 0.15s; }
.aside-val a:hover { color: var(--blue); }

/* FOOTER */
.footer { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; font-size: 12px; color: var(--ink3); border-top: 1px solid var(--line); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: inherit; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--blue); }
.footer-links .footer-cta { color: var(--blue); font-weight: 500; }

/* ─── CASE STUDY PAGES ─────────────────────────────────── */

/* Back link */
.case-back { display: inline-block; font-size: 12px; color: var(--ink3); text-decoration: none; padding: 14px 24px; border-bottom: 1px solid var(--line); width: 100%; transition: color 0.15s; }
.case-back:hover { color: var(--blue); }

/* Case hero */
.case-hero { padding: 52px 24px 48px; border-bottom: 1px solid var(--line); }
.case-hero-num { font-size: 11px; color: var(--blue); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px; }
.case-hero-title { font-size: 33px; font-weight: 700; line-height: 1.18; letter-spacing: -0.04em; margin-bottom: 14px; font-family: var(--font-heading); }
.case-hero-summary { font-size: 14px; color: var(--ink2); line-height: 1.75; max-width: 560px; margin-bottom: 20px; }
.case-hero-screen { margin-top: 40px; }
.case-hero-screen .screen { width: 100%; }

/* Case layout — sticky left nav + main content */
.case-layout { display: grid; grid-template-columns: 180px 1fr; }

.case-sidenav {
  border-right: 1px solid var(--line);
  padding: 28px 0;
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
}
.case-sidenav-link {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--ink3);
  text-decoration: none;
  padding: 8px 20px;
  letter-spacing: 0.04em;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.case-sidenav-link:hover { color: var(--ink2); }
.case-sidenav-link.active { color: var(--ink); border-left-color: var(--blue); }

/* Case body — single column */
.case-body { border-bottom: 1px solid var(--line); }
.case-prose { padding: 40px 24px; }
.case-prose p { font-size: 14px; color: var(--ink2); line-height: 1.8; margin-bottom: 14px; }
.case-prose p:last-child { margin: 0; }
.case-prose strong { color: var(--ink); font-weight: 500; }
.case-prose h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 28px 0 10px; letter-spacing: -0.03em; font-family: var(--font-heading); }

/* Graphic placeholder — inline within prose */
.case-graphic { margin: 24px 0; }
.case-graphic-inner {
  width: 100%;
  height: 220px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-graphic-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Overview metadata — horizontal 4-column strip */
.case-meta-inline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
  margin-left: -24px;
  margin-right: -24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case-meta-inline .aside-cell {
  border-bottom: none;
  border-right: 1px solid var(--line);
  padding: 16px 20px;
}
.case-meta-inline .aside-cell:last-child { border-right: none; }
.case-prose .aside-val { font-size: 13px; }

/* Outcome stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.stat-row .stat-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.stat-row .stat-cell:last-child { border-right: none; }
.stat-val {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 12px;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink3);
  line-height: 1.55;
}

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --col-gap: 0px; }

  /* Remove frame, restore padding */
  .wrap { border-left: none; border-right: none; padding: 0 24px; }

  /* Nav */
  .nav { padding: 0; }
  .nav-links .nav-anchor { display: none; }

  /* Section rows */
  .section-row { padding: 18px 0; }

  /* Hero */
  .hero, .project, .project.flip, .testimonials, .about { grid-template-columns: 1fr; }
  .hero-left { border-right: none; border-bottom: 1px solid var(--line); padding: 36px 0; }
  .hero-h1 { font-size: 26px; }
  .hero-right { padding: 28px 0; }

  /* Projects */
  .proj-left, .project.flip .proj-left { border: none; border-bottom: none; padding: 28px 0 16px; order: 1; }
  .proj-right, .project.flip .proj-right { display: flex; order: 2; min-height: 220px; border-bottom: 1px solid var(--line); margin-top: 24px; }
  .proj-img { width: 100%; height: 100%; object-fit: cover; }

  /* Testimonials */
  .tcard, .tcard:nth-child(even) { padding: 28px 0; border-right: none; border-bottom: 1px solid var(--line); }
  .tcard:nth-child(n+3) { border-top: none; }
  .tcard:last-child { border-bottom: none; }

  /* About */
  .about-main { border-right: none; border-bottom: 1px solid var(--line); padding: 32px 0; }
  .aside-cell { padding: 14px 0; }

  /* Footer */
  .footer { flex-direction: column; gap: 16px; text-align: center; padding: 28px 0; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }

  /* Case study pages */
  .case-back { padding: 14px 0; }
  .case-hero { padding: 36px 0 32px; }
  .case-hero-title { font-size: 26px; }
  .case-layout { grid-template-columns: 1fr; }
  .case-sidenav { display: none; }
  .case-prose { padding: 32px 0; }
  .case-meta-inline { grid-template-columns: 1fr 1fr; }
  .case-meta-inline .aside-cell { border-right: none; }
  .stat-row { grid-template-columns: 1fr; }
  .stat-row .stat-cell { border-right: none; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .stat-row .stat-cell:last-child { border-bottom: none; }
}

/* ─── LOADER ──────────────────────────────────────────────────── */

.loader-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.loader-overlay.loaded {
  opacity: 0;
  pointer-events: none;
}

.loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 3rem 0;
}

.emoji-stage {
  position: relative;
  width: 48px;
  height: 48px;
}

.emoji-stage span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  opacity: 0;
  transform: scale(0.6);
  animation: snap 2.8s ease infinite;
}

.emoji-stage span:nth-child(1) { animation-delay: 0s; }
.emoji-stage span:nth-child(2) { animation-delay: 0.7s; }
.emoji-stage span:nth-child(3) { animation-delay: 1.4s; }
.emoji-stage span:nth-child(4) { animation-delay: 2.1s; }

@keyframes snap {
  0%   { opacity: 0; transform: scale(0.6); }
  4%   { opacity: 1; transform: scale(1.08); }
  7%   { opacity: 1; transform: scale(1); }
  20%  { opacity: 1; transform: scale(1); }
  24%  { opacity: 0; transform: scale(0.85); }
  100% { opacity: 0; }
}

.loader-label {
  font-size: 13px;
  color: var(--ink3);
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.loader-label .dot {
  animation: blink 1.4s ease infinite;
}

.loader-label .dot:nth-child(1) { animation-delay: 0s; }
.loader-label .dot:nth-child(2) { animation-delay: 0.2s; }
.loader-label .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%   { opacity: 0.2; }
  50%  { opacity: 1; }
  100% { opacity: 0.2; }
}

/* ─── COMING SOON PAGE ───────────────────────────────────────── */
.coming-soon {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink2);
  background: var(--bg);
}

.coming-soon a { color: inherit; text-decoration: none; }

.coming-soon .page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  opacity: 0;
  transform: translateY(10px);
  animation: csFadeIn 0.5s ease forwards;
}

@keyframes csFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.coming-soon .content {
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.coming-soon .room-wrap {
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--rose-tint);
  border: 1px solid var(--line);
  margin-bottom: 40px;
}

.coming-soon .room-scene {
  position: relative;
  width: 100%;
  padding: 12px 0;
  --scene-pad-y: 12px;
}

.coming-soon .room-img {
  width: 100%;
  display: block;
}

.coming-soon .room-overlay {
  position: absolute;
  inset: var(--scene-pad-y) 0;
  width: 100%;
  height: calc(100% - (var(--scene-pad-y) * 2));
  object-fit: cover;
  object-position: center bottom;
  mix-blend-mode: multiply;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.coming-soon .room-overlay.is-active { opacity: 0.6; }

.coming-soon .room-hit {
  position: absolute;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.coming-soon .room-hit[data-action="none"] { cursor: default; }

.coming-soon .rh-laptop      { left: 30%; top: 27%; width: 18%; height: 20%; }
.coming-soon .rh-notebook    { left: 31%; top: 50%; width: 12%; height: 10%; }
.coming-soon .rh-watercolors { left: 56%; top: 25%; width: 33%; height: 14%; }
.coming-soon .rh-cooler      { left: 6%;  top: 53%; width: 21%; height: 24%; }
.coming-soon .rh-vinyl       { left: 69%; top: 47%; width: 16%; height: 14%; }

.coming-soon .room-pill {
  position: absolute;
  transform: translate(-50%, -50%) translateY(4px);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}

.coming-soon .room-pill::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--bg);
}

.coming-soon .room-pill.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.coming-soon .rp-laptop      { left: 37.6%; top: 23.2%; }
.coming-soon .rp-notebook    { left: 39.5%; top: calc(62% + 10px); }
.coming-soon .rp-watercolors { left: 71.4%; top: 18.5%; }
.coming-soon .rp-cooler      { left: 17.8%; top: 45.5%; }
.coming-soon .rp-vinyl       { left: 77.9%; top: 41.2%; }

.coming-soon .rp-notebook::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--bg);
}

.coming-soon .eye-btn {
  position: absolute;
  bottom: 20px;
  right: 16px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.coming-soon .eye-btn:hover { background: var(--bg); border-color: rgba(0,0,0,0.25); }

.coming-soon .eye-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
}

.coming-soon .eye-btn.is-active svg { stroke: var(--bg); }

.coming-soon .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 12px;
}

.coming-soon .name {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 10px;
  text-align: center;
}

.coming-soon .tagline {
  font-size: 14px;
  color: var(--ink2);
  text-align: center;
  max-width: 360px;
  line-height: 1.55;
  margin-bottom: 32px;
}

.coming-soon .links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.coming-soon .links a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: color 0.15s, border-color 0.15s;
}

.coming-soon .links a:hover {
  color: var(--ink);
  border-color: rgba(0,0,0,0.25);
}

.coming-soon .links-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink3);
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .coming-soon .room-wrap { max-width: 100%; }

  .coming-soon .room-pill {
    font-size: 0.55rem;
    padding: 4px 9px;
  }

  .coming-soon .rp-cooler      { left: 22%; }
  .coming-soon .rp-watercolors { left: 68%; }
  .coming-soon .rp-vinyl       { left: 74%; }

  .coming-soon .name { font-size: 20px; }
  .coming-soon .tagline { font-size: 13px; }
}
