:root {
  /* Restrained, simple color system: paper, stone, blued-steel charcoal, and range copper */
  --bg: #F7F7F5;
  --surface: #ECECE8;
  --dark: #111315;
  --dark-surface: #1A1D21;
  --ink: #111315;
  --muted: #4A5159;
  --ink-on-dark: #F5F6F7;
  --muted-on-dark: #B6BCC3;
  --line: #D4D6D1;
  --line-dark: #2B3036;
  --accent: #A64316;
  --accent-hover: #8C3710;

  /* 2 font families */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Strict 3-size body scale below hero */
  --text-heading: clamp(1.75rem, 3vw, 2.35rem);
  --text-body: 1.0625rem;
  --text-sm: 0.875rem;

  /* Layout & motion tokens */
  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--dark);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1.25rem;
  background: var(--dark);
  color: var(--ink-on-dark);
  font-size: var(--text-sm);
  z-index: 200;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

/* Header: borderless over hero, clean surface separation on scroll */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 1.25rem;
  color: var(--ink-on-dark);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), padding-block 200ms var(--ease);
}

.site-header.is-scrolled,
.site-header--solid {
  padding-block: 0.9rem;
  background-color: rgba(247, 247, 245, 0.96);
  color: var(--ink);
  border-bottom-color: var(--line);
  backdrop-filter: blur(8px);
}

.site-header--solid .brand-mark,
.site-header--solid .brand-accent {
  color: var(--accent);
}

