/* Phantom Grace Technologies — site styles (design option A, "Lit exhibits", docs/DESIGN.md).
   Tokens first; every colour below references a token. Light is the default; [data-theme="dark"] is set by js/site.js
   before first paint, and visitors without script follow the system setting through the media query. */
:root {
  --ground: #f2f3f6; --raise: #e6e8ee; --ink: #161922; --soft: #4a5160;
  --accent: #1f4fb4; --on-accent: #ffffff; --tile: #e2b53c; --field: #ffffff; --error: #b42318;
  --max: 1360px; --gutter: clamp(16px, 3vw, 32px);
}
[data-theme="dark"] {
  --ground: #0d0f15; --raise: #171a23; --ink: #eef0f6; --soft: #a8afbf;
  --accent: #6f9bff; --on-accent: #0d0f15; --tile: #e9c25a; --field: #11141c; --error: #ff8a80;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) { --ground: #0d0f15; --raise: #171a23; --ink: #eef0f6; --soft: #a8afbf;
    --accent: #6f9bff; --on-accent: #0d0f15; --tile: #e9c25a; --field: #11141c; --error: #ff8a80; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 18px/1.55 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; transition: background-color .4s, color .4s; }
a { color: inherit; text-underline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ground); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--tile); outline-offset: 3px; }

