/* ==========================================================
   Perspektyvus ūkis — design tokens
   Style: Organic biophilic + modern agri-tech (ref: Agrikaze / LandCo)
   ========================================================== */
:root {
  /* Color primitives */
  --green-950: #0e2116;
  --green-900: #14301f;
  --green-800: #1b4029;
  --green-700: #22543a;
  --green-600: #2d6a46;
  --green-100: #e3eee4;
  --lime: #c6f05a;
  --lime-600: #b2dd40;
  --cream: #f6f7f2;
  --white: #ffffff;
  --ink: #18221b;
  --ink-2: #4c5850;

  /* Semantic */
  --color-bg: var(--cream);
  --color-surface: var(--white);
  --color-muted: #eceee6;
  --color-text: var(--ink);
  --color-text-muted: var(--ink-2);
  --color-primary: var(--green-800);
  --color-on-primary: var(--white);
  --color-accent: var(--lime);
  --color-on-accent: var(--green-950);
  --color-border: #dde2d6;
  --color-error: #b42318;
  --color-ring: var(--green-600);

  /* Type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  --fs-3xl: clamp(2.375rem, 1.4rem + 4.2vw, 4.5rem);

  /* Space (spacious scale) */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);

  /* Shape & elevation */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(20 48 31 / .06), 0 2px 8px rgb(20 48 31 / .05);
  --shadow-md: 0 8px 28px rgb(20 48 31 / .10);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 160ms;
  --dur-med: 280ms;

  /* Z-index */
  --z-header: 50;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(100% - 2rem, 1200px); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(100% - 4rem, 1200px); } }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--lime); color: var(--green-950); padding: .75rem 1rem; border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Placeholder marker for content still to be confirmed */
