:root {
  color-scheme: light;
  --bg: #f6efe6;
  --bg-elevated: rgba(255, 255, 255, 0.76);
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --rule: rgba(77, 55, 37, 0.1);
  --rule-strong: rgba(138, 95, 54, 0.18);
  --text: #20160f;
  --muted: #67594a;
  --accent: #8a5e35;
  --accent-strong: #5b371d;
  --shadow: 0 24px 70px rgba(66, 42, 22, 0.12);
  --shadow-soft: 0 12px 32px rgba(66, 42, 22, 0.08);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(186, 145, 93, 0.14), transparent 25%),
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.72), transparent 20%),
    linear-gradient(180deg, #f8f3eb 0%, #efe6db 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(61, 43, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 43, 28, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 90%);
  opacity: 0.7;
}

::selection {
  background: rgba(138, 94, 53, 0.18);
  color: var(--text);
}

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

a:hover {
  color: var(--accent-strong);
}

.shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 14px;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(77, 55, 37, 0.08);
}

.wordmark,
.nav a,
.section-label,
.eyebrow,
.project-kicker,
.rail-label,
dt {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
}

.wordmark {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.nav a:hover {
  border-color: rgba(138, 94, 53, 0.16);
  background: rgba(255, 255, 255, 0.42);
}

.layout {
  display: grid;
  gap: 24px;
  padding: 18px 0 48px;
}

.hero,
.section {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 44px;
  padding: 68px;
  align-items: end;
}

.eyebrow,
.section-label,
.project-kicker,
.rail-label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1 {
  max-width: 11ch;
  font-size: clamp(4.4rem, 10vw, 8.2rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 0.95;
  max-width: 13ch;
}

h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1;
}

.hero-copy {
  display: grid;
  gap: 0;
}

.lede {
  max-width: 44ch;
  margin-top: 24px;
  font-size: clamp(1.04rem, 1.8vw, 1.18rem);
  color: var(--text);
}

.section-body,
.contact-body p,
.project-copy p,
.rail-line p,
.footer {
  color: var(--muted);
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fffaf5;
  background: linear-gradient(135deg, #7c5131 0%, #5b371d 100%);
  box-shadow: 0 12px 32px rgba(91, 55, 29, 0.16);
}

.button-primary:hover {
  color: #fffaf5;
  box-shadow: 0 16px 38px rgba(91, 55, 29, 0.2);
}

.button-secondary {
  border-color: rgba(138, 94, 53, 0.2);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.82);
}

.hero-rail {
  display: grid;
  gap: 14px;
  align-self: stretch;
}

.rail-line {
  padding: 18px 18px 20px;
  border: 1px solid rgba(138, 94, 53, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 249, 242, 0.75));
}

.rail-line p {
  max-width: 30ch;
  font-size: 0.98rem;
}

.section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 48px;
  padding: 58px 68px;
}

.section-intro {
  display: grid;
  align-content: start;
  gap: 2px;
}

.section-body {
  max-width: 70ch;
}

.prose {
  display: grid;
  gap: 10px;
}

.discipline-line {
  margin-top: 10px;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-stack {
  display: grid;
  gap: 14px;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 22px 22px;
  border: 1px solid rgba(138, 94, 53, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
}

.project-row:first-child {
  padding-top: 22px;
}

.project-row-featured {
  border-color: rgba(138, 94, 53, 0.26);
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.94), rgba(255, 255, 255, 0.76));
  box-shadow: var(--shadow-soft);
}

.project-copy p {
  max-width: 56ch;
  margin-top: 12px;
}

.project-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.project-link:hover {
  color: var(--accent-strong);
}

.project-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(138, 94, 53, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.project-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(138, 94, 53, 0.34);
  background: #fff;
  box-shadow: 0 12px 24px rgba(66, 42, 22, 0.08);
}

.project-meta {
  margin-top: 10px !important;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-grid,
.proof-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-card,
.mockup-card,
.trust-card {
  border: 1px solid rgba(138, 94, 53, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 248, 240, 0.88));
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.process-step,
.mockup-label {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.process-card h3 {
  margin-bottom: 10px;
}

.process-card p,
.mockup-card p,
.trust-card li {
  color: var(--muted);
  font-size: 0.98rem;
}

.mockup-frame {
  display: grid;
  place-items: center;
  min-height: 190px;
  border-radius: 20px;
  border: 1px solid rgba(138, 94, 53, 0.16);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.92), transparent 42%),
    linear-gradient(145deg, #f8efe3 0%, #efe1d0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.mockup-art {
  width: min(100%, 220px);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  padding: 26px;
  border-radius: 18px;
  border: 10px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(180deg, #fffdf9 0%, #f7efe5 100%);
  color: #2a1b12;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: 1;
  box-shadow: 0 16px 32px rgba(66, 42, 22, 0.12);
}

.mockup-art-one {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 247, 239, 0.96)),
    linear-gradient(135deg, rgba(138, 94, 53, 0.08), transparent 55%);
}

.mockup-art-two {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 240, 231, 0.96)),
    radial-gradient(circle at top right, rgba(138, 94, 53, 0.08), transparent 40%);
}

.trust-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.trust-card li {
  position: relative;
  padding-left: 20px;
}

.trust-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(138, 94, 53, 0.55);
  transform: translateY(-50%);
}

.contact-body {
  display: grid;
  gap: 2px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 34px;
  font-size: 0.9rem;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(101, 72, 47, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 72, 47, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 88%);
  opacity: 0.82;
}

@media (max-width: 980px) {
  .hero,
  .section,
  .project-row {
    grid-template-columns: 1fr;
  }

  .process-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .section {
    gap: 28px;
    padding: 34px 28px;
  }

  .header,
  .footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .project-cta {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(calc(100% - 20px), var(--max));
  }

  .layout {
    padding: 12px 0 36px;
    gap: 18px;
  }

  .hero,
  .section {
    border-radius: 24px;
    padding: 24px 18px;
  }

  h1 {
    font-size: clamp(3.4rem, 19vw, 4.6rem);
  }

  h2 {
    font-size: clamp(1.8rem, 10vw, 2.4rem);
  }

  .hero-actions,
  .contact-links {
    flex-direction: column;
  }

  .button,
  .project-cta {
    width: 100%;
  }

  .nav {
    gap: 8px;
    flex-wrap: wrap;
  }

  .project-row {
    gap: 18px;
    padding: 18px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
