:root {
  --bg: #FAF7F0;
  --sand: #F3ECDD;
  --sand-2: #EADFC9;
  --paper: #FFFFFF;
  --ink: #1F2A24;
  --muted: #59625B;
  --line: #E6DDCB;
  --green: #1F5D50;
  --green-deep: #143F36;
  --green-soft: #E4EFEA;
  --gold: #B8860B;
  --gold-text: #8A6508;
  --gold-soft: #F6EBCF;
  --plum: #6D407E;
  --plum-soft: #F1E8F4;
  --navy: #172554;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.04rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; color: var(--green-deep); }
p { margin: 0; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: 12px; top: 12px; transform: translateY(-200%); background: var(--green); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 247, 240, 0.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.bar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 46px; height: 46px; object-fit: contain; }
.logo-name { display: block; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.22rem; line-height: 1.1; color: var(--green-deep); letter-spacing: -0.01em; }
.logo-name em { font-style: normal; color: var(--gold); }
.logo-sub { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; color: #3D463F; font-weight: 600; font-size: 0.95rem; position: relative; padding: 6px 0; }
.site-nav a:hover { color: var(--green-deep); }
.site-nav a[aria-current=page]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--gold); }
.site-nav a.nav-cta { color: #fff; padding: 0 18px; }
.site-nav a.nav-cta:hover { color: #fff; }
.nav-toggle { display: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font: inherit; font-weight: 700; color: var(--green-deep); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); }
.btn-line { background: transparent; color: var(--green-deep); border-color: #C9BFA9; }
.btn-line:hover { border-color: var(--green-deep); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #9A7009; }
.btn-white { background: #fff; color: var(--green-deep); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.92rem; }

/* ---------- Shared ---------- */
.section { padding: 80px 0; }
.eyebrow { display: inline-block; margin-bottom: 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); }
.h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.lead { color: var(--muted); font-size: 1.12rem; line-height: 1.7; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: 40px; }
.head .lead { max-width: 30rem; }

/* ---------- Home hero ---------- */
.hero { padding: 48px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 span { color: var(--gold); font-style: italic; }
.hero .lead { margin: 22px 0 32px; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; }
.arch {
  aspect-ratio: 4 / 5; border-radius: 999px 999px 32px 32px; overflow: hidden;
  background: var(--sand); box-shadow: 0 40px 80px -40px rgba(20, 63, 54, 0.45);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -28px; bottom: 44px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 20px 40px -24px rgba(20, 63, 54, 0.45);
}
.hero-badge b { display: block; font-family: "Fraunces", serif; font-size: 1.15rem; color: var(--green-deep); line-height: 1.1; }
.hero-badge small { color: var(--muted); font-size: 0.82rem; }
.hero-badge .ta { font-size: 1.6rem; color: var(--gold); font-weight: 600; line-height: 1; }

/* ---------- Products ---------- */
.products { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.prod {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 34px; border-radius: 28px;
  text-decoration: none; color: inherit; border: 1px solid var(--line); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.prod:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(20, 40, 40, 0.5); }
.prod-fee { background: linear-gradient(160deg, #F2F5FB 0%, #E7F6F1 100%); }
.prod-birth { background: linear-gradient(160deg, #F7F1F8 0%, #FBF3EA 100%); }
.prod-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.prod-logo { height: 44px; width: auto; }
.prod-mark { display: flex; align-items: center; gap: 10px; font-family: "Fraunces", serif; font-size: 1.6rem; font-weight: 600; color: var(--plum); }
.prod-mark img { width: 38px; height: 44px; }
.prod-tag { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: #fff; }
.prod-fee .prod-tag { color: #0E6E58; }
.prod-birth .prod-tag { color: var(--plum); }
.prod h3 { font-size: 1.7rem; color: var(--ink); }
.prod-fee h3 { color: var(--navy); }
.prod-birth h3 { color: #4B2A58; }
.prod p { color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 0.85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.8); border: 1px solid rgba(0,0,0,0.06); color: #3D463F; }
.prod-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.prod-fee .prod-link { color: var(--navy); }
.prod-birth .prod-link { color: var(--plum); }
.prod-link span { transition: transform .2s ease; }
.prod:hover .prod-link span { transform: translateX(4px); }

/* ---------- Roots (Panai tree) ---------- */
.roots { position: relative; overflow: hidden; background: var(--green-deep); color: #fff; }
.roots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.roots .eyebrow { color: #E6C26A; }
.roots h2 { color: #fff; }
.roots p { color: rgba(255,255,255,0.82); font-size: 1.08rem; line-height: 1.75; margin-top: 18px; }
.roots-img { border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }
.roots-img img { width: 100%; height: 100%; object-fit: cover; }
.values { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.values li { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); font-size: 0.88rem; font-weight: 600; color: #F3E6C4; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pillar { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.pillar-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); margin-bottom: 18px; }
.pillar h3 { font-size: 1.35rem; margin-bottom: 8px; }
.pillar p { color: var(--muted); }

/* ---------- Founder teaser ---------- */
.founder { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; background: var(--sand); border-radius: 32px; padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.founder-art { position: relative; align-self: stretch; min-height: 280px; }
.founder-art img {
  position: absolute; top: calc(-1 * clamp(28px, 5vw, 56px)); bottom: calc(-1 * clamp(28px, 5vw, 56px)); left: calc(-1 * clamp(28px, 5vw, 56px));
  height: calc(100% + 2 * clamp(28px, 5vw, 56px)); width: auto; max-width: none; transform: scaleX(-1);
}
.founder h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.founder p { color: var(--muted); margin-top: 16px; font-size: 1.06rem; line-height: 1.75; }
.founder .btn { margin-top: 24px; }

/* ---------- Contact band ---------- */
.contact { background: var(--green); color: #fff; border-radius: 32px; padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.contact::after { content: ""; position: absolute; right: -100px; top: -100px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(230, 194, 106, 0.35), rgba(230,194,106,0) 70%); }
.contact .eyebrow { color: #E6C26A; }
#contact { padding-top: 0; }
.contact h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.contact p { color: rgba(255,255,255,0.82); margin-top: 14px; font-size: 1.08rem; }
.contact-box { position: relative; z-index: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 22px; padding: 24px; display: grid; gap: 14px; }
.contact-box small { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #E6C26A; }
.contact-box a.mail { color: #fff; font-family: "Fraunces", serif; font-size: 1.5rem; text-decoration: none; word-break: break-word; }
.contact-box a.mail:hover { text-decoration: underline; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.03em; }
.page-hero .lead { margin-top: 18px; max-width: 42rem; }

/* ---------- About ---------- */
.about-hero { padding: 48px 0 24px; }
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.about-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); letter-spacing: -0.03em; }
.about-hero .role { margin-top: 10px; font-weight: 700; color: var(--gold-text); letter-spacing: 0.02em; }
.about-hero .lead { margin-top: 20px; }
.about-hero .lead a { font-weight: 700; }
.about-art { justify-self: center; }
.about-art img { max-height: 440px; width: auto; }
.story { display: grid; grid-template-columns: 0.42fr 1fr; gap: 48px; align-items: start; }
.story h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); position: sticky; top: 110px; }
.story-body { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 40px); }
.story-body p { color: #434C45; font-size: 1.1rem; line-height: 1.8; }
.story-body p + p { margin-top: 16px; }
.quote { margin-top: 24px; padding: 20px 24px; border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 0 16px 16px 0; font-family: "Fraunces", serif; font-size: 1.2rem; line-height: 1.5; color: var(--green-deep); }
.quals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.quals li { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; color: #434C45; }
.quals .q-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.why p { color: #434C45; font-size: 1.08rem; line-height: 1.8; margin-top: 16px; }
.why-art { background: var(--sand); border-radius: 28px; padding: 24px 16px; }

/* ---------- Footer ---------- */
.site-footer { background: #10302A; color: rgba(255,255,255,0.75); padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.foot-brand img { width: 44px; height: 44px; }
.foot-brand .logo-name { color: #fff; }
.foot-brand .logo-sub { color: rgba(255,255,255,0.6); }
.foot-tag { margin-top: 16px; color: rgba(255,255,255,0.7); max-width: 22rem; }
.site-footer h3 { font-family: "Outfit", sans-serif; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #E6C26A; margin-bottom: 14px; }
.site-footer nav a, .site-footer .foot-col a { display: block; color: rgba(255,255,255,0.82); text-decoration: none; padding: 4px 0; font-weight: 500; }
.site-footer nav a:hover, .site-footer .foot-col a:hover { color: #fff; }
.legal-row { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.86rem; color: rgba(255,255,255,0.6); }

/* ---------- Error ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.error-page img { width: 96px; margin: 0 auto 20px; }
.error-page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.error-page p { color: var(--muted); margin: 14px 0 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: rgba(250, 247, 240, 0.98); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .bar { position: relative; }
  .hero-grid, .roots-grid, .founder, .contact, .about-grid, .story, .why { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; width: 100%; }
  .hero-badge { left: 0; }
  .prod-grid, .pillars { grid-template-columns: 1fr; }
  .quals { grid-template-columns: 1fr; }
  .founder-art { display: none; }
  .story h2 { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .about-art img { max-height: 300px; }
}
@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .hero { padding: 28px 0 48px; }
  .prod { padding: 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .logo-name { font-size: 1.08rem; }
  .logo img { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .prod { transition: none; } }

/* ---------- About: stats, engineering ---------- */
.about-stats { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.about-stats li { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.about-stats b { display: block; font-family: "Fraunces", serif; font-size: 1.6rem; color: var(--green-deep); line-height: 1.1; }
.about-stats span { display: block; margin-top: 4px; font-size: 0.86rem; color: var(--muted); line-height: 1.35; }
.eng { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eng .lead b { color: var(--green-deep); }
.proj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.proj { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; }
.proj-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.proj h3 { font-size: 1.3rem; }
.proj-client { font-size: 0.8rem; font-weight: 700; color: var(--gold-text); background: var(--gold-soft); padding: 4px 10px; border-radius: 999px; }
.proj-when { margin-top: 4px; font-size: 0.88rem; color: var(--muted); }
.proj-pts { margin: 14px 0 16px; padding: 0; list-style: none; display: grid; gap: 6px; flex: 1; }
.proj-pts li { position: relative; padding-left: 18px; color: #434C45; font-size: 0.97rem; line-height: 1.55; }
.proj-pts li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.proj-tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.proj-tools li { font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: var(--green-soft); color: var(--green-deep); }
.skills { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.skills-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); }
.skills ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { font-size: 0.88rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: #3D463F; }
.eng-note { margin-top: 28px; padding: 18px 22px; border-radius: 16px; background: var(--green-deep); color: rgba(255,255,255,0.88); font-size: 1.04rem; line-height: 1.65; }
@media (max-width: 960px) {
  .proj-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .about-stats { grid-template-columns: 1fr; }
}

/* ---------- About: engineering (short) ---------- */
.eng-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.eng-text { color: #434C45; font-size: 1.12rem; line-height: 1.8; }
.eng-text b { color: var(--green-deep); }
.eng-skills { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.eng-skills li { font-size: 0.92rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--green-soft); color: var(--green-deep); }
@media (max-width: 960px) { .eng-grid { grid-template-columns: 1fr; gap: 16px; } }