.todo { background: #fff4c2; color: #5c4400; padding: 0 .3em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .625rem 1.25rem;
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  font: 600 var(--fs-sm)/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn .icon { transition: transform var(--dur-med) var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn-lg { min-height: 52px; padding: .875rem 1.625rem; font-size: var(--fs-base); }
.btn-block { width: 100%; }
.btn-lime { background: var(--lime); color: var(--color-on-accent); }
.btn-lime:hover { background: var(--lime-600); }
.btn-green { background: var(--color-primary); color: var(--color-on-primary); }
.btn-green:hover { background: var(--green-700); }
.btn-outline-light { border-color: rgb(255 255 255 / .55); color: var(--white); }
.btn-outline-light:hover { background: rgb(255 255 255 / .12); border-color: var(--white); }
.btn-glass { background: rgb(255 255 255 / .14); color: var(--white); border-color: rgb(255 255 255 / .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgb(255 255 255 / .24); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--lime); }
.lead { font-size: var(--fs-lg); color: var(--color-text-muted); }

/* ---------- Image placeholders ---------- */
.ph {
  position: relative; overflow: hidden;
  background-color: var(--green-100);
  background-image:
    var(--img, none),
    repeating-linear-gradient(135deg, rgb(34 84 58 / .06) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, #dfeadf, #c9dccb);
  background-size: cover, auto, cover;
  background-position: center;
}
.ph::after {
  content: attr(data-label);
  position: absolute; inset: auto .75rem .75rem .75rem;
  font: 500 .75rem/1.35 var(--font); color: var(--green-800);
  background: rgb(255 255 255 / .82); padding: .375rem .625rem; border-radius: 8px;
  width: fit-content; max-width: calc(100% - 1.5rem);
}
.ph.is-loaded::after, .ph[data-label=""]::after { display: none; }
.ph-rounded { border-radius: var(--r-lg); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  padding-block: 1rem;
  transition: background-color var(--dur-med) var(--ease-out), padding var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled { background: rgb(20 48 31 / .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-block: .625rem; box-shadow: 0 4px 20px rgb(0 0 0 / .12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; color: var(--white); font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; min-height: 44px; }
.brand-mark { width: 34px; height: 34px; color: rgb(255 255 255 / .16); }

.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid rgb(255 255 255 / .3); background: rgb(255 255 255 / .1); color: var(--white); cursor: pointer;
}
.nav-list {
  position: absolute; inset: calc(100% + .5rem) 1rem auto 1rem;
  display: grid; gap: .25rem; padding: .75rem;
  background: var(--green-900); border-radius: var(--r-md); box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), visibility var(--dur-med);
}
.nav-list.is-open { opacity: 1; transform: none; visibility: visible; }
.nav-list a:not(.btn) { display: block; padding: .75rem 1rem; border-radius: 10px; color: rgb(255 255 255 / .88); text-decoration: none; font-weight: 500; }
.nav-list a:not(.btn):hover { background: rgb(255 255 255 / .08); color: var(--white); }
.nav-cta-mobile { padding-top: .5rem; }
.nav-cta-mobile .btn { width: 100%; }
.header-cta { display: none; }

@media (min-width: 1024px) {
  .nav-toggle, .nav-cta-mobile { display: none; }
  .nav-list {
    position: static; display: flex; gap: .25rem; padding: 0; background: none; box-shadow: none;
    opacity: 1; transform: none; visibility: visible;
  }
  .nav-list a:not(.btn) { padding: .5rem .875rem; font-size: var(--fs-sm); }
  .header-cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100dvh, 920px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--green-900); }
.hero-media { position: absolute; inset: 0; background-color: var(--green-800); background-image: var(--img, none), radial-gradient(120% 80% at 70% 20%, #3f7d52 0%, #1b4029 55%, #0e2116 100%); background-position: 50% 40%; }
.hero-media::after { inset: auto auto 1rem 1rem; top: 6rem; bottom: auto; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(14 33 22 / .6) 0%, rgb(14 33 22 / .4) 35%, rgb(14 33 22 / .82) 100%); }
@media (min-width: 1024px) { .hero-scrim { background: linear-gradient(90deg, rgb(14 33 22 / .78) 0%, rgb(14 33 22 / .35) 55%, rgb(14 33 22 / .1) 100%), linear-gradient(180deg, rgb(14 33 22 / .5) 0%, transparent 25%, transparent 70%, rgb(14 33 22 / .55) 100%); } }
.hero-inner { position: relative; display: grid; gap: var(--space-6); padding-block: 8rem 3.5rem; }
.hero-copy { max-width: 680px; }
.hero h1 { font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
.hero-lead { margin-top: var(--space-5); font-size: var(--fs-lg); color: rgb(255 255 255 / .86); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-6); }

.hero-card {
  width: min(100%, 300px); padding: .75rem .75rem 1rem;
  background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .25); border-radius: var(--r-lg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hero-card-media { height: 130px; border-radius: var(--r-md); }
.hero-card-media::after { font-size: .6875rem; inset: auto .5rem .5rem .5rem; }
.hero-card-title { margin-top: .875rem; font-weight: 600; font-size: var(--fs-lg); padding-inline: .25rem; }
.hero-card-text { font-size: var(--fs-sm); color: rgb(255 255 255 / .82); padding-inline: .25rem; }
.unit-chips { display: flex; gap: .5rem; margin-top: .75rem; padding-inline: .25rem; }
.unit-chips li { flex: 1; text-align: center; padding: .5rem 0; border-radius: var(--r-pill); background: var(--lime); color: var(--green-950); font-weight: 700; font-size: var(--fs-sm); }

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr auto; align-items: end; padding-bottom: 5rem; }
}

/* ---------- Value strip ---------- */
.strip { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.strip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; padding-block: 1.75rem; }
.strip-item { display: flex; align-items: center; gap: .75rem; font-weight: 600; font-size: var(--fs-sm); color: var(--green-900); }
.strip-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--green-100); color: var(--green-700); flex: none; }
@media (min-width: 900px) { .strip-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section-muted { background: var(--color-muted); }
.section-head { margin-bottom: var(--space-7); }
.section-head.center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.split { display: grid; gap: var(--space-5); align-items: end; }
.section-sub { color: var(--color-text-muted); font-size: var(--fs-lg); max-width: 520px; margin-top: var(--space-4); }
.section-head.split .section-sub { margin-top: 0; }
.section-sub.light { color: rgb(255 255 255 / .82); }
@media (min-width: 900px) { .section-head.split { grid-template-columns: 1.1fr 1fr; } }

/* ---------- About ---------- */
.about-grid { display: grid; gap: var(--space-7); align-items: center; }
.about-media { position: relative; padding-bottom: 2.5rem; }
.about-photo { aspect-ratio: 4 / 5; max-height: 640px; width: 100%; border-radius: var(--r-xl); }
.about-badge {
  position: absolute; right: 1rem; bottom: 0; display: flex; align-items: center; gap: 1rem;
  background: var(--green-900); color: var(--white); padding: 1.25rem 1.5rem; border-radius: var(--r-lg); max-width: 300px; box-shadow: var(--shadow-md);
}
.about-badge-num { font-size: 3.25rem; font-weight: 600; line-height: 1; letter-spacing: -.04em; color: var(--lime); }
.about-badge-text { font-size: var(--fs-sm); line-height: 1.4; color: rgb(255 255 255 / .86); }
.about-copy h2 { margin-bottom: var(--space-5); }
.check-list { display: grid; gap: .875rem; margin-block: var(--space-6); }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--lime); color: var(--green-950); stroke-width: 2.5; margin-top: 1px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.05fr; gap: 5rem; } }

