:root {
  --bg-main: #f5f1ec;
  --bg-alt: #eee8e1;
  --surface: #ffffff;
  --surface-muted: #f8f5f1;

  --text-primary: #14393b;
  --text-secondary: #5e6666;
  --text-muted: #7f8787;
  --text-on-dark: #f7f5f2;
  --text-on-dark-muted: rgba(247, 245, 242, 0.72);
  --text-on-dark-soft: rgba(247, 245, 242, 0.8);

  --accent: #f05a28;
  --accent-hover: #cb471d;
  --accent-soft: rgba(240, 90, 40, 0.12);
  --accent-strong: rgba(240, 90, 40, 0.92);
  --accent-focus: rgba(240, 90, 40, 0.16);

  --border: #ded7cf;
  --border-strong: #cfc6bc;
  --border-soft: #ece4dc;
  --border-input: #d8cfc7;
  --border-dark: rgba(247, 245, 242, 0.16);
  --border-dark-strong: rgba(247, 245, 242, 0.28);

  --shadow-soft: 0 8px 30px rgba(20, 57, 59, 0.06);
  --shadow-card: 0 10px 30px rgba(20, 57, 59, 0.08);
  --shadow-hover: 0 18px 40px rgba(20, 57, 59, 0.12);
  --shadow-header: 0 2px 12px rgba(20, 57, 59, 0.04);

  --dark-section: #14393b;
  --dark-section-2: #102e30;
  --header-sticky-bg: rgba(245, 241, 236, 0.88);
  --overlay-backdrop: rgba(20, 57, 59, 0.12);
  --surface-overlay: rgba(255, 255, 255, 0.96);
  --surface-dark-overlay: rgba(255, 255, 255, 0.04);
  --hero-blend-start: rgba(245, 241, 236, 0.03);
  --hero-blend-end: rgba(245, 241, 236, 0.16);
  --dark-button-hover: rgba(247, 245, 242, 0.08);
  --white: #ffffff;
  --success: #2f696d;
  --placeholder: #9a9f9f;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --fs-display: clamp(3rem, 5vw, 5rem);
  --fs-h1: clamp(2.5rem, 4vw, 4.5rem);
  --fs-h2: clamp(2rem, 3vw, 3rem);
  --fs-h3: 1.75rem;
  --fs-body-lg: 1.5rem;
  --fs-body: 1.125rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 80px;
  --space-8: 96px;
  --space-9: 128px;

  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --container-max: 1440px;
  --container-narrow: 1200px;
  --pad-x-desktop: 32px;
  --pad-x-tablet: 20px;
  --pad-x-mobile: 16px;

  --header-height: 88px;
  --motion-fast: 180ms;
  --motion-base: 240ms;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-visual-style="b"] {
  --bg-main: #eee8e1;
  --bg-alt: #e5ded6;
  --surface-muted: #f6f1eb;
  --border: #d6cdc3;
  --border-strong: #c3b8ad;
}

body[data-visual-style="c"] {
  --bg-main: #f5f1ec;
  --bg-alt: #ede7df;
  --dark-section: #14393b;
  --dark-section-2: #102e30;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

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

p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding-left: 1.2rem;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
}

h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.015em;
}

h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -64px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  top: var(--space-2);
}

.container {
  width: min(var(--container-max), calc(100% - (var(--pad-x-desktop) * 2)));
  margin: 0 auto;
}

.container--narrow {
  width: min(var(--container-narrow), calc(100% - (var(--pad-x-desktop) * 2)));
  margin: 0 auto;
}

.section {
  padding-block: var(--space-8);
}

.section--medium {
  padding-block: 72px;
}

.section--compact {
  padding-block: 56px;
}

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

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

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark p,
.section--dark li {
  color: var(--text-on-dark);
}

