/* ==========================================================================
   Doorway Digital — Architectural Digital Studio
   1.  Tokens
   2.  Reset & base
   3.  Utilities & primitives
   4.  Buttons & links
   5.  Device frames (browser / handset)
   6.  Header & navigation
   7.  Hero
   8.  Selected work
   9.  Fragmented presence
   10. What we build
   11. Founding offer
   12. Process
   13. Why a personal website
   14. About
   15. FAQ
   16. Closing CTA
   17. Footer
   18. Motion system
   ========================================================================== */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  /* Surfaces */
  --ivory: #f4f1ec;
  --ivory-deep: #ebe6de;
  --paper: #fbfaf8;
  --ink: #12110f;
  --ink-soft: #1c1a17;
  --ink-line: #2b2825;

  /* Type colours */
  --text: #14130f;
  --text-muted: #5c574f;
  --text-faint: #837c72;
  --text-invert: #f4f1ec;
  --text-invert-muted: #a9a299;

  /* Accent */
  --bronze: #8a6a44;
  --bronze-deep: #6b5031;
  --bronze-light: #c9a878;

  /* Lines */
  --line: #d9d3c9;
  --line-strong: #c3bbae;
  --line-invert: rgb(244 241 236 / 0.16);

  /* Type */
  --font-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --fs-micro: 0.6875rem;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);

  --fs-h3: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --fs-h2: clamp(2.125rem, 1.5rem + 2.6vw, 4rem);
  --fs-h1: clamp(2.75rem, 1.6rem + 5.2vw, 6rem);
  --fs-display: clamp(3.25rem, 1.5rem + 7.5vw, 8rem);

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.75rem;
  --sp-8: 3.5rem;
  --sp-9: 5rem;
  --sp-10: 7rem;
  --section-y: clamp(4.5rem, 9vw, 9.5rem);

  /* Layout */
  --shell: 78rem;
  --gutter: clamp(1.25rem, 4.2vw, 3.5rem);
  --header-h: 4.5rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 180ms;
  --t-base: 320ms;
  --t-slow: 720ms;

  --radius: 0.25rem;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

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

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

body {
  min-width: 20rem;
  margin: 0;
  /* `clip` contains stray overflow without creating a scroll container,
     which would otherwise disable position: sticky. */
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main:focus {
  outline: none;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

::selection {
  background: var(--ink);
  color: var(--ivory);
}

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

[data-theme="dark"] :focus-visible {
  outline-color: var(--bronze-light);
}

/* ==========================================================================
   3. Utilities & primitives
   ========================================================================== */

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

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1.125rem;
  background: var(--ink);
  color: var(--ivory);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--t-base) var(--ease);
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--bronze-deep);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.5rem;
  height: 1px;
  background: currentcolor;
  content: "";
  opacity: 0.55;
}

[data-theme="dark"] .eyebrow {
  color: var(--bronze-light);
}

.section-head {
  max-width: 54rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.section-head__title {
  margin-top: var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.02;
}

.section-head__lede {
  max-width: 34rem;
  margin-top: var(--sp-5);
  color: var(--text-muted);
  font-size: var(--fs-md);
}

.section-head--split {
  display: grid;
  max-width: none;
  align-items: end;
  gap: var(--sp-6);
}

@media (min-width: 60rem) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
    gap: clamp(2rem, 6vw, 6rem);
  }

  .section-head--split .section-head__lede {
    margin-top: 0;
  }
}

/* ==========================================================================
   4. Buttons & links
   ========================================================================== */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--ivory);
  --btn-border: var(--ink);
  position: relative;
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0 1.5rem;
  overflow: hidden;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  transition: color var(--t-base) var(--ease-soft), border-color var(--t-base) var(--ease-soft);
}

.btn::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--bronze);
  content: "";
  transform: translateY(101%);
  transition: transform var(--t-base) var(--ease);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateY(0);
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--bronze);
  color: #fff;
}

.btn:active {
  transform: translateY(1px);
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--t-base) var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(0.25rem);
}

.btn:hover .btn__arrow--down {
  transform: translateY(0.2rem);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--line-strong);
}

.btn--light {
  --btn-bg: var(--ivory);
  --btn-fg: var(--ink);
  --btn-border: var(--ivory);
}

.btn--light::before {
  background: var(--bronze-light);
}

