html {
  scroll-behavior: smooth;
}

:root {
  --bg: #f4efe5;
  --surface: #faf6ee;
  --surface-strong: #ffffff;
  --text: #1b2531;
  --muted: #5f5849;
  --accent: #c25b34;
  --accent-deep: #a4481f;
  --accent-soft: #e08a5c;
  --border: #e3dac8;
  --nav-bg: #19222e;
  --nav-border: #2a3542;
  --nav-text: #a7afb9;
  --hero-bg: #19222e;
  --hero-text: #f2ece0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { text-decoration: none; }

button, a {
  transition: all 0.18s ease;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-shell { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 1rem;
}

.brand {
  color: var(--hero-text);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.brand span { color: var(--accent-soft); }

.desktop-nav,
.mobile-nav { display: flex; align-items: center; gap: 1.5rem; }

.desktop-nav a,
.mobile-nav a {
  color: var(--nav-text);
  font-size: 0.94rem;
  font-weight: 500;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover,
.text-link:hover,
.social-links a:hover { color: #525962; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  border: 1px solid transparent;
}

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

.button-primary {
  background: var(--accent);
  color: #fffaf5;
}

.button-primary:hover { background: var(--accent-deep); }

.button-secondary {
  color: var(--hero-text);
  border-color: #36424f;
  background: transparent;
}

.button-secondary:hover {
  border-color: var(--accent-soft);
  background: rgba(224, 138, 92, 0.1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #36424f;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #c8d0d9;
  margin: 0 auto;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1rem;
  border-bottom: 1px solid var(--nav-border);
  background: var(--nav-bg);
}

.mobile-nav a {
  padding: 0.8rem 0.5rem;
  border-radius: 7px;
}

.mobile-cta { margin-top: 0.5rem; }

.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  position: relative;
}

.hero[data-hero-variant="1"] .hero-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.hero[data-hero-variant="2"] .hero-copy h1 {
  font-size: clamp(2.6rem, 7.6vw, 5.3rem);
  line-height: 0.99;
}

.hero[data-hero-variant="2"] .hero-copy h1 span {
  border-bottom: 5px solid var(--accent);
  padding-bottom: 2px;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(4.75rem, 12vw, 9rem) 0;
}

.hero-copy h1,
.section h2,
.contact-card h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.025em;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  line-height: 1.02;
  max-width: 13ch;
}

.hero-copy h1 span { color: var(--accent-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
}

.eyebrow-accent { color: #bf5a30; }

.lead,
.section-text,
.info-card p,
.project-copy p {
  color: #aab2bc;
  line-height: 1.6;
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
}

.section-text,
.info-card p,
.project-copy p {
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions,
.feature-pills,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-actions { margin-top: 2rem; }

.hero-panel {
  border-radius: 10px;
  border: 1px solid #2f3b48;
  background: #1e2a38;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.panel-topbar {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid #2c3845;
  background: #172230;
}

.panel-topbar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #3a4654;
}

.panel-body {
  min-height: 300px;
  display: grid;
  place-items: center;
  background-image: repeating-linear-gradient(45deg, #1c2836 0, #1c2836 12px, #212f3e 12px, #212f3e 24px);
  color: #9aa3ad;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.hero-switcher {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 27, 37, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid #2c3845;
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.switch-label {
  color: #7f8893;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.switch-button {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid #3a4654;
  background: transparent;
  color: #9aa3ad;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
}

.switch-button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-light { background: var(--bg); }

.section-warm {
  background: #ece4d3;
  border-top: 1px solid #ddd3bf;
  border-bottom: 1px solid #ddd3bf;
}

.section-dark {
  background: var(--hero-bg);
  color: var(--hero-text);
}

.section h2,
.contact-card h2 {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  line-height: 1.06;
  color: var(--text);
  margin-top: 1rem;
}

.section-dark h2,
.section-dark .section-text,
.section-dark .eyebrow { color: var(--hero-text); }

.section-dark .section-text { color: #aab2bc; }

.feature-pills span,
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
}

.feature-pills span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.card-grid {
  display: grid;
  gap: 1.35rem;
  margin-top: 3rem;
}

.three-up { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.info-card,
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(30, 23, 18, 0.06);
}

.info-card { padding: 1.65rem; }
.project-card { overflow: hidden; }

.info-card:hover,
.project-card:hover {
  transform: translateY(-3px);
  border-color: #d6a883;
  box-shadow: 0 16px 36px rgba(50, 34, 18, 0.08);
}

.card-number {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.info-card h3,
.project-copy h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  color: var(--text);
  margin: 1rem 0 0;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}

.project-copy h3 { margin: 0; }

.project-preview {
  height: 210px;
  border-bottom: 1px solid var(--border);
  display: grid;
  place-items: center;
  background-image: repeating-linear-gradient(45deg, #ece4d3 0, #ece4d3 11px, #e2d8c3 11px, #e2d8c3 22px);
  color: #8a7f68;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  position: relative;
  overflow: hidden;
}

.project-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: brightness(0.9) saturate(0.82) contrast(0.95);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-preview img {
  filter: brightness(0.95) saturate(0.9) contrast(0.97);
  transform: scale(1.02);
}

.project-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(244, 239, 229, 0.18) 100%);
  pointer-events: none;
}

.project-copy { display: grid; gap: 0.6rem; padding: 1.25rem 1.65rem 1.65rem; }

.text-link {
  align-self: start;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-card {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.contact-email {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.95rem);
  font-weight: 600;
  color: var(--hero-text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
}

.contact-email:hover { color: var(--accent-soft); }

.contact-button { margin: 1.5rem 0; }

.site-footer {
  background: #141b25;
  color: #7f8893;
  border-top: 1px solid #2a3542;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  min-height: 72px;
  font-size: 0.9rem;
}

.site-footer a { color: #a7afb9; font-weight: 600; }

@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav { display: flex; }
}

@media (min-width: 861px) {
  .mobile-nav { display: none !important; }
}
