/* BlockSizedX — shared stylesheet */

:root {
  --green: #146321;
  --green-dark: #0d4819;
  --green-light: #eaf4e9;
  --green-pale: #f4f8f2;
  --white: #ffffff;
  --text: #172019;
  --text-2: #6b756c;
  --border: #e4eae2;
  --border-strong: #cddac9;
  --error: #b3261e;

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

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(23, 32, 25, 0.05);
  --shadow: 0 18px 40px -18px rgba(13, 72, 25, 0.25);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 72px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

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

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.display em { font-style: italic; color: var(--green); }

.h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-2); max-width: 38rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; }
a.eyebrow:hover { color: var(--green-dark); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(13, 72, 25, 0.6); }
.btn--ghost { background: var(--white); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.875rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.text-btn {
  padding: 0.4rem 0;
  background: none;
  border: 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-btn:hover { color: var(--green-dark); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--nav-h);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.nav { display: flex; align-items: center; gap: 1.5rem; height: var(--nav-h); }
.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand span { color: var(--green); }

.nav-links { display: flex; gap: 0.25rem; margin-inline: auto; }
.nav-link {
  position: relative;
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link[aria-current="page"] { color: var(--green); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  border-radius: 50%;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu { padding: 0.25rem var(--gutter) 1.25rem; background: var(--white); border-top: 1px solid var(--border); }
.mobile-menu .nav-link { display: block; padding: 0.9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
.mobile-menu .nav-link::after { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
}

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

.site-footer { margin-top: auto; padding: 4rem 0 2rem; background: var(--green-pale); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer-brand p { margin-top: 0.75rem; max-width: 22rem; color: var(--text-2); font-size: 0.95rem; }
.footer-col h2 { margin-bottom: 0.9rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.footer-col li + li { margin-top: 0.5rem; }
.footer-col a { font-size: 0.95rem; text-decoration: none; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--text-2); font-size: 0.85rem; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--green); }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

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

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--green-pale); border-block: 1px solid var(--border); }
.section--flush-top { padding-top: 1rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }

.page-head { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head .h1 { margin-top: 1rem; }
.page-head .lead { margin-top: 1.25rem; }

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

.hero { padding: clamp(1.5rem, 3.5vw, 3rem) 0 clamp(2rem, 4vw, 3.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__copy .h1 { margin-top: 1.5rem; }
.hero__copy .lead { margin-top: 1.5rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero__stage { position: relative; padding: 1.25rem 1.25rem clamp(5rem, 11vw, 6.5rem); background: var(--green-light); border-radius: 22px; }
.frame { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.frame__bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.9rem; border-bottom: 1px solid var(--border); background: var(--green-pale); font-size: 0.75rem; color: var(--text-2); }
.frame__bar::before { content: ""; width: 34px; height: 8px; border-radius: 4px; background: var(--border-strong); }
.frame img { width: 100%; height: auto; }
.frame--main { width: 78%; margin-left: auto; }
.frame--back { position: absolute; left: 1.25rem; bottom: 1.25rem; width: 50%; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { max-width: 34rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero__copy > *, .js .hero__stage .frame { animation: rise 0.9s var(--ease) both; }
  .js .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
  .js .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
  .js .hero__copy > :nth-child(4) { animation-delay: 0.24s; }
  .js .hero__copy > :nth-child(5) { animation-delay: 0.32s; }
  .js .hero__stage .frame--main { animation-delay: 0.15s; }
  .js .hero__stage .frame--back { animation-delay: 0.35s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

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

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

/* ---------- Works rail + cards ---------- */

.rail-wrap { position: relative; }
.rail {
  display: flex;
  gap: 20px;
  padding: 4px 0 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }

.work-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  scroll-snap-align: start;
}
.work-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--green-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.work-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.7s var(--ease); }
.work-card:hover .work-card__media { border-color: var(--border-strong); box-shadow: var(--shadow); }
.work-card:hover .work-card__media img { transform: scale(1.03); }
.work-card__body { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.9rem 0.15rem 0; }
.work-card__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; line-height: 1.3; }
.work-card__meta { flex: none; font-size: 0.85rem; color: var(--text-2); }
.media-fallback { display: grid; place-items: center; width: 100%; height: 100%; padding: 1rem; font-family: var(--font-display); font-size: 1.1rem; text-align: center; color: var(--green); }

@media (max-width: 900px) { .work-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .work-card { flex-basis: 74%; } .rail { gap: 14px; } }

.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.25rem; }
@media (max-width: 900px) { .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; } }
@media (max-width: 600px) {
  .works-grid { gap: 1.25rem 0.75rem; }
  .works-grid .work-card__body { flex-direction: column; gap: 0; padding-top: 0.6rem; }
  .works-grid .work-card__title { font-size: 0.98rem; }
}

.rail-more { display: none; }
@media (max-width: 600px) {
  .rail-more { flex: 0 0 46%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; align-self: flex-start; aspect-ratio: 16 / 10; padding: 1rem; text-align: center; font-weight: 600; color: var(--green); text-decoration: none; background: var(--white); border: 1px dashed var(--border-strong); border-radius: var(--radius); scroll-snap-align: end; }
  .rail-more:hover { border-color: var(--green); background: var(--green-light); }
}

@supports (animation-timeline: view(inline)) {
  @media (prefers-reduced-motion: no-preference) {
    .rail .work-card__media { animation: rail-edge linear both; animation-timeline: view(inline); }
  }
}
@keyframes rail-edge {
  0% { opacity: 0.4; transform: scale(0.95); }
  25%, 75% { opacity: 1; transform: none; }
  100% { opacity: 0.4; transform: scale(0.95); }
}

.rail-controls { display: flex; align-items: center; gap: 1.5rem; margin-top: 0.5rem; }
.rail-progress { flex: 1; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.rail-progress span { display: block; height: 100%; width: 30%; background: var(--green); transition: width 0.2s linear; }
.rail-buttons { display: flex; gap: 0.5rem; }
.rail-btn { width: 44px; height: 44px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--border-strong); border-radius: 50%; transition: border-color 0.2s, color 0.2s, opacity 0.2s; }
.rail-btn:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.rail-btn:disabled { opacity: 0.35; cursor: default; }
.rail-wrap.is-static .rail-controls { display: none; }
@media (max-width: 600px) { .rail-buttons { display: none; } }

/* ---------- Modal ---------- */

dialog.modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 20px;
  background: transparent;
  border: 0;
  color: var(--text);
}
dialog.modal[open] { display: grid; place-items: center; }
dialog.modal::backdrop { background: rgba(13, 28, 16, 0.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal__panel { position: relative; width: min(900px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--white); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45); }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; padding: 0 0 4px; font-size: 1.9rem; line-height: 1; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--border-strong); border-radius: 50%; box-shadow: var(--shadow-sm); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.modal__close:hover { background: var(--green); color: #fff; border-color: var(--green); }
.modal__media { aspect-ratio: 16 / 10; max-height: 56dvh; width: 100%; background: var(--green-pale); border-bottom: 1px solid var(--border); overflow: hidden; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.modal__body { padding: clamp(1.25rem, 3vw, 2rem); }
.modal__title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.modal__desc { margin-top: 0.75rem; max-width: 42rem; color: var(--text-2); }
.modal__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.modal__tags li { padding: 0.25rem 0.8rem; font-size: 0.82rem; font-weight: 500; color: var(--green-dark); background: var(--green-light); border-radius: 999px; }
.modal__actions { margin-top: 1.75rem; }

@media (prefers-reduced-motion: no-preference) {
  dialog.modal[open] .modal__panel { animation: modal-in 0.35s var(--ease); }
  dialog.modal[open]::backdrop { animation: fade-in 0.35s var(--ease); }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- CTA band ---------- */

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: clamp(2rem, 5vw, 3.5rem); background: var(--green); color: #fff; border-radius: 22px; }
.cta-band .h2 { max-width: 30rem; }
.cta-band .h2 em { color: var(--green-light); }
.cta-band .btn--primary { background: #fff; color: var(--green-dark); }
.cta-band .btn--primary:hover { background: var(--green-light); box-shadow: none; }

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

.about-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding: clamp(1.5rem, 4vw, 3rem); background: var(--white); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-sm); }
.about-card__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--green-light); }
.about-card__name { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.about-card__role { margin-top: 0.35rem; color: var(--green); font-weight: 600; }
.about-card__text { margin-top: 1.5rem; display: grid; gap: 1rem; max-width: 40rem; color: var(--text-2); }
.about-facts { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: grid; gap: 0.9rem; }
.about-facts div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; font-size: 0.95rem; }
.about-facts dt { color: var(--text-2); }
.about-facts dd { font-weight: 500; }
.about-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
@media (max-width: 720px) {
  .about-card { grid-template-columns: 1fr; }
  .about-card__photo { max-width: 200px; }
  .about-facts div { grid-template-columns: 1fr; gap: 0.1rem; }
}

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

.contact-main { display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3rem) 0; }
.contact-card { width: min(30rem, 100%); padding: clamp(1.5rem, 4vw, 2rem); background: var(--white); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
.contact-card h1 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); }
.contact-card > p { margin-top: 0.5rem; color: var(--text-2); font-size: 0.95rem; }
.contact-list { margin-top: 1.25rem; border-top: 1px solid var(--border); }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--border); text-decoration: none; transition: padding 0.3s var(--ease), color 0.2s; }
.contact-row:hover { padding-inline: 0.75rem; color: var(--green); }
.contact-row__label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.contact-row__value { display: block; font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }
.contact-row .arrow { flex: none; transition: transform 0.3s var(--ease); }
.contact-row:hover .arrow { transform: translate(3px, -3px); }
.contact-note { margin-top: 1.1rem; font-size: 0.88rem; color: var(--text-2); }
.contact-note a { color: var(--green); font-weight: 600; }

