/* About + Contact pages. Same family as the 3D home page: Sora headings, Barlow Semi Condensed text, the jungle
   morning palette (cream ground, deep green ink, green accent) and the dark footer */
:root {
  --ink: #f3f1ea;
  --ink-2: #e9eee4;
  --bone: #16211a;
  --bone-dim: rgba(22, 33, 26, .68);
  --accent: #2f8a4e;
  --accent-2: #5fd08a;
  --accent-soft: rgba(47, 138, 78, .1);
  --line: rgba(22, 33, 26, .12);
  --chip: rgba(255, 255, 255, .86);
  --card: #fff;
  --deep: #0b100d;
  --deep-2: #12201a;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: min(1200px, calc(100vw - 12vw));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font-family: var(--hud); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
img, svg { display: block; }
a { color: inherit; }
.wrap { width: var(--wrap); margin: 0 auto; }

/* ---------- header ---------- */
.pg-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 6vw; transition: background .35s, box-shadow .35s, padding .35s;
}
.pg-head.solid { background: rgba(243, 241, 234, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line); padding-top: 12px; padding-bottom: 12px; }
.pg-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; transition: color .35s; }
.pg-head.solid .pg-brand { color: var(--bone); }
.pg-brand .emblem { width: 30px; height: 30px; color: var(--accent-2); }
.pg-head.solid .pg-brand .emblem { color: var(--accent); }
.pg-brand b { font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: .22em; }
.pg-brand small { font-family: var(--serif); font-size: 10px; letter-spacing: .22em; opacity: .75; margin-left: 6px; }
.pg-actions { display: flex; align-items: center; gap: 10px; }
.pg-3d {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; text-decoration: none;
  font: 600 12px/1 var(--hud); letter-spacing: .2em; text-transform: uppercase;
  color: #fff; border: 1px solid rgba(255, 255, 255, .35); transition: color .35s, border-color .35s, background .3s;
}
.pg-3d:hover { background: rgba(255, 255, 255, .1); }
.pg-head.solid .pg-3d { color: var(--bone); border-color: var(--line); }
.pg-head.solid .pg-3d:hover { background: var(--accent-soft); }
.pg-3d svg { width: 16px; height: 16px; }

/* ---------- hero ---------- */
.pg-hero {
  position: relative; overflow: hidden; color: #f1ede3;
  padding: clamp(150px, 22vh, 210px) 0 clamp(70px, 11vh, 120px);
  background:
    radial-gradient(80% 120% at 85% 0%, rgba(95, 208, 138, .22), transparent 60%),
    linear-gradient(160deg, var(--deep-2), var(--deep) 70%);
}
.pg-hero::before { /* faint engineering grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.pg-hero .ghost-mark { position: absolute; right: -4vw; top: 50%; width: min(560px, 56vw); height: auto; transform: translateY(-46%);
  color: rgba(95, 208, 138, .09); pointer-events: none; }
.pg-hero .wrap { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.pg-hero .eyebrow { color: var(--accent-2); }
.pg-hero h1 {
  font-family: var(--serif); font-weight: 800; font-size: clamp(38px, 5.6vw, 76px); line-height: 1.06; letter-spacing: -.01em;
  margin: 22px 0 22px; max-width: 16ch;
}
.pg-hero h1 em { font-style: normal; color: var(--accent-2); }
.pg-hero .lede { font-size: clamp(18px, 1.5vw, 21px); color: rgba(241, 237, 227, .72); max-width: 54ch; margin: 0; }

/* ---------- sections ---------- */
section.blk { padding: clamp(70px, 11vh, 120px) 0; }
section.blk.alt { background: var(--ink-2); }
.blk h2 { font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -.01em; margin: 16px 0 18px; }
.blk .sub { color: var(--bone-dim); max-width: 60ch; margin: 0; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.story p { margin: 0 0 20px; font-size: clamp(18px, 1.35vw, 20px); }
.story p:first-child::first-letter { font-family: var(--serif); font-weight: 800; font-size: 3.4em; float: left; line-height: .9; margin: 6px 12px 0 0; color: var(--accent); }
.made-in { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 16px; border: 1px solid var(--line); background: var(--card);
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.made-in i { width: 22px; height: 15px; background: linear-gradient(#ff9933 0 33.3%, #fff 33.3% 66.6%, #138808 66.6%); border: 1px solid var(--line); }

.mission {
  position: relative; margin: 0; padding: clamp(40px, 6vw, 72px); color: #f1ede3; overflow: hidden;
  background: linear-gradient(135deg, var(--deep-2), var(--deep));
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}
.mission::after { content: "“"; position: absolute; right: 28px; top: -30px; font-family: var(--serif); font-size: 240px; color: rgba(95, 208, 138, .12); line-height: 1; }
.mission .eyebrow { color: var(--accent-2); }
.mission blockquote { margin: 20px 0 0; font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.3; max-width: 30ch; }
.mission blockquote em { font-style: normal; color: var(--accent-2); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.card {
  position: relative; padding: 30px 26px 28px; background: var(--card); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--accent); transition: width .5s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(22, 33, 26, .1); border-color: transparent; }
.card:hover::before { width: 100%; }
.card .ic { width: 54px; height: 54px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; }
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--bone-dim); font-size: 16px; line-height: 1.55; }

.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line); }
.principle:nth-child(odd) { border-right: 1px solid var(--line); }
.principle:nth-child(even) { padding-left: 28px; }
.principle b { font-family: var(--serif); font-size: 34px; font-weight: 800; color: var(--accent); line-height: 1; }
.principle h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 6px; }
.principle p { margin: 0; color: var(--bone-dim); font-size: 16px; }

