/* ==========================================================================
   BKL Gallus | style.css

   1.  Design tokens
   2.  Base & reset
   3.  Shared components (buttons, links, headings, media)
   4.  Header & navigation
   5.  Hero
   6.  Areas band
   7.  About
   8.  Services
   9.  Why us (benefits)
   10. Contact
   11. Footer
   12. Legal dialogs
   13. Reveal animation
   14. Responsive
   ========================================================================== */


/* 1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour: warm stone paper, charcoal ink, one burgundy accent */
  --paper:        #EEEAE0;
  --paper-2:      #E3DDCF;
  --paper-3:      #D3CBB8;
  --panel:        #F6F3EC;
  --ink:          #1F1E1C;
  --muted:        #5E5951;
  --accent:       #8C2F39;
  --accent-deep:  #6F222B;
  --wine:         #3A1219;   /* dark contrast section */
  --blush:        #E2B3A6;   /* accent tint, used on the dark section only */
  --line:         rgba(31, 30, 28, .18);
  --line-strong:  rgba(31, 30, 28, .85);

  /* Functional colours for form feedback */
  --ok:           #2F5D3A;
  --error:        #A3241C;

  /* Type */
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text:    "Newsreader", Georgia, "Times New Roman", serif;

  /* Layout */
  --container:        1240px;
  --gutter:           clamp(1.25rem, 4.5vw, 3rem);
  --col-gap:          clamp(1rem, 2.2vw, 2rem);
  --section-y:        clamp(4.5rem, 10vw, 9rem);
  --header-h:         80px;
  --header-h-compact: 60px;

  /* Motion */
  --ease: cubic-bezier(.22, .7, .2, 1);
}


/* 2. Base & reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-compact) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open,
body.dialog-open { overflow: hidden; }

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

h1, h2, h3, p, figure, dl, dd, ul, ol, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: var(--panel); }

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 300;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--panel);
  font-family: var(--font-display);
  font-size: .9rem;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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


/* 3. Shared components
   -------------------------------------------------------------------------- */

/* Headings */
.h2 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2rem, 1rem + 3.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin-bottom: .75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.6rem;
  border: 1px solid var(--ink);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 560;
  line-height: 1;
  letter-spacing: .005em;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--solid   { background: var(--ink); color: var(--panel); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--panel); }
.btn--sm { padding: .7rem 1.1rem; font-size: .875rem; }

/* Links */
.text-link {
  display: inline-block;
  padding-bottom: .2rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 560;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.text-link:hover { color: var(--accent); }

.inline-link {
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  padding-bottom: 1px;
  transition: color .25s var(--ease), background-size .3s var(--ease);
}
.inline-link:hover { color: var(--accent); background-size: 0 1px; }

/* Line icons */
.icon {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--accent);
}
.icon--lg { width: 2.5rem; height: 2.5rem; }

/* Image / illustration holder */
.media { position: relative; overflow: hidden; background: var(--paper-3); }
.media svg { position: absolute; inset: 0; width: 100%; height: 100%; }