.btn--light:hover,
.btn--light:focus-visible {
  border-color: var(--bronze-light);
  color: var(--ink);
}

.btn--compact {
  min-height: 2.75rem;
  padding: 0 1.125rem;
  font-size: var(--fs-xs);
}

.btn--large {
  min-height: 3.75rem;
  padding: 0 2.25rem;
  font-size: var(--fs-base);
}

.btn--block {
  width: 100%;
}

.linkout {
  position: relative;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}

.linkout::after {
  position: absolute;
  right: 0;
  bottom: 0.4rem;
  left: 0;
  height: 1px;
  background: currentcolor;
  content: "";
  transform: scaleX(1);
  transform-origin: right;
  transition: transform var(--t-base) var(--ease);
}

.linkout:hover::after,
.linkout:focus-visible::after {
  transform: scaleX(0);
}

.linkout__arrow {
  transition: transform var(--t-base) var(--ease);
}

.linkout:hover .linkout__arrow {
  transform: translate(0.2rem, -0.2rem);
}

/* ==========================================================================
   5. Device frames
   ========================================================================== */

.chrome {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 2rem 4.5rem -1.5rem rgb(18 17 15 / 0.28);
}

.chrome__bar {
  display: flex;
  height: 1.875rem;
  align-items: center;
  gap: 0.3125rem;
  padding-inline: 0.75rem;
  border-bottom: 1px solid var(--line);
  background: var(--ivory-deep);
}

.chrome__bar > span {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--line-strong);
}

.chrome__bar > span:first-child {
  background: var(--bronze);
}

.chrome__url {
  overflow: hidden;
  max-width: 60%;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  background: rgb(255 255 255 / 0.7);
  color: var(--text-faint);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chrome--flat {
  box-shadow: 0 1.5rem 3rem -1.5rem rgb(18 17 15 / 0.3);
}

.chrome img {
  width: 100%;
}

.handset {
  position: relative;
  overflow: hidden;
  padding: 0.3rem;
  border: 1px solid var(--ink-line);
  border-radius: 1.125rem;
  background: var(--ink);
  box-shadow: 0 1.75rem 3.5rem -1rem rgb(18 17 15 / 0.4);
}

.handset__notch {
  position: absolute;
  z-index: 2;
  top: 0.6rem;
  left: 50%;
  width: 22%;
  height: 0.1875rem;
  border-radius: 999px;
  background: rgb(244 241 236 / 0.25);
  transform: translateX(-50%);
}

.handset img {
  width: 100%;
  border-radius: 0.85rem;
}

/* ==========================================================================
   6. Header & navigation
   ========================================================================== */

.masthead {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: var(--ivory);
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  transition: background var(--t-base) var(--ease-soft),
    border-color var(--t-base) var(--ease-soft),
    color var(--t-base) var(--ease-soft);
}

.masthead.is-stuck {
  border-bottom-color: var(--line);
}

.masthead.is-inverted {
  background: var(--ink);
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  border-bottom-color: var(--line-invert);
  color: var(--text-invert);
}

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

.wordmark {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

/* Doorway motif: a small architectural opening beside the wordmark. */
.wordmark__mark {
  position: relative;
  width: 0.875rem;
  height: 1.25rem;
  border: 1px solid currentcolor;
  border-bottom-width: 0;
  border-radius: 0.4375rem 0.4375rem 0 0;
  opacity: 0.75;
  transition: opacity var(--t-base) var(--ease);
}

.wordmark__mark::after {
  position: absolute;
  right: 0.1875rem;
  bottom: 0.3rem;
  width: 0.125rem;
  height: 0.125rem;
  border-radius: 50%;
  background: var(--bronze);
  content: "";
}

.masthead.is-inverted .wordmark__mark::after {
  background: var(--bronze-light);
}

.wordmark:hover .wordmark__mark {
  opacity: 1;
}

.mainnav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.mainnav__link {
  position: relative;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  opacity: 0.72;
  text-decoration: none;
  transition: opacity var(--t-fast) var(--ease-soft);
}

.mainnav__link::after {
  position: absolute;
  right: 0;
  bottom: 0.55rem;
  left: 0;
  height: 1px;
  background: currentcolor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-base) var(--ease);
}

.mainnav__link:hover,
.mainnav__link:focus-visible {
  opacity: 1;
}

.mainnav__link:hover::after,
.mainnav__link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.masthead.is-inverted .btn--solid {
  --btn-bg: var(--ivory);
  --btn-fg: var(--ink);
  --btn-border: var(--ivory);
}

.masthead.is-inverted .btn--solid::before {
  background: var(--bronze-light);
}

.masthead.is-inverted .btn--solid:hover {
  border-color: var(--bronze-light);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-soft);
}

