/* ==========================================================================
   Αγιογραφίες Σιδηρόπουλος — redesign prototype
   The palette comes from the materials of Byzantine wall painting:
   limewash plaster, lamp-black, cinnabar (the rubricator's red),
   lapis and gold leaf.
   ========================================================================== */

:root {
  --plaster: #F4EFE6;
  --plaster-2: #ECE5D8;
  --plaster-hi: #FBF8F2;
  --ink: #1E1915;
  --ink-2: #4F463E;
  --ink-3: #6E6257;
  --line: #D9CEBC;
  --line-strong: #8F8273;
  --cinnabar: #A3311F;
  --cinnabar-deep: #842617;
  --cinnabar-light: #D26A52;
  --gold: #9C7A3C;
  --gold-soft: #D8BB80;
  --lapis: #14203A;
  --lapis-line: rgb(216 187 128 / 0.22);
  --on-dark: #F1EADC;
  --on-dark-2: #C9C0AE;

  --font-display: "Noto Serif Display", "Noto Serif", Georgia, serif;
  --font-body: "Commissioner", "Segoe UI", system-ui, sans-serif;

  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 1.06rem + 0.32vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.24rem + 0.6vw, 1.75rem);
  --step-3: clamp(2.125rem, 1.6rem + 2.2vw, 3.5rem);
  --step-4: clamp(2.625rem, 1.6rem + 3.4vw, 4.25rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Reset ------------------------------------------------------------------ */

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

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

body {
  min-height: 100vh;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--cinnabar); color: var(--plaster-hi); }
:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 3px; }
body.no-scroll { overflow: hidden; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--plaster-hi);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Type ------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 300; line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-size: var(--step-3); font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; }
h3 { font-size: var(--step-2); }
h1 em, h2 em { font-style: italic; color: var(--cinnabar); }
p { text-wrap: pretty; }

.lead { max-width: 34em; font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: var(--cinnabar);
}
.eyebrow::before { content: ""; flex: 0 0 32px; height: 1px; background: currentColor; }

.label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

.numeral {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  line-height: 1;
  color: var(--cinnabar);
}

/* Layout ------------------------------------------------------------------ */

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(80px, 11vw, 152px); }
.section--tinted { background: var(--plaster-2); }

.section-head { max-width: 46rem; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head .lead { margin-top: 24px; }
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  max-width: none;
}

/* Buttons & links --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.btn--primary { background: var(--cinnabar); color: var(--plaster-hi); }
.btn--primary:hover { background: var(--cinnabar-deep); }
.btn--ghost { border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--plaster-hi); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
}
.link-arrow span {
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
}
.link-arrow svg { flex: none; transition: transform 0.25s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(244 239 230 / 0.92);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: inline-flex; flex-direction: column; gap: 6px; line-height: 1; white-space: nowrap; text-decoration: none; }
.brand__name { font-family: var(--font-display); font-size: 1.625rem; letter-spacing: 0.005em; }
.brand__sub { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.28em; color: var(--ink-2); }
.rubric { color: var(--cinnabar); }

.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; gap: 32px; }
.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 10px;
  font-size: 0.9375rem;
  text-decoration: none;
}
.nav__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.pill-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.pill-call:hover { background: var(--ink); color: var(--plaster-hi); }

.header-actions { display: none; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
}
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
}
.menu-toggle__icon { position: relative; width: 16px; height: 10px; }
.menu-toggle__icon span {
  position: absolute;
  right: 0;
  left: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}
.menu-toggle__icon span:first-child { top: 0; }
.menu-toggle__icon span:last-child { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { top: 4.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  overflow-y: auto;
  padding: 16px var(--gutter) 32px;
  background: var(--plaster);
}
.mobile-menu ul { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.mobile-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.2;
  text-decoration: none;
}
.mobile-menu li a svg { color: var(--cinnabar); }
.mobile-menu__contact { display: grid; gap: 12px; }

/* Hero -------------------------------------------------------------------- */

.hero { padding-block: clamp(24px, 4.5vw, 72px) clamp(64px, 8vw, 120px); overflow: clip; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(48px, 6vw, 104px);
}
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 { max-width: 10.5em; }
.hero .lead { margin-top: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 40px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.hero__facts li { display: flex; align-items: center; }
.hero__facts li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-inline: 16px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero__text > * { animation: rise 0.9s var(--ease-out) both; }
.hero__text > :nth-child(2) { animation-delay: 0.08s; }
.hero__text > :nth-child(3) { animation-delay: 0.16s; }
.hero__text > :nth-child(4) { animation-delay: 0.24s; }
.hero__text > :nth-child(5) { animation-delay: 0.32s; }

.hero__figure { justify-self: end; width: min(100%, 470px); }
.hero__figure .arch { aspect-ratio: 4 / 5; }
.hero__figure .arch img { animation: settle 1.6s var(--ease-out) both; }
.hero__figure figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 18px;
  padding-inline: 14px;
}
.hero__figure figcaption strong { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 400; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes settle {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: none; }
}

