@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Serif+Display:ital@0;1&display=swap');

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

:root {
  --ink: #1a1a18;
  --ink-muted: #6b6b67;
  --ink-faint: #b8b8b3;
  --paper: #f7f6f2;
  --paper-warm: #eeecea;
  --accent: #EBAA6B;
  --accent-light: #fdf0e0;
  --line: rgba(26,26,24,0.1);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --max: 1100px;
  --col: 680px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: rgba(247,246,242,0.92);
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex; gap: 36px; list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

/* NAV DROPDOWN */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: var(--sans);
  line-height: 1;
  transition: color 0.2s;
  vertical-align: middle;
}

.nav-dropdown-btn:hover,
.nav-dropdown-btn.active,
.nav-item-dropdown:hover .nav-dropdown-btn {
  color: var(--ink);
}

.nav-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-item-dropdown:hover .nav-chevron,
.nav-item-dropdown.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 260px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(26,26,24,0.12), 0 2px 8px rgba(26,26,24,0.06);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 200;
}

/* invisible bridge so hovering into menu doesn't close it */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 5px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.14s;
}

.nav-dropdown-item:hover {
  background: var(--accent-light);
}

.nav-dd-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav-dd-name {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.nav-dd-desc {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-lang svg {
  color: var(--ink-muted);
}

.nav-lang select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 16px 8px 12px;
  font-size: 14px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  min-width: 108px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* LAYOUT */
main { padding-top: 80px; }

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

.col {
  max-width: var(--col);
}

/* HERO (index) */
.hero {
  background: var(--accent);
  padding: 100px 0 80px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26,26,24,0.6);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 800px;
}

.hero h1 em {
  font-style: italic;
  color: rgba(26,26,24,0.55);
}

.hero-body {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(26,26,24,0.7);
  max-width: 520px;
  margin-bottom: 40px;
}

/* PROJECTS GRID */
.projects-section {
  padding: 80px 0;
}

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 40px;
}

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

.project-card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 40px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.25s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.project-card:hover { background: var(--accent-light); }

.project-card.third {
  grid-column: 1 / -1;
}

.project-card.third .img-block,
.project-card.third > img {
  aspect-ratio: 32/9;
}

.card-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 20px;
}

.card-title {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 380px;
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 28px;
  letter-spacing: 0.01em;
}

.card-arrow svg {
  transition: transform 0.2s;
}

.project-card:hover .card-arrow svg {
  transform: translateX(4px);
}

.card-year {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  display: block;
  text-align: right;
  margin-bottom: 12px;
}

/* CASE PAGE */
.case-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line);
}

.case-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
  display: block;
}

.case-hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 760px;
}

.case-hero .lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 600px;
}

.case-meta {
  display: flex;
  gap: 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.meta-value {
  font-size: 15px;
  color: var(--ink);
  font-weight: 400;
}

/* FIGURE / CAPTION */
figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-subtle, #888);
}

/* CASE CONTENT */
.case-content {
  padding: 64px 0;
}

.case-content .col {
  margin: 0 auto;
}

.case-content .col figure {
  width: calc(var(--max) - 96px);
  max-width: calc(100vw - 96px);
  margin-left: calc((var(--col) - min(var(--max) - 96px, 100vw - 96px)) / 2);
}

.case-section {
  margin-bottom: 64px;
}

.case-section h2 {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--ink);
}

.case-section p {
  color: var(--ink-muted);
  margin-bottom: 16px;
}

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

/* INSIGHT BLOCK */
.insight {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 4px 4px 0;
}

.insight p {
  color: var(--ink) !important;
  font-size: 16px;
  font-style: italic;
  margin: 0 !important;
}

/* PROCESS STEPS */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 32px 0;
}

.step {
  background: var(--paper);
  padding: 24px;
}

.step-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* IMAGE PLACEHOLDER */
.img-block {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 4px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px 0;
  color: var(--ink-faint);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.img-block.tall { aspect-ratio: 4/3; }

/* PROJECT CARDS */
.project-card .img-block {
  margin-bottom: 20px;
  aspect-ratio: 16/9;
  font-size: 12px;
}

.project-card > img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  display: block;
  margin-bottom: 24px;
}

/* CASE HERO IMAGE */
.case-hero-image {
  margin: 40px 0 32px;
  border-radius: 4px;
  overflow: hidden;
}

.case-hero-image .img-block {
  margin: 0;
}

.case-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* OUTCOME PILLS */
.outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.outcome-pill {
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 400;
}