/* 4. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: height .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  height: var(--header-h-compact);
  background: rgba(238, 234, 224, .96);
  border-bottom-color: var(--line);
}

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

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .75rem; position: relative; z-index: 2; }
.logo-mark { width: 1.9rem; height: 1.9rem; flex: none; }
.logo-mark-bg { fill: var(--ink); }
.logo-mark-arch { fill: var(--accent); transition: fill .25s var(--ease); }
.logo:hover .logo-mark-arch { fill: var(--panel); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.03em;
}
.logo-sub {
  font-family: var(--font-display);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .01em;
}

/* Nav */
.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.nav-list { display: flex; align-items: center; gap: 2rem; }
.nav-list a {
  position: relative;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 500;
  padding-block: .35rem;
  transition: color .25s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-list a:hover::after,
.nav-list a.is-active::after { transform: scaleX(1); }
.nav-list a.is-active { color: var(--accent); }

/* Mobile toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle-bar {
  position: absolute;
  left: .6rem; right: .6rem;
  height: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle-bar:nth-child(1) { top: calc(50% - 5px); }
.nav-toggle-bar:nth-child(2) { top: calc(50% + 3px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { top: calc(50% - 1px); transform: rotate(-45deg); }


/* 5. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: calc(var(--header-h) + clamp(2rem, 6vw, 4.5rem)) 0 clamp(3rem, 7vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: center;
}

.hero-copy   { grid-column: 1 / span 7; }
.hero-visual { grid-column: 8 / span 5; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.7rem, .9rem + 5.9vw, 6rem);
  line-height: .98;
  letter-spacing: -.04em;
  text-indent: clamp(1.5rem, 7vw, 6rem);   /* editorial first-line indent */
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.hero-lead {
  max-width: 33rem;
  font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
  line-height: 1.55;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 1rem 2.5rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}
.hero-meta dt {
  font-family: var(--font-display);
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .15rem;
}
.hero-meta dd {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 500;
}

/* Layered visual composition */
.hero-visual {
  position: relative;
  padding: 1.5rem 1rem 3.5rem 2.75rem;
}
.hv-disc {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 27%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
}
.hv-main {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;   /* arch: the one deliberate curve on the page */
  background: #1F1B1A;
}
.hv-small {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 42%;
  aspect-ratio: 1;
  border: 10px solid var(--paper);
}
.hv-tag {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 1rem;
  display: grid;
  gap: .1rem;
  padding: .75rem 1rem;
  background: var(--panel);
  border: 1px solid var(--ink);
  font-family: var(--font-display);
  font-size: .8rem;
  line-height: 1.35;
}
.hv-tag strong { font-weight: 600; }
.hv-tag span { color: var(--muted); }
.hv-caption {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 2rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-size: .78rem;
  color: var(--muted);
}


/* 6. Areas band
   -------------------------------------------------------------------------- */
.band { border-block: 1px solid var(--line-strong); }
.band ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-block: 1.15rem;
}
.band li {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 500;
}
.band li::before {
  content: "";
  width: .4rem;
  height: .4rem;
  background: var(--accent);
  transform: rotate(45deg);
  flex: none;
}


/* 7. About
   -------------------------------------------------------------------------- */
.about-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.margin-note {
  grid-column: 1 / span 3;
  align-self: start;
  padding-top: .9rem;
  border-top: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 500;
}
.about-head .h2 { grid-column: 4 / span 9; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: start;
}
.about-visual {
  grid-column: 1 / span 6;
  position: relative;
  margin-bottom: 3rem;
}
.about-media { aspect-ratio: 4 / 3; }
.about-statement {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  bottom: -2.5rem;
  max-width: 21rem;
  padding: 1.35rem 1.5rem;
  background: var(--accent);
  color: var(--panel);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.about-text {
  grid-column: 8 / span 5;
  padding-top: clamp(0rem, 4vw, 3.5rem);
}
.about-text p + p { margin-top: 1.1rem; }
.about-text .text-link { margin-top: 1.75rem; }
.lead {
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  line-height: 1.45;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line-strong);
}
.facts li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0 0;
}
.facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.fact-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--accent);
}
.fact-text { font-size: 1rem; line-height: 1.4; color: var(--muted); }


/* 8. Services
   -------------------------------------------------------------------------- */
.services { background: var(--paper-2); }

.services-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.services-intro { color: var(--muted); max-width: 26rem; }

/* Featured service */
.service-feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  background: var(--panel);
  border: 1px solid var(--ink);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sf-media {
  position: relative;
  min-height: 22rem;
  background: var(--panel);
  border-right: 1px solid var(--ink);
}
.sf-media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sf-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 3rem);
}
.sf-body p { color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  padding: .3rem .7rem;
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 500;
}

.plan-text {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .06em;
  fill: var(--ink);
}
.plan-text--light { fill: var(--panel); }
.plan-text--muted { fill: var(--muted); }

/* Other services: bordered editorial rows */
.svc-list {
  margin-inline: -1rem;
  border-top: 1px solid var(--line-strong);
}
.svc-item { border-bottom: 1px solid var(--line-strong); }

.svc-link {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1.05fr) minmax(0, 1.5fr) 5rem;
  grid-template-areas: "icon title desc cta";
  align-items: center;
  column-gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 1rem;
  transition: background-color .3s var(--ease);
}
.svc-link::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .45s var(--ease);
}
.svc-link:hover { background: var(--paper); }
.svc-link:hover::before { width: 100%; }

