:root {
  --bg: #f3efe7;
  --bg-soft: #ece6db;
  --panel: #fbf8f2;
  --panel-2: #ffffff;
  --text: #141317;
  --muted: #5c5763;
  --muted-2: #80788a;
  --line: #d9d1c2;
  --line-2: #e7dfd1;
  --accent: #5446d8;
  --accent-soft: #ebe8ff;
  --accent-deep: #2e2578;
  --shadow: 0 18px 46px rgba(20, 19, 23, 0.08);
  --shadow-soft: 0 10px 30px rgba(20, 19, 23, 0.05);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1180px;
}

html {
  background: var(--bg);
}

body {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.65), transparent 32%),
    linear-gradient(180deg, #f8f5ee 0%, var(--bg) 60%, #efe9de 100%);
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: var(--accent-soft);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(243, 239, 231, 0.78);
  border-bottom: 1px solid rgba(217, 209, 194, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #121116;
  color: #f3f0e8;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
  line-height: 1;
}

.brand-copy span {
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 999px;
  transition: 0.22s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  position: relative;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-soft);
  transition: 0.22s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #6658f3, #4e40d4);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(84, 70, 216, 0.22);
}

.btn-secondary {
  background: transparent;
}

.hero {
  padding: 72px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 28px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 15px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.35rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
  max-width: 11ch;
}

.hero .lead,
.page-hero .lead {
  margin-top: 18px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.75;
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-card,
.surface-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68));
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 22px;
}

.profile {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: start;
}

.profile img {
  width: 86px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.profile p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.profile strong {
  color: var(--text);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.stat {
  padding: 14px 14px 15px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.stat kbd {
  font: inherit;
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.stat strong {
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.section {
  padding: 36px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.06em;
}

.section-head p {
  color: var(--muted);
  line-height: 1.72;
  max-width: 56ch;
  margin-top: 10px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  overflow: hidden;
  min-height: 100%;
}

.project-link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.project-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #ebe5d9;
}

.project-media img,
.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  flex: 1;
}

.project-title {
  font-size: 1.65rem;
  letter-spacing: -0.055em;
}

.project-text {
  color: var(--muted);
  line-height: 1.72;
  flex: 1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--accent-deep);
}

.inline-link::after {
  content: "↗";
  font-size: 0.95rem;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.method-card {
  padding: 24px;
}

.method-card h3,
.contact-card h3,
.metric-card h3,
.story-card h3 {
  font-size: 1.34rem;
  letter-spacing: -0.05em;
  margin-bottom: 12px;
}

.method-card p,
.contact-card p,
.metric-card p,
.story-card p,
.flow-card p {
  color: var(--muted);
  line-height: 1.75;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.check i {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-style: normal;
  font-weight: 900;
  font-size: 0.82rem;
  margin-top: 2px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.contact-card {
  padding: 24px;
}

.contact-line {
  display: inline-block;
  margin-top: 16px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.social-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.social {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  font-weight: 900;
}

.subtle {
  color: var(--muted-2);
  font-size: 0.92rem;
}

.site-footer {
  padding: 24px 0 64px;
}

.breadcrumb {
  color: var(--muted-2);
  font-weight: 700;
  margin-bottom: 16px;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-hero {
  padding: 54px 0 28px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.case-hero-card {
  overflow: hidden;
}

.case-media {
  aspect-ratio: 16 / 10;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metric-card {
  padding: 18px;
}

.metric-card p {
  font-size: 0.98rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.story-card {
  padding: 24px;
}

.flow-card {
  padding: 24px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.flow-step {
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.flow-step strong {
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.gallery-stack {
  display: grid;
  gap: 18px;
}

.gallery-card {
  overflow: hidden;
}

.gallery-caption {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}

.gallery-caption strong {
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.gallery-caption p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.96rem;
}

.project-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-nav a {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.project-nav span {
  display: block;
  color: var(--muted-2);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-nav strong {
  letter-spacing: -0.04em;
}

@media (max-width: 1100px) {
  .hero-grid,
  .page-hero-grid,
  .project-grid,
  .method-grid,
  .story-grid,
  .contact-layout,
  .gallery-grid,
  .project-nav {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .container {
    width: min(var(--container), calc(100% - 22px));
  }

  .nav {
    min-height: 74px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 11px;
    right: 11px;
    top: 72px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(251, 248, 242, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 16px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .profile {
    grid-template-columns: 72px 1fr;
  }

  .profile img {
    width: 72px;
    border-radius: 18px;
  }

  .stat-grid,
  .metrics-grid,
  .flow-steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 28px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}