@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@300;400;500;600&display=swap');

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

/* Tokens */
:root {
  --bg:          #ffffff;
  --text:        #191916;
  --muted:       #6e6d68;
  --border:      #d2d0ca;
  --surface:     #edebe6;
  --dark-bg:     #232220;
  --dark-text:   #f4f3ef;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:  'DM Serif Display', Georgia, serif;
  --max:         1200px;
  --pad:         clamp(20px, 4vw, 48px);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
}

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

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

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ─── NAV ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

.site-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.15s;
}

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

/* ─── HERO ─── */
.hero {
  padding: 96px 0 104px;
  border-bottom: 1px solid var(--border);
}

.hero-rule {
  height: 1px;
  background: var(--border);
  margin-bottom: 48px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6.5vw, 92px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 920px;
}

/* ─── ABOUT ─── */
.about {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.section-divider {
  height: 1px;
  background: var(--border);
}

.about-grid {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.about-lead {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.625;
  letter-spacing: -0.01em;
  width: 360px;
  flex-shrink: 0;
}

.pillar {
  flex: 1 0 0;
  min-width: 0;
}

.pillar h3 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 16px;
}

.pillar ul {
  list-style: none;
  padding-left: 0;
}

.pillar li {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.625;
}

/* ─── WORK INDEX ─── */
.work-section {
  padding: 96px 0;
  background: #fafafa;
}

.section-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 48px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
  row-gap: 64px;
}

.work-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: background 0.15s;
}

.work-card:hover {
  background: #f4ff95;
}

.work-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card-body {
  padding: 28px 28px 32px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}


.card-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.card-type {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
}

.card-arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 18px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s, transform 0.15s;
}

/* ─── FOOTER ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-name {
  font-size: 13px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
}

/* ─── CASE STUDY NAV ─── */
.case-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.case-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
}

.case-nav-back {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}

.case-nav-back:hover {
  color: var(--text);
}

.case-nav-logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* ─── CASE HERO ─── */
.case-hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
}

.case-category {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 28px;
}

.case-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 800px;
  margin-bottom: 32px;
}

.case-description {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  max-width: 640px;
}

.case-meta {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
  margin-top: 72px;
  border-top: 1px solid var(--border);
  padding-top: 56px;
}

.meta-item label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 6px;
}

.meta-item span {
  font-size: 14px;
}

/* ─── CASE CONTENT ─── */
.case-image-full {
  width: 100%;
  aspect-ratio: 16 / 8;
}

.case-content {
  padding: 80px 0;
}

.case-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--border);
}

.case-block:last-child,
.case-block:has(+ .case-meta) {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.case-block-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  padding-top: 4px;
}

.case-block-body h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.case-block-body p {
  font-size: 16px;
  line-height: 1.72;
  margin-bottom: 16px;
}

.case-block-body p:last-child {
  margin-bottom: 0;
}

.case-block-body ul {
  padding-left: 18px;
  margin-bottom: 16px;
}

.case-block-body li {
  font-size: 16px;
  line-height: 1.72;
  margin-bottom: 2px;
}

/* Image placeholders */
.img-fill {
  width: 100%;
  background: var(--surface);
  object-fit: cover;
}

.img-fill.ratio-wide {
  aspect-ratio: 16 / 9;
}

.img-fill.ratio-std {
  aspect-ratio: 4 / 3;
}

.img-fill.ratio-hero {
  aspect-ratio: 16 / 7;
}

.img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 48px 0;
}

.img-single {
  margin: 48px 0;
}

/* ─── CASE NEXT ─── */
.case-next {
  border-top: 1px solid var(--border);
  padding: 72px 0;
}

.case-next-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 16px;
}

.case-next-link {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.case-next-link:hover {
  color: var(--muted);
}

/* ─── ABOUT PAGE ─── */
.about-hero {
  padding: 96px 0 104px;
  border-bottom: 1px solid var(--border);
}

.about-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6.5vw, 92px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 900px;
}

.about-body {
  padding-bottom: 96px;
}

.about-intro {
  max-width: 640px;
  margin-bottom: 72px;
  padding-top: 72px;
}

.about-intro p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-intro p:last-child {
  margin-bottom: 0;
}

.about-page-divider {
  height: 1px;
  background: var(--border);
  margin: 72px 0 48px;
}

.about-divider-full {
  margin-left: 0;
  margin-right: 0;
}

.about-tools-section {
  padding-bottom: 96px;
}

.about-exp-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.about-exp-block:last-child,
.about-exp-block:has(+ .about-page-divider) {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.about-exp-company {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

.about-exp-company-plus {
  margin-top: 24px;
}

.about-exp-detail {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.about-exp-right p {
  font-size: 16px;
  line-height: 1.72;
  margin-bottom: 12px;
}

.about-exp-right p:last-child {
  margin-bottom: 0;
}

.about-tools {
  display: flex;
  gap: 32px;
}

.about-tools-item {
  flex: 1;
}

.about-tools-item h3 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 12px;
}

.about-tools-item p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .about-grid {
    flex-direction: column;
    gap: 40px;
  }

  .about-lead {
    width: 100%;
  }

  .pillar {
    flex: none;
    width: 100%;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .case-meta {
    gap: 28px;
  }

  .case-block {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .img-pair {
    grid-template-columns: 1fr;
  }

  .about-exp-block {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-tools {
    flex-direction: column;
    gap: 24px;
  }

  .site-footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
