/* ==========================================================================
   Ashvane — studio stylesheet
   Ash (timber) + Vane (forged, weathered metal).
   Palette: ink / ash neutrals, verdigris as the one accent, copper rarely.
   Spacing scale — use ONLY these: 8 / 16 / 24 / 40 / 64 / 96 / 140px
   Corners: 0px, everywhere, no exceptions.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #1F2321;
  --ink-soft: rgba(31, 35, 33, 0.74);
  --ash: #F0ECDF;
  --ash-dim: #E3DCC8;
  --ash-on-ink: rgba(240, 236, 223, 0.72);
  --verdigris: #4F7267;
  --verdigris-deep: #35504A;
  --copper: #B08968;
  --line: rgba(31, 35, 33, 0.14);
  --line-strong: rgba(31, 35, 33, 0.45);
  --line-on-ink: rgba(240, 236, 223, 0.16);

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 40px;
  --s-5: 64px;
  --s-6: 96px;
  --s-7: 140px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: ease;
  --dur: 500ms;
  --dur-slow: 600ms;

  --gutter: var(--s-3);
  --max: 1280px;

  /* Line-drawn arrow parts, used by the bearing rule, lists and links */
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 9'%3E%3Cpath d='M0 4.5h16.5M12.5.75l4.25 3.75-4.25 3.75' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E");
}

@media (min-width: 720px) {
  :root { --gutter: var(--s-4); }
}
@media (min-width: 1100px) {
  :root { --gutter: var(--s-5); }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ash);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--verdigris); color: var(--ash); }

:focus-visible {
  outline: 2px solid var(--verdigris);
  outline-offset: 4px;
}

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

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

.skip-link {
  position: absolute;
  left: var(--s-2);
  top: var(--s-2);
  z-index: 100;
  padding: var(--s-1) var(--s-2);
  background: var(--ink);
  color: var(--ash);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Type ---------- */
.label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.display,
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
}

.display {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.display em,
.section-title em {
  font-style: italic;
  color: var(--verdigris);
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
}

.muted { color: var(--ink-soft); }

/* ---------- Links ----------
   Primary CTA: verdigris text link, underline draws in on hover.
   A filled button is reserved for real form submissions (.btn). */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding-bottom: var(--s-1);
  color: var(--verdigris);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(var(--line), var(--line));
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  background-size: 0% 1px, 100% 1px;
  transition: background-size var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link-cta::after {
  content: "";
  flex: none;
  width: 18px;
  height: 9px;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
  transition: transform var(--dur) var(--ease);
}
.link-cta:hover,
.link-cta:focus-visible { background-size: 100% 1px, 100% 1px; }
.link-cta:hover::after,
.link-cta:focus-visible::after { transform: translateX(8px); }

button.link-cta {
  border: 0;
  padding-inline: 0;
  background-color: transparent;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

/* On the dimmer ash, deepen the accent so text keeps AA contrast */
.section--dim .link-cta { color: var(--verdigris-deep); }

/* On ink: ash text, the single copper underline */
.link-cta--on-ink {
  color: var(--ash);
  background-image:
    linear-gradient(var(--copper), var(--copper)),
    linear-gradient(var(--line-on-ink), var(--line-on-ink));
}

.link-quiet {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 6px;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
.link-quiet:hover,
.link-quiet:focus-visible {
  color: var(--ink);
  text-decoration-color: currentColor;
}

/* Filled button — form submissions only */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-2) var(--s-3);
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--ash);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.btn:hover,
.btn:focus-visible { background: var(--verdigris-deep); }

/* ---------- Bearing: the section marker ----------
   "090°  THE MODEL  >>————————————>"  — a compass bearing plus a
   fletched arrow shaft that runs the width of the column. */
.bearing {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--ink-soft);
}
.bearing__deg {
  color: var(--verdigris-deep);
  font-variant-numeric: tabular-nums;
}
.bearing::after {
  content: "";
  flex: 1;
  min-width: var(--s-5);
  height: 9px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 9'%3E%3Cpath d='M.5.5l4 4-4 4M5 .5l4 4-4 4' fill='none' stroke='rgba(31,35,33,.45)'/%3E%3C/svg%3E") left center / 10px 9px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 9'%3E%3Cpath d='M.5.5l5 4-5 4' fill='none' stroke='rgba(31,35,33,.45)'/%3E%3C/svg%3E") right center / 6px 9px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) left center / calc(100% - 1px) 1px no-repeat;
}
.bearing--on-ink { color: var(--ash-on-ink); }
.bearing--on-ink .bearing__deg { color: var(--ash); }
.bearing--on-ink::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 9'%3E%3Cpath d='M.5.5l4 4-4 4M5 .5l4 4-4 4' fill='none' stroke='rgba(240,236,223,.4)'/%3E%3C/svg%3E") left center / 10px 9px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 9'%3E%3Cpath d='M.5.5l5 4-5 4' fill='none' stroke='rgba(240,236,223,.4)'/%3E%3C/svg%3E") right center / 6px 9px no-repeat,
    linear-gradient(rgba(240, 236, 223, 0.3), rgba(240, 236, 223, 0.3)) left center / calc(100% - 1px) 1px no-repeat;
}