.spot { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat-grid div { background: var(--card); padding: 28px 26px; }
.stat-grid b { display: block; font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 3vw, 42px); color: var(--accent); line-height: 1.05; }
.stat-grid span { color: var(--bone-dim); font-size: 15px; letter-spacing: .04em; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; cursor: pointer;
  font: 700 14px/1 var(--hud); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: filter .25s, transform .25s;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--bone); border-color: var(--bone); clip-path: none; }
.btn.ghost:hover { background: var(--bone); color: var(--ink); filter: none; }
.btn svg { width: 18px; height: 18px; }
.btn.wa { background: #25d366; border-color: #25d366; color: #06230f; }

.cta-band {
  position: relative; overflow: hidden; padding: clamp(60px, 10vh, 100px) 0; color: #fff;
  background: radial-gradient(70% 140% at 100% 50%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(120deg, #23733f, var(--accent));
}
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--serif); font-weight: 800; font-size: clamp(28px, 3.2vw, 44px); margin: 0; max-width: 20ch; line-height: 1.12; }
.cta-band p { margin: 10px 0 0; color: rgba(255, 255, 255, .8); }
.cta-band .btn { background: #fff; color: var(--accent); border-color: #fff; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: calc(-1 * clamp(40px, 7vh, 80px)); position: relative; }
.info { background: var(--deep); color: #f1ede3; padding: clamp(30px, 3.4vw, 44px); }
.info h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 6px; }
.info > p { color: rgba(241, 237, 227, .65); margin: 0 0 28px; font-size: 16px; }
.info-item { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(241, 237, 227, .1); text-decoration: none; color: inherit; }
.info-item .ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: rgba(95, 208, 138, .12); border: 1px solid rgba(95, 208, 138, .3); color: var(--accent-2); transition: background .3s, color .3s; }
.info-item .ic svg { width: 20px; height: 20px; }
a.info-item:hover .ic { background: var(--accent-2); color: var(--deep); }
.info-item small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: rgba(241, 237, 227, .55); }
.info-item span, .info-item address { font-size: 18px; font-weight: 600; font-style: normal; line-height: 1.5; }
.info-item address { font-weight: 500; font-size: 16.5px; }
.info-item.wa .ic { background: rgba(37, 211, 102, .15); border-color: rgba(37, 211, 102, .4); color: #25d366; }
a.info-item.wa:hover .ic { background: #25d366; color: #06230f; }

.form-card { background: var(--card); border: 1px solid var(--line); padding: clamp(28px, 3.4vw, 48px); box-shadow: 0 24px 60px rgba(22, 33, 26, .08); }
.form-card h2 { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 30px); margin: 0 0 6px; }
.form-card > p { color: var(--bone-dim); margin: 0 0 28px; font-size: 16px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bone); }
.field label .req { color: #c0392b; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; font: 500 17px/1.4 var(--hud); color: var(--bone); background: #fbfaf6;
  border: 1px solid rgba(22, 33, 26, .2); padding: 13px 14px; border-radius: 0; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2316211a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.field .err { display: none; font-size: 14px; color: #c0392b; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.field.invalid .err { display: block; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.form-foot p { margin: 0; font-size: 14px; color: var(--bone-dim); max-width: 36ch; }
.form-foot .btn { padding: 18px 30px; font-size: 15px; }
.sent { display: none; margin-top: 20px; padding: 14px 16px; background: var(--accent-soft); border-left: 3px solid var(--accent); font-size: 15px; }
.sent.show { display: block; }

/* ---------- footer on these pages ---------- */
.site-foot { min-height: 0; }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .split, .spot, .contact-grid { grid-template-columns: 1fr; }
  .contact-grid { margin-top: 0; padding-top: 50px; }
}
@media (max-width: 720px) {
  :root { --wrap: calc(100vw - 40px); }
  .pg-head { padding: 12px 20px; }
  .pg-brand small, .pg-3d span { display: none; }
  .pg-brand b { font-size: 13px; letter-spacing: .14em; }
  .cards { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(even) { padding: 24px 0; border-right: 0; }
  .fields { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}