.svc-link .icon  { grid-area: icon; }
.svc-title {
  grid-area: title;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  transition: transform .35s var(--ease);
}
.svc-link:hover .svc-title { transform: translateX(6px); }
.svc-desc { grid-area: desc; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
.svc-cta {
  grid-area: cta;
  justify-self: end;
  padding-bottom: .15rem;
  border-bottom: 1px solid transparent;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 560;
  color: var(--muted);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.svc-link:hover .svc-cta { color: var(--accent); border-bottom-color: var(--accent); }


/* 9. Why us (benefits)
   -------------------------------------------------------------------------- */
.benefits {
  position: relative;
  background: var(--wine);
  color: var(--panel);
}
.benefits::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  width: 5rem;
  height: .5rem;
  background: var(--blush);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.benefits-head {
  grid-column: 1 / span 4;
  position: sticky;
  top: 7rem;
  align-self: start;
}
.benefits-head .h2 { margin-bottom: 1.25rem; }
.benefits-head p { color: rgba(246, 243, 236, .76); max-width: 22rem; }

.benefits-list {
  grid-column: 6 / span 7;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
}
.benefit {
  padding: 1.5rem 0 clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(246, 243, 236, .24);
}
.benefit:nth-child(even) { margin-top: clamp(2rem, 6vw, 5rem); }   /* staggered columns */

.benefit-num {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4rem, 2rem + 5.5vw, 7rem);
  line-height: .85;
  letter-spacing: -.05em;
  color: var(--blush);
}
.benefit h3 {
  margin-bottom: .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.1rem + .7vw, 1.7rem);
  letter-spacing: -.02em;
}
.benefit p { color: rgba(246, 243, 236, .76); max-width: 26rem; }


/* 10. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: start;
}
.contact-info      { grid-column: 1 / span 5; }
.contact-form-wrap { grid-column: 7 / span 6; }

.contact-info .h2 { margin-bottom: 1.5rem; }
.contact-lead { max-width: 28rem; margin-bottom: 2.5rem; }

.contact-details { border-top: 1px solid var(--line-strong); }
.contact-details > div {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-details dt {
  padding-top: .2rem;
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--muted);
}
.contact-details dd { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; line-height: 1.4; }

.next-steps { margin-top: 2.5rem; }
.next-title {
  margin-bottom: .75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.next-steps ol { counter-reset: step; display: grid; gap: .6rem; }
.next-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2rem;
  font-size: 1rem;
  color: var(--muted);
}
.next-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: .1rem;
  width: 1.35rem; height: 1.35rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  color: var(--ink);
}

/* Form */
.contact-form {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--panel);
  border: 1px solid var(--ink);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.75rem; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }

.field label {
  margin-bottom: .15rem;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 560;
  transition: color .2s var(--ease);
}
.field:focus-within label { color: var(--accent); }
.optional { font-weight: 400; color: var(--muted); }

.field input,
.field textarea {
  width: 100%;
  padding: .7rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 2px 0 var(--accent);
}
.field.has-error input,
.field.has-error textarea { border-bottom-color: var(--error); }
.field.has-error input:focus-visible,
.field.has-error textarea:focus-visible { box-shadow: 0 2px 0 var(--error); }

.field-error {
  min-height: 1.3rem;
  margin-top: .3rem;
  font-family: var(--font-display);
  font-size: .8rem;
  line-height: 1.3;
  color: var(--error);
}