/* Arrow-bullet list */
.vane-list { border-top: 1px solid var(--line); }
.vane-list li {
  position: relative;
  padding: var(--s-2) 0 var(--s-2) var(--s-4);
  border-bottom: 1px solid var(--line);
}
.vane-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--s-2) + 0.55em);
  width: 18px;
  height: 9px;
  background: var(--verdigris);
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
}
.section--dim .vane-list li::before { background: var(--verdigris-deep); }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--ash);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding-block: var(--s-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
}
.brand .mark {
  width: 32px;
  height: 32px;
  flex: none;
}

/* The vane needle in the mark: settles into the wind on load,
   swings to true north (home) on hover. */
.mark__needle {
  transform-box: view-box;
  transform-origin: 20px 20px;
  transform: rotate(-24deg);
  transition: transform var(--dur-slow) var(--ease);
  animation: vane-settle 1.2s var(--ease) 0.2s backwards;
}
.brand:hover .mark__needle,
.brand:focus-visible .mark__needle { transform: rotate(-90deg); }

@keyframes vane-settle {
  from { transform: rotate(-110deg); }
  to { transform: rotate(-24deg); }
}

.nav-toggle {
  display: none;
  padding: var(--s-1) var(--s-2);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.js .nav-toggle { display: inline-block; }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
}
.site-nav a {
  display: block;
  padding-block: var(--s-1);
  color: var(--ink-soft);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] { color: var(--ink); }

.site-nav__needle { display: none; }

/* Mobile: menu panel below the header */
@media (max-width: 899px) {
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: var(--s-2) var(--gutter) var(--s-4);
    background: var(--ash);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav__list {
    flex-direction: column;
    gap: 0;
  }
  .js .site-nav a {
    padding-block: var(--s-2);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--ink);
  }
}

/* Desktop: inline nav + the needle that rides the header hairline */
@media (min-width: 900px) {
  .js .nav-toggle { display: none; }
  .site-nav__list { gap: var(--s-4); }
  .site-nav__needle {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 10px;
    height: 16px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M5 0l4.5 7L5 5.2.5 7z' fill='%234F7267'/%3E%3Cpath d='M5 5v11' stroke='%234F7267'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0;
    transform-origin: 50% 100%;
    transform: translateX(var(--x, 0)) rotate(var(--r, 0deg));
    transition:
      transform var(--dur) var(--ease),
      opacity var(--dur) var(--ease);
  }
  .site-nav__needle.is-visible { opacity: 1; }
  .site-nav__needle.is-instant {
    transition: opacity var(--dur) var(--ease);
  }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--s-6); }
.section--dim { background: var(--ash-dim); }
@media (min-width: 900px) {
  .section { padding-block: var(--s-7); }
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s-3);
}
.grid-12 > * { grid-column: 1 / -1; }

/* ---------- Hero ---------- */
.hero { padding-block: var(--s-5) var(--s-6); }
.hero__label { color: var(--ink-soft); }
.hero__title {
  margin-top: var(--s-4);
  max-width: 17ch;
}
.hero__vane {
  margin-top: var(--s-5);
  width: 100%;
  height: auto;
  color: var(--ink);
  align-self: center;
}
.hero__vane path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.hero__aside { margin-top: var(--s-4); }
.hero__aside .lede { margin-bottom: var(--s-3); max-width: 38ch; }

@media (min-width: 900px) {
  .hero { padding-block: var(--s-6) var(--s-7); }
  .hero__title { grid-column: 1 / span 11; }
  .hero__vane { grid-column: 1 / span 5; grid-row: 3; margin-top: var(--s-6); }
  .hero__aside { grid-column: 7 / -1; grid-row: 3; margin-top: var(--s-6); }
}

