/* Greenoe Enterprises: prototype design system (white, quiet, established). */

:root {
  --paper: #fbfaf7;
  --paper-2: #f3f0ea;
  --paper-3: #ebe6dd;
  --ink: #1b1a18;
  --ink-2: #45413b;
  --muted: #6b665e;
  --rule: #e2ddd3;
  --brass: #a8874f;        /* decorative lines and large text only */
  --brass-text: #7a5f33;   /* small text on paper (5:1 contrast) */
  --night: #0c0c0e;
  --night-ink: #f4f1ea;
  --verify-bg: #fff3c4;
  --verify-line: #d9a400;

  --font-logo: "Gloock", Georgia, serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
strong { font-weight: 500; }

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

.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); }
.skip-link:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(44px, 6.4vw, 84px); }
h2 { font-size: clamp(34px, 4.2vw, 54px); }
h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--brass); }

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-text);
}
.kicker::before { content: ""; width: 36px; height: 1px; background: var(--brass); }

.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }

/* Prototype markers */

.proto-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: center;
  padding: 8px var(--gutter);
  background: var(--ink);
  color: var(--night-ink);
  font-size: 13px;
  text-align: center;
}
.proto-bar button {
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.verify {
  background: var(--verify-bg);
  box-shadow: inset 0 -2px 0 var(--verify-line);
  padding: 0 3px;
  border-radius: 2px;
}
.hide-verify .verify { background: none; box-shadow: none; padding: 0; }

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { background: var(--brass-text); border-color: var(--brass-text); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.btn--light:hover { background: var(--brass); border-color: var(--brass); color: var(--night); }

.text-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 4px;
}
.text-link:hover { color: var(--brass-text); }

.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 40px; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; color: var(--ink); flex: none; }
.brand-name { font-family: var(--font-logo); font-size: 22px; letter-spacing: 0.01em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }
.nav .btn { padding: 12px 20px; color: var(--paper); border-bottom: 1px solid var(--ink); }
.nav .btn:hover { color: var(--paper); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); content: ""; transition: transform 0.3s var(--ease);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Sections */

.section { padding: var(--section) 0; }
.section--tint { background: var(--paper-2); }
.section--rule { border-top: 1px solid var(--rule); }

.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: start; }
.split > .col-5 { grid-column: span 5; }
.split > .col-6 { grid-column: span 6; }
.split > .col-7 { grid-column: span 7; }
.split > .push-1 { grid-column-start: 2; }
.split--center { align-items: center; }

/* Home hero */

.hero { padding: clamp(48px, 7vw, 96px) 0 var(--section); }
.hero .split { align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero h1 em { display: block; }
.hero-figure { position: relative; margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5.4; object-fit: cover; }
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--brass);
  z-index: -1;
}

/* Page hero (inner pages) */

.page-hero { padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: clamp(42px, 5.6vw, 72px); max-width: 14em; }
.page-hero .lede { margin-top: 8px; }

/* Statement */

.statement { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.18; font-weight: 500; margin: 0; }

/* Full-bleed image band */

.band { position: relative; margin: 0; }
.band img { width: 100%; height: clamp(280px, 46vw, 560px); object-fit: cover; }
.band figcaption { position: absolute; right: var(--gutter); bottom: 14px; font-size: 11px; color: rgba(255, 255, 255, 0.85); letter-spacing: 0.04em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }

/* Framed image */

.framed { margin: 0; }
.framed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.framed--tall img { aspect-ratio: 4 / 5; }

/* Trust strip */

.trust { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.trust div { padding: 22px 20px 22px 0; }
.trust div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.trust dt { font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.trust dd { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 1.25; }

/* Steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin: 56px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { border-top: 1px solid var(--ink); padding-top: 26px; counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 46px;
  font-style: italic;
  line-height: 1;
  color: var(--brass);
  margin-bottom: 18px;
}
.steps h3 { margin-bottom: 12px; }
.steps p { color: var(--ink-2); margin: 0; }

/* Cards */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 56px; }
.card { display: flex; flex-direction: column; text-decoration: none; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 26px; transition: transform 0.8s var(--ease); }
.card-media { overflow: hidden; }
.card:hover img { transform: scale(1.03); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); }
.card .text-link { align-self: flex-start; margin-top: auto; }

/* Lists */

.check-list, .dash-list { list-style: none; padding: 0; margin: 0; }
.check-list li, .dash-list li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--rule); }
.check-list li:first-child, .dash-list li:first-child { border-top: 1px solid var(--rule); }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 12px; height: 7px; border-left: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass); transform: rotate(-45deg); }
.dash-list li::before { content: ""; position: absolute; left: 2px; top: 27px; width: 16px; height: 1px; background: var(--muted); }

/* Commitments */

.commitments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 48px; border-top: 1px solid var(--rule); }
.commitments div { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--rule); }
.commitments div:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--rule); }
.commitments h3 { font-size: 26px; margin-bottom: 8px; }
.commitments p { margin: 0; color: var(--ink-2); }

/* Service rows */

