/* Kyriaki S. Dimitriou — Editorial Classic. Field lines ≥3:1 on --tint. */

:root {
  --paper: #F8F4EE;
  --paper-hi: #FCFAF7;
  --tint: #F2E9E4;
  --tint-deep: #EADDD6;
  --ink: #2A211F;
  --text: #433937;
  --muted: #6E625D;
  --line: #E0D6CD;
  --line-strong: #CBBDB2;
  --field-line: #8F827B;
  --field-line-hover: #766963;
  --wine: #550C25;
  --wine-deep: #3E0819;
  --wine-wash: rgba(85, 12, 37, 0.045);
  --error: #9E1B32;
  --error-bg: #FBEFF0;
  --on-wine: #F6EFE6;
  --on-wine-soft: #D4BFC1;

  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --sans: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;

  --fs-body: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-h1: clamp(3.5rem, 1.85rem + 6.4vw, 7.75rem);
  --fs-h2: clamp(2.75rem, 2rem + 3vw, 4.75rem);
  --fs-area: clamp(1.625rem, 1.25rem + 1.45vw, 2.375rem);
  --fs-about-lead: clamp(1.5rem, 1.2rem + 1.15vw, 2.25rem);

  --gutter: clamp(1.25rem, 0.6rem + 3.2vw, 3.5rem);
  --maxw: 78rem;
  --header-h: 4.5rem;
  --section-y: clamp(4.5rem, 2.75rem + 6.5vw, 7rem);
  --rail-gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  --rule-pad: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --i-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23550C25' stroke-linecap='round' stroke-width='1.25'%3E%3Ccircle cx='10' cy='10' r='8.5'/%3E%3Cpath d='m6.5 10.2 2.3 2.3 4.7-5'/%3E%3C/svg%3E");
  --i-err: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%239E1B32' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='8.5' stroke-width='1.2'/%3E%3Cpath d='M10 5.8v5.4M10 14v.2' stroke-width='1.5'/%3E%3C/svg%3E");
}