/* Header: over the photograph on the home page, a plain bar elsewhere. */
.site-header { position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.site-header.over { position: absolute; inset: 0 0 auto; color: #fff; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark img { width: 52px; height: 22px; }
.mark span { font-weight: 300; letter-spacing: .08em; font-size: 18px; white-space: nowrap; }
.over .mark img, [data-theme="dark"] .mark img { filter: brightness(0) invert(1); }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; font-size: 16px; opacity: .88; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; }
/* Theme switch: a round icon button; the moon shows in light mode (switch to dark), the sun in dark mode. */
.toggle { width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: var(--raise); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, transform .3s cubic-bezier(.2, .7, .2, 1); }
.toggle svg { grid-area: 1 / 1; transition: opacity .25s, transform .4s cubic-bezier(.2, .7, .2, 1); }
.toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
[data-theme="dark"] .toggle .i-sun { opacity: 1; transform: none; }
[data-theme="dark"] .toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
.over .toggle { background: rgba(255, 255, 255, .92); color: #111; }
.toggle:hover { background: var(--tile); color: #111; transform: rotate(-12deg); }
.toggle:active { transform: scale(.92); }

/* Home hero: the palace fills the first screen; the claim sits low-left in white over a neutral scrim. */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; color: #fff; background: #3c3a35; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { object-fit: cover; object-position: 35% 40%; transform: scale(1.06); animation: drift 18s ease-out forwards; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(8, 10, 16, .45); }
.hero .copy { position: absolute; left: 0; right: 0; bottom: clamp(40px, 8vh, 96px); z-index: 2; }
.hero h1 { margin: 0; font-weight: 500; font-size: clamp(44px, 7.4vw, 118px); line-height: .98; letter-spacing: -.035em; max-width: 13ch; }
.hero p { margin: 22px 0 0; max-width: 52ch; font-size: clamp(17px, 1.4vw, 20px); }
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 15px 24px; font: 500 17px "IBM Plex Sans", sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s, background-color .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn-light { margin-top: 30px; background: #fff; color: #111; }
.btn-light:hover { background: var(--tile); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--ink); color: var(--ground); }
.btn[disabled] { opacity: .6; cursor: progress; }
@keyframes drift { to { transform: scale(1); } }

/* About: bento grid (owner pick, 22 Oct). The palace photograph is the big tile, the story on a frosted-glass card over
   it; four fact tiles beside it, one in tile blue, one linking to /about. */
.bento { margin-top: clamp(80px, 10vw, 150px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(220px, 1fr)); gap: 16px; }
.bento > * { border-radius: 28px; overflow: hidden; }
.b-photo { grid-column: 1 / 3; grid-row: 1 / 3; position: relative; min-height: 600px; }
.b-photo picture, .b-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.b-photo img { object-fit: cover; object-position: 50% 14%; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.b-photo:hover img { transform: scale(1.04); }
.glass { position: absolute; left: 16px; right: 16px; bottom: 16px; border-radius: 22px; padding: clamp(22px, 2.4vw, 34px);
  background: rgba(255, 255, 255, .64); color: #14171f; border: 1px solid rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
[data-theme="dark"] .glass { background: rgba(13, 15, 21, .6); color: #eef0f6; border-color: rgba(255, 255, 255, .14); }
.glass h2 { margin: 0; font-weight: 500; font-size: clamp(28px, 2.6vw, 42px); letter-spacing: -.03em; line-height: 1.06; }
.glass p { margin: 12px 0 0; max-width: 52ch; font-size: 17px; }
.b-fact { background: var(--raise); padding: clamp(22px, 2.2vw, 32px); display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; color: var(--ink); transition: transform .3s cubic-bezier(.2, .7, .2, 1), background-color .3s; }
.b-fact strong { font-size: clamp(34px, 3.6vw, 58px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.b-fact span { margin-top: 10px; color: var(--soft); font-size: 16px; }
.b-blue { background: var(--accent); color: var(--on-accent); }
.b-blue span { color: inherit; opacity: .88; }
.b-link:hover { transform: translateY(-4px); background: var(--tile); color: #14171f; }
.b-link:hover span { color: #14171f; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgba(255, 255, 255, .92); } [data-theme="dark"] .glass { background: rgba(13, 15, 21, .9); } }

/* Brand exhibits: one product per screen, picture large, words beside it, sides alternating. */
.exhibit { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 72px); align-items: center; padding: clamp(80px, 12vw, 180px) 0 0; }
.exhibit:nth-child(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.exhibit:nth-child(even) figure { order: 2; }
.exhibit figure { margin: 0; background: var(--raise); padding: clamp(12px, 2vw, 28px); overflow: hidden; }
.exhibit figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.exhibit:hover figure img { transform: scale(1.02); }
.exhibit h2 { margin: 0; font-weight: 500; font-size: clamp(40px, 5vw, 76px); letter-spacing: -.03em; line-height: 1; }
.exhibit .what { margin: 10px 0 0; color: var(--accent); font-weight: 500; }
.exhibit p { margin: 18px 0 0; max-width: 40ch; }
.feats { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 46ch; font-size: 16px; }
.feats li { position: relative; padding-left: 22px; }
.feats li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.exhibit .go { display: inline-block; margin-top: 22px; font-weight: 500; }
.exhibit .soon { display: inline-block; margin-top: 22px; color: var(--soft); }
.drawn { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: clamp(26px, 3vw, 44px); font-weight: 300; letter-spacing: -.02em; text-align: center; padding: 16px; }
.drawn.turmeric { background: var(--tile); color: #14171f; }
.only-dark { display: none !important; }
[data-theme="dark"] .only-dark { display: block !important; }
[data-theme="dark"] .only-light { display: none !important; }

/* Founder / careers on the home page. */
.people { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 96px); padding: clamp(100px, 14vw, 200px) 0; align-items: center; }
.portrait { background: var(--raise); display: grid; place-items: end center; padding-top: 32px; }
.portrait img { width: min(100%, 381px); }
.people h2 { margin: 0; font-weight: 500; font-size: clamp(34px, 3.6vw, 54px); letter-spacing: -.03em; line-height: 1.05; }
.people p { max-width: 56ch; }
.people .gap { margin-top: 56px; }

/* Contact close (home) and the e-mail at monument size. */

/* Inner pages. */
.page-head + .split { padding-top: 0; }
.page-head { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.page-head h1 { margin: 0; font-weight: 500; font-size: clamp(42px, 6.4vw, 100px); line-height: .98; letter-spacing: -.035em; max-width: 16ch; }
.page-head p { margin: 26px 0 0; max-width: 58ch; font-size: clamp(18px, 1.5vw, 21px); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 96px); padding: clamp(64px, 9vw, 130px) 0; align-items: start; }
.split h2 { margin: 0; font-weight: 500; font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -.03em; line-height: 1.05; }
.split p { margin: 0 0 18px; max-width: 60ch; }
.split figure { margin: 0; }
.split figcaption, .caption { margin-top: 10px; color: var(--soft); font-size: 15px; }
.wide-photo { height: min(70vh, 720px); }
.wide-photo picture, .wide-photo img { width: 100%; height: 100%; }
.wide-photo img { object-fit: cover; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 18px 0; }
.list li + li { margin-top: 6px; }
.list strong { display: block; font-size: 22px; font-weight: 500; }
.band { background: var(--raise); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 12px 32px; margin: 0; font-size: 17px; }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; }

/* Contact form. Real form fields keep their own borders (docs/DESIGN.md). */
.form { display: grid; gap: 22px; max-width: 640px; }
.form label { display: block; font-weight: 500; font-size: 16px; margin-bottom: 8px; }
.form input, .form select, .form textarea { width: 100%; font: 400 17px "IBM Plex Sans", sans-serif; color: var(--ink); background: var(--field); border: 2px solid var(--raise); border-radius: 12px; padding: 13px 14px; transition: border-color .2s; }
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .hint { color: var(--soft); font-size: 14px; margin-top: 6px; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .status { min-height: 28px; font-weight: 500; }
.form .status.ok { color: var(--accent); }
.form .status.err { color: var(--error); }

/* Legal documents. */
.doc { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 120px); }
.doc .wrap { max-width: 820px; }
.doc h1 { margin: 0; font-size: clamp(36px, 4.6vw, 56px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.doc .updated { margin: 12px 0 40px; color: var(--soft); font-size: 16px; }
.doc h2 { margin: 44px 0 12px; font-size: 23px; font-weight: 600; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }

/* Footer (B1, owner pick 22 Oct): always dark; the logo's wave draws across the white name when it scrolls in. */
.site-footer { position: relative; overflow: hidden; background: #0b0d13; color: #c9cedb; padding: clamp(64px, 8vw, 110px) 0 32px; font-size: 16px; }
[data-theme="dark"] .site-footer { border-top: 1px solid #1d212c; }
.site-footer a { color: #eef0f6; text-decoration: none; }
.site-footer a:hover { color: #e9c25a; }
.ft-top { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.ft-head { margin: 0; color: #eef0f6; font-weight: 500; font-size: clamp(30px, 3.2vw, 48px); letter-spacing: -.035em; line-height: 1.05; }
.ft-head em { font-style: normal; color: #e9c25a; }
.ft-mail { display: inline-block; margin-top: 22px; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; text-decoration: underline !important; text-underline-offset: 6px; }
.ft-k { margin: 0 0 16px; color: #e9c25a; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft-name { position: relative; margin: clamp(60px, 8vw, 110px) 0 0; color: #f4f5f9; font-weight: 600; font-size: clamp(40px, 13.4vw, 210px); letter-spacing: -.05em; line-height: .85; white-space: nowrap; }
.ft-wave { position: absolute; left: 50%; top: -30%; width: 110vw; height: 150%; transform: translateX(-50%); pointer-events: none; }
.js .ft-wave path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .site-footer.in .ft-wave path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s .2s cubic-bezier(.2, .7, .2, 1); }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; margin-top: 36px; font-size: 14px; color: #a8afbf; }
.ft-bottom .credits { margin: 0; max-width: 70ch; }

/* Entrances: hidden only when js/site.js runs, so content never depends on script. */
.js [data-step] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .in [data-step], .js [data-step].in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .ft-top { grid-template-columns: 1fr 1fr; }
  .ft-top > :first-child { grid-column: 1 / -1; }
  .exhibit, .exhibit:nth-child(even), .people, .split { grid-template-columns: 1fr; }
  .exhibit:nth-child(even) figure { order: 0; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 12px; }
  .b-photo { grid-column: 1 / -1; grid-row: auto; min-height: 560px; }
  .b-fact { min-height: 150px; }
  .nav a.hide { display: none; }
}
@media (max-width: 600px) {
  .nav { gap: 14px; }
  .nav a { display: none; }
  .nav a.keep { display: inline; }
  .toggle { width: 40px; height: 40px; }
  .mark span { display: none; }
  .hero img { animation: none; transform: none; }
  .b-fact strong { font-size: 30px; }
  .b-fact span { font-size: 15px; }
  .b-photo { min-height: 520px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero img { animation: none; transform: none; }
  .js [data-step] { opacity: 1; transform: none; transition: none; }
}

/* Founder page (option A, owner pick 22 Oct): bento profile, blue philosophy card, career and brand tiles. */
.btn-soft{background:var(--raise);color:var(--ink)}
.btn-soft:hover{background:var(--tile);color:#111}
.muted{color:var(--soft)}
.fa{margin-top:clamp(24px,4vw,56px)}
.fa .b-photo{background:#000}
.fa .b-photo img{object-fit:contain;object-position:85% 100%}
.fa .b-photo{display:grid;grid-template-columns:minmax(0,1fr) 46%}
.fa .b-photo picture{position:relative;inset:auto;grid-column:2;grid-row:1}
.fa .glass{position:relative;inset:auto;grid-column:1;grid-row:1;align-self:end;margin:16px;z-index:1}
.fa h1{font-size:clamp(36px,3.4vw,54px)}
.fa h1{margin:0;font-weight:500;font-size:clamp(40px,4.4vw,64px);letter-spacing:-.035em;line-height:1}
.fa .glass{background:rgba(242,243,246,.92)}[data-theme=dark] .fa .glass{background:rgba(13,15,21,.72)}
.fa .glass .role{margin:8px 0 0;color:var(--accent);font-weight:500}
[data-theme=dark] .fa .glass .role{color:#9db8ff}
.fa-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.fa-links .btn{padding:12px 18px;font-size:15px}
.b-tile{background:var(--tile)!important;color:#111!important}
.b-tile span{color:#3a3020!important}
.fa-about{padding-top:16px;padding-bottom:16px}
.fa-text{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(24px,5vw,96px);padding:clamp(28px,5vw,72px);border-radius:28px;background:var(--raise);align-items:start}
.fa-text p:last-child{margin-bottom:0}
.fa-text h2{margin:0;font-weight:500;font-size:clamp(30px,3.4vw,50px);letter-spacing:-.03em;line-height:1.05}
.fa-text p{margin:0 0 18px;max-width:60ch}
.fa-creed{border-radius:28px;background:var(--accent);color:var(--on-accent);padding:clamp(32px,6vw,96px);position:relative;overflow:hidden}
.fa-creed::after{content:"";position:absolute;right:-60px;top:-60px;width:320px;height:320px;border-radius:50%;background:var(--tile);opacity:.9}
.fa-creed .k{position:relative;z-index:1;font-weight:500;font-size:16px;letter-spacing:.06em;text-transform:uppercase;opacity:.85}
.fa-creed h2{position:relative;z-index:1;margin:14px 0 26px;font-weight:500;font-size:clamp(36px,5.4vw,84px);letter-spacing:-.04em;line-height:1;max-width:14ch}
.fa-creed p{position:relative;z-index:1;margin:0;max-width:62ch;font-size:clamp(17px,1.35vw,20px);line-height:1.65}
.fa-creed .sig{position:relative;z-index:1;display:block;margin-top:24px;font-weight:500}
.fa-career{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:16px;margin:16px 0 0}
.fa-career>div{background:var(--raise);border-radius:22px;padding:22px;min-height:180px;display:flex;flex-direction:column;justify-content:space-between;transition:transform .3s,background-color .3s}
.fa-career>div:hover{transform:translateY(-4px);background:var(--tile);color:#111}
.fa-career div:hover span{color:#3a3020}
.fa-career b{font-size:clamp(28px,2.4vw,40px);font-weight:500;letter-spacing:-.03em}
.fa-career strong{display:block;font-size:19px;font-weight:500}
.fa-career span{color:var(--soft);font-size:15px}
.fa-career .now{background:var(--ink);color:var(--ground)}
.fa-career .now span{color:inherit;opacity:.75}
.fa-brands{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:16px 0 clamp(80px,10vw,140px)}
.fa-brands div{border-radius:22px;padding:24px;background:var(--raise);min-height:200px;display:flex;flex-direction:column;justify-content:space-between}
.fa-brands strong{font-size:24px;font-weight:500;letter-spacing:-.02em}
.fa-brands p{margin:6px 0 0;color:var(--soft);font-size:16px}
.fa-brands a{font-weight:500}
.fa-sec{margin:clamp(64px,8vw,110px) 0 0;font-weight:500;font-size:clamp(30px,3.4vw,50px);letter-spacing:-.03em}
@media (max-width:860px){.fa-text{grid-template-columns:1fr}
.fa-career{grid-template-columns:1fr 1fr}.fa-career .now{grid-column:1 / -1}
.fa-brands{grid-template-columns:1fr}
.fa .b-photo{display:flex;flex-direction:column;min-height:0}
.fa .b-photo picture{height:440px}
.fa .b-photo img{object-position:50% 100%}
.fa .glass{margin:0 12px 12px}
.fa-creed::after{width:96px;height:96px;right:-36px;top:-36px}}