/* ---------- Tabs / Services ---------- */
.tab-list { display: inline-flex; gap: .375rem; padding: .375rem; background: var(--color-surface); border-radius: var(--r-pill); box-shadow: var(--shadow-sm); margin-bottom: var(--space-6); max-width: 100%; }
.tab {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .625rem 1.25rem;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--color-text-muted);
  font: 600 var(--fs-sm)/1 var(--font); cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast);
}
.tab:hover { color: var(--green-900); }
.tab[aria-selected="true"] { background: var(--green-900); color: var(--white); }
.tab-panel:focus-visible { outline-offset: 8px; }
.tab-panel:not([hidden]) { animation: fadeUp var(--dur-med) var(--ease-out); }

.panel-grid { display: grid; gap: var(--space-5); }
.panel-feature { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 320px; display: flex; }
.panel-photo { position: absolute; inset: 0; border-radius: 0; }
.panel-photo::after { inset: .75rem auto auto .75rem; }
.panel-feature-copy { position: relative; margin-top: auto; padding: 1.5rem; color: var(--white); background: linear-gradient(0deg, rgb(14 33 22 / .88), rgb(14 33 22 / 0)); padding-top: 4rem; width: 100%; }
.panel-feature-copy p { color: rgb(255 255 255 / .86); margin-top: .5rem; }

.service-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.service-card {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.375rem;
  background: var(--color-surface); border-radius: var(--r-md); border: 1px solid transparent;
  transition: border-color var(--dur-fast), box-shadow var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.service-card:hover { border-color: var(--color-border); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--lime); color: var(--green-950); margin-bottom: .375rem; }
.service-card h4 { font-size: var(--fs-lg); font-weight: 600; }
.service-card p { font-size: var(--fs-sm); color: var(--color-text-muted); }
.unit { margin-top: auto; padding-top: .5rem; align-self: flex-start; font-size: var(--fs-xs); font-weight: 600; color: var(--green-700); background: var(--green-100); padding: .25rem .625rem; border-radius: var(--r-pill); }