/* ---------- Browser frame ---------- */
.browser {
  background: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 64px 96px -64px rgba(31, 35, 33, 0.55);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-2);
  color: var(--ash-on-ink);
  font-size: 0.75rem;
  line-height: 1.6;
}
.browser__dots {
  display: flex;
  gap: var(--s-1);
  flex: none;
}
.browser__dots i {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(240, 236, 223, 0.35);
}
.browser__url {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  margin-inline: auto;
  padding-inline: var(--s-2);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  background: rgba(240, 236, 223, 0.08);
  letter-spacing: 0.02em;
}
.browser__tag {
  flex: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.browser__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  container-type: inline-size;
  background: #1E3B30;
}
.browser__viewport > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Hartswell hero: show more lawn so the headline sits on dark ground, not the windows */
.flagship__frame .browser__viewport > img { object-position: 50% 85%; }
@media (max-width: 559px) {
  .browser__tag { display: none; }
  /* Portrait crop on phones so the subject and the headline both get room */
  .flagship__frame .browser__viewport { aspect-ratio: 4 / 5; }
  .flagship__frame .browser__viewport > img { object-position: 50% 30%; }
}

/* ---------- Flagship: miniature of the Hartswell Manor homepage ----------
   This is a scaled representation of the demo, so its internal sizes are
   container-relative (cqw) rather than the studio spacing scale. */
.preview {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.4cqw 4.4cqw;
  color: #F4EFE3;
  background: linear-gradient(
    to bottom,
    rgba(12, 22, 17, 0.5) 0%,
    rgba(12, 22, 17, 0) 22%,
    rgba(12, 22, 17, 0) 42%,
    rgba(12, 22, 17, 0.5) 66%,
    rgba(12, 22, 17, 0.86) 100%
  );
}
.preview__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: max(8px, 1.05cqw);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.preview__brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: max(11px, 1.8cqw);
  font-weight: 500;
  letter-spacing: 0.24em;
}
.preview__nav {
  display: flex;
  gap: 2.4cqw;
  opacity: 0.88;
}
.preview__nav span:last-child {
  padding-bottom: 0.4cqw;
  border-bottom: 1px solid #C9A45C;
}
.preview__body { max-width: 64cqw; }
.preview__eyebrow {
  margin-bottom: 1.4cqw;
  font-size: max(8px, 1.05cqw);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #DCC48F;
}
.preview__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 4.7cqw;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.005em;
}
.preview__cta {
  display: inline-block;
  margin-top: 2.2cqw;
  padding-bottom: 0.5cqw;
  border-bottom: 1px solid #C9A45C;
  font-size: max(8px, 1.05cqw);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
@container (max-width: 560px) {
  .preview__nav { display: none; }
  .preview { padding: 6cqw; }
  .preview__body { max-width: none; }
  .preview__title { font-size: 8.2cqw; }
  .preview__eyebrow { display: none; }
  .preview__cta { margin-top: 4cqw; padding-bottom: 1cqw; }
}

/* ---------- Flagship section ---------- */
.flagship__frame { margin-top: var(--s-5); }

.flagship__caption {
  margin-top: var(--s-4);
  row-gap: var(--s-4);
}
/* Facts table: short label / value rows on hairlines */
.facts {
  margin-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.facts div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  padding-block: var(--s-1);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.facts dt { color: var(--ink-soft); }
.facts dd { text-align: right; }

.facts--wide div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding-block: var(--s-2);
  font-size: 1.05rem;
}
.facts--wide dd { text-align: left; }
@media (min-width: 560px) {
  .facts--wide div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--s-3);
  }
}

.concept-note {
  margin-top: var(--s-3);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.outcome {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-4);
}

@media (min-width: 900px) {
  .flagship__caption { margin-top: var(--s-5); }
  .flagship__intro { grid-column: 1 / span 4; }
  .flagship__outcome { grid-column: 6 / -1; }
}

/* ---------- The model ---------- */
.model__body { margin-top: var(--s-4); }
.model__body > p { margin-bottom: var(--s-3); max-width: 52ch; }
.model__body .link-row { margin-top: var(--s-5); }
.model__title { margin-top: var(--s-5); }

@media (min-width: 900px) {
  .model__title { grid-column: 1 / span 5; }
  .model__body { grid-column: 7 / -1; margin-top: var(--s-5); }
}

/* ---------- Work index ---------- */
.work__title { margin-top: var(--s-5); max-width: 22ch; }
.work__intro { margin-top: var(--s-3); max-width: 56ch; }

