:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f3;
  --ink: #16161a;
  --muted: #5c5c60;
  --border: #e2e2e0;
  --accent: #ff3b6b;
  --available: #22c55e;
  --max: 1216px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}

.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

.lang {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}

/* Hero */
.hero {
  background: var(--bg-soft);
  padding: 56px 0 72px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 8px 0 20px;
  max-width: 820px;
}

.hero p.lede {
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.availability .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--available);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover { background: #000; }

.btn-text {
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

/* Section titles */
.section {
  padding: 72px 0;
}
.section-soft { background: var(--bg-soft); }

.section h2 {
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* Work grid */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}

.work-card { display: block; }

.work-card .thumb {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 684/490;
  background: var(--bg-soft);
}

.work-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.work-card:hover .thumb img { transform: scale(1.02); }

.work-card h3 {
  font-size: 18px;
  margin: 16px 0 6px;
}

.work-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.work-card.is-soon .thumb { opacity: .85; }
.work-card.is-soon { cursor: default; }
.soon-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 999px;
  margin-top: 8px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}

.about-grid h3 {
  font-size: 15px;
  margin: 0 0 16px;
}

.about-grid p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 20px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  align-items: center;
}
.timeline-row:first-child { border-top: 1px solid var(--border); }
.timeline-row .period { color: var(--muted); }
.timeline-row .role { color: var(--muted); text-align: right; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 64px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.footer-top h2 {
  font-size: clamp(34px, 14vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 960px;
}

.footer-top h2 u { text-decoration-thickness: 1.5px; }

.social-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}
.social-links a { color: #fff; opacity: .85; }
.social-links a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

/* Case page */
.case-hero {
  padding: 40px 0 8px;
}
.case-hero .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.case-hero .back:hover { color: var(--ink); }
.case-hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.case-hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
  margin: 0 0 32px;
}

.case-image {
  width: 100%;
  display: block;
}

.case-nav {
  display: flex;
  justify-content: space-between;
  padding: 40px 0 64px;
  font-size: 14px;
}
.case-nav a { color: var(--muted); }
.case-nav a:hover { color: var(--ink); }

/* Coded case study covers */
.caju-hero,
.lqs-hero,
.diin-hero {
  color: #fff;
  padding: 56px 0 0;
  text-align: center;
}
.caju-hero { background: #e80537; }
.lqs-hero { background: #4e019e; }
.diin-hero { background: #2ad566; }
.caju-hero .eyebrow,
.lqs-hero .eyebrow,
.diin-hero .eyebrow {
  display: block;
  font-family: "SF Mono", ui-monospace, "Roboto Mono", Menlo, monospace;
  font-size: 14px;
  letter-spacing: 0.02em;
  opacity: 0.9;
  margin-bottom: 16px;
}
.caju-hero h1,
.lqs-hero h1,
.diin-hero h1 {
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 48px;
}
.hero-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3%;
  max-width: 1160px;
  margin: 0 auto -160px;
  position: relative;
  z-index: 2;
}
.hero-visual .hero-desktop {
  width: 76%;
  display: block;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.35));
}
.hero-visual .hero-mobile {
  width: 20%;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 20px 35px rgba(0,0,0,.4));
}
.hero-visual.single .hero-desktop {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.case-block { padding: 64px 0; }
.case-block.after-hero { padding-top: 200px; }
.case-grid {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 32px;
}
.case-grid h2 {
  font-size: 22px;
  margin: 0;
}
.case-grid h3 {
  font-size: 16px;
  margin: 28px 0 8px;
}
.case-grid p {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.case-grid p strong { font-weight: 700; }
.case-grid ul {
  margin: 0 0 16px;
  padding-left: 20px;
}
.case-grid li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 6px;
}
.case-grid .case-details p { margin: 0; line-height: 1.6; }
.case-grid .subhead {
  font-size: 19px;
  font-weight: 600;
  margin: 32px 0 12px;
}
.case-grid .case-quote {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 20px;
}
.case-grid .case-quote.strong { font-weight: 700; }

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.persona-grid img {
  width: 100%;
  display: block;
}

.trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trio-grid figure { margin: 0; }
.trio-grid video,
.trio-grid img {
  width: 100%;
  display: block;
  border-radius: 8px;
}
.trio-grid figcaption {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
}

.case-media.phone {
  max-width: 420px;
  margin: 0 auto;
}

.before-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.before-grid img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.case-before-tag {
  text-align: center;
  margin-top: 24px;
}
.case-before-tag span {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.metric-row:first-of-type { border-top: 1px solid var(--border); }
.metric-row .metric-before strong,
.metric-row .metric-after {
  display: block;
  font-size: 16px;
}
.metric-row .metric-before strong { margin-bottom: 4px; }
.metric-row .metric-before span {
  color: var(--muted);
  font-size: 15px;
}
.metric-row .arrow {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}
.metrics-wrap { margin: 28px 0 8px; }
.metric-head {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  gap: 16px;
  padding-bottom: 12px;
  font-weight: 700;
  font-size: 15px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0 8px;
}
.stat-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.stat-card {
  background: #f9dde2;
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
}
.stat-row.purple .stat-card { background: #e7e4ed; }
.stat-row.green .stat-card { background: #ebffee; }
.stat-card .num {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-card .label {
  font-size: 15px;
  color: var(--ink);
  margin-top: 8px;
}

.case-media {
  display: block;
  width: 100%;
  border-radius: 12px;
}
.case-media-section { padding: 48px 0; }
.case-before-section { background: #e9e9e9; }
.case-media-dark { background: #d9d9d9; }
.case-media-flow { background: #f9fff9; }
.wrap-wide { max-width: 1450px; }

.callout-box {
  background: #e7e4ed;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
}
.callout-box strong { font-weight: 700; }
.callout-stack { margin: 20px 0 8px; }

@media (max-width: 760px) {
  .case-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat-row,
  .stat-row.cols-2 { grid-template-columns: 1fr; }
  .before-grid { grid-template-columns: 1fr; }
  .metric-row,
  .metric-head { grid-template-columns: 1fr; text-align: left; gap: 8px; }
  .metric-row .arrow { display: none; }
  .metric-head { display: none; }
  .hero-visual { flex-direction: column; align-items: center; gap: 24px; margin-bottom: -60px; }
  .hero-visual .hero-desktop,
  .hero-visual .hero-mobile { width: 85%; }
  .caju-hero,
  .lqs-hero,
  .diin-hero { text-align: left; }
  .case-block.after-hero { padding-top: 100px; }
  .persona-grid,
  .trio-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .timeline-row .role { text-align: left; }
  .timeline-row { grid-template-columns: 80px 1fr; row-gap: 4px; }
  .timeline-row .role { grid-column: 2; }
  .nav-links { gap: 18px; }
  .footer-top { align-items: flex-start; }
  .footer-break { display: none; }
}

@media (max-width: 520px) {
  .nav-links a:not(.always) { display: none; }
}