/* The arch: an apse-shaped frame, optionally set in a gilded niche */
.niche { position: relative; padding: 14px; }
.niche::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  border-radius: 999px 999px 3px 3px;
  pointer-events: none;
}
.arch { overflow: hidden; border-radius: 999px 999px 2px 2px; background: var(--plaster-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* Credentials ribbon ------------------------------------------------------ */

.ribbon { border-block: 1px solid var(--line); }
.ribbon__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 40px;
  padding-block: 22px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.ribbon__list li { display: flex; align-items: center; gap: 14px; }
.ribbon__list li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* Services ---------------------------------------------------------------- */

.service {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  column-gap: clamp(16px, 2vw, 32px);
}
.service + .service { margin-top: clamp(88px, 12vw, 160px); }
.service__media { grid-column: 1 / span 7; }
.service__body { grid-column: 9 / span 4; }
.service--reverse .service__media { grid-row: 1; grid-column: 6 / span 7; }
.service--reverse .service__body { grid-row: 1; grid-column: 1 / span 4; }

.service__photo { aspect-ratio: 5 / 4; overflow: hidden; background: var(--plaster-2); }
.service__photo img { width: 100%; height: 100%; object-fit: cover; }
.service .numeral { margin-bottom: 18px; font-size: 2.75rem; }
.service h3 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); font-weight: 300; line-height: 1.1; }
.service__body p { margin-top: 20px; color: var(--ink-2); }
.service__links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 24px; }

.spec { margin-top: 32px; border-top: 1px solid var(--line); }
.spec > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.spec dt { color: var(--ink-3); }

.triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(10px, 1.6vw, 22px);
}
.triptych .arch { aspect-ratio: 3 / 4.3; }
.triptych figure:nth-child(2) .arch { aspect-ratio: 3 / 4.9; }
.triptych figcaption {
  margin-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
  color: var(--ink-2);
}

/* Technique --------------------------------------------------------------- */

.technique__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(48px, 6vw, 104px);
}
.technique__intro { position: sticky; top: calc(var(--header-h) + 48px); }
.technique__intro .eyebrow { margin-bottom: 22px; }
.technique__intro .lead { margin-top: 24px; }

.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.step:nth-child(2) { margin-top: clamp(40px, 8vw, 112px); }
.step__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--plaster); }
.step__photo img { width: 100%; height: 100%; object-fit: cover; }
.step__head { display: flex; align-items: baseline; gap: 14px; margin-top: 22px; }
.step .numeral { font-size: 1.5rem; }
.step h3 { font-size: 1.5rem; }
.step p { margin-top: 8px; font-size: 0.9375rem; color: var(--ink-2); }

.benefits { margin-top: clamp(72px, 9vw, 128px); }
.benefits__title { margin-bottom: 32px; font-size: var(--step-2); }
.benefits__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.benefit { padding-top: 22px; border-top: 1px solid var(--ink); }
.benefit .numeral { font-size: 1.375rem; }
.benefit h4 { margin-top: 12px; font-size: 1.375rem; }
.benefit p { margin-top: 10px; font-size: 0.9375rem; color: var(--ink-2); }

/* Works ------------------------------------------------------------------- */

.frame-link { display: block; overflow: hidden; background: var(--plaster-2); cursor: zoom-in; }
.frame-link img { width: 100%; transition: transform 0.8s var(--ease-out); }
.frame-link:hover img { transform: scale(1.035); }

.caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  margin-top: 12px;
}
.caption__title { font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.3; }

/* Justified rows: each item grows by its aspect ratio, so a row shares one height */
.justified { display: flex; flex-direction: column; gap: clamp(28px, 3vw, 40px); }
.justified__row { display: flex; align-items: flex-start; gap: clamp(12px, 1.4vw, 20px); }
.work { flex: var(--ar) 1 0%; min-width: 0; }
.work .frame-link img { aspect-ratio: var(--ar); object-fit: cover; }