.form-status {
  margin-top: 1.25rem;
  padding: .9rem 1rem;
  border-left: 3px solid var(--muted);
  font-family: var(--font-display);
  font-size: .95rem;
  line-height: 1.45;
}
.form-status.is-success { border-left-color: var(--ok);    background: rgba(47, 93, 58, .09);  color: #1F4429; }
.form-status.is-error   { border-left-color: var(--error); background: rgba(163, 36, 28, .08); color: #7E1B15; }

.form-foot {
  display: flex;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: 1.5rem;
}
.form-note { font-family: var(--font-display); font-size: .8rem; line-height: 1.45; color: var(--muted); max-width: 22rem; }


/* 11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 2.5rem;
}
.footer-brand   { grid-column: 1 / span 5; }
.footer-nav     { grid-column: 7 / span 2; }
.footer-contact { grid-column: 9 / span 4; }

.footer-name {
  margin-bottom: .75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.footer-about { max-width: 26rem; color: var(--muted); font-size: 1rem; line-height: 1.55; }

.footer-title {
  margin-bottom: .9rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  color: var(--muted);
}
.footer-nav ul { display: grid; gap: .45rem; }
.footer-nav a,
.footer-bottom a {
  font-family: var(--font-display);
  font-size: .95rem;
  transition: color .25s var(--ease);
}
.footer-nav a:hover,
.footer-bottom a:hover { color: var(--accent); }
.footer-contact address { font-family: var(--font-display); font-size: .95rem; line-height: 1.7; }

.footer-wordmark {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 14.5vw, 13.5rem);
  line-height: .82;
  letter-spacing: -.055em;
  white-space: nowrap;
  color: var(--paper-3);
  user-select: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  margin-top: 1.5rem;
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid var(--line-strong);
}
.footer-bottom p { font-family: var(--font-display); font-size: .85rem; color: var(--muted); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer-bottom a { font-size: .85rem; }


/* 12. Legal dialogs
   -------------------------------------------------------------------------- */
.dialog {
  width: min(46rem, calc(100% - 2rem));
  max-height: min(85vh, 52rem);
  padding: 0;
  overflow: auto;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--ink);
}
.dialog::backdrop { background: rgba(31, 30, 28, .6); }
.dialog-inner { position: relative; padding: clamp(1.5rem, 4vw, 3rem); }
.dialog h2 {
  margin-bottom: 1rem;
  padding-right: 3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.4rem);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.dialog h3 {
  margin: 1.6rem 0 .35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.dialog p { font-size: 1.02rem; line-height: 1.6; }
.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.dialog-close:hover { background: var(--ink); color: var(--panel); }


/* 13. Reveal animation
   Content is only hidden when JavaScript has marked the page (.js).
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}


/* 14. Responsive
   -------------------------------------------------------------------------- */

/* Large tablets and small laptops */
@media (max-width: 1024px) {
  .about-head .h2 { grid-column: 4 / -1; }

  .about-visual { grid-column: 1 / -1; }
  .about-text   { grid-column: 1 / span 9; padding-top: 1rem; }

  .services-head { grid-template-columns: 1fr; }

  .benefits-head { grid-column: 1 / -1; position: static; margin-bottom: 3rem; }
  .benefits-list { grid-column: 1 / -1; }

  .contact-info      { grid-column: 1 / -1; margin-bottom: 3.5rem; }
  .contact-form-wrap { grid-column: 1 / -1; }

  .footer-brand   { grid-column: 1 / -1; }
  .footer-nav     { grid-column: 1 / span 5; }
  .footer-contact { grid-column: 6 / -1; }
}

/* Tablet and below: overlay navigation, stacked hero */
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
    overflow-y: auto;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list a {
    display: block;
    padding: .9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.6rem;
    font-weight: 560;
    letter-spacing: -.02em;
  }
  .nav-list a::after { display: none; }
  .site-nav .btn { align-self: stretch; padding-block: 1.1rem; }

  .hero-copy,
  .hero-visual { grid-column: 1 / -1; }
  .hero-visual { max-width: 34rem; margin-top: 3.5rem; }
  .hero-title  { font-size: clamp(2.7rem, 1rem + 8vw, 5rem); }
}

/* Tablets in portrait and phones */
@media (max-width: 760px) {
  .margin-note { grid-column: 1 / -1; margin-bottom: 1.5rem; }
  .about-head .h2 { grid-column: 1 / -1; }
  .about-text { grid-column: 1 / -1; }

  .facts { grid-template-columns: 1fr; }
  .facts li,
  .facts li + li { padding: 1.25rem 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }

  .service-feature { grid-template-columns: 1fr; }
  .sf-media { min-height: 0; aspect-ratio: 14 / 11; border-right: 0; border-bottom: 1px solid var(--ink); }

  .svc-link {
    grid-template-columns: 2rem minmax(0, 1fr);
    grid-template-areas:
      "icon title"
      ".    desc"
      ".    cta";
    row-gap: .6rem;
  }
  .svc-cta { justify-self: start; margin-top: .25rem; }

  .benefits-list { grid-template-columns: 1fr; }
  .benefit:nth-child(even) { margin-top: 0; }

  .form-grid { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; }

  .footer-nav,
  .footer-contact { grid-column: 1 / -1; }
}

/* Small phones */
@media (max-width: 520px) {
  :root { --header-h: 68px; }

  .logo-sub { display: none; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { padding-left: 2.25rem; }
  .hv-small { border-width: 7px; }
  .about-statement { position: static; max-width: none; }
  .about-visual { margin-bottom: 2.5rem; }
  .contact-details > div { grid-template-columns: 1fr; gap: .15rem; }
  .band ul { flex-direction: column; }
}