.section-heading {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.section-heading--split {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
}

.section-heading--compact {
  margin-bottom: var(--space-4);
}

.lede {
  max-width: 26ch;
  color: var(--text-secondary);
  font-size: var(--fs-body-lg);
  line-height: 1.35;
}

.body-copy,
.section-copy,
.prose p,
.card p,
.contact-panel p,
.form-note,
.footer-meta {
  color: var(--text-secondary);
}

.prose {
  display: grid;
  gap: var(--space-3);
  max-width: 72ch;
}

.meta-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.meta-label--light {
  color: var(--text-on-dark-muted);
}

.meta-label--light::before {
  background: var(--accent-strong);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    transform var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    color var(--motion-fast) ease;
}

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

.button--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

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

.button--secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: var(--surface-muted);
}

.button--small {
  min-height: 46px;
  padding: 12px 20px;
}

.section--dark .button--secondary {
  color: var(--text-on-dark);
  border-color: var(--border-dark-strong);
}

.section--dark .button--secondary:hover,
.section--dark .button--secondary:focus-visible {
  background: var(--dark-button-hover);
}

.text-link {
  color: var(--text-primary);
  font-size: var(--fs-small);
  font-weight: 600;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-hover);
}

.site-header__shell {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--motion-base) ease,
    border-color var(--motion-base) ease,
    backdrop-filter var(--motion-base) ease,
    box-shadow var(--motion-base) ease;
}

body.has-scrolled .site-header__shell {
  background: var(--header-sticky-bg);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-header);
}

.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand__logo {
  height: 52px;
  width: auto;
}

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

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav__link {
  position: relative;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--motion-fast) ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link.is-active {
  color: var(--text-primary);
}

.site-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--text-primary);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin-block: 4px;
  background: var(--text-primary);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--overlay-backdrop);
}

.hero {
  min-height: 680px;
  display: grid;
  align-items: center;
}

.hero-grid,
.editorial-grid,
.contact-shell,
.footer-cta,
.page-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.footer-cta__actions {
  display: grid;
  align-content: center;
  justify-items: start;
}

.hero-copy,
.page-hero__copy {
  grid-column: span 5;
  display: grid;
  gap: var(--space-3);
  align-content: center;
}

.hero-media,
.page-hero__media {
  grid-column: span 7;
}

.hero-copy h1,
.page-hero__copy h1 {
  max-width: 9ch;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-highlights {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 36rem;
}

.hero-highlights li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.hero-figure,
.page-hero__figure {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface-muted);
  box-shadow: var(--shadow-soft);
}

.hero-figure img,
.page-hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--hero-blend-start), var(--hero-blend-end));
  pointer-events: none;
}

.experience-grid,
.service-grid,
.approach-grid,
.credential-grid,
.insight-grid {
  display: grid;
  gap: 24px;
}

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

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.approach-grid,
.credential-grid,
.insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.experience-mark,
.card,
.contact-panel,
.contact-form-shell,
.policy-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.experience-mark {
  min-height: 144px;
  padding: 28px;
  display: grid;
  align-content: space-between;
  gap: var(--space-3);
}

.experience-mark img {
  max-width: 220px;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.experience-mark p {
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.card {
  padding: 28px;
  display: grid;
  gap: var(--space-2);
  min-height: 100%;
  transition:
    transform var(--motion-base) var(--motion-ease),
    box-shadow var(--motion-base) var(--motion-ease);
}

.card--lift:hover,
.card--lift:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card h3,
.insight-panel h3 {
  max-width: 18ch;
}

.service-card {
  align-content: start;
}

.service-card__visual {
  margin: 0 0 var(--space-2);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) - 2px);
  background: var(--surface-muted);
}

.service-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-list {
  display: grid;
  gap: 10px;
  color: var(--text-secondary);
}

.detail-list li::marker {
  color: var(--accent);
}

.insight-panel {
  padding: 28px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  background: var(--surface-dark-overlay);
}

.insight-panel p {
  color: var(--text-on-dark-soft);
}

.editorial-grid__copy {
  grid-column: span 5;
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.editorial-grid__panel {
  grid-column: span 7;
}

.editorial-panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 4vw, 40px);
}

