:root {
  --bg: #f4f0e8;
  --surface: #fbf8f2;
  --surface-strong: #ffffff;
  --text: #252522;
  --muted: #69675f;
  --accent: #b59b76;
  --accent-dark: #8f7755;
  --border: #ddd6ca;
  --border-strong: #cec5b7;
  --shadow: 0 16px 40px rgba(53, 48, 41, 0.07);
  --radius: 18px;
  --radius-small: 12px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--text);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 240, 232, 0.95);
  border-bottom: 1px solid rgba(221, 214, 202, 0.8);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark,
.footer-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wordmark {
  font-size: 1.05rem;
}

.site-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav > a:not(.button),
.footer-nav a,
.text-link {
  color: var(--muted);
  font-weight: 500;
}

.site-nav > a:not(.button):hover,
.footer-nav a:hover,
.text-link:hover,
.contact-links a:hover {
  color: var(--text);
}

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

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

.button-primary {
  background: var(--text);
  color: #fff;
}

.button-primary:hover {
  background: #11110f;
}

.button-outline {
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.35);
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
}

.hero {
  padding: 92px 0 84px;
}

.hero-grid,
.project-grid,
.split-simple {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 72px;
  align-items: center;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.75rem, 5.4vw, 5rem);
  font-weight: 710;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  font-weight: 690;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  font-weight: 670;
}

.hero-text,
.section-heading p,
.project-copy > p,
.about-copy p,
.contact-panel p {
  color: var(--muted);
}

.hero-text {
  max-width: 640px;
  margin-bottom: 30px;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.text-link {
  font-weight: 650;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.visual-shell {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1.2 / 1;
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transform: rotate(1.3deg);
}

.visual-bar {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.visual-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cfc8bd;
}

.visual-layout {
  height: calc(100% - 52px);
  display: grid;
  grid-template-columns: 90px 1fr;
}

.visual-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 18px;
  background: #f8f5ef;
  border-right: 1px solid var(--border);
}

.visual-sidebar span {
  height: 7px;
  border-radius: 999px;
  background: #d8d2c8;
}

.visual-sidebar span:first-child {
  width: 70%;
  background: var(--accent);
}

.visual-content {
  padding: 34px 30px;
}

.visual-heading {
  width: 54%;
  height: 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--text);
  opacity: 0.88;
}

.visual-copy {
  width: 58%;
  height: 8px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #d7d1c7;
}

.visual-copy-long {
  width: 84%;
}

.visual-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 34px;
}

.visual-card {
  aspect-ratio: 1.15 / 1;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f7f3ed;
}

.visual-card-accent {
  background: #e7ddce;
}

.section {
  padding: 92px 0;
}

.section-tint {
  background: #ece5da;
  border-block: 1px solid var(--border);
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.narrow {
  max-width: 650px;
}

.section-heading p,
.project-copy p,
.about-copy p,
.contact-panel p {
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  min-height: 220px;
  padding: 28px;
  background: rgba(255,255,255,0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.info-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.project-copy {
  max-width: 620px;
}

.project-lede {
  font-size: 1.18rem !important;
  color: var(--text) !important;
}

.project-copy .button {
  margin-top: 10px;
}


.product-card {
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.product-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
}

.product-card-body {
  padding: 34px;
}

.product-badge {
  display: inline-flex;
  margin-bottom: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eee7dc;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-card h3 {
  max-width: 430px;
  margin-bottom: 14px;
  font-size: 2rem;
}

.product-card p {
  max-width: 430px;
  color: var(--muted);
}

.product-ui {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #faf8f4;
}

.product-ui-row {
  display: grid;
  grid-template-columns: 1fr 0.46fr;
  gap: 10px;
}

.product-ui-row span,
.product-ui-block {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #ddd7cd;
}

.product-ui-block {
  height: 74px;
  margin: 14px 0;
  border-radius: 10px;
  background: #e8e1d7;
}

.product-ui-row-short {
  grid-template-columns: 0.56fr 0.28fr;
}

.split-simple {
  align-items: start;
}

.about-copy {
  max-width: 580px;
  padding-top: 4px;
}

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

.contact-section {
  padding-top: 18px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 48px;
  align-items: end;
  padding: 42px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 22px;
}

.contact-panel h2 {
  margin-bottom: 10px;
}

.contact-panel p {
  margin-bottom: 0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.contact-links a {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #c8bda9;
  text-underline-offset: 4px;
}

.site-footer {
  padding: 34px 0 44px;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-copy {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav {
  gap: 18px;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .project-grid,
  .split-simple,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .project-grid {
    gap: 48px;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .visual-shell {
    max-width: 620px;
  }

  .three-up {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: 0;
  }

  .contact-panel {
    align-items: start;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 68px;
  }

  .site-nav > a:not(.button) {
    display: none;
  }

  .button-small {
    min-height: 38px;
    padding-inline: 14px;
  }

  .hero {
    padding: 68px 0 62px;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 4.1rem);
  }

  .hero-text {
    font-size: 1.02rem;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .visual-layout {
    grid-template-columns: 66px 1fr;
  }

  .visual-content {
    padding: 26px 20px;
  }

  .section {
    padding: 68px 0;
  }

  .product-card-body,
  .contact-panel {
    padding: 26px;
  }

  .product-card h3 {
    font-size: 1.6rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    flex-wrap: wrap;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Legal pages */
.legal-main {
  padding: 82px 0 96px;
}

.legal-wrap {
  max-width: 820px;
}

.legal-title {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.legal-intro {
  max-width: 680px;
  margin-bottom: 54px;
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  margin-bottom: 14px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.legal-section p {
  margin-bottom: 12px;
  color: var(--muted);
}

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

.legal-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-note {
  margin-top: 34px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  color: var(--muted);
}