.work-index {
  margin-top: var(--s-5);
  border-top: 1px solid var(--ink);
  counter-reset: work;
}
.work-index a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: var(--s-1) var(--s-3);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.work-index__name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.work-index__meta {
  grid-column: 1 / -1;
  color: var(--ink-soft);
}
.work-index__arrow {
  grid-column: 2;
  grid-row: 1;
  width: 40px;
  height: 9px;
  align-self: center;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 9'%3E%3Cpath d='M.5.5l5 4-5 4' fill='none' stroke='%2335504A' stroke-width='1.2'/%3E%3C/svg%3E") right center / 6px 9px no-repeat,
    linear-gradient(var(--verdigris-deep), var(--verdigris-deep)) right center / 100% 1.2px no-repeat;
  transform-origin: right center;
  transform: scaleX(0.4);
  opacity: 0.6;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.work-index a:hover .work-index__name,
.work-index a:focus-visible .work-index__name {
  color: var(--verdigris-deep);
  transform: translateX(8px);
}
.work-index a:hover .work-index__arrow,
.work-index a:focus-visible .work-index__arrow {
  transform: scaleX(1);
  opacity: 1;
}
.work .link-row { margin-top: var(--s-4); }

@media (min-width: 720px) {
  .work-index a { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .work-index__meta { grid-column: 2; grid-row: 1; }
  .work-index__arrow { grid-column: 3; }
}

/* ---------- Closing call to action (ink) ---------- */
.closing {
  background: var(--ink);
  color: var(--ash);
}
.closing__title {
  margin-top: var(--s-5);
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.closing__note {
  margin-top: var(--s-3);
  max-width: 48ch;
  color: var(--ash-on-ink);
}
.closing .link-row { margin-top: var(--s-5); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--ash-on-ink);
  border-top: 1px solid var(--line-on-ink);
  font-size: 0.95rem;
}
.site-footer a {
  color: var(--ash-on-ink);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--ash); }
.site-footer :focus-visible { outline-color: var(--copper); }

.site-footer__grid {
  padding-block: var(--s-5);
  row-gap: var(--s-4);
}
.site-footer__rose {
  width: 112px;
  height: 112px;
  color: var(--ash);
}
.site-footer__brand {
  display: block;
  margin-bottom: var(--s-2);
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ash);
}
.site-footer__statement { max-width: 36ch; }
.site-footer h2 {
  margin-bottom: var(--s-2);
  color: var(--ash);
}
.site-footer li + li { margin-top: var(--s-1); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-1) var(--s-3);
  padding-block: var(--s-3);
  border-top: 1px solid var(--line-on-ink);
  font-size: 0.85rem;
}

@media (min-width: 720px) {
  .site-footer__rose-wrap { grid-column: 1 / span 3; }
  .site-footer__about { grid-column: 4 / span 5; }
  .site-footer__nav { grid-column: 9 / span 2; }
  .site-footer__contact { grid-column: 11 / -1; }
}
@media (min-width: 720px) and (max-width: 1099px) {
  .site-footer__rose-wrap { grid-column: 1 / span 4; }
  .site-footer__about { grid-column: 5 / -1; }
  .site-footer__nav { grid-column: 5 / span 4; }
  .site-footer__contact { grid-column: 9 / -1; }
}

/* ---------- Inner page title ---------- */
.page-head { padding-block: var(--s-5) var(--s-5); }
.page-head h1 { margin-top: var(--s-3); max-width: 18ch; }
.page-head .lede { margin-top: var(--s-3); max-width: 40ch; }
@media (min-width: 900px) {
  .page-head { padding-block: var(--s-6) var(--s-5); }
}

/* ---------- The Work: case studies ---------- */
.case + .case { margin-top: var(--s-6); }
.case__frame { margin-top: var(--s-4); }
.case__body { margin-top: var(--s-4); row-gap: var(--s-4); }
.case__body h2 { margin-bottom: var(--s-2); }
.case__notes div + div { margin-top: var(--s-3); }
.case__notes p { max-width: 60ch; }
.case__notes p + p { margin-top: var(--s-2); }
.case__notes dt { margin-bottom: var(--s-1); color: var(--ink-soft); }
@media (min-width: 900px) {
  .case + .case { margin-top: var(--s-7); }
  .case__intro { grid-column: 1 / span 4; }
  .case__notes { grid-column: 6 / -1; }
}

/* Live preview: the real demo, rendered at desktop width and scaled
   down to fit the frame. Purely visual until opened. */