@media (min-width: 60em) {
  :root { --header-h: 5.5rem; }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, ul, ol { margin: 0; }
p { text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
::selection { background: var(--wine); color: var(--on-wine); }

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

main { scroll-margin-top: var(--header-h); }
main:focus { outline: none; }
/* focus-driven scrolling (e.g. Shift+Tab) clears the sticky header */
main :is(a, button) { scroll-margin-top: calc(var(--header-h) + 1rem); }

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--wine);
  color: var(--on-wine);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.nowrap { white-space: nowrap; }

/* ---------- Type primitives ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--wine);
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; }

.section-title,
.page__title {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.accent { font-style: italic; font-weight: 400; color: var(--wine); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.375rem;
  padding: 0 1.875rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform 0.55s var(--ease); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }

.btn__icon {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: square;
  transition: transform 0.45s var(--ease);
}
.btn:hover .btn__icon { transform: translateX(0.25rem); }

.btn--primary { background: var(--wine); color: var(--on-wine); }
.btn--primary::before { background: var(--wine-deep); }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost::before { background: var(--tint); }
.btn--ghost:hover { border-color: var(--wine); color: var(--wine); }

.btn--outline { border-color: var(--wine); color: var(--wine); }
.btn--outline::before { background: var(--wine); }
.btn--outline:hover { color: var(--on-wine); }

.btn--sm { min-height: 2.75rem; padding: 0 1.375rem; font-size: 0.75rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(248, 244, 238, 0.9);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled::before { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(42, 33, 31, 0.35); }
html:not(.js) .site-header::before { border-bottom-color: var(--line); }

.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; min-height: var(--header-h); }

.brand { display: inline-flex; padding-block: 0.25rem; }
.brand img { width: auto; height: clamp(2.25rem, 1.6rem + 1.6vw, 3.25rem); }

.site-nav { display: flex; align-items: center; gap: 2.5rem; }
.site-nav__list { display: flex; gap: 2.25rem; }
.site-nav__list a,
.site-footer__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.site-nav__list a { color: var(--text); transition: color 0.3s var(--ease); }
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.2em;
  bottom: 0.6rem;
  height: 1px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.site-nav__list a:hover,
.site-nav__list a.is-active { color: var(--wine); }
.site-nav__list a:hover::after,
.site-nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.625rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before {
  position: absolute;
  left: 0.625rem;
  width: 1.5rem;
  height: 1px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease), width 0.4s var(--ease);
}
.menu-toggle__bars { top: 1.125rem; }
.menu-toggle__bars::before { content: ""; left: auto; right: 0; top: 0.4375rem; width: 1rem; }
.menu-open .menu-toggle__bars { top: 1.375rem; transform: rotate(45deg); }
.menu-open .menu-toggle__bars::before { top: 0; width: 1.5rem; transform: rotate(-90deg); }

html:not(.js) .site-nav__list a { white-space: nowrap; }

/* Mobile menu (JS only; without JS the links stay inline) */
@media (max-width: 59.99em) {
  .site-nav { gap: 1.5rem; flex-wrap: wrap; padding-bottom: 0.75rem; }
  .site-nav__list { gap: 1.5rem; }
  .site-nav__cta { display: none; }
  html:not(.js) .site-header__inner { padding-top: 0.75rem; }

  .js .menu-toggle { display: block; }
  .js .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding: clamp(1.5rem, 6vh, 3rem) var(--gutter) 2rem;
    background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640' fill='none' stroke='%23550C25' stroke-opacity='.16'%3E%3Cpath d='M96.6 125.8A296 296 0 1 1 532.9 525.6M158.5 179.6A214 214 0 1 1 473.9 468.7'/%3E%3Ccircle cx='320' cy='320' r='150'/%3E%3C/svg%3E") no-repeat right -9rem bottom -9rem / 24rem;
    border-top: 1px solid var(--line);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.75rem);
    transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  .js.menu-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s; }
  .js.menu-open body { overflow: hidden; }
  .js .site-nav__list { flex-direction: column; gap: 0; counter-reset: nav; }
  .js .site-nav__list li { counter-increment: nav; border-bottom: 1px solid var(--line); }
  .js .site-nav__list a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    min-height: 0;
    padding-block: 1.125rem;
    font-family: var(--serif);
    font-size: clamp(2.125rem, 1.6rem + 2.4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
  }
  .js .site-nav__list a::before {
    content: "0" counter(nav);
    content: "0" counter(nav) / "";
    order: 2;
    font-family: var(--sans);
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--wine);
  }
  .js .site-nav__list a::after { display: none; }
  .js .site-nav__cta { display: inline-flex; margin-top: 2.5rem; min-height: 3.375rem; font-size: 0.8125rem; background: var(--wine); color: var(--on-wine); }
  .js .site-nav__cta::before { background: var(--wine-deep); }
  /* the paper backdrop (below the 3rem top padding) knocks the arcs out behind the label */
  .js .site-nav__meta {
    display: flex;
    align-self: flex-start;
    margin-top: auto;
    padding: 3rem 0.75rem 0 0;
    background: linear-gradient(var(--paper), var(--paper)) left bottom / 100% calc(100% - 2.5rem) no-repeat;
    font-size: 0.6875rem;
    line-height: 1.5;
    letter-spacing: 0.24em;
    color: var(--muted);
  }
  .js .site-nav__meta::before { width: 1.75rem; background: var(--wine); }
}
.site-nav__meta { display: none; }

/* Short screens: no arcs behind the CTA; landscape phones fit without scrolling */
@media (max-width: 59.99em) and (max-height: 40em) {
  .js .site-nav { background-image: none; }
}
@media (max-width: 59.99em) and (max-height: 30em) {
  .js .site-nav { padding-top: 1rem; }
  .js .site-nav__list a { font-size: 1.75rem; padding-block: 0.625rem; }
  .js .site-nav__cta { margin-top: 1.25rem; }
  .js .site-nav__meta { display: none; }
}
@media (max-width: 21.99em) {
  html:not(.js) .site-nav__list { gap: 1rem; }
  html:not(.js) .site-nav__list a { letter-spacing: 0.14em; }
}