.editorial-note {
  display: grid;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.page-hero {
  padding-top: var(--space-7);
}

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

.contact-panel {
  grid-column: span 4;
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 28px;
  display: grid;
  gap: var(--space-3);
}

.contact-form-shell {
  grid-column: span 8;
  padding: clamp(28px, 4vw, 40px);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

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

.field--full {
  grid-column: 1 / -1;
}

.field--hidden {
  position: absolute;
  inset: auto auto auto -9999px;
}

.field label,
.checkbox {
  color: var(--text-primary);
  font-size: var(--fs-small);
  font-weight: 500;
}

.field label span {
  color: var(--accent);
}

input,
select,
textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
  padding: 0 16px;
  transition:
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease;
}

textarea {
  min-height: 140px;
  padding: 16px;
  resize: vertical;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 25px,
    calc(100% - 16px) 25px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
.site-nav__link:focus-visible,
.footer-link:focus-visible,
.nav-toggle:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-focus);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
  padding: 0;
  accent-color: var(--accent);
}

.form-note a,
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--accent-hover);
}

.field--actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.form-status {
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.form-status[data-state="success"] {
  color: var(--success);
}

.form-status[data-state="error"] {
  color: var(--accent-hover);
}

.policy-card {
  display: grid;
  gap: var(--space-5);
  padding: clamp(28px, 4vw, 40px);
}

.policy-card section {
  display: grid;
  gap: var(--space-2);
}

footer {
  padding-bottom: var(--space-4);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.9fr;
  gap: 24px;
  padding: var(--space-7) 0 var(--space-4);
  border-top: 1px solid var(--border);
}

.site-footer__brand {
  display: grid;
  gap: var(--space-3);
}

.site-footer__logo {
  height: 74px;
  width: auto;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-link {
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.site-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.maintenance-page {
  background:
    radial-gradient(circle at top left, rgba(240, 90, 40, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(20, 57, 59, 0.08), transparent 32%),
    var(--bg-main);
}

.maintenance {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: clamp(32px, 5vw, 64px) 0;
}

.maintenance__section {
  width: 100%;
}

.maintenance__shell {
  display: grid;
  gap: var(--space-5);
}

.maintenance__brand {
  display: flex;
  justify-content: center;
}

.maintenance__brand img {
  width: min(420px, 100%);
  height: auto;
}

.maintenance__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.92fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(222, 215, 207, 0.95);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.maintenance__copy {
  display: grid;
  gap: var(--space-3);
}

.maintenance__copy h1 {
  max-width: 12ch;
}

.maintenance__body {
  max-width: 56ch;
  color: var(--text-secondary);
}

.maintenance__visual {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface-muted);
  box-shadow: var(--shadow-soft);
}

.maintenance__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.maintenance__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.maintenance__footer a {
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 1100px) {
  .section-heading--split,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

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

  .hero-copy,
  .page-hero__copy,
  .hero-media,
  .page-hero__media,
  .editorial-grid__copy,
  .editorial-grid__panel,
  .contact-panel,
  .contact-form-shell {
    grid-column: span 12;
  }

  .experience-grid,
  .approach-grid,
  .credential-grid,
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .container,
  .container--narrow {
    width: min(var(--container-max), calc(100% - (var(--pad-x-tablet) * 2)));
  }

  .section {
    padding-block: 72px;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy,
  .page-hero__copy {
    order: 1;
  }

  .hero-media,
  .page-hero__media {
    order: 2;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-height) - 8px);
    left: var(--pad-x-tablet);
    right: var(--pad-x-tablet);
    z-index: 95;
    display: grid;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-overlay);
    box-shadow: var(--shadow-card);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform var(--motion-base) var(--motion-ease),
      opacity var(--motion-base) ease,
      visibility var(--motion-base) ease;
  }

  .site-nav__links {
    display: grid;
    gap: 20px;
  }

  .nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-block;
  }

  .contact-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .container,
  .container--narrow {
    width: min(var(--container-max), calc(100% - (var(--pad-x-mobile) * 2)));
  }

  .section {
    padding-block: 56px;
  }

  .brand__logo,
  .site-footer__logo {
    height: 44px;
  }

  .site-footer__logo {
    height: 58px;
  }

  .service-grid,
  .experience-grid,
  .approach-grid,
  .credential-grid,
  .insight-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-actions,
  .field--actions,
  .site-footer__bar {
    flex-direction: column;
    align-items: stretch;
  }

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

  .maintenance__footer {
    flex-direction: column;
  }
}

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

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