/* ============================================================
   NEAS — Style C · "TERRA"
   Premium museum-gallery design system.
   Deep green-charcoal, bone ivory, burnished bronze.
   Marcellus display serif, arched "gallery doorway" motifs,
   glassy cards, candlelit glows, refined micro-interactions.
   ============================================================ */

:root {
  --bg: #0f1512;
  --bg-2: #131b17;
  --panel: rgba(236, 231, 220, 0.04);
  --panel-strong: rgba(236, 231, 220, 0.07);
  --line: rgba(201, 163, 106, 0.22);
  --line-soft: rgba(236, 231, 220, 0.1);
  --ivory: #ece7dc;
  --ivory-2: #b9b2a2;
  --ivory-3: #837d6f;
  --bronze: #c9a36a;
  --bronze-2: #e0c08c;
  --serif: "Marcellus", "Times New Roman", serif;
  --sans: "Outfit", "Avenir Next", "Helvetica Neue", sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(.22,.8,.24,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ivory);
  background:
    radial-gradient(900px 600px at 85% -5%, rgba(201,163,106,0.09), transparent 60%),
    radial-gradient(700px 500px at 0% 40%, rgba(51,86,68,0.18), transparent 65%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--bronze); color: var(--bg); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(var(--wrap), calc(100% - 3rem)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 2.2rem); } }

/* ---------------- typography ---------------- */
.eyebrow {
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--bronze);
  display: inline-flex; align-items: center; gap: 1.1rem;
}
.eyebrow::before, .eyebrow--lined::after {
  content: ""; width: 2.6rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze));
}
.eyebrow--lined::after { background: linear-gradient(90deg, var(--bronze), transparent); }
.eyebrow--bare::before { display: none; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 7vw, 5.8rem);
  line-height: 1.06;
  letter-spacing: 0.005em;
  color: var(--ivory);
}
.display .gold, .h-sec .gold {
  background: linear-gradient(100deg, var(--bronze) 10%, var(--bronze-2) 45%, var(--bronze) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.h-sec {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.15;
  max-width: 26ch;
}
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ivory-2); max-width: 60ch; font-weight: 300; }

/* thin gold rule */
.gold-rule {
  border: 0; height: 1px; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.65em;
  font-family: var(--sans); font-weight: 400;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  padding: 1.05em 2em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ivory);
  background: transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn svg { width: 1em; height: 1em; }
.btn:hover {
  border-color: var(--bronze);
  box-shadow: 0 0 24px rgba(201,163,106,0.22);
  transform: translateY(-2px);
}
.btn--gold {
  background: linear-gradient(100deg, var(--bronze), var(--bronze-2));
  border-color: transparent;
  color: #171410;
  font-weight: 500;
}
.btn--gold:hover { box-shadow: 0 6px 30px rgba(201,163,106,0.4); }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem 0; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.95rem; text-decoration: none; }
.brand .sigil {
  width: 2.5rem; height: 2.9rem;
  border: 1px solid var(--bronze);
  border-radius: 999px 999px 0 0;   /* arch */
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.15rem; color: var(--bronze);
  padding-top: 0.2rem;
}
.brand .name { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.18em; }
.brand .sub {
  display: block;
  font-family: var(--sans); font-size: 0.6rem; font-weight: 300;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--ivory-3);
}
.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a:not(.btn) {
  font-size: 0.76rem; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; color: var(--ivory-2);
  position: relative; padding-bottom: 0.3em;
  transition: color 0.25s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 1px; background: var(--bronze);
  transition: width 0.3s var(--ease), left 0.3s var(--ease);
}
.nav a:not(.btn):hover { color: var(--ivory); }
.nav a:not(.btn):hover::after { width: 100%; left: 0; }
.nav a[aria-current="page"] { color: var(--bronze); }
.nav a[aria-current="page"]::after { width: 100%; left: 0; }
.nav .btn { padding: 0.75em 1.5em; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ivory);
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 0.6em 1.2em; cursor: pointer;
}
.mobile-menu {
  display: none;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a {
  display: block; padding: 1.05rem 1.6rem;
  font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--ivory-2);
  border-top: 1px solid var(--line-soft);
}
.mobile-menu a:hover { color: var(--bronze); }
.mobile-menu.open { display: block; }
@media (max-width: 920px) {
  .nav a { display: none; }
  .nav-toggle { display: block; }
}