.service { padding: var(--section) 0; border-top: 1px solid var(--rule); }
.service:first-of-type { border-top: 0; }
.service .split > * { grid-row: 1; }
.service .split { align-items: center; }
.service h2 { font-size: clamp(32px, 3.6vw, 46px); }

/* Leadership */

.person { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; padding: 32px 0; border-top: 1px solid var(--rule); }
.person-photo {
  width: 180px;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: var(--paper-3);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}
.person h3 { margin-bottom: 4px; }
.person .role { font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-text); margin-bottom: 14px; }

/* Fact block for search engines and AI */

.facts { padding: 32px 36px; background: var(--paper-2); border-left: 2px solid var(--brass); font-size: 18px; }
.facts p:last-child { margin: 0; }

/* FAQ */

.faq { margin-top: 24px; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.2vw, 29px);
  font-weight: 500;
  line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; font-size: 26px; color: var(--brass); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 0 32px; max-width: 46em; }
.faq-body .label { font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-text); margin: 20px 0 10px; }
.faq-body ul { margin: 0; padding: 0; list-style: none; }
.faq-body li { position: relative; padding: 8px 0 8px 26px; color: var(--ink-2); }
.faq-body li::before { content: "?"; position: absolute; left: 2px; top: 7px; font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--brass); line-height: 1.3; }

/* Night band (echoes the intro) */

.night {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--night-ink);
  padding: var(--section) 0;
  text-align: center;
}
.night::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 68%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 31%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 82%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 18%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 79% 57%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 29%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 76%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 84%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 50% 8%, rgba(255,255,255,.6) 50%, transparent 51%);
  opacity: 0.9;
}
.night .wrap { position: relative; }
.night h2 { color: var(--night-ink); margin-bottom: 18px; }
.night h2 em { color: #d4b57a; }
.night p { color: rgba(244, 241, 234, 0.78); max-width: 34em; margin-left: auto; margin-right: auto; }
.night .actions { justify-content: center; }
.night .text-link { color: var(--night-ink); }
.night-mark { width: 54px; height: 54px; margin: 0 auto 28px; color: #d4b57a; }

/* Contact */

.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { margin-bottom: 28px; }
.field label, .field legend { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); padding: 0; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 0 10px;
  border: 0;
  border-bottom: 1px solid #bdb6aa;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 22px, calc(100% - 7px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--brass); box-shadow: 0 1px 0 var(--brass); }
fieldset.field { border: 0; margin: 0 0 28px; padding: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border: 1px solid var(--rule); font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 400; cursor: pointer; }
.radio-row input { width: auto; accent-color: var(--ink); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.honey { position: absolute; left: -9999px; }

.contact-aside { padding-top: 6px; }
.contact-aside dl { margin: 0; }
.contact-aside dt { font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 26px; }
.contact-aside dd { margin: 6px 0 0; font-size: 17px; }
.contact-aside .framed { margin-top: 40px; }

/* Credits table */

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table th { font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.table td a { word-break: break-word; }

/* Footer */

.site-footer { background: var(--paper-2); border-top: 1px solid var(--rule); padding: 72px 0 36px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 5fr 2fr 3fr 3fr; gap: 40px; }
.footer-grid h2 { font-family: var(--font-body); font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--brass-text); text-decoration: underline; }
.footer-brand p { color: var(--ink-2); max-width: 26em; margin-top: 18px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
.footer-base a { color: inherit; }
.footer-base button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* Reveal on scroll */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Intro overlay */

#intro { display: none; }
.intro-pending #intro, .intro-running #intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--night);
  cursor: pointer;
}
.intro-pending body, .intro-running body { overflow: hidden; }
#intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-skip {
  position: absolute;
  right: 24px;
  bottom: 24px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font: 500 11.5px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.4s;
}
.intro-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font: 300 13px/1 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}
.intro-hint.is-on { opacity: 1; }

/* Responsive */

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 84px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav .btn { width: auto; margin-top: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split > [class*="col-"] { grid-column: auto !important; }
  .service .split > * { grid-row: auto; }
  .hero-figure::after { inset: 14px -14px -14px 14px; }
  .hero-figure img { aspect-ratio: 4 / 4.4; }
  .steps, .cards { grid-template-columns: 1fr; gap: 40px; }
  .trust { grid-template-columns: 1fr; }
  .trust div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .commitments { grid-template-columns: 1fr; }
  .commitments div:nth-child(even) { padding-left: 0; border-left: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 72px; }
  .nav { inset: 72px 0 auto 0; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 19px; }
  .form .row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts { padding: 24px; }
  .hero-figure { margin-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card img, .btn { transition: none; }
}

/* Refinements */
h1, h2, h3, .statement { text-wrap: balance; }
.hero h1 { max-width: 11em; }
.night .verify { color: var(--ink); }

/* Contact: pre-filled email options */
.email-options { display: grid; gap: 12px; margin-top: 32px; max-width: 520px; }
.email-options .btn { justify-content: space-between; width: 100%; letter-spacing: 0.1em; }