.live {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ash-dim);
}
.live > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live iframe {
  position: absolute; top: 0; left: 0;
  width: 1280px; height: 800px;
  border: 0;
  background: var(--ash);
  transform-origin: 0 0;
  transform: scale(var(--scale, 0.5));
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
}
.live.is-ready iframe { opacity: 1; }
a.live { display: block; color: inherit; }
a.live:focus-visible { outline-offset: -4px; }
.live__open {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: var(--s-3);
  background: linear-gradient(to top, rgba(31, 35, 33, 0.55), rgba(31, 35, 33, 0) 45%);
  color: var(--ash);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.live__open span {
  padding: var(--s-1) var(--s-2);
  background: var(--ink);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
a.live:hover .live__open, a.live:focus-visible .live__open { opacity: 1; }
@media (hover: none) { .live__open { opacity: 1; } }

/* ---------- How it works: steps ---------- */
.steps { border-top: 1px solid var(--ink); counter-reset: step; }
.steps li {
  display: grid;
  gap: var(--s-1) var(--s-3);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.steps .bearing__deg { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em; }
.steps h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }
.steps p { color: var(--ink-soft); max-width: 46ch; }
@media (min-width: 900px) {
  .steps li { grid-template-columns: 5rem minmax(0, 4fr) minmax(0, 7fr); align-items: baseline; }
}

/* ---------- Pricing ---------- */
.price-figure {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.price-figure small { display: block; margin-bottom: var(--s-1); font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* Placeholder marker: content the owner must supply before launch */
.placeholder {
  display: inline-block;
  padding: 0 var(--s-1);
  border: 1px dashed var(--copper);
  background: rgba(176, 137, 104, 0.12);
  font-family: var(--font-body);
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.price-figure .placeholder { font-size: 1.1rem; padding: var(--s-1) var(--s-2); }
p.placeholder, div.placeholder { display: block; padding: var(--s-2) var(--s-3); line-height: 1.6; }

/* ---------- Forms (Ashvane) ---------- */
.form { display: grid; gap: var(--s-3); max-width: 40rem; }
.form label { display: block; margin-bottom: var(--s-1); }
.form input,
.form textarea {
  width: 100%;
  padding: var(--s-2);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #F7F4EA;
  font: inherit;
  color: var(--ink);
}
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--verdigris); outline-offset: 0; border-color: var(--ink); }
.form .hidden-field { position: absolute; left: -9999px; }
.contact-direct { margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--line); }

/* ---------- Status pages (thank you, 404) ---------- */
.status { padding-block: var(--s-6) var(--s-7); min-height: calc(100vh - 380px); }
.status .grid-12 { row-gap: var(--s-5); align-items: center; }
.status h1 { margin-top: var(--s-3); max-width: 16ch; }
.status .lede { margin-top: var(--s-3); max-width: 36ch; color: var(--ink-soft); }
.status .link-row { margin-top: var(--s-5); }
.status__rose { width: min(320px, 72%); color: var(--ink); justify-self: center; }
.status__needle { transform-box: view-box; transform-origin: 70px 70px; }
.status__needle--north { transform: rotate(-90deg); }
.status__needle--search { transform: rotate(-60deg); }
@media (min-width: 900px) {
  .status__text { grid-column: 1 / span 7; }
  .status__rose { grid-column: 9 / -1; width: 100%; max-width: 320px; }
}

/* ---------- Motion ----------
   Everything below only runs when the visitor has not asked for
   reduced motion. Without JS, nothing is hidden. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity var(--dur-slow) var(--ease) var(--delay, 0ms),
      transform var(--dur-slow) var(--ease) var(--delay, 0ms);
  }
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  /* The flagship frame opens like a shutter, image easing back */
  .js [data-reveal="frame"] .browser__viewport > img {
    transform: scale(1.06);
    transition: transform 1.2s var(--ease) 0.1s;
  }
  .js [data-reveal="frame"].is-visible .browser__viewport > img { transform: none; }

  /* 404: the needle swings slowly, looking for a bearing */
  .status__needle--search { animation: needle-search 7s var(--ease) infinite alternate; }
  @keyframes needle-search {
    0% { transform: rotate(-60deg); }
    35% { transform: rotate(25deg); }
    70% { transform: rotate(-20deg); }
    100% { transform: rotate(140deg); }
  }

  /* Thank you: the needle settles on north */
  .status__needle--north { animation: needle-settle 1.4s var(--ease) 0.2s backwards; }
  @keyframes needle-settle {
    from { transform: rotate(-200deg); }
    to { transform: rotate(-90deg); }
  }

  /* Hero arrow draws itself in, fletching first */
  .js .hero__vane path {
    stroke-dashoffset: 1;
    animation: draw-vane 1.2s var(--ease) 0.5s forwards;
  }
  @keyframes draw-vane {
    to { stroke-dashoffset: 0; }
  }
}

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