/* ---------------- hero ---------------- */
.hero {
  padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: auto 0 0 50%;
  transform: translateX(-50%);
  width: min(760px, 92vw); height: 100%;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;    /* grand arch */
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 55%, transparent 96%);
}
.hero .display { margin: 1.8rem auto 1.6rem; max-width: 16ch; }
.hero .lede { margin-inline: auto; }
.cta-row { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: 2.6rem; }
.hero .cta-row { justify-content: center; }

.hero-stats {
  margin-top: clamp(3.2rem, 7vw, 5rem);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  position: relative; z-index: 1;
}
.hero-stats .stat { padding: 1.7rem 1rem 0.4rem; border-left: 1px solid var(--line-soft); }
.hero-stats .stat:first-child { border-left: 0; }
.hero-stats b {
  display: block;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--bronze-2);
}
.hero-stats span {
  font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ivory-3);
}
@media (max-width: 760px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat:nth-child(3) { border-left: 0; }
}

/* ---------------- sections ---------------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-head { max-width: 68ch; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .h-sec, .section-head--center .lede { margin-inline: auto; }
.section-head .h-sec { margin: 1.4rem 0 1.1rem; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.4rem, 6vw, 5.5rem); align-items: center; }
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; } }

/* ---------------- gallery cards (services) ---------------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.4vw, 1.8rem);
}
@media (max-width: 1020px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.exhibit {
  position: relative;
  text-decoration: none;
  border: 1px solid var(--line-soft);
  border-radius: 130px 130px 14px 14px;   /* arched doorway */
  background: linear-gradient(180deg, var(--panel-strong), var(--panel) 55%);
  padding: 3rem 1.7rem 2rem;
  text-align: center;
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.exhibit::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(220px 200px at 50% 0%, rgba(201,163,106,0.16), transparent 70%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.exhibit:hover {
  border-color: var(--line);
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.4);
}
.exhibit:hover::before { opacity: 1; }
.exhibit .roman {
  font-family: var(--serif); font-size: 0.95rem;
  letter-spacing: 0.3em; color: var(--bronze);
}
.exhibit .ico {
  width: 3.4rem; height: 3.4rem; margin: 1.3rem auto 1.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid; place-items: center;
  color: var(--bronze-2);
  transition: box-shadow 0.35s var(--ease);
}
.exhibit:hover .ico { box-shadow: 0 0 22px rgba(201,163,106,0.3); }
.exhibit .ico svg { width: 1.5rem; height: 1.5rem; }
.exhibit h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.3rem; line-height: 1.25;
  margin-bottom: 0.7rem;
}
.exhibit p { font-size: 0.92rem; color: var(--ivory-2); }
.exhibit .go {
  display: inline-block; margin-top: 1.4rem;
  font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--bronze);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.exhibit:hover .go { border-color: var(--bronze); }

/* ---------------- process timeline ---------------- */
.process { position: relative; max-width: 720px; margin-inline: auto; }
.process::before {
  content: "";
  position: absolute; left: 1.45rem; top: 0.5rem; bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(var(--bronze), var(--line) 80%, transparent);
}
.process .step {
  position: relative;
  padding: 0 0 2.6rem 4.4rem;
}
.process .step:last-child { padding-bottom: 0; }
.process .roman {
  position: absolute; left: 0; top: -0.15rem;
  width: 2.9rem; height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--bg);
  font-family: var(--serif); font-size: 0.9rem; color: var(--bronze);
}
.process h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin-bottom: 0.4rem; }
.process p { color: var(--ivory-2); max-width: 56ch; }

/* ---------------- values ---------------- */
.values {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}
@media (max-width: 1020px) { .values { grid-template-columns: repeat(2, 1fr); } .values .value:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }
.value {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0.4rem 0.6rem;
  transition: border-color 0.3s;
}
.value:hover { border-color: var(--bronze); }
.value .roman {
  font-family: var(--serif); font-size: 0.85rem;
  letter-spacing: 0.3em; color: var(--bronze);
}
.value h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin: 0.8rem 0 0.5rem; }
.value p { font-size: 0.92rem; color: var(--ivory-2); }

/* checklist */
.list-check { list-style: none; margin-top: 1.6rem; }
.list-check li {
  padding: 0.7rem 0 0.7rem 2.1rem;
  position: relative; color: var(--ivory-2);
  border-bottom: 1px solid var(--line-soft);
}
.list-check li::before {
  content: "◆";
  position: absolute; left: 0.15rem; top: 0.78rem;
  font-size: 0.6rem; color: var(--bronze);
}

/* stat cluster */
.stat-cluster { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stat-cluster .cell {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--panel);
  padding: 1.6rem;
  transition: border-color 0.3s;
}
.stat-cluster .cell:hover { border-color: var(--line); }
.stat-cluster b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: 1.9rem; color: var(--bronze-2);
}
.stat-cluster span { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-3); }