.masthead.is-inverted .nav-toggle {
  border-color: var(--line-invert);
}

.nav-toggle:hover {
  border-color: var(--bronze);
}

.nav-toggle__bars {
  position: relative;
  width: 1.0625rem;
  height: 0.625rem;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentcolor;
  transition: transform var(--t-base) var(--ease), top var(--t-base) var(--ease);
}

.nav-toggle__bars span:first-child {
  top: 0;
}

.nav-toggle__bars span:last-child {
  top: 0.5625rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  top: 0.28rem;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  top: 0.28rem;
  transform: rotate(-45deg);
}

@media (max-width: 63.999rem) {
  .nav-toggle {
    display: inline-flex;
  }

  .mainnav {
    position: absolute;
    top: 100%;
    right: var(--gutter);
    left: var(--gutter);
    padding: var(--sp-3);
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 1.5rem 3rem -1rem rgb(18 17 15 / 0.18);
  }

  .masthead.is-inverted .mainnav {
    border-color: var(--line-invert);
    background: var(--ink-soft);
  }

  .mainnav__list {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .mainnav__link {
    min-height: 3rem;
    padding-inline: var(--sp-3);
    border-bottom: 1px solid var(--line);
    opacity: 1;
    font-size: var(--fs-base);
  }

  .masthead.is-inverted .mainnav__link {
    border-bottom-color: var(--line-invert);
  }

  .mainnav__link::after {
    right: var(--sp-3);
    left: var(--sp-3);
    bottom: 0.75rem;
  }

  .mainnav__cta {
    padding: var(--sp-3) var(--sp-3) var(--sp-2);
  }

  .mainnav__cta .btn {
    width: 100%;
    min-height: 3rem;
    font-size: var(--fs-sm);
  }
}

@media (min-width: 64rem) {
  .mainnav[hidden] {
    display: block;
  }
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  align-items: center;
  gap: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.hero__eyebrow {
  margin-bottom: var(--sp-5);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero__line {
  display: block;
}

.hero__line--accent {
  color: var(--bronze-deep);
  font-style: italic;
}

.hero__lede {
  max-width: 32rem;
  margin-top: var(--sp-5);
  color: var(--text-muted);
  font-size: var(--fs-md);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0;
  margin: var(--sp-6) 0 0;
  list-style: none;
  color: var(--text-faint);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hero__facts li:not(:last-child)::after {
  width: 0.1875rem;
  height: 0.1875rem;
  border-radius: 50%;
  background: var(--bronze);
  content: "";
}

/* Hero stage: layered real work inside an architectural opening. */
.hero__stage {
  position: relative;
  min-width: 0;
}

.hero__aperture {
  position: absolute;
  z-index: 0;
  top: -1.75rem;
  right: -1rem;
  bottom: 2.5rem;
  left: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 8rem 8rem 0 0;
  opacity: 0.85;
}

.hero__showcase {
  position: relative;
  z-index: 1;
  margin: 0;
}

.shot--primary {
  position: relative;
  z-index: 2;
  width: 92%;
}

.shot--secondary {
  position: absolute;
  z-index: 1;
  top: -1.5rem;
  right: 0;
  width: 46%;
  opacity: 0.92;
}

.shot--handset {
  position: absolute;
  z-index: 3;
  right: 4%;
  bottom: -3rem;
  width: 24%;
  max-width: 9.5rem;
}

.hero__caption {
  position: relative;
  z-index: 4;
  margin-top: var(--sp-6);
  color: var(--text-faint);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__ticker {
  border-top: 1px solid var(--line);
  background: var(--ivory-deep);
}

.hero__ticker-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem clamp(1.25rem, 4vw, 3.5rem);
  padding-block: var(--sp-4);
  color: var(--text-faint);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 64rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(3rem, 6vw, 6rem);
    min-height: calc(100svh - var(--header-h) - 3.5rem);
  }

  .shot--handset {
    bottom: -4rem;
  }
}

@media (max-width: 47.999rem) {
  .hero__aperture {
    top: -1rem;
    right: -0.5rem;
    left: 0.5rem;
    bottom: 3rem;
    border-radius: 5rem 5rem 0 0;
  }

  .shot--primary {
    width: 100%;
  }

  .shot--secondary {
    display: none;
  }

  .shot--handset {
    right: -0.25rem;
    bottom: -2rem;
    width: 27%;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   8. Selected work
   ========================================================================== */

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

.work__canvas {
  position: relative;
}

.work__viewer {
  display: none;
}

.work__panels {
  padding: 0;
  margin: 0;
  list-style: none;
}

.work-panel {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.work-panel:first-child {
  border-top: 0;
  padding-top: 0;
}

.work-panel__index {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--bronze-deep);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.work-panel__index span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0;
}

.work-panel__title {
  margin-top: var(--sp-4);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1.02;
}

.work-panel__category {
  margin-top: var(--sp-2);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
}

.work-panel__media {
  margin: var(--sp-6) 0 0;
}

.work-panel__notes {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

.work-panel__notes dt {
  margin-bottom: 0.375rem;
  color: var(--text);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-panel__notes dd {
  max-width: 34rem;
  color: var(--text-muted);
  font-size: var(--fs-base);
}

.work-panel .linkout {
  margin-top: var(--sp-5);
}

@media (min-width: 48rem) {
  .work-panel__notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-6);
  }
}

/* Sticky viewer layout — desktop only. */
@media (min-width: 64rem) {
  .work__canvas {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  .work__viewer {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    display: block;
    height: calc(100svh - var(--header-h) - 6rem);
  }

  .work__viewer-inner {
    position: relative;
    height: 100%;
  }

  .work-shot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(-50%) scale(0.97);
    transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
    pointer-events: none;
  }

  .work-shot.is-active {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  .work-shot__handset {
    position: absolute;
    right: -1.25rem;
    bottom: -2.5rem;
    width: 21%;
    max-width: 8.5rem;
  }

  .work-panel {
    display: flex;
    min-height: 82vh;
    align-items: center;
    padding-block: var(--sp-8);
  }

  .work-panel:first-child {
    padding-top: var(--sp-8);
  }

  .work-panel__media {
    display: none;
  }

  .work-panel__notes {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-5);
  }
}

/* ==========================================================================
   9. Fragmented presence
   ========================================================================== */

.presence {
  padding-block: var(--section-y);
  background: var(--ink);
  color: var(--text-invert);
}

.presence__grid {
  display: grid;
  gap: clamp(3rem, 7vw, 5.5rem);
}

.presence__title {
  margin: var(--sp-5) 0 var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.02;
}

.presence__copy p {
  max-width: 34rem;
  color: var(--text-invert-muted);
  font-size: var(--fs-md);
}

.presence__copy p + p {
  margin-top: var(--sp-4);
}

.presence__copy .presence__takeaway {
  padding-left: var(--sp-5);
  border-left: 2px solid var(--bronze-light);
  margin-top: var(--sp-6);
  color: var(--text-invert);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.4;
}

.orbit {
  display: grid;
  gap: var(--sp-4);
}

.orbit__side {
  display: grid;
  gap: var(--sp-3);
  padding: 0;
  margin: 0;
  list-style: none;
}

.orbit__node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-invert);
  background: rgb(244 241 236 / 0.03);
  color: var(--text-invert-muted);
  font-size: var(--fs-sm);
  opacity: 0.6;
  transform: translate(
      calc(var(--drift-x, 0px) * var(--drift-scale, 1)),
      calc(var(--drift-y, 0px) * var(--drift-scale, 1))
    )
    rotate(calc(var(--tilt, 0deg) * var(--drift-scale, 1)));
  transition: transform 900ms var(--ease), opacity 900ms var(--ease),
    border-color 900ms var(--ease);
}

/* Keep the pre-consolidation scatter inside the viewport on small screens. */
@media (max-width: 47.999rem) {
  .orbit {
    --drift-scale: 0.3;
  }
}

.orbit__node span {
  color: var(--bronze-light);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.orbit.is-consolidated .orbit__node {
  border-color: rgb(244 241 236 / 0.28);
  opacity: 1;
  transform: translate(0, 0) rotate(0deg);
}

.orbit__side .orbit__node:nth-child(1) { transition-delay: 60ms; }
.orbit__side .orbit__node:nth-child(2) { transition-delay: 160ms; }
.orbit__side .orbit__node:nth-child(3) { transition-delay: 260ms; }

.orbit__core {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit__beam {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze-light));
  opacity: 0;
  transition: transform 900ms 320ms var(--ease), opacity 900ms 320ms var(--ease);
}

.orbit.is-consolidated .orbit__beam {
  opacity: 0.7;
}

/* Doorway motif: the destination sits inside an architectural opening. */
.orbit__frame {
  position: relative;
  width: 100%;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid rgb(244 241 236 / 0.24);
  border-radius: 6rem 6rem 0 0;
  background: linear-gradient(180deg, rgb(244 241 236 / 0.07), transparent 70%);
  text-align: center;
}

.orbit__frame::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 3.5rem;
  height: 2px;
  background: var(--bronze-light);
  content: "";
  transform: translateX(-50%);
}

.orbit__label {
  color: var(--bronze-light);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.orbit__name {
  margin-top: var(--sp-3);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.1;
}

.orbit__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0;
  margin: var(--sp-5) 0 0;
  list-style: none;
  color: var(--text-invert-muted);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (min-width: 60rem) {
  .presence__grid {
    align-items: center;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .orbit {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(11rem, 1.1fr) minmax(0, 1fr);
    gap: clamp(1rem, 2.5vw, 2rem);
  }

  .orbit__beam {
    width: clamp(1rem, 2.5vw, 2rem);
    transform: scaleX(0);
  }

  .orbit__beam--start {
    right: 100%;
    transform-origin: left;
  }

  .orbit__beam--end {
    left: 100%;
    background: linear-gradient(270deg, transparent, var(--bronze-light));
    transform-origin: right;
  }

  .orbit.is-consolidated .orbit__beam {
    transform: scaleX(1);
  }
}

/* ==========================================================================
   10. What we build
   ========================================================================== */

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

.build__rows {
  border-top: 1px solid var(--line);
}

.build-row {
  position: relative;
  display: grid;
  align-items: start;
  gap: 0.375rem var(--sp-5);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem;
  isolation: isolate;
  transition: color var(--t-base) var(--ease-soft);
}

.build-row::before {
  position: absolute;
  z-index: -1;
  inset: 0 calc(var(--gutter) * -0.5);
  background: var(--ink);
  content: "";
  opacity: 0;
  transform: scaleY(0.6);
  transform-origin: bottom;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.build-row:hover,
.build-row:focus-within {
  color: var(--text-invert);
}

.build-row:hover::before,
.build-row:focus-within::before {
  opacity: 1;
  transform: scaleY(1);
}

.build-row__num {
  color: var(--bronze-deep);
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.6;
  transition: color var(--t-base) var(--ease-soft);
}

.build-row:hover .build-row__num {
  color: var(--bronze-light);
}

.build-row__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: 1.15;
}

.build-row__body {
  max-width: 38rem;
  color: var(--text-muted);
  font-size: var(--fs-base);
  grid-column: 2;
  transition: color var(--t-base) var(--ease-soft);
}

.build-row:hover .build-row__body {
  color: var(--text-invert-muted);
}

.build-row__mark {
  color: var(--text-faint);
  grid-row: 1;
  grid-column: 3;
  opacity: 0;
  transform: translateX(-0.5rem);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease),
    color var(--t-base) var(--ease-soft);
}

.build-row:hover .build-row__mark {
  color: var(--bronze-light);
  opacity: 1;
  transform: translateX(0);
}

@media (min-width: 60rem) {
  .build-row {
    align-items: baseline;
    grid-template-columns: 4rem minmax(0, 0.9fr) minmax(0, 1.1fr) 2rem;
  }

  .build-row__body {
    grid-row: 1;
    grid-column: 3;
  }

  .build-row__mark {
    grid-column: 4;
    justify-self: end;
  }

  .build-row__num {
    font-size: 1.375rem;
  }
}

/* ==========================================================================
   11. Founding offer
   ========================================================================== */

.offer {
  padding-block: var(--section-y);
  background: var(--ink);
  color: var(--text-invert);
}

.offer__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.offer__title {
  margin: var(--sp-5) 0 var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.02;
}

.offer__intro {
  max-width: 36rem;
  color: var(--text-invert-muted);
  font-size: var(--fs-md);
}

.offer__body {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

/* Doorway motif: the price sits inside an opening. */
.offer__price-card {
  position: relative;
  align-self: start;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid rgb(244 241 236 / 0.22);
  border-radius: 7rem 7rem 0 0;
  background: linear-gradient(180deg, rgb(244 241 236 / 0.06), transparent 60%);
  text-align: center;
}

.offer__price-card::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 4rem;
  height: 2px;
  background: var(--bronze-light);
  content: "";
  transform: translateX(-50%);
}

.offer__price-label {
  color: var(--bronze-light);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.offer__price {
  margin-top: var(--sp-4);
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 3rem + 8vw, 8rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.offer__price-note {
  margin-top: var(--sp-4);
  color: var(--text-invert-muted);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.offer__terms {
  display: flex;
  justify-content: center;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--line-invert);
  border-bottom: 1px solid var(--line-invert);
  margin-top: var(--sp-6);
  list-style: none;
  color: var(--text-invert-muted);
  font-size: var(--fs-sm);
}

.offer__terms span {
  display: block;
  color: var(--text-invert);
  font-size: var(--fs-lg);
  font-weight: 600;
}

.offer__availability {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding-block: var(--sp-5);
  color: var(--text-invert-muted);
  font-size: var(--fs-sm);
  text-align: left;
}

.offer__availability strong {
  color: var(--text-invert);
  font-weight: 600;
}

.offer__dot {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-top: 0.45rem;
  background: var(--bronze-light);
  box-shadow: 0 0 0 4px rgb(201 168 120 / 0.16);
}

.offer__reassurance {
  margin-top: var(--sp-4);
  color: var(--text-invert-muted);
  font-size: var(--fs-xs);
}

.offer__subhead {
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line-invert);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.offer__included {
  display: grid;
  gap: 0;
  margin: 0;
  list-style: none;
}

.offer__included li {
  position: relative;
  padding: 0.875rem 0 0.875rem 1.75rem;
  border-bottom: 1px solid var(--line-invert);
  color: var(--text-invert);
  font-size: var(--fs-base);
}

.offer__included li::before {
  position: absolute;
  top: 1.5rem;
  left: 0;
  width: 0.75rem;
  height: 1px;
  background: var(--bronze-light);
  content: "";
}

.offer__notes {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}

.offer__note h4 {
  margin-bottom: 0.5rem;
  color: var(--bronze-light);
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.offer__note p {
  color: var(--text-invert-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

@media (min-width: 40rem) {
  .offer__included {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--sp-6);
  }

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

@media (min-width: 64rem) {
  .offer__body {
    align-items: start;
    grid-template-columns: minmax(20rem, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 6vw, 5.5rem);
  }

  .offer__price-card {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

/* ==========================================================================
   12. Process
   ========================================================================== */

.process {
  padding-block: var(--section-y);
  background: var(--ivory-deep);
}

.process__timing {
  padding: var(--sp-5);
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.process__timing-label {
  color: var(--bronze-deep);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.process__timing-value {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.1;
}

.process__timing-note {
  margin-top: var(--sp-3);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.steps {
  display: grid;
  border-top: 1px solid var(--line-strong);
  margin: 0;
  list-style: none;
}

.step {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line-strong);
}

.step__num {
  color: var(--bronze-deep);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}

.step__title {
  margin-top: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: 1.15;
}

.step__body {
  margin-top: var(--sp-3);
  color: var(--text-muted);
  font-size: var(--fs-base);
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 4rem);
  }

  .step:nth-child(odd) {
    padding-right: clamp(1rem, 3vw, 2rem);
    border-right: 1px solid var(--line-strong);
  }

  .step:nth-child(even) {
    padding-left: clamp(1rem, 3vw, 2rem);
  }
}

@media (min-width: 72rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .step,
  .step:nth-child(odd),
  .step:nth-child(even) {
    padding-inline: clamp(1rem, 3vw, 2rem);
    border-right: 1px solid var(--line-strong);
  }

  .step:nth-child(3n + 1) {
    padding-left: 0;
  }

  .step:nth-child(3n) {
    padding-right: 0;
    border-right: 0;
  }
}

/* ==========================================================================
   13. About / founder
   ========================================================================== */

.about {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.about__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

/* Doorway motif: the portrait sits in an arched opening. */
.about__portrait {
  position: relative;
  width: min(100%, 24rem);
  margin: 0;
}

.about__portrait-media {
  position: relative;
}

.about__portrait-frame {
  /* Offset kept inside the page gutter so the outline never clips. */
  --frame-offset: clamp(0.5rem, 2.2vw, 1.25rem);
  position: absolute;
  top: calc(var(--frame-offset) * -1);
  right: calc(var(--frame-offset) * -1);
  bottom: var(--frame-offset);
  left: var(--frame-offset);
  border: 1px solid var(--line-strong);
  border-radius: 9rem 9rem 0 0;
}

.about__portrait img {
  position: relative;
  width: 100%;
  border-radius: 8rem 8rem var(--radius) var(--radius);
  background: var(--ivory-deep);
  filter: saturate(0.92) contrast(1.02);
}

.about__portrait figcaption {
  position: relative;
  display: grid;
  gap: 0.125rem;
  padding-top: var(--sp-4);
  margin-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.about__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
}

.about__role {
  color: var(--bronze-deep);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about__place {
  color: var(--text-faint);
  font-size: var(--fs-sm);
}

.about__title {
  margin-top: var(--sp-5);
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.4rem + 2.1vw, 3.25rem);
  line-height: 1.04;
}

.about__statement {
  margin-top: var(--sp-6);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 1.1vw, 1.75rem);
  line-height: 1.4;
}

.about__content > p:not(.about__statement) {
  max-width: 40rem;
  margin-top: var(--sp-5);
  color: var(--text-muted);
  font-size: var(--fs-md);
}

.about__principles {
  display: grid;
  gap: 0;
  margin: var(--sp-8) 0 0;
  list-style: none;
}

.about__principles li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 0.875rem 0;
  border-top: 1px solid var(--line);
}

.about__principles li:last-child {
  border-bottom: 1px solid var(--line);
}

.about__principles strong {
  font-size: var(--fs-base);
  font-weight: 600;
}

.about__principles span {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-align: right;
}

@media (min-width: 60rem) {
  .about__grid {
    align-items: start;
    grid-template-columns: minmax(15rem, 0.62fr) minmax(0, 1.38fr);
    gap: clamp(3rem, 7vw, 6rem);
  }

  .about__portrait {
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
  }
}

/* ==========================================================================
   15. FAQ
   ========================================================================== */

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

.faq__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.faq__title {
  margin: var(--sp-5) 0 var(--sp-4);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  line-height: 1.04;
}

.faq__note {
  color: var(--text-muted);
  font-size: var(--fs-base);
}

.faq__list {
  border-top: 1px solid var(--line);
}

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

.qa h3 {
  margin: 0;
  font-family: var(--font-sans);
  letter-spacing: 0;
}

.qa button {
  display: flex;
  width: 100%;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: 1.125rem 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
  transition: color var(--t-fast) var(--ease-soft);
}

.qa button:hover {
  color: var(--bronze-deep);
}

.qa__icon {
  position: relative;
  flex: 0 0 auto;
  width: 0.875rem;
  height: 0.875rem;
}

.qa__icon::before,
.qa__icon::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--bronze-deep);
  content: "";
  transition: transform var(--t-base) var(--ease);
}

.qa__icon::after {
  transform: rotate(90deg);
}

.qa button[aria-expanded="true"] .qa__icon::after {
  transform: rotate(0deg);
}

.qa__panel-inner {
  max-width: 46rem;
  padding-bottom: var(--sp-5);
  color: var(--text-muted);
  font-size: var(--fs-base);
}

.qa__panel-inner p + p {
  margin-top: var(--sp-4);
}

/* Animated open/close when JS drives the accordion. */
.js .qa__panel:not([hidden]) {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  transition: grid-template-rows var(--t-base) var(--ease);
}

.js .qa__panel.is-collapsing {
  grid-template-rows: 0fr;
}

.js .qa__panel > .qa__panel-inner {
  min-height: 0;
}

@media (min-width: 64rem) {
  .faq__grid {
    align-items: start;
    grid-template-columns: minmax(16rem, 0.68fr) minmax(0, 1.32fr);
  }

  .faq__head {
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
  }
}

/* ==========================================================================
   16. Closing CTA
   ========================================================================== */

.closing {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 11vw, 11rem);
  background: var(--ink);
  color: var(--text-invert);
  text-align: center;
}

.closing__inner {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
}

/* Doorway motif: two leaves part as the section enters. */
.closing__door {
  position: absolute;
  z-index: 0;
  top: -6vh;
  bottom: -6vh;
  left: 50%;
  width: min(38rem, 88vw);
  transform: translateX(-50%);
  pointer-events: none;
}

.closing__leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  border: 1px solid rgb(244 241 236 / 0.16);
  transition: transform 1200ms var(--ease), opacity 1200ms var(--ease);
}

.closing__leaf--start {
  left: 0;
  border-right: 0;
  border-radius: 12rem 0 0 0;
}

.closing__leaf--end {
  right: 0;
  border-left: 0;
  border-radius: 0 12rem 0 0;
}

.closing.is-open .closing__leaf--start {
  transform: translateX(-14%);
  opacity: 0.55;
}

.closing.is-open .closing__leaf--end {
  transform: translateX(14%);
  opacity: 0.55;
}

.closing .eyebrow {
  justify-content: center;
}

.closing__title {
  margin: var(--sp-5) 0 var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.closing__lede {
  max-width: 34rem;
  margin-bottom: var(--sp-7);
  color: var(--text-invert-muted);
  font-size: var(--fs-md);
}

.closing__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: var(--sp-6);
  color: var(--text-invert-muted);
  font-size: var(--fs-xs);
}

.closing__meta a {
  color: var(--text-invert);
  text-decoration-color: var(--bronze-light);
}

/* ==========================================================================
   17. Footer
   ========================================================================== */

.footer {
  padding-block: clamp(3rem, 6vw, 5rem) var(--sp-6);
  border-top: 1px solid var(--line-invert);
  background: var(--ink);
  color: var(--text-invert);
}

.footer__grid {
  display: grid;
  gap: var(--sp-8);
}

.footer__wordmark {
  font-family: var(--font-display);
  font-size: 1.375rem;
  text-decoration: none;
}

.footer__brand p {
  max-width: 18rem;
  margin-top: var(--sp-3);
  color: var(--text-invert-muted);
  font-size: var(--fs-sm);
}

.footer__label {
  margin-bottom: var(--sp-4);
  color: var(--bronze-light);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__nav ul {
  display: grid;
  gap: 0.125rem;
  margin: 0;
  list-style: none;
}

.footer__nav a,
.footer__contact a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  color: var(--text-invert-muted);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-soft);
}

.footer__nav a:hover,
.footer__contact a:hover {
  color: var(--text-invert);
  text-decoration: underline;
  text-decoration-color: var(--bronze-light);
}

.footer__contact {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.footer__legal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-invert);
  margin-top: var(--sp-8);
}

.footer__legal p {
  max-width: 42rem;
  color: #8d867c;
  font-size: var(--fs-micro);
  line-height: 1.7;
}

@media (min-width: 48rem) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(8rem, 0.6fr) minmax(0, 0.9fr);
  }

  .footer__legal {
    align-items: center;
    flex-direction: row;
  }
}

/* ==========================================================================
   18. Motion system
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* `:where()` zeroes the specificity of the hidden state so a single
     `.is-in` class always wins, whatever the selector shape. */
  :where(.js [data-reveal])
    :where(
      .section-head,
      .work-panel article,
      .presence__copy,
      .presence__figure,
      .build-row,
      .offer__head,
      .offer__price-card,
      .offer__detail,
      .step,
      .about__portrait,
      .about__content,
      .faq__head,
      .qa,
      .closing__inner > *:not(.closing__door)
    ) {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  }

  .js .is-in {
    opacity: 1;
    transform: none;
  }

  .js .hero__copy > *,
  .js .hero__showcase {
    animation: rise-in 900ms var(--ease) both;
  }

  .js .hero__eyebrow { animation-delay: 60ms; }
  .js .hero__title { animation-delay: 130ms; }
  .js .hero__lede { animation-delay: 220ms; }
  .js .hero__actions { animation-delay: 300ms; }
  .js .hero__facts { animation-delay: 370ms; }

  /* Doorway motif: the work opens through a frame on load. */
  .js .hero__showcase {
    animation: door-open 1100ms 180ms var(--ease) both;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(1.25rem);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes door-open {
    from {
      opacity: 0;
      clip-path: inset(0 46% 0 46%);
    }
    to {
      opacity: 1;
      clip-path: inset(0 0 0 0);
    }
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .btn {
    border: 2px solid ButtonText;
  }

  .chrome,
  .handset {
    border: 1px solid CanvasText;
  }
}