@media (min-width: 60em) {
  .site-header__inner { flex-wrap: nowrap; }
  .site-header.is-scrolled .site-nav__cta { background: var(--wine); color: var(--on-wine); }
  .site-header.is-scrolled .site-nav__cta::before { background: var(--wine-deep); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; }
.hero__inner { display: grid; gap: clamp(3rem, 8vw, 4rem); align-items: center; padding-block: clamp(3rem, 1.5rem + 6vw, 6rem) clamp(4rem, 2rem + 6vw, 7rem); }

.hero__name { font-family: var(--serif); font-size: var(--fs-h1); font-weight: 400; line-height: 0.92; letter-spacing: -0.015em; color: var(--ink); }
.hero__line { display: block; }
.hero__line--accent { color: var(--wine); padding-left: 0.04em; }

.hero__title {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}
.hero__title::before { content: ""; flex: none; width: clamp(1.5rem, 0.5rem + 3vw, 3rem); height: 1px; background: var(--wine); }
@media (max-width: 21.99em) {
  .hero__title { letter-spacing: 0.14em; }
}
@media (min-width: 30em) {
  .hero__title { letter-spacing: 0.3em; }
}

.hero__lead { max-width: 34ch; margin-top: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-size: var(--fs-lead); font-weight: 350; line-height: 1.65; color: var(--text); }

.actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }

.hero__art { justify-self: center; width: min(80%, 16rem); }

@media (max-width: 29.99em) {
  .hero__lead { text-wrap: balance; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
}

.seal { width: 100%; height: auto; overflow: visible; }
.seal__disc { fill: var(--tint); }
.seal__ring { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.seal__ticks { fill: none; stroke: var(--wine); stroke-opacity: 0.32; stroke-width: 9; stroke-dasharray: 0.9 16.379; }
.seal__spin { transform-origin: 320px 320px; }
.seal__arc { fill: none; stroke: var(--wine); stroke-width: 1.25; stroke-linecap: round; }
.seal__arc--inner { stroke-width: 1; stroke-opacity: 0.5; }
.seal__dot { fill: var(--wine); }
.seal__dot--inner { fill-opacity: 0.6; }

@media (min-width: 48em) {
  .hero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 5rem); min-height: min(calc(100svh - var(--header-h)), 60rem); }
  .hero__art { justify-self: end; width: 100%; max-width: 34rem; }
}
@media (min-width: 48em) and (max-width: 59.99em) {
  .hero__inner { min-height: 0; padding-block: 4rem 5rem; }
  .hero__name { font-size: clamp(3.5rem, 1rem + 6.4vw, 5rem); }
  .hero .actions .btn,
  .page .actions .btn { padding-inline: 1.25rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__line,
  .hero__title,
  .hero__lead,
  .hero .actions,
  .page__text > * { animation: rise 0.9s var(--ease) both; }
  .hero__line--accent,
  .page__text > :nth-child(2) { animation-delay: 0.06s; }
  .hero__title,
  .page__text > :nth-child(3) { animation-delay: 0.16s; }
  .hero__lead,
  .page__text > :nth-child(4) { animation-delay: 0.24s; }
  .hero .actions { animation-delay: 0.32s; }

  .hero__art,
  .page__art { animation: fade 1.2s var(--ease) 0.1s both; }
  .seal__arc { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease-io) 0.2s forwards; }
  .seal__arc--inner { animation-delay: 0.32s; }
  .seal__dot { animation: fade 0.6s var(--ease) 0.2s both; }
  /* one short settle, then still (no endless motion: WCAG 2.2.2) */
  .seal__spin { animation: turn 2.4s var(--ease) 0.2s both; }
}

@keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes turn { from { transform: rotate(-20deg); } }

/* ---------- Sections / rail grid ---------- */
.section { padding-block: var(--section-y); scroll-margin-top: var(--header-h); }
.section__inner { position: relative; }
.practice { padding-top: calc(var(--section-y) * 0.6); }
.rail__head,
.rail__body { border-top: 1px solid var(--line-strong); padding-top: var(--rule-pad); }
.areas.rail__body { padding-top: 0; }

.rail { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4rem); }

@media (min-width: 60em) {
  .rail { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--rail-gap); align-items: start; }
}

/* ---------- Practice areas (rows link to the form) ---------- */
.area { border-bottom: 1px solid var(--line); }
.area__link {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 1.25rem;
  align-items: baseline;
  column-gap: 0.875rem;
  /* bleed into the gutter: room for wash + focus ring */
  margin-inline: -0.75rem;
  padding: clamp(1.25rem, 0.9rem + 1.2vw, 2rem) 0.75rem;
  color: var(--ink);
}
.area__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--wine-wash), transparent 85%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.area__link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: -1px;
  height: 1px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.8s var(--ease);
}
.area__link:focus-visible { outline-offset: -2px; }

