:root {
  --paper: #f2eee6;
  --paper-deep: #e7dfd2;
  --ink: #171915;
  --muted: #62645e;
  --line: rgba(23, 25, 21, 0.18);
  --green: #1f4c3a;
  --green-light: #dce7df;
  --orange: #c85f2d;
  --white: #fffdf8;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --shell: min(1180px, calc(100vw - 40px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(200, 95, 45, 0.08), transparent 24rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--orange);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  place-items: center;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.08em;
}

.brand-name {
  display: grid;
}

.brand-name span:last-child {
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  min-height: min(760px, calc(100vh - 89px));
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: stretch;
}

.hero-copy {
  display: flex;
  padding: clamp(5rem, 10vw, 9rem) clamp(2rem, 7vw, 7rem) clamp(5rem, 8vw, 7rem) 0;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-number,
.detail-label {
  margin: 0 0 1.2rem;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.contact-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
}

.hero h1 em {
  color: var(--green);
  font-weight: inherit;
}

.hero-lead {
  max-width: 620px;
  margin: 2rem 0 0;
  color: #3d403a;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--ink);
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button-primary {
  color: var(--white);
  background: var(--ink);
}

.button-primary:hover {
  border-color: var(--green);
  background: var(--green);
}

.button-secondary:hover {
  background: var(--white);
}

.hero-visual {
  position: relative;
  display: flex;
  min-height: 620px;
  padding: 3rem;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--green);
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  content: "";
}

.hero-visual::before {
  width: 470px;
  height: 470px;
}

.hero-visual::after {
  width: 620px;
  height: 620px;
}

.portrait-card {
  position: relative;
  z-index: 2;
  width: min(310px, 80%);
  padding: 1rem;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 24px 24px 0 rgba(0, 0, 0, 0.16);
  transform: rotate(-2deg);
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 23 / 15;
  object-fit: cover;
}

.portrait-card p {
  display: flex;
  margin: 0;
  padding: 0.95rem 0.2rem 0.1rem;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portrait-card p span:last-child {
  color: var(--muted);
  font-weight: 600;
}

.hero-word {
  position: absolute;
  z-index: 1;
  right: -1rem;
  bottom: -1.1rem;
  color: rgba(255, 255, 255, 0.075);
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 10rem);
  line-height: 0.75;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.services,
.process,
.contact-strip,
.legal-content {
  padding-block: clamp(5rem, 9vw, 8.5rem);
}

.section-heading {
  display: grid;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  grid-template-columns: minmax(160px, 0.5fr) minmax(0, 1.5fr);
  gap: 2rem;
}

.section-heading h2 {
  max-width: 760px;
  font-size: clamp(2.6rem, 5.5vw, 5.3rem);
}

.service-grid {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  min-height: 300px;
  padding: 2rem;
  border-right: 1px solid var(--line);
}

.service-card:first-child {
  padding-left: 0;
}

.service-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.service-index {
  color: var(--orange);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.service-card h3,
.process-step h3,
.legal-block h2 {
  margin: 4rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 400;
  line-height: 1.15;
}

.service-card p,
.process-step p,
.legal-block p,
.legal-block li {
  color: var(--muted);
}

.process {
  color: var(--white);
  background: var(--ink);
}

.process .section-number {
  color: #e88d62;
}

.process .section-heading h2 {
  color: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.process-step {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.process-step::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e88d62;
  content: "";
}

.process-step h3 {
  margin-top: 2.8rem;
}

.process-step p {
  color: rgba(255, 255, 255, 0.68);
}

.contact-strip {
  overflow: hidden;
  background: var(--green-light);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.6fr);
  align-items: end;
  gap: 3rem;
}

.contact-panel h2 {
  max-width: 800px;
  font-size: clamp(2.8rem, 6vw, 6rem);
}

.contact-panel h2 a {
  color: var(--green);
  text-decoration-color: var(--orange);
}

.contact-aside {
  padding-left: 2rem;
  border-left: 1px solid rgba(31, 76, 58, 0.3);
}

.contact-aside p {
  margin: 0 0 1.5rem;
  color: #46564d;
}

.site-footer {
  padding-block: 2rem;
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.78rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  text-decoration: none;
}

.page-hero {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-bottom: 1px solid var(--line);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: 4rem;
}

.page-hero h1 {
  font-size: clamp(4rem, 10vw, 8rem);
}

.page-intro {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.contact-layout,
.legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 8vw, 8rem);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail-card {
  min-height: 210px;
  padding: 2rem;
  background: var(--paper);
}

.detail-card address,
.detail-card p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-style: normal;
}

.detail-card a {
  overflow-wrap: anywhere;
}

.legal-body {
  max-width: 720px;
}

.legal-block {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.legal-block + .legal-block {
  padding-top: 1rem;
}

.legal-block h2 {
  margin-top: 2rem;
}

.legal-block address {
  font-style: normal;
}

.legal-block ul {
  padding-left: 1.2rem;
}

.legal-meta {
  position: sticky;
  top: 2rem;
  align-self: start;
  color: var(--muted);
  font-size: 0.82rem;
}

.error-page {
  display: grid;
  min-height: calc(100vh - 89px);
  place-items: center;
}

.error-content {
  max-width: 760px;
  padding-block: 5rem;
}

.error-code {
  margin: 0;
  color: var(--orange);
  font-family: var(--serif);
  font-size: clamp(5rem, 16vw, 12rem);
  line-height: 0.75;
}

.error-content h1 {
  margin: 2rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1;
}

.error-content p {
  max-width: 520px;
  margin-bottom: 2rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero-grid,
  .page-hero-grid,
  .contact-panel,
  .contact-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-visual {
    min-height: 500px;
    margin-inline: -20px;
  }

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

  .service-card {
    min-height: auto;
    padding: 2rem 0 3rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card h3 {
    margin-top: 2rem;
  }

  .contact-aside {
    padding-top: 2rem;
    padding-left: 0;
    border-top: 1px solid rgba(31, 76, 58, 0.3);
    border-left: 0;
  }

  .legal-meta {
    position: static;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: min(100% - 28px, 1180px);
  }

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

  .brand-name,
  .site-nav a:first-child {
    display: none;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-copy {
    padding-block: 4.5rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .hero-visual {
    min-height: 410px;
    padding: 2rem;
  }

  .portrait-card {
    width: min(270px, 82%);
    box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.16);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .detail-card {
    min-height: 180px;
  }

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

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

@media print {
  body {
    background: #fff;
  }

  body::before,
  .site-header,
  .site-footer,
  .hero-actions {
    display: none;
  }

  .page-hero,
  .legal-content {
    padding-block: 2rem;
  }

  .legal-layout {
    display: block;
  }
}