.primary-nav a[aria-current="page"] {
  opacity: 1;
  color: var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark {
  flex-shrink: 0;
  color: var(--accent);
}

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

.site-header:not(.is-scrolled) .brand-mark,
.site-header:not(.is-scrolled) .brand-accent {
  color: #E57A44;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.primary-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.92;
  transition: opacity 180ms var(--ease), color 180ms var(--ease);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  opacity: 1;
}

.primary-nav .nav-cta {
  padding: 0.55rem 1.15rem;
  background-color: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
  opacity: 1;
  border-radius: 3px;
  transition: background-color 180ms var(--ease), transform 180ms var(--ease);
}

.primary-nav .nav-cta:hover,
.primary-nav .nav-cta:focus-visible {
  background-color: var(--accent-hover);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

/* Full-bleed photographic hero bleeding to y = 0 */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding-top: 7.5rem;
  padding-bottom: clamp(4rem, 10vh, 7.5rem);
  background-color: var(--dark);
  color: var(--ink-on-dark);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(92deg, rgba(17, 19, 21, 0.72) 0%, rgba(17, 19, 21, 0.36) 52%, rgba(17, 19, 21, 0.06) 100%),
    linear-gradient(180deg, rgba(17, 19, 21, 0.35) 0%, rgba(17, 19, 21, 0) 28%, rgba(17, 19, 21, 0.56) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.25rem, 9.5vw, 8rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: #FFFFFF;
}

.hero-title-accent {
  color: #E57A44;
}

.hero-tagline {
  margin-top: 1.15rem;
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 24ch;
  color: #FFFFFF;
}

.hero-subtitle {
  margin-top: 1.1rem;
  max-width: 52ch;
  font-size: var(--text-body);
  line-height: 1.6;
  color: #E2E5E9;
}

.hero-action {
  margin-top: 2.25rem;
}

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  border: 0;
  border-radius: 3px;
  background-color: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease), transform 180ms var(--ease);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Shared section rhythm */
.section {
  padding-block: clamp(4.5rem, 8.5vw, 7.5rem);
}

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

.section-stone {
  background-color: var(--surface);
}

.section-dark {
  background-color: var(--dark);
  color: var(--ink-on-dark);
}

.section-header {
  max-width: 62ch;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h3 {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.prose {
  margin-top: 1rem;
  max-width: 60ch;
  color: var(--muted);
}

.prose-dark {
  color: var(--muted-on-dark);
}

/* Problem / Empathy section */
.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.problem-list {
  list-style: none;
  padding: 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.problem-list li {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.problem-list p {
  margin-top: 0.45rem;
  max-width: 56ch;
  color: var(--muted);
}

.problem-figure {
  overflow: hidden;
  background-color: var(--surface);
}

.problem-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Simplified 2-column Services section */
.services-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.service-column {
  padding-top: 1.75rem;
  border-top: 2px solid var(--ink);
}

.service-deliverables {
  list-style: none;
  padding: 0;
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.service-deliverables li {
  padding-block: 0.95rem;
  padding-left: 1.25rem;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.service-deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.5rem;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
}

/* 3-Step Process section */
.process-grid {
  list-style: none;
  padding: 0;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
}

.process-step {
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}

.process-step p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.section-cta {
  margin-top: 3rem;
}

/* Contact / Final CTA */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.contact-note {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--text-sm);
  color: var(--muted-on-dark);
  max-width: 44ch;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-on-dark);
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  background-color: var(--dark-surface);
  color: var(--ink-on-dark);
  font-family: var(--font-body);
  font-size: var(--text-body);
  transition: border-color 180ms var(--ease);
}

.form-field input::placeholder {
  color: #7D8590;
}

.form-field input:hover,
.form-field select:hover {
  border-color: #4D5560;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--accent);
}

.form-actions {
  margin-top: 0.5rem;
}

.form-status {
  min-height: 1.5rem;
  font-size: var(--text-sm);
  color: #E3A07C;
}

/* Contact Subpage */
.page-subpage {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.subpage-main {
  flex: 1;
  padding-top: 4.5rem;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.subpage-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.contact-page-details {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--muted);
}

.contact-page-details strong {
  color: var(--ink);
}

.contact-page-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 2px solid var(--ink);
}

.form-field--light label {
  color: var(--ink);
}

.form-field--light input,
.form-field--light textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background-color: #FFFFFF;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
  transition: border-color 180ms var(--ease);
}

.form-field--light textarea {
  resize: vertical;
  min-height: 8.5rem;
}

.form-field--light input::placeholder,
.form-field--light textarea::placeholder {
  color: #6B7280;
}

.form-field--light input:hover,
.form-field--light textarea:hover {
  border-color: #9CA3AF;
}

.form-field--light input:focus,
.form-field--light textarea:focus {
  border-color: var(--accent);
}

.form-confirmation {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background-color: var(--surface);
  color: var(--ink);
  font-size: var(--text-body);
}

.form-confirmation.is-error {
  border-left-color: #991B1B;
}

/* Footer */
.site-footer {
  background-color: var(--dark);
  color: var(--muted-on-dark);
  border-top: 1px solid var(--line-dark);
  padding-block: 3.25rem 2.5rem;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line-dark);
}

.footer-wordmark {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--ink-on-dark);
}

.footer-tagline {
  margin-top: 0.5rem;
  max-width: 44ch;
  font-size: var(--text-sm);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: var(--text-sm);
}

.footer-nav a {
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--ink-on-dark);
}

.footer-bottom {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--text-sm);
}

/* Mobile & Tablet Responsive */
@media (max-width: 960px) {
  .problem-grid,
  .services-grid,
  .contact-grid,
  .contact-page-grid {
    grid-template-columns: 1fr;
  }

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

  .problem-figure img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
    padding: 1.5rem var(--gutter) 2rem;
    background-color: var(--dark);
    color: var(--ink-on-dark);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms var(--ease), opacity 220ms var(--ease);
  }

  .site-header.is-scrolled .primary-nav,
  .site-header--solid .primary-nav {
    background-color: var(--bg);
    color: var(--ink);
    border-bottom-color: var(--line);
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    min-height: 92dvh;
    padding-bottom: 3.5rem;
  }

  .hero-title {
    font-size: clamp(3.5rem, 15vw, 4.75rem);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

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

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