@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .panel-grid { grid-template-columns: 340px 1fr; }
  .panel-feature { min-height: 100%; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid, #panel-gyvul .service-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Crop services: 8 compact cards in a 4 × 2 grid, no empty slots */
@media (min-width: 1200px) {
  #panel-augal .panel-grid { grid-template-columns: 280px 1fr; }
  #panel-augal .service-grid { grid-template-columns: repeat(4, 1fr); gap: .75rem; }
  #panel-augal .service-card { padding: 1.125rem; gap: .375rem; }
  #panel-augal .service-icon { width: 36px; height: 36px; border-radius: 10px; margin-bottom: .25rem; }
  #panel-augal .service-icon .icon { width: 1.125em; height: 1.125em; }
  #panel-augal .service-card h4 { font-size: var(--fs-base); line-height: 1.25; }
  #panel-augal .service-card p { font-size: .875rem; line-height: 1.5; }
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.75rem; background: var(--color-surface); border-radius: var(--r-lg); border: 1px solid var(--color-border); }
.step-num { position: absolute; top: 1.25rem; right: 1.5rem; font-size: 2.5rem; font-weight: 600; letter-spacing: -.04em; color: var(--green-100); line-height: 1; }
.step-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green-900); color: var(--lime); margin-bottom: 1.25rem; }
.step h3 { font-size: var(--fs-lg); margin-bottom: .5rem; }
.step p { color: var(--color-text-muted); font-size: var(--fs-sm); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Dark banner / pricing ---------- */
.section-dark { color: var(--white); overflow: hidden; background: var(--green-900); margin-inline: auto; }
@media (min-width: 768px) { .section-dark { width: min(100% - 2rem, 1440px); border-radius: var(--r-xl); } }
.banner-bg { position: absolute; inset: 0; background-color: var(--green-800); background-image: var(--img, none), radial-gradient(90% 90% at 80% 10%, #2d6a46, #14301f 70%); }
.banner-bg::after { inset: 1rem 1rem auto auto; }
.banner-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(14 33 22 / .9) 0%, rgb(14 33 22 / .65) 60%, rgb(14 33 22 / .45) 100%); }
.banner-inner { position: relative; }
.units-grid { display: grid; gap: 1rem; margin-bottom: var(--space-7); }
.unit-card { padding: 1.75rem; border-radius: var(--r-lg); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.unit-big { font-size: clamp(3rem, 2rem + 4vw, 4.5rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--lime); margin-bottom: 1rem; }
.unit-card h3 { font-size: var(--fs-lg); margin-bottom: .5rem; }
.unit-card p:last-child { color: rgb(255 255 255 / .8); font-size: var(--fs-sm); }
@media (min-width: 768px) { .units-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Roles ---------- */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; }
.role-card {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem;
  background: var(--green-900); color: var(--white); border-radius: var(--r-lg);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.role-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--lime); color: var(--green-950); margin-bottom: 1rem; }
.role-icon .icon { width: 28px; height: 28px; }
.role-card h3 { font-size: var(--fs-lg); }
.role-card p { font-size: var(--fs-sm); color: rgb(255 255 255 / .78); line-height: 1.5; }
.role-tags { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: auto; padding-top: 1rem; }
.role-tags li { font-size: var(--fs-xs); font-weight: 500; padding: .25rem .625rem; border-radius: var(--r-pill); background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .16); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: var(--space-6); }
.faq-grid .section-head { margin-bottom: 0; }
.faq-grid .section-head .btn { margin-top: var(--space-5); }
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--color-surface); border-radius: var(--r-md); border: 1px solid var(--color-border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.125rem 1.375rem; min-height: 56px; cursor: pointer; font-weight: 600; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--green-100); color: var(--green-800); transition: transform var(--dur-med) var(--ease-out), background-color var(--dur-fast); }
.faq details[open] summary .icon { transform: rotate(45deg); background: var(--lime); }
.faq details p { padding: 0 1.375rem 1.25rem; color: var(--color-text-muted); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.4fr; gap: 5rem; } }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; gap: var(--space-7); }
.contact-info h2 { margin-bottom: var(--space-4); }
.contact-list { display: grid; gap: 1.125rem; margin-top: var(--space-6); }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green-900); color: var(--lime); flex: none; }
.contact-label { display: block; font-size: var(--fs-xs); color: var(--color-text-muted); font-weight: 500; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.contact-form { background: var(--color-surface); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-xl); box-shadow: var(--shadow-md); display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
.field { display: grid; gap: .375rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .75rem 1rem; font: 400 var(--fs-base)/1.4 var(--font); color: var(--color-text);
  background: var(--cream); border: 1.5px solid var(--color-border); border-radius: 12px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c3cbbd; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-600); background: var(--white); box-shadow: 0 0 0 4px rgb(45 106 70 / .15); }
.field [aria-invalid="true"] { border-color: var(--color-error); }
.field-error { font-size: var(--fs-xs); color: var(--color-error); font-weight: 500; min-height: 0; }
.field-error:empty { display: none; }
.field-help { font-size: var(--fs-xs); color: var(--color-text-muted); }
.form-status { font-size: var(--fs-sm); font-weight: 500; color: var(--green-700); }
.form-status:empty { display: none; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .contact-wrap { grid-template-columns: 1fr 1.25fr; gap: 5rem; align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { background: #111511; color: rgb(255 255 255 / .78); padding-block: 4rem 2rem; margin-top: var(--section-y); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-bottom: 2.5rem; }
.brand-light { color: var(--white); font-size: 1.375rem; }
.social { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.125rem; border-radius: var(--r-pill); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .12); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; color: var(--white); transition: background-color var(--dur-fast); }
.pill:hover { background: rgb(255 255 255 / .16); }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; padding-block: 2rem; border-top: 1px solid rgb(255 255 255 / .1); }
.footer-h { font-size: var(--fs-base); color: var(--white); margin-bottom: .875rem; letter-spacing: 0; }
.footer-grid p, .footer-grid li { font-size: var(--fs-sm); line-height: 1.9; }
.footer-grid a { text-decoration: none; display: inline-block; padding-block: .125rem; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-grid .todo { color: #5c4400; }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .1); font-size: var(--fs-xs); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Motion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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