:root {
  --background: #f8f6f1;
  --surface: #f2eee7;
  --ink: #111111;
  --muted: #3f4853;
  --accent: #c0944d;
  --max-width: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 7.5vw, 144px);
  --serif: "IvyOra Text", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", Manrope, Inter, Arial, sans-serif;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-scale {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.04);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--sans);
}

body.modal-open {
  overflow: hidden;
}

body.mobile-nav-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

.page-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  width: min(calc(100% - (var(--gutter) * 2)), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  padding-block: 20px;
  backdrop-filter: blur(0);
  box-shadow: none;
  transition: background-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open,
.site-header:focus-within {
  background: rgba(17, 17, 17, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.18);
}

.header-grid {
  align-items: center;
}

.brand {
  grid-column: span 3;
  width: 172px;
}

.desktop-nav {
  grid-column: 6 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
}

.desktop-nav a {
  transition: color 180ms ease, opacity 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--accent);
}

.nav-cta {
  border-radius: 999px;
  background: var(--ink);
  padding: 12px 24px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--ink);
  color: #ffffff;
  transform: translateY(-2px);
}

.mobile-menu {
  display: none;
  grid-column: 4 / 5;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.25);
  padding: 11px;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.mobile-menu:hover,
.mobile-menu:focus-visible {
  border-color: var(--accent);
  background: rgba(192, 148, 77, 0.25);
  transform: translateY(-2px);
}

.mobile-menu span {
  display: block;
  height: 1px;
  margin-block: 5px;
  background: #ffffff;
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.mobile-menu.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #ffffff;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  animation: soft-scale 14s ease-in-out alternate infinite;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(30, 48, 59, 0.36), rgba(0, 0, 0, 0.72));
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  align-content: center;
  padding-block: 144px 104px;
}

.hero-copy {
  grid-column: 1 / span 6;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: clamp(15px, 1.25vw, 24px);
  font-weight: 500;
  line-height: 1.2;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(44px, 4.4vw, 64px);
  line-height: 1.2;
}

h1 em,
.contact-content em {
  color: var(--accent);
  font-style: italic;
}

.hero-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 628px) 1fr;
  align-items: end;
  gap: 34px;
  margin-top: 34px;
}

.hero-bottom p {
  margin-bottom: 0;
  font-size: clamp(17px, 1.25vw, 24px);
  line-height: 1.2;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.14);
}

.button-filled {
  background: var(--accent);
  color: #ffffff;
}

.button-filled:hover,
.button-filled:focus-visible {
  background: var(--ink);
  color: #ffffff;
}

.button-ghost {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.button-ghost.light {
  border-color: #ffffff;
  color: #ffffff;
}

.button-ghost.light:hover,
.button-ghost.light:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.section {
  padding-block: var(--section-y);
  scroll-margin-top: 96px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 90ms;
}

.reveal-delay-2 {
  transition-delay: 180ms;
}

.reveal-delay-3 {
  transition-delay: 270ms;
}

.about-grid {
  align-items: start;
}

.about-heading {
  grid-column: 1 / span 4;
}

.section-heading h2,
.center-heading h2 {
  margin-bottom: 24px;
  font-size: clamp(36px, 3.3vw, 64px);
  line-height: 1.3;
}

.about-heading h2,
.services-content h2 {
  font-size: clamp(34px, 2.6vw, 40px);
}

.about-copy {
  grid-column: 6 / -1;
  font-size: clamp(17px, 1.05vw, 20px);
  line-height: 1.2;
}

.about-copy p:last-child,
.section-heading p:last-child,
.center-heading p:last-child {
  margin-bottom: 0;
}

.principles-section,
.contact-section {
  background: var(--surface);
}

.center-heading {
  grid-column: 3 / span 8;
  text-align: center;
}

.center-heading p:last-child {
  font-size: 20px;
  line-height: 1.2;
}

.principles-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.principle-card {
  min-height: 215px;
  border-radius: 4px;
  background: var(--background);
  padding: 24px;
  transition: transform 180ms ease, background-color 180ms ease;
}

.principle-card:hover {
  transform: translateY(-3px);
}

.card-label {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.principle-card h3 {
  margin-bottom: 24px;
  color: #111c2c;
  font-size: 24px;
  line-height: 1.2;
}

.principle-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
}

.center-action {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.services-grid {
  align-items: stretch;
}

.services-content {
  grid-column: 1 / span 7;
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 6.9vw, 132px);
}

.services-content .section-heading {
  max-width: 690px;
}

.services-content .section-heading p:last-child {
  max-width: 520px;
  font-size: 20px;
  line-height: 1.2;
}

.services-list {
  display: grid;
  gap: 40px;
}

.service-card {
  border-radius: 20px;
  background: var(--surface);
  padding: clamp(24px, 3vw, 40px);
  transition: background-color 180ms ease, transform 180ms ease;
}

.service-card:hover {
  background: #eee8df;
}

.service-title-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.service-title-row:hover .service-heading,
.service-title-row:focus-visible .service-heading {
  color: var(--accent);
}

.service-title-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
  border-radius: 8px;
}