/* ABOUT PAGE */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px 0;
  align-items: start;
}

.about-photo {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  aspect-ratio: 3/4;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 13px;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.about-content h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 28px;
}

.about-body {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.fact-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.fact-value {
  font-size: 15px;
  color: var(--ink);
}

/* CONTACT */
.contact-section {
  padding: 80px 0 120px;
}

.contact-section h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.contact-section p {
  color: var(--ink-muted);
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 440px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  transition: background 0.2s;
  max-width: 440px;
}

.contact-link:hover { background: var(--accent-light); }

.contact-link-label { font-weight: 400; }
.contact-link-value { color: var(--ink-muted); font-size: 13px; }

/* FOOTER */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 13px;
  color: var(--ink-faint);
}

footer a {
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
}

footer a:hover { color: var(--ink); }

/* CTA BUTTON */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s;
}

.btn-accent {
  background: var(--accent);
  color: var(--ink);
}

.btn-accent:hover { background: #d9934a; }

.case-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.case-nav-right {
  display: flex;
  gap: 12px;
}

.btn:hover { background: var(--accent); color: var(--ink); cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Crect x='1' y='14' width='30' height='10' rx='3' fill='%23CC0000'/%3E%3Crect x='7' y='8' width='18' height='8' rx='2' fill='%23CC0000'/%3E%3Crect x='8' y='9' width='7' height='6' rx='1' fill='%23AEE8F8'/%3E%3Crect x='17' y='9' width='7' height='6' rx='1' fill='%23AEE8F8'/%3E%3Ccircle cx='8' cy='24' r='4' fill='%23222'/%3E%3Ccircle cx='24' cy='24' r='4' fill='%23222'/%3E%3Ccircle cx='8' cy='24' r='2' fill='%23666'/%3E%3Ccircle cx='24' cy='24' r='2' fill='%23666'/%3E%3Ctext x='11' y='21' font-family='Arial' font-size='8' fill='%23FFD700' font-weight='bold'%3E95%3C/text%3E%3C/svg%3E") 16 16, pointer; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { background: var(--paper-warm); color: var(--ink); cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Crect x='1' y='14' width='30' height='10' rx='3' fill='%23CC0000'/%3E%3Crect x='7' y='8' width='18' height='8' rx='2' fill='%23CC0000'/%3E%3Crect x='8' y='9' width='7' height='6' rx='1' fill='%23AEE8F8'/%3E%3Crect x='17' y='9' width='7' height='6' rx='1' fill='%23AEE8F8'/%3E%3Ccircle cx='8' cy='24' r='4' fill='%23222'/%3E%3Ccircle cx='24' cy='24' r='4' fill='%23222'/%3E%3Ccircle cx='8' cy='24' r='2' fill='%23666'/%3E%3Ccircle cx='24' cy='24' r='2' fill='%23666'/%3E%3Ctext x='11' y='21' font-family='Arial' font-size='8' fill='%23FFD700' font-weight='bold'%3E95%3C/text%3E%3C/svg%3E") 16 16, pointer; }

.hero .btn {
  background: #fff;
  color: var(--ink);
}

.hero .btn:hover { background: var(--accent-light); color: var(--ink); }

.hero .btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.hero .btn-ghost:hover { background: var(--accent-light); color: var(--ink); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

.fade-up:nth-child(2) { animation-delay: 0.1s; }
.fade-up:nth-child(3) { animation-delay: 0.2s; }
.fade-up:nth-child(4) { animation-delay: 0.3s; }

/* RECOMMENDATIONS */
.recommendations { padding: 64px 0 80px; }
.rec-label { font-size: 13px; color: var(--muted); margin-bottom: 24px; letter-spacing: 0.02em; }
.rec-scroll { overflow-x: auto; padding-bottom: 16px; scrollbar-width: thin; }
.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: 16px;
  width: 100%;
}
.rec-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; min-height: 160px; display: flex; flex-direction: column; justify-content: space-between; }
.rec-quote { font-size: 15px; line-height: 1.7; margin: 0 0 20px; color: var(--ink); flex: 1; }
.rec-author { font-size: 13px; font-weight: 500; margin: 0; color: var(--ink); }
.rec-role { font-size: 13px; color: var(--muted); margin: 0; }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .container { padding: 0 24px; }
  .hero { padding: 60px 0 48px; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .case-meta { gap: 28px; }
  .about-facts { grid-template-columns: 1fr; }
}