.area__num { font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.2em; color: var(--wine); transform: translateY(-0.2em); }
.area__title {
  font-family: var(--serif);
  font-size: var(--fs-area);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
  transition: color 0.4s var(--ease), transform 0.6s var(--ease);
}
.area__arrow {
  align-self: center;
  justify-self: end;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: var(--wine);
  stroke-width: 1.2;
  stroke-linecap: square;
  opacity: 0.45;
  transition: opacity 0.4s var(--ease), transform 0.55s var(--ease);
}
@media (hover: hover) {
  .area__arrow { opacity: 0; transform: translateX(-0.75rem); }
  .area__link:hover::before { opacity: 1; }
  .area__link:hover::after { transform: scaleX(1); transform-origin: left; }
  .area__link:hover .area__title { color: var(--wine); transform: translateX(0.5rem); }
  .area__link:hover .area__arrow { opacity: 1; transform: none; }
}
.area__link:focus-visible .area__title { color: var(--wine); }
.area__link:focus-visible .area__arrow { opacity: 1; transform: none; }

@media (min-width: 40em) {
  .area__link { grid-template-columns: 4.5rem minmax(0, 1fr) 1.5rem; column-gap: 1rem; }
  .area__arrow { width: 1.5rem; height: 1.5rem; }
}

/* ---------- About ---------- */
.about__sticky { display: grid; }

.creds { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); border-top: 1px solid var(--line-strong); }
.cred { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 0.5rem; padding-block: 1.125rem; border-bottom: 1px solid var(--line); }
.cred__num { grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 1.125rem; line-height: 1.5; color: var(--wine); }
.cred__main {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.15rem + 0.35vw, 1.4375rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}
.cred__sub { margin-top: 0.3rem; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); text-wrap: balance; }

.about__body > * { max-width: 40rem; }
.about__body p + p { margin-top: 1.5em; }
.about__body .about__lead {
  max-width: 46rem;
  margin-bottom: 2.25rem;
  font-family: var(--serif);
  font-size: var(--fs-about-lead);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
}
.about__lead::first-letter { float: left; margin: 0.07em 0.1em 0 0; font-size: 3.1em; line-height: 0.78; color: var(--wine); }
@supports (initial-letter: 2) {
  .about__lead::first-letter { float: none; margin: 0 0.1em 0 0; font-size: inherit; line-height: inherit; initial-letter: 2; }
}
.about__end { display: flex; align-items: center; gap: 1rem; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.about__end::before { content: ""; width: 3rem; height: 1px; background: var(--line-strong); }
.about__end img { width: 1.75rem; height: auto; opacity: 0.9; }

/* <60em: heading, biography, credentials, end mark */
@media (max-width: 59.99em) {
  .about__grid { display: flex; flex-direction: column; gap: 0; }
  .about__aside, .about__sticky { display: contents; }
  .about .eyebrow { border-top: 1px solid var(--line-strong); padding-top: var(--rule-pad); }
  .about__body { order: 1; margin-top: clamp(2.5rem, 2rem + 3vw, 4rem); border-top: 0; padding-top: 0; }
  .about .creds { order: 2; margin-top: clamp(2.75rem, 2rem + 3vw, 4rem); }
  .about__end { order: 3; }
}
@media (min-width: 60em) {
  .about__grid { row-gap: 0; }
  .about__aside { grid-row: span 2; align-self: stretch; }
  .about__end { grid-column: 2; }
  .about__sticky { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}

/* ---------- Contact ---------- */
.contact { padding-block: calc(var(--section-y) * 0.5) 0; }
.contact__panel {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
  padding: clamp(2.75rem, 1.5rem + 5vw, 6rem) clamp(1.25rem, 0.5rem + 5vw, 6rem);
  margin-inline: calc(var(--gutter) * -1);
  background: var(--tint);
  overflow: hidden;
  isolation: isolate;
}
.contact__lines {
  position: absolute;
  z-index: -1;
  width: clamp(26rem, 60vw, 44rem);
  left: clamp(-16rem, -20vw, -8rem);
  bottom: clamp(-18rem, -22vw, -10rem);
  fill: none;
  stroke: var(--wine);
  stroke-width: 1;
  stroke-opacity: 0.16;
}

.contact__text { max-width: 30ch; margin-top: 1.5rem; font-size: var(--fs-lead); font-weight: 350; line-height: 1.6; }

/* Optional contact details */
.contact__list { max-width: 24rem; margin-top: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); border-top: 1px solid var(--tint-deep); }
.contact__details + .contact__list { margin-top: 0; border-top: 0; }
.contact__list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.25rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--tint-deep);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.contact__list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  background: linear-gradient(currentColor, currentColor) no-repeat left 78% / 0 1px;
  transition: color 0.3s var(--ease), background-size 0.45s var(--ease);
}
.contact__list a:hover { color: var(--wine); background-size: 100% 1px; }
/* plain rows (address) match the 44px link rows */
.contact__list li > span { display: inline-flex; align-items: center; min-height: 2.75rem; }
.contact__icon { flex: none; width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--wine); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 47.99em) {
  /* full-bleed panel, content on the page grid */
  .contact__panel { padding-inline: var(--gutter); }
}
@media (max-width: 63.99em) {
  /* small quarter arcs in the bottom-left corner, below all content */
  .contact__panel { padding-bottom: 6rem; }
  .contact__lines { width: 12rem; left: -6rem; bottom: -6rem; }
}
@media (min-width: 48em) {
  .contact { padding-bottom: calc(var(--section-y) * 0.75); }
  .contact__panel { margin-inline: 0; }
}
@media (min-width: 64em) {
  .contact__panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--rail-gap); align-items: start; }
  /* with contact details the arcs shrink into the corner, clear of the list */
  .contact__panel:has(.contact__list) .contact__lines { width: 22rem; left: -11rem; bottom: -11rem; }
}

