:root {
  --bg: #f7f6f3;
  --bg-elevated: #fffcf8;
  --bg-soft: #eeeae3;
  --bg-dark: #161513;
  --text: #1a1916;
  --muted: #6b6760;
  --line: #ddd8cf;
  --accent: #8f4d2f;
  --accent-soft: #f3e6dd;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(22, 21, 19, 0.08);
  --font: "Inter", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --wrap: min(1120px, calc(100% - 48px));
  --header: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--text);
  color: var(--white);
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  backdrop-filter: saturate(180%) blur(18px);
  background: rgba(247, 246, 243, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  position: relative;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  color: var(--white) !important;
  background: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 20px;
  background: var(--text);
  margin: 6px auto;
  transition: transform 0.25s ease;
}

.hero {
  padding: 88px 0 72px;
  min-height: calc(100svh - var(--header));
  display: flex;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero h1,
.section-title,
.page-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  max-width: 14ch;
}

.lede,
.hero-copy {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 28px 0 36px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--text);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-secondary {
  border-color: var(--line);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--text);
}

.btn-ghost {
  color: var(--muted);
  padding-inline: 8px;
}

.btn-ghost:hover {
  color: var(--text);
}

.section {
  padding: 104px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-dark {
  background: var(--bg-dark);
  color: #f4f1ea;
}

.section-dark .lede,
.section-dark .muted,
.section-dark .card p,
.section-dark .process-item p {
  color: #b8b2a8;
}

.section-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  max-width: 16ch;
}

.intro-grid,
.two-col,
.about-grid,
.resume-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 48px;
}

.intro-grid,
.about-grid,
.contact-grid,
.footer-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.principles {
  display: grid;
  gap: 18px;
}

.principle {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.principle strong {
  display: block;
  margin-bottom: 4px;
}

.work-list {
  display: grid;
  gap: 28px;
  margin-top: 56px;
}

.project-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(22, 21, 19, 0.12);
}

.project-visual {
  min-height: 320px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 20% 20%, rgba(143, 77, 47, 0.16), transparent 36%),
    #d9d3c8;
  position: relative;
  overflow: hidden;
}

.project-visual::after {
  content: "[PROJECT IMAGE / MOCKUP]";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #6a645c;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 8px 12px 0;
}

.project-meta h3 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 10px;
}

.placeholder {
  color: var(--muted);
  font-style: italic;
}

.meta-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
  font-size: 14px;
}

.meta-list span {
  color: var(--muted);
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  margin-top: 48px;
}

.capability {
  background: var(--bg);
  padding: 32px;
  min-height: 180px;
  transition: background 0.3s ease;
}

.capability:hover {
  background: var(--accent-soft);
}

.capability h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.capability p {
  margin: 0;
  color: var(--muted);
}

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.process-item {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.process-item .num {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.process-item h3 {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
  margin: 10px 0 8px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.stack-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.stack-card h3 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.stack-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 36px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.journey {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 36px;
}

.chip {
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
}

.resume-block {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.resume-block h3 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-status {
  min-height: 1.4em;
  font-size: 14px;
}

.form-status.ok {
  color: #2f6b45;
}

.form-status.err {
  color: #9b2c2c;
}

.contact-aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-name {
  font-family: var(--display);
  font-size: 1.6rem;
  margin: 0 0 4px;
}

.footer-title,
.footer-bottom p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  align-items: center;
}

.footer-bottom {
  margin-top: 28px;
  font-size: 13px;
}

.page-hero {
  padding: 72px 0 24px;
}

.case-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding-bottom: 96px;
}

.case-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.case-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.case-section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2rem;
  margin: 0 0 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.in-view {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.in-view.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .intro-grid,
  .about-grid,
  .contact-grid,
  .project-card,
  .case-layout,
  .timeline-item,
  .footer-grid,
  .two-col {
    grid-template-columns: 1fr !important;
  }

  .process,
  .stack-grid,
  .capabilities {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  :root {
    --wrap: min(1120px, calc(100% - 32px));
  }

  .logo-name {
    display: none;
  }

  .logo-mark {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header);
    background: rgba(247, 246, 243, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .section {
    padding: 72px 0;
  }

  .process,
  .stack-grid,
  .capabilities {
    grid-template-columns: 1fr;
  }

  .project-visual {
    min-height: 220px;
  }

  .case-nav {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .cta-row {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .page-hero {
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .in-view,
  .project-card,
  .btn {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