.service-heading {
  margin-bottom: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.3;
  transition: color 180ms ease;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 12px;
  flex: 0 0 auto;
}

.service-icon img {
  grid-area: 1 / 1;
  width: 19px;
  height: 11px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.icon-contract,
.service-card.is-open .icon-expand {
  opacity: 0;
  transform: translateY(3px);
}

.service-card.is-open .icon-contract {
  opacity: 1;
  transform: translateY(0);
}

.service-panel[hidden] {
  display: none;
}

.service-panel {
  animation: panel-in 220ms ease both;
}

.service-card ul {
  margin: 24px 0;
  padding-left: 24px;
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.6;
}

.services-image {
  grid-column: 8 / -1;
  min-height: 720px;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
}

.services-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.services-image:hover img {
  transform: scale(1.025);
}

.contact-section {
  padding-block: 56px;
  scroll-margin-top: 96px;
}

.contact-content {
  grid-column: 2 / span 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-content h2 {
  max-width: 960px;
  margin-bottom: 40px;
  font-size: clamp(42px, 5vw, 80px);
  line-height: 1;
}

.footer {
  background: var(--ink);
  color: #ffffff;
  padding-block: 80px;
}

.footer-grid {
  align-items: start;
}

.footer-brand {
  grid-column: 1 / span 4;
}

.footer-brand img {
  width: 172px;
  margin-bottom: 24px;
}

.footer-brand p,
.footer a,
.footer p,
.footer-contact-button,
.copyright {
  font-size: 15px;
  line-height: 1.5;
}

.footer-links {
  grid-column: 6 / -1;
  display: grid;
  grid-template-columns: 160px 210px minmax(220px, 286px);
  gap: 32px;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-links h2 {
  margin-bottom: 6px;
  font-size: 24px;
  line-height: 1;
}

.footer-links p {
  margin-bottom: 0;
}

.footer a {
  transition: color 180ms ease;
}

.footer-contact-button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease;
}

.footer a:hover,
.footer a:focus-visible,
.footer-contact-button:hover,
.footer-contact-button:focus-visible {
  color: var(--accent);
}

.copyright {
  grid-column: 1 / -1;
  margin-top: 64px;
}

.contact-modal {
  width: min(calc(100% - 40px), 720px);
  max-height: min(92vh, 820px);
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
}

.contact-modal::backdrop {
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(4px);
}

.modal-shell {
  position: relative;
  overflow: auto;
  max-height: min(92vh, 820px);
  border-radius: 8px;
  background: var(--background);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.modal-shell h2 {
  max-width: 560px;
  margin-bottom: 16px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
}

.modal-intro {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.contact-form {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-field label {
  color: #111c2c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.form-field label span,
.required-note {
  color: var(--accent);
}

.required-note {
  margin-bottom: -6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  padding: 14px 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-field textarea {
  min-height: 132px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 148, 77, 0.18);
  outline: 0;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.form-actions .button:disabled {
  cursor: progress;
  opacity: 0.65;
  transform: none;
}

.form-status {
  min-height: 24px;
  margin-bottom: 0;
  color: #2f6045;
  font-size: 15px;
  line-height: 1.4;
}

.form-status.is-error {
  color: #8a251f;
}

.interior-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.interior-header {
  background: var(--ink);
  color: #ffffff;
  padding-block: 28px;
}

.interior-header-grid {
  align-items: center;
}

.interior-nav {
  grid-column: 5 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.interior-nav a,
.interior-footer a {
  transition: color 180ms ease;
}

.interior-nav a:hover,
.interior-nav a:focus-visible,
.interior-footer a:hover,
.interior-footer a:focus-visible {
  color: var(--accent);
}

.interior-main {
  flex: 1;
}

.legal-section,
.message-section {
  padding-block: clamp(72px, 8vw, 136px);
}

.legal-content,
.message-content {
  grid-column: 2 / span 10;
}

.legal-content {
  max-width: 860px;
}

.legal-content h1,
.message-content h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.08;
}

.legal-content h2 {
  margin: 44px 0 16px;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.2;
}

.legal-content p,
.message-content p {
  color: var(--muted);
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.55;
}

.legal-updated {
  margin-bottom: 36px;
}

.message-content {
  max-width: 820px;
  text-align: center;
  justify-self: center;
}

.message-content .button {
  margin-top: 20px;
}

.interior-button-row {
  justify-content: center;
  margin-top: 28px;
}

.interior-footer {
  background: var(--ink);
  color: #ffffff;
  padding-block: 28px;
}

.interior-footer-grid {
  align-items: center;
}

.interior-footer p {
  grid-column: 1 / span 8;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.5;
}

.interior-footer a {
  grid-column: 10 / -1;
  justify-self: end;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 20px;
    --section-y: 72px;
  }

  .page-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .site-header {
    padding-block: 20px;
  }

  .brand {
    grid-column: 1 / span 2;
    width: 132px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-nav:not([hidden]) {
    position: absolute;
    top: calc(100% - 8px);
    left: var(--gutter);
    right: var(--gutter);
    display: grid;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(17, 17, 17, 0.96);
    color: #ffffff;
    padding: 12px;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
  }

  .mobile-nav a {
    border-radius: 6px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color 180ms ease, color 180ms ease;
  }

  .mobile-nav a:hover,
  .mobile-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
  }

  .mobile-nav-cta {
    margin-top: 4px;
    background: var(--accent);
    color: #ffffff !important;
    text-align: center;
  }

  .mobile-nav-cta:hover,
  .mobile-nav-cta:focus-visible {
    background: #ffffff !important;
    color: var(--ink) !important;
  }

  .hero {
    min-height: 760px;
  }

  .hero-grid {
    min-height: 760px;
    align-content: end;
    padding-block: 112px 56px;
  }

  .hero-copy,
  .hero-bottom,
  .about-heading,
  .about-copy,
  .center-heading,
  .principles-grid,
  .center-action,
  .services-content,
  .services-image,
  .contact-content,
  .footer-brand,
  .footer-links,
  .copyright {
    grid-column: 1 / -1;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
  }

  .button-row {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
    padding-inline: 24px;
  }

  .about-copy {
    margin-top: 12px;
  }

  .center-heading {
    text-align: left;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .services-grid {
    gap: 48px;
  }

  .services-image {
    min-height: 520px;
    order: -1;
  }

  .service-title-row {
    align-items: flex-start;
  }

  .contact-content {
    align-items: stretch;
    text-align: left;
  }

  .footer-links {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .interior-nav {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 22px;
    margin-top: 8px;
  }

  .legal-content,
  .message-content,
  .interior-footer p,
  .interior-footer a {
    grid-column: 1 / -1;
  }

  .message-content {
    text-align: left;
  }

  .interior-button-row {
    justify-content: flex-start;
  }

  .interior-footer a {
    justify-self: start;
    margin-top: 10px;
  }

  .copyright {
    margin-top: 32px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 42px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-grid {
    min-height: 720px;
  }

  .button-row {
    width: 100%;
  }

  .service-card {
    border-radius: 12px;
  }

  .services-image {
    min-height: 420px;
    border-radius: 18px;
  }

  .contact-modal {
    width: calc(100% - 24px);
  }

  .modal-shell {
    padding: 28px 20px;
  }

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

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