/* ---------- Form ---------- */
.form { position: relative; }
.form__grid { display: grid; gap: 1.5rem; }
@media (min-width: 40em) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

.field { display: grid; gap: 0.5rem; align-content: start; }
.field__label { font-size: var(--fs-label); font-weight: 500; line-height: 1.3; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); }
.field__control {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8125rem 1rem;
  border: 1px solid var(--field-line);
  border-radius: 0;
  background: var(--paper-hi);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  scroll-margin-block: calc(var(--header-h) + 2.75rem) 1.5rem;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.field__control:hover { border-color: var(--field-line-hover); }
/* a real outline: visible on invalid (red) fields and kept in forced-colours mode */
.field__control:focus { outline: 2px solid var(--wine); outline-offset: 2px; border-color: var(--wine); background-color: #fff; }
.field__control[aria-invalid="true"] { border-color: var(--error); }
.field__control--select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23550C25' stroke-width='1.25'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.125rem;
  cursor: pointer;
}
.field__control--area { min-height: 10rem; resize: vertical; }

.field__error { display: flex; gap: 0.5rem; font-size: var(--fs-small); line-height: 1.45; color: var(--error); }
.field__error:empty { display: none; }
.field__error::before { content: ""; flex: none; width: 0.375rem; height: 0.375rem; margin-top: 0.5em; border-radius: 50%; background: currentColor; }

.field--check { grid-template-columns: auto minmax(0, 1fr); column-gap: 0.875rem; align-items: start; margin-top: 0.25rem; }
.field--check .field__error { grid-column: 2; }
.check {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.125rem 0 0;
  border: 1px solid var(--field-line);
  background: var(--paper-hi) no-repeat center / 0.875rem;
  cursor: pointer;
  scroll-margin-block: calc(var(--header-h) + 2.75rem) 1.5rem;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.check:hover { border-color: var(--wine); }
.check:checked {
  border-color: var(--wine);
  background-color: var(--wine);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6EFE6' stroke-width='2.5'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
}
.check[aria-invalid="true"] { border-color: var(--error); }
.check__label { padding-block: 0.0625rem; font-size: 0.9375rem; line-height: 1.55; color: var(--text); cursor: pointer; }

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

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--tint-deep);
}
.form__submit { min-width: 13.5rem; }
.form__submit[aria-disabled="true"] { cursor: progress; opacity: 0.8; }
.form__note { flex: 1 1 16rem; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }

@media (max-width: 39.99em) {
  .form__submit { width: 100%; }
}

/* Form status + no-JS error notice. The empty live region stays rendered (announced reliably), just 0px tall. */
.form__status:empty { padding: 0; margin: 0; border: 0; }
.form__status:empty::before { display: none; }
.form__status,
.notice {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid currentColor;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-wrap: balance;
  scroll-margin-block: calc(var(--header-h) + 2rem) 2rem;
}
.form__status::before,
.notice::before {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.075rem;
  background: var(--i-err) center / contain no-repeat;
}
.form__status:focus { outline: none; }
.form__status.is-success { color: var(--wine); background-color: var(--paper-hi); }
.form__status.is-success::before { background-image: var(--i-ok); }
.form__status.is-error,
.notice { color: var(--error); background-color: var(--error-bg); }

.form-errors { display: grid; gap: 0.375rem; margin: 0; padding: 0; list-style: none; }

/* ---------- Sub pages ---------- */
.is-sub { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.is-sub main { flex: 1 0 auto; display: grid; align-items: center; }
.page__inner { display: grid; gap: 2.5rem; align-items: center; padding-block: clamp(3rem, 1.5rem + 6vw, 7rem); }
.page__title { max-width: 15ch; line-height: 1.04; text-wrap: balance; }
.page__text .notice { max-width: 34rem; margin-top: 2rem; }
.page__art { order: -1; width: 7.5rem; }
@media (min-width: 48em) {
  .page__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); }
  .page__art { order: 0; justify-self: end; width: 100%; max-width: 26rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 2rem;
  background: var(--wine);
  color: var(--on-wine);
  isolation: isolate;
}
.site-footer :focus-visible { outline-color: var(--on-wine); }
.site-footer__mark {
  position: absolute;
  z-index: -1;
  right: clamp(-5rem, -3vw, -2rem);
  top: 50%;
  width: clamp(18rem, 32vw, 30rem);
  height: auto;
  opacity: 0.07;
  transform: translateY(-38%);
}
@media (max-width: 47.99em) {
  .site-footer__mark { top: auto; bottom: -2.5rem; right: -3.5rem; width: 13rem; opacity: 0.06; transform: none; }
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 3rem;
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-bottom: 1px solid rgba(246, 239, 230, 0.18);
}
.site-footer__brand { display: inline-flex; }
.site-footer__brand img { width: auto; height: clamp(2.75rem, 2.25rem + 1.2vw, 3.75rem); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 2.25rem; }
.site-footer__nav a {
  color: var(--on-wine);
  background: linear-gradient(currentColor, currentColor) no-repeat left 72% / 0 1px;
  transition: background-size 0.45s var(--ease);
}
.site-footer__nav a:hover { background-size: calc(100% - 0.2em) 1px; }
@media (max-width: 24.99em) {
  .site-footer__nav { column-gap: 1rem; }
  .site-footer__nav a { letter-spacing: 0.12em; }
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--on-wine-soft);
}
.site-footer__bottom p { text-wrap: balance; }
.site-footer__bottom p:last-child { font-size: 0.6875rem; letter-spacing: 0.26em; text-transform: uppercase; }

/* ---------- Reveal (main.js hides only below-the-fold content) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal { transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
  .js-reveal .reveal:not(.is-in) { opacity: 0; transform: translateY(1.25rem); }
  .js-reveal .area.reveal:nth-child(2) { transition-delay: 0.06s; }
  .js-reveal .area.reveal:nth-child(3) { transition-delay: 0.12s; }
  .js-reveal .area.reveal:nth-child(4) { transition-delay: 0.18s; }
  .js-reveal .area.reveal:nth-child(5) { transition-delay: 0.24s; }
}

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

/* Windows High Contrast: keep the drawn menu bars and give the consent box its native, visible tick */
@media (forced-colors: active) {
  .menu-toggle__bars,
  .menu-toggle__bars::before { background: CanvasText; }
  .check { -webkit-appearance: auto; appearance: auto; }
}

@media print {
  .site-header, .hero__art, .page__art, .contact__lines, .form, .site-footer__mark { display: none; }
  body { background: #fff; }
}