/* framed arch figure */
.arch-frame {
  border: 1px solid var(--line);
  border-radius: 999px 999px 18px 18px;
  padding: 2.2rem 2rem 1.6rem;
  background:
    radial-gradient(300px 260px at 50% 0%, rgba(201,163,106,0.1), transparent 70%),
    var(--panel);
  text-align: center;
}
.arch-frame figcaption {
  margin-top: 1.2rem;
  font-size: 0.66rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--ivory-3);
}

/* ---------------- CTA panel ---------------- */
.cta-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.6rem, 5vw, 4rem);
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(201,163,106,0.13), transparent 70%),
    var(--panel);
  overflow: hidden;
}
.cta-panel .h-sec { margin: 1.4rem auto 1.1rem; }
.cta-panel p { max-width: 54ch; margin: 0 auto; color: var(--ivory-2); }
.cta-panel .cta-row { justify-content: center; }

/* ---------------- forms ---------------- */
.form-shell {
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--panel);
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.form-head {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ivory-3);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 1.1rem; margin-bottom: 1.8rem;
}
.form-head b { color: var(--bronze); font-weight: 400; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 640px) { .form-row.two { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ivory-2);
  margin-bottom: 0.5rem;
}
.field .req { color: var(--bronze); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans); font-weight: 300; font-size: 1rem;
  color: var(--ivory);
  background: rgba(15,21,18,0.6);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 0.85em 1em;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field select option { background: var(--bg-2); color: var(--ivory); }
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(201,163,106,0.15);
}
.form-note { font-size: 0.85rem; color: var(--ivory-3); margin-top: 1.1rem; }
.form-status { margin-top: 1rem; font-size: 0.9rem; color: var(--bronze-2); }

/* contact cards */
.contact-card {
  display: flex; justify-content: space-between; gap: 1.4rem; align-items: baseline;
  border-bottom: 1px solid var(--line-soft);
  padding: 1.05rem 0;
}
.contact-card .k { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-3); white-space: nowrap; }
.contact-card .v { text-align: right; color: var(--ivory); }
.contact-card a { color: var(--bronze-2); text-decoration-color: var(--line); }

/* ---------------- footer ---------------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35));
  padding: clamp(3rem, 7vw, 4.5rem) 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.6rem; margin-bottom: 3rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .name { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.16em; }
.footer-brand .tagline {
  font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ivory-3); margin: 0.6rem 0 1rem;
}
.footer-brand p { color: var(--ivory-2); max-width: 36ch; font-size: 0.95rem; }
.footer-col h4 {
  font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--bronze); font-weight: 400; margin-bottom: 1.2rem;
}
.footer-col a {
  display: block; text-decoration: none; color: var(--ivory-2);
  padding: 0.34rem 0; font-size: 0.95rem;
  transition: color 0.25s, transform 0.25s var(--ease);
}
.footer-col a:hover { color: var(--bronze-2); transform: translateX(4px); }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory-3);
}
.fs-credit { text-align: center; padding: 0.4rem 0 1.8rem; }
.fs-credit a {
  font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ivory-3); text-decoration: none;
}
.fs-credit a b { color: var(--ivory-2); font-weight: 400; }
.fs-credit a:hover b { color: var(--bronze-2); }

/* ---------------- page hero ---------------- */
.page-hero {
  padding: clamp(3.6rem, 8vw, 6rem) 0 clamp(2.4rem, 5vw, 3.6rem);
  text-align: center;
}
.breadcrumbs {
  font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ivory-3); margin-bottom: 1.8rem;
}
.breadcrumbs a { color: var(--ivory-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--bronze); }
.page-hero .display { margin: 1.6rem auto 1.4rem; max-width: 18ch; }
.page-hero .lede { margin-inline: auto; }

/* chips */
.tag-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2rem; justify-content: inherit; }
.page-hero .tag-row { justify-content: center; }
.chip {
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; color: var(--ivory-2);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.6em 1.2em;
  transition: border-color 0.25s, color 0.25s;
}
a.chip:hover { border-color: var(--bronze); color: var(--bronze-2); }

/* service detail rows */
.svc-detail { padding: clamp(3rem, 7vw, 5rem) 0; }
.svc-detail + .svc-detail { border-top: 1px solid var(--line-soft); }

/* ---------------- reveal ---------------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.14s; }
[data-reveal][data-delay="2"] { transition-delay: 0.28s; }
[data-reveal][data-delay="3"] { transition-delay: 0.42s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

.mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.4rem; }