/* About ------------------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 6vw, 104px);
}
.about__aside { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
.about__aside .eyebrow { margin-bottom: 22px; }
.year-mark {
  margin-top: clamp(32px, 4vw, 56px);
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 3rem + 9vw, 11rem);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--gold);
}
.year-mark__caption { margin-top: 16px; font-size: 0.9375rem; color: var(--ink-2); }

.about__lead { max-width: 36em; font-size: var(--step-1); line-height: 1.65; }
.dropcap::first-letter {
  float: left;
  margin: 0.06em 0.12em 0 0;
  font-family: var(--font-display);
  font-size: 3.6em;
  line-height: 0.82;
  color: var(--cinnabar);
}

.people { display: grid; gap: clamp(40px, 5vw, 56px); margin-top: clamp(48px, 6vw, 72px); }
.person {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.person .numeral { font-size: 1.75rem; }
.person__meta .label { display: block; margin-top: 10px; }
.person h3 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); font-weight: 300; }
.person__role { margin-top: 8px; }
.person p { margin-top: 14px; color: var(--ink-2); }

.about__statement {
  margin-top: clamp(56px, 7vw, 88px);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
  text-wrap: balance;
}

/* Places (lapis band) ----------------------------------------------------- */

.places {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--lapis);
  color: var(--on-dark);
}
.places .eyebrow { color: var(--gold-soft); }
.places .lead { color: var(--on-dark-2); }
.places :focus-visible { outline-color: var(--gold-soft); }
.dome {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -14%;
  width: min(80vw, 860px);
  aspect-ratio: 1;
  color: var(--gold-soft);
  opacity: 0.16;
  transform: translateY(-50%);
}

.places__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
.places ul { padding: 0; list-style: none; }
.place-group h3,
.places__extra h3 {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--lapis-line);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  color: var(--gold-soft);
}
.place-group li,
.places__extra li { padding-block: 16px; border-bottom: 1px solid var(--lapis-line); }
.place-group strong,
.places__extra strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.25;
}
.place-group li span,
.places__extra li span { display: block; margin-top: 4px; font-size: 0.875rem; color: var(--on-dark-2); }

.places__extra {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 16px clamp(32px, 4vw, 64px);
  margin-top: clamp(56px, 7vw, 88px);
}
.places__extra h3 { border-bottom: 0; padding-top: 16px; }
.places__extra ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 4vw, 64px); }

/* Contact ----------------------------------------------------------------- */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: clamp(48px, 7vw, 120px);
}
.contact__info .eyebrow { margin-bottom: 22px; }
.contact__info .lead { margin-top: 24px; }

.contact-list { margin-top: 40px; border-top: 1px solid var(--line); }
.contact-list > div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.contact-list dd {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.contact-list dd a {
  display: inline-block;
  margin-block: -9px;
  padding-block: 9px;
  text-decoration: none;
  background: linear-gradient(var(--cinnabar), var(--cinnabar)) left 100% / 0 1px no-repeat;
  transition: background-size 0.3s var(--ease-out);
}
.contact-list dd a:hover { background-size: 100% 1px; }
.contact-list .is-small { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); }
.contact-list small { display: block; margin-top: 6px; font-family: var(--font-body); font-size: 0.875rem; color: var(--ink-2); }

.form { padding: clamp(24px, 4vw, 48px); background: var(--plaster-hi); border: 1px solid var(--line); }
.form__title { margin-bottom: 28px; font-size: var(--step-2); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.field label,
.field legend { font-size: 0.875rem; font-weight: 500; line-height: 1.4; }
.field legend { margin-bottom: 10px; padding: 0; }
.field__opt { font-weight: 400; color: var(--ink-3); }
.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--plaster);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.field textarea { min-height: 140px; line-height: 1.6; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(163 49 31 / 0.2); }
.field [aria-invalid="true"] { border-color: var(--cinnabar); }
.field__error { font-size: 0.8125rem; line-height: 1.4; color: var(--cinnabar); }
.field__error:empty { display: none; }
.field ::placeholder { color: var(--ink-3); opacity: 1; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--plaster-hi); }
.choice input:focus-visible + span { outline: 2px solid var(--cinnabar); outline-offset: 3px; }

.form__status { margin-top: 16px; font-size: 0.9375rem; line-height: 1.5; }
.form__status:empty { display: none; }
.form__status.is-success { padding: 14px 16px; background: var(--plaster-2); border-radius: 2px; }

/* Gallery page ------------------------------------------------------------ */

.page-head { padding-block: clamp(40px, 7vw, 96px) clamp(36px, 4vw, 56px); }
.page-head .eyebrow { margin-bottom: 22px; }
.page-head h1 { font-size: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }
.page-head .lead { margin-top: 24px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--plaster-hi); }
.filter__count { font-size: 0.75rem; font-variant-numeric: tabular-nums; opacity: 0.8; }

.gallery { columns: 3 300px; column-gap: clamp(14px, 2vw, 24px); padding-bottom: clamp(80px, 10vw, 128px); }
.g-item { margin-bottom: clamp(24px, 3vw, 36px); break-inside: avoid; }

