:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-soft: #efede7;
  --ink: #181816;
  --muted: #66645d;
  --soft: #8a877d;
  --line: #ded9ce;
  --line-strong: #24231f;
  --accent: #e75b2c;
  --accent-soft: #fff0e8;
  --movra: #2d8f5b;
  --movra-soft: #e7f4ec;
  --dark: #10100e;
  --dark-soft: #1b1b18;
  --sans: "SUIT Variable", "Inter", "Malgun Gothic", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Inter", "SUIT Variable", ui-monospace, SFMono-Regular, Consolas, monospace;
  --page: 1180px;
  --measure: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

img {
  max-width: 100%;
  height: auto;
}

.top-nav {
  position: static;
  z-index: 100;
  width: 100%;
  padding: 16px 32px;
  display: flex;
  justify-content: center;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-links {
  width: min(100%, var(--page));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f7f6f2;
  box-shadow: none;
}

.nav-links a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.72);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  border-color: var(--accent);
  color: #fff;
}

.hero {
  position: relative;
  min-height: calc(100vh - 57px);
  padding: 128px 32px 76px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  color: #f7f6f2;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  width: min(100%, var(--page));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.eyebrow,
.section-number,
.block-label span,
.info-item span,
.metric-label,
.retro-label {
  font-family: var(--mono);
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 28px;
  color: #b9b6ab;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 920px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero-lead {
  max-width: 740px;
  margin-top: 28px;
  color: #dad6c9;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.65;
  font-weight: 600;
}

.hero-body {
  max-width: 720px;
  margin-top: 28px;
  color: #b9b6ab;
  font-size: 15px;
}

.hero-body p + p {
  margin-top: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-actions a:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.hero-summary {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(12px);
}

.hero-summary div {
  padding: 22px;
}

.hero-summary div + div {
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-summary span {
  display: block;
  margin-bottom: 8px;
  color: #a9a69c;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-summary strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
}

.hero-summary a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.work-section {
  padding: 116px 32px 0;
}

.section-header {
  width: min(100%, var(--page));
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-strong);
}

.section-number {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.section-header h2 {
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.section-header p:not(.section-number) {
  max-width: 760px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 500;
}

.project {
  width: min(100%, var(--page));
  margin: 0 auto 118px;
}

.project-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 40px;
  border: 1px solid var(--line);
  background: var(--line);
}

.info-item {
  min-height: 118px;
  padding: 20px;
  background: var(--surface);
}

.info-item span {
  display: block;
  margin-bottom: 10px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.info-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.info-item a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 56px;
}

.image-grid figure,
.project-hero-img,
.wide-image {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  overflow: hidden;
}

.image-grid img,
.project-hero-img img,
.wide-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.project-hero-img {
  margin-bottom: 56px;
}

.wide-image {
  margin: 0 0 24px;
  padding: 18px;
}

.wide-image + ul {
  margin-bottom: 30px;
}

.content-block {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 48px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.block-label {
  position: sticky;
  top: 94px;
  align-self: start;
}

.block-label span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.block-label h3 {
  max-width: 180px;
  font-size: 24px;
  line-height: 1.24;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.block-content {
  max-width: 890px;
  color: var(--ink);
}

.block-content p {
  font-size: 15px;
  line-height: 1.78;
}

.block-content p + p {
  margin-top: 15px;
}

.block-content strong {
  font-weight: 800;
  background: linear-gradient(transparent 64%, var(--accent-soft) 64%);
  padding: 0 2px;
}

.block-content ul {
  list-style: none;
  margin: 16px 0;
}

.block-content li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.75;
}

.block-content li + li {
  margin-top: 8px;
}

.block-content li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

.behavior-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line-strong);
  background: transparent;
  table-layout: fixed;
}

.behavior-table__feature {
  width: 160px;
}

.behavior-table th,
.behavior-table td {
  border: 1px solid var(--line-strong);
}

.behavior-table thead th {
  padding: 14px 18px;
  color: var(--ink);
  background: rgba(255,255,255,0.34);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  text-align: center;
}

.behavior-table tbody th {
  padding: 24px 18px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
}

.behavior-table td {
  padding: 18px 28px 20px;
  color: var(--muted);
  vertical-align: top;
}

.behavior-table td p {
  font-size: 14px;
  line-height: 1.72;
}

.behavior-table td p + p {
  margin-top: 14px;
}

.behavior-table strong {
  color: var(--ink);
  font-weight: 800;
  background: none;
  padding: 0;
}

.contribs {
  display: block;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.contrib {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.contrib:last-child {
  border-bottom: 0;
}

.contrib h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.contrib h4::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--accent);
  vertical-align: 2px;
}

.contrib p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.contrib .contrib-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contrib-points li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.contrib-points li + li {
  margin-top: 6px;
}

.contrib-points li::before {
  content: "-";
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  background: none;
  color: var(--accent);
  font-weight: 800;
}

.contrib-points ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.contrib-points ul li {
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
}

.contrib-points ul li + li {
  margin-top: 4px;
}

.contrib-points strong {
  background: none;
  padding: 0;
}

.case-study {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 32px;
}

.case-study + .case-study,
.case-study + .contribs {
  margin-top: 24px;
}

.case-title {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.case-subtitle {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.case-step {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  padding: 15px 0;
  border-top: 1px dashed #cfc8bb;
}

.case-step:first-of-type {
  border-top: 0;
}

.step-label {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.metric {
  min-height: 120px;
  padding: 20px 18px;
  background: var(--dark);
  color: #f7f6f2;
}

.metric-label {
  margin-bottom: 10px;
  color: #aaa69b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.metric-value {
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.metric-value span {
  font-size: 13px;
}

.metric-value--small {
  font-size: 16px;
  line-height: 1.45;
}

.metric-delta {
  margin-top: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.retro {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
}

.retro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.retro-label {
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.retro p {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.8;
}

.retro p + p {
  margin-top: 16px;
}

.retro strong {
  color: var(--ink);
  font-weight: 800;
  background: linear-gradient(transparent 64%, var(--accent-soft) 64%);
  padding: 0 2px;
}

.project-next {
  padding-top: 46px;
}

.project--movra .block-label span,
.project--movra .step-label,
.project--movra .metric-delta,
.project--movra .retro-label {
  color: var(--movra);
}

.project--movra .block-content strong {
  background: linear-gradient(transparent 64%, var(--movra-soft) 64%);
}

.project--movra .retro strong {
  background: linear-gradient(transparent 64%, var(--movra-soft) 64%);
}

.project--movra .block-content li::before,
.project--movra .contrib h4::before,
.project--movra .retro::before {
  background: var(--movra);
}

.project--movra .contrib-points li::before {
  background: none;
  color: var(--movra);
}

footer {
  padding: 92px 32px 42px;
  background: var(--dark);
  color: #f7f6f2;
}

.footer-content {
  width: min(100%, var(--page));
  margin: 0 auto;
}

.footer-content h2 {
  max-width: 760px;
  margin-bottom: 34px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 28px;
  border-top: 1px solid #2b2a25;
}

.footer-links a {
  color: #e8e4d8;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.footer-content p {
  margin-top: 32px;
  color: #8f8b80;
  font-family: var(--mono);
  font-size: 11px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding: 112px 24px 64px;
  }

  .hero-layout,
  .section-header,
  .content-block {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 68px);
  }

  .hero-summary {
    max-width: 560px;
  }

  .work-section {
    padding: 82px 24px 0;
  }

  .project-info,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .block-label {
    position: static;
  }

  .block-label h3 {
    max-width: none;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 14px;
  }

  .top-nav {
    padding: 12px 16px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .nav-links a {
    padding: 7px 0;
    white-space: nowrap;
  }

  .hero {
    padding: 92px 20px 52px;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -0.035em;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-body,
  .block-content p,
  .retro p {
    font-size: 14px;
  }

  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .work-section {
    padding: 68px 20px 0;
  }

  .section-header h2 {
    font-size: 34px;
  }

  .section-header p:not(.section-number) {
    font-size: 15px;
  }

  .project {
    margin-bottom: 84px;
  }

  .project-info,
  .image-grid,
  .contribs,
  .metrics {
    grid-template-columns: 1fr;
  }

  .contrib {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }

  .content-block {
    padding: 36px 0;
  }

  .case-study,
  .retro {
    padding: 26px 20px;
  }

  .case-step {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .behavior-table {
    border-width: 1px 0;
  }

  .behavior-table,
  .behavior-table thead,
  .behavior-table tbody,
  .behavior-table tr,
  .behavior-table th,
  .behavior-table td {
    display: block;
    width: 100%;
  }

  .behavior-table thead {
    display: none;
  }

  .behavior-table tr {
    border-bottom: 1px solid var(--line-strong);
  }

  .behavior-table tr:last-child {
    border-bottom: 0;
  }

  .behavior-table tbody th {
    padding: 18px 0 8px;
    border: 0;
    text-align: left;
  }

  .behavior-table td {
    padding: 0 0 20px;
    border: 0;
  }

  .metric {
    min-height: auto;
  }

  .footer-content h2 {
    font-size: 32px;
  }
}