/* ---------- Get a website ---------- */

.start-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.start-cta { margin-top: 2rem; }
.start-cta small { display: block; margin-top: 0.9rem; color: var(--text-2); }
.how { padding: clamp(1.25rem, 3vw, 2rem); background: var(--green-pale); border: 1px solid var(--border); border-radius: var(--radius); counter-reset: how; }
.how h2 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.how li { display: flex; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--border); counter-increment: how; }
.how li:last-child { border-bottom: 0; padding-bottom: 0; }
.how li::before { content: counter(how); flex: none; font-family: var(--font-display); font-size: 1.4rem; color: var(--green); }
@media (max-width: 860px) { .start-grid { grid-template-columns: 1fr; } }

.flow { scroll-margin-top: calc(var(--nav-h) + 8px); padding: clamp(2rem, 4vw, 3rem) 0; }
.stepper { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-bottom: 1.5rem; counter-reset: step; }
.stepper li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 500; color: var(--text-2); counter-increment: step; }
.stepper li::before { content: counter(step); display: grid; place-items: center; width: 1.7rem; height: 1.7rem; font-size: 0.8rem; font-weight: 600; background: var(--white); border: 1px solid var(--border-strong); border-radius: 50%; }
.stepper li[aria-current="step"] { color: var(--text); }
.stepper li[aria-current="step"]::before { background: var(--green); border-color: var(--green); color: #fff; }
.stepper li.is-done::before { content: "✓"; background: var(--green-light); border-color: var(--green-light); color: var(--green); }

.step-title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.step-title:focus { outline: none; }
.step-sub { margin-top: 0.6rem; color: var(--text-2); max-width: 36rem; }
.step-nav { margin: 1.75rem 0 0; }

.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; max-width: 46rem; }
.path-card { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.1rem; text-align: left; background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius); transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.path-card:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-2px); }
.path-card__label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.path-card__title { display: block; margin-top: 0.2rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
.path-card__text { display: block; margin-top: 0.25rem; color: var(--text-2); font-size: 0.88rem; }
.path-card--custom { background: var(--green-pale); }
.preview { display: grid; gap: 0.3rem; margin-top: auto; padding: 0.6rem; background: var(--green-pale); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.78rem; }
.path-card--custom .preview { background: var(--white); }
.preview__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.25rem 0.6rem; background: var(--white); border: 1px solid var(--border); border-radius: 6px; }
.preview__row span:last-child { color: var(--text-2); }
.preview__field { display: grid; gap: 0.15rem; }
.preview__field span { display: block; font-size: 0.7rem; color: var(--text-2); }
.preview__field i { display: block; height: 1.05rem; background: var(--green-pale); border: 1px solid var(--border); border-radius: 5px; }
.preview__field i.tall { height: 1.9rem; }
.path-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.path-card__radio { flex: none; width: 1.35rem; height: 1.35rem; margin-top: 0.1rem; border: 2px solid var(--border-strong); border-radius: 50%; background: var(--white); transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; }
.path-card.is-selected { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.path-card.is-selected .path-card__radio { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px var(--white); }
@media (max-width: 720px) { .path-grid { grid-template-columns: 1fr; } }

.pack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.pack { display: flex; flex-direction: column; padding: 1.4rem; background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius); transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.pack:hover { border-color: var(--green); box-shadow: var(--shadow); }
.pack.is-selected { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.pack__name { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.pack__budget { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.pack__text { margin-top: 0.75rem; color: var(--text-2); font-size: 0.93rem; }
.pack__suits { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-2); }
.pack__suits strong { display: block; margin-bottom: 0.15rem; color: var(--text); font-weight: 600; }
.pack .btn { margin-top: auto; }
.pack__suits + .btn { margin-top: 1.5rem; }
.pack-note { margin-top: 1.25rem; font-size: 0.9rem; color: var(--text-2); }
@media (max-width: 1040px) { .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pack-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.25rem; max-width: 40rem; margin-top: 2rem; }
.field { display: grid; gap: 0.4rem; }
.field label, .field .label { font-size: 0.9rem; font-weight: 600; }
.field label span { color: var(--green); }
.field input, .field select, .field textarea { width: 100%; padding: 0.8rem 1rem; background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); transition: border-color 0.2s, box-shadow 0.2s; }
.field select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23146321' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(20, 99, 33, 0.14); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.14); }
.field__error { font-size: 0.85rem; color: var(--error); }
.field__hint { font-size: 0.85rem; color: var(--text-2); }
.hints { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; font-size: 0.85rem; color: var(--text-2); }
.hints li { display: flex; gap: 0.4rem; align-items: center; }
.hints li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.selected-pack { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 1rem; background: var(--green-light); border-radius: var(--radius-sm); font-size: 0.95rem; }
.selected-pack strong { font-weight: 600; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.form__fine { font-size: 0.85rem; color: var(--text-2); }

.result { max-width: 40rem; }
.message-preview { margin-top: 1.5rem; padding: 1.25rem; font: 0.92rem/1.6 var(--font-body); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.result__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1.5rem; }
.status { margin-top: 1rem; font-size: 0.9rem; color: var(--green-dark); min-height: 1.4em; }

/* ---------- Legal + 404 ---------- */

.legal { max-width: 46rem; padding-bottom: 5rem; }
.legal h2 { margin: 2.5rem 0 0.75rem; font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }
.legal p, .legal li { color: var(--text-2); margin-bottom: 0.75rem; }
.legal ul { padding-left: 1.25rem; list-style: disc; }
.legal a { color: var(--green); }
.legal-date { margin-top: 0.75rem; color: var(--text-2); font-size: 0.9rem; }

.not-found { display: grid; place-items: center; min-height: 100vh; padding: 2rem var(--gutter); background-color: var(--green-pale); background-image: radial-gradient(var(--border-strong) 1px, transparent 1px); background-size: 22px 22px; }
.not-found__card { width: min(34rem, 100%); background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); text-align: center; }
.not-found__body { padding: clamp(1.75rem, 5vw, 2.75rem); }
.not-found__code { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(5rem, 22vw, 9rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--green); }
.not-found__body h1 { margin-top: 1rem; }
.not-found__body p { margin-top: 0.75rem; color: var(--text-2); }
.not-found__body p a { color: var(--green); }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.75rem; }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: 0.9rem; }
.not-found__links a { color: var(--text-2); text-decoration: none; }
.not-found__links a:hover { color: var(--green); }

/* ---------- Consent notice ---------- */

.consent { position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; max-width: 34rem; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 0.85rem; color: var(--text-2); }
.consent a { color: var(--green); }
@media (max-width: 600px) { .consent { right: var(--gutter); } }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