.cta-band { padding-block: clamp(72px, 9vw, 120px); background: var(--plaster-2); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cta-band h2 { max-width: 15em; }
.cta-band p { margin-top: 16px; color: var(--ink-2); }

/* Footer ------------------------------------------------------------------ */

.site-footer { padding-block: clamp(64px, 8vw, 104px) 32px; background: var(--ink); color: var(--on-dark); }
.site-footer .brand__sub { color: var(--on-dark-2); }
.site-footer .rubric { color: var(--cinnabar-light); }
.site-footer :focus-visible { outline-color: var(--gold-soft); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr)); gap: 48px; }
.footer__about { max-width: 30em; margin-top: 20px; font-size: 0.9375rem; color: var(--on-dark-2); }
.footer__title { margin-bottom: 18px; color: var(--gold-soft); }
.footer__list li { display: flex; align-items: center; min-height: 44px; }
.footer__list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__list a:hover { text-decoration: underline; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 24px;
  border-top: 1px solid rgb(241 234 220 / 0.14);
  font-size: 0.8125rem;
  color: var(--on-dark-2);
}

/* Lightbox ---------------------------------------------------------------- */

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #120F0C;
  color: var(--on-dark);
  overscroll-behavior: contain;
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: rgb(18 15 12 / 0.6); }
.lightbox :focus-visible { outline-color: var(--gold-soft); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px clamp(12px, 3vw, 28px); }
.lightbox__count { font-size: 0.8125rem; font-variant-numeric: tabular-nums; letter-spacing: 0.12em; color: var(--on-dark-2); }
/* A single definite cell, so the image's max-height can resolve against it */
.lightbox__stage {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  padding: 0 clamp(12px, 8vw, 104px);
  touch-action: pan-y;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
  transition: opacity 0.25s var(--ease-out);
}
.lightbox__img.is-loading { opacity: 0.25; }
.lightbox__nav,
.lightbox__close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(241 234 220 / 0.3);
  border-radius: 999px;
  background: rgb(18 15 12 / 0.45);
  color: inherit;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.lightbox__nav:hover,
.lightbox__close:hover { background: rgb(241 234 220 / 0.12); border-color: rgb(241 234 220 / 0.6); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: clamp(8px, 2vw, 28px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 28px); }
.lightbox__caption { padding: 16px clamp(16px, 4vw, 40px) 28px; text-align: center; }
.lightbox__title { font-family: var(--font-display); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem); line-height: 1.3; }
.lightbox__kind { margin-top: 6px; color: var(--gold-soft); }

/* Scroll reveal ----------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1023px) {
  .nav { display: none; }
  .header-actions { display: flex; }
}

@media (max-width: 899px) {
  /* Hero: headline, then the image, then the rest — so the art shows in the first screen */
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero__text { display: contents; }
  .hero .eyebrow { order: 1; }
  .hero h1 { order: 2; }
  .hero__figure { order: 3; align-self: center; width: min(84%, 400px); margin-top: 40px; }
  .hero .lead { order: 4; margin-top: 40px; }
  .hero__actions { order: 5; }
  .hero__facts { order: 6; }

  .service,
  .service--reverse { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .service__media,
  .service__body,
  .service--reverse .service__media,
  .service--reverse .service__body { grid-row: auto; grid-column: 1; }

  .technique__grid,
  .about__grid,
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .technique__intro,
  .about__aside { position: static; }
  .benefits__list,
  .places__grid,
  .places__extra,
  .places__extra ul { grid-template-columns: minmax(0, 1fr); }
  .places__extra h3 { padding-top: 0; }
  .year-mark { font-size: clamp(4.5rem, 2rem + 14vw, 7rem); }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 719px) {
  .justified { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .justified__row { display: contents; }
  .work .frame-link img { aspect-ratio: 4 / 5; }
  .work--wide { grid-column: 1 / -1; }
  .work--wide .frame-link img { aspect-ratio: var(--ar); }
  .caption .label { display: none; }
}

@media (max-width: 599px) {
  :root { --header-h: 64px; }
  .brand__name { font-size: 1.375rem; }
  .brand__sub { font-size: 0.5625rem; letter-spacing: 0.24em; }
  .eyebrow::before { flex-basis: 20px; }
  .hero__facts { flex-direction: column; gap: 6px; }
  .hero__facts li::before,
  .hero__facts li + li::before {
    content: "";
    width: 5px;
    height: 5px;
    margin: 0 14px 0 0;
    background: var(--gold);
    transform: rotate(45deg);
  }
  .ribbon__list { flex-direction: column; gap: 10px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .step:nth-child(2) { margin-top: 0; }
  .person { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .person__meta { display: flex; align-items: baseline; gap: 14px; }
  .person__meta .label { margin-top: 0; }
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .gallery { columns: 2; column-gap: 12px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

@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;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
