/*
  Halcyon — r2 visual world (Robinhood doorway, 05.08 build)
  THESIS: a calm, premium guide — a near-black ground, a single warm gold, and
          a dark portfolio card with a gold line as the signature object.
          Deliberately apart from r1's bright mint world and the other builds.
  OWN-WORLD: midnight (#0d0f16), soft off-white text (#e8e9ef), one warm gold
             (#d6b25e / #e6c877) on CTAs and the chart, market green / red for
             moves. Quiet sans, hairline gold rules, generous space.
  MOTION: one authored moment — the hero gold line draws itself on load.
*/

:root {
  --bg: #0d0f16;
  --bg-2: #141826;
  --raise: #1a2032;
  --ink: #e8e9ef;
  --ink-soft: #9aa0b4;
  --gold: #d6b25e;
  --gold-bright: #e6c877;
  --gold-deep: #b8934a;
  --gold-soft: rgba(214, 178, 94, 0.14);
  --up: #3fbf7f;
  --down: #e5687a;
  --line: #262c3e;
  --line-soft: #1e2434;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 14px 30px -18px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 16px 36px -16px rgba(214, 178, 94, 0.35);
  --sans: "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "Consolas", "SF Mono", "Roboto Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.65; font-size: 16.5px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1150px, 92vw); margin: 0 auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

/* topbar */
.topbar { background: #090b11; color: #8b90a4; font-size: 13px; border-bottom: 1px solid var(--line-soft); }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 9px 0; align-items: center; }
.topbar a { color: var(--gold); font-weight: 600; } .topbar .sep { margin-left: auto; }

/* nav */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(13,15,22,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 32px; height: 32px; }
.brand b { font-family: var(--serif); font-size: 22px; letter-spacing: 0.01em; font-weight: 700; }
.brand b i { color: var(--gold); font-style: italic; }
.nav-links { display: flex; gap: 2px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 14.5px; }
.nav-links a:hover { background: var(--gold-soft); color: var(--gold-bright); text-decoration: none; }
.nav-cta { border: 1px solid var(--gold); color: var(--gold-bright) !important; }
.nav-cta:hover { background: var(--gold); color: #0d0f16 !important; }
.nav-toggle { display: none; }

/* hero */
.hero { padding: 76px 0 84px; }
.hero .grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 50px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.kicker .pill { background: var(--gold-soft); color: var(--gold-bright); padding: 3px 11px; border-radius: 999px; font-size: 11px; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.7rem, 5.6vw, 4.5rem); line-height: 1.0; letter-spacing: -0.01em; margin: 0 0 18px; font-weight: 700; }
.hero p.lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 47ch; margin: 0 0 28px; }
.btn-row { display: flex; gap: 13px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s, background .16s; }
.btn-primary { background: var(--gold); color: #0d0f16; box-shadow: var(--shadow-gold); }
.btn-primary:hover { transform: translateY(-2px); background: var(--gold-bright); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); text-decoration: none; }

/* portfolio card — signature object */
.pcard { background: linear-gradient(160deg, var(--bg-2), #10131f); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.pcard .top { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 24px 8px; }
.pcard .lbl { color: var(--ink-soft); font-size: 12.5px; letter-spacing: 0.03em; }
.pcard .val { font-family: var(--serif); font-size: 33px; font-weight: 700; letter-spacing: -0.01em; margin-top: 3px; }
.pcard .chg { color: var(--up); font-weight: 700; font-family: var(--mono); font-size: 13.5px; }
.pcard .chartbox { padding: 4px 8px 0; }
.pcard svg { display: block; width: 100%; height: 128px; }
.pcard .area { fill: url(#gg); }
.pcard .line { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 640; stroke-dashoffset: 640; animation: draw 1.6s cubic-bezier(.4,0,.2,1) forwards; filter: drop-shadow(0 0 6px rgba(214,178,94,0.5)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .pcard .line { animation: none; stroke-dashoffset: 0; } }
.pcard .foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); padding: 8px 24px 18px; }

/* sections */
.section { padding: 78px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section.gold { background: linear-gradient(150deg, #17130a, #0d0f16); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section h2 { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -0.005em; line-height: 1.1; margin: 8px 0 14px; font-weight: 700; }
.section p { color: var(--ink-soft); max-width: 68ch; }
.prose p { margin: 0 0 18px; }
.prose h3 { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -0.005em; margin: 30px 0 10px; font-weight: 700; }

/* label that reads like a heading but stays out of the h1/h2 outline */
.fakeh2 { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -0.005em; line-height: 1.1; margin: 8px 0 14px; font-weight: 700; }

/* paired h3 under each keyword h2 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.duo > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.duo > div:hover { border-color: var(--gold-deep); }
.duo h3 { font-family: var(--serif); margin: 0 0 6px; font-size: 1.16rem; letter-spacing: -0.005em; font-weight: 700; }
.duo p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* watch rows */
.watch { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wrow { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 15px; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line-soft); font-family: var(--mono); }
.wrow:last-child { border-bottom: 0; }
.wrow .tk { width: 32px; height: 32px; border-radius: 9px; background: var(--gold-soft); color: var(--gold-bright); display: grid; place-items: center; font-weight: 800; font-family: var(--sans); }
.wrow .nm { font-family: var(--sans); } .wrow .nm b { display: block; } .wrow .nm span { color: var(--ink-soft); font-size: 12.5px; }
.wrow .ch.up { color: var(--up); } .wrow .ch.down { color: var(--down); }

/* media band */
.mediaband { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.mediaband img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow); border: 1px solid var(--line); }
.mediaband.flip { direction: rtl; } .mediaband.flip > * { direction: ltr; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat .n { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; color: var(--gold-bright); }
.stat .l { color: var(--ink-soft); font-size: 14px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before { counter-increment: step; content: counter(step); width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-bright); font-weight: 700; display: grid; place-items: center; margin-bottom: 10px; font-family: var(--serif); }
.step b { display: block; margin-bottom: 4px; font-size: 1.06rem; font-family: var(--serif); }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.gallery-grid a { overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.gallery-grid img { aspect-ratio: 1/1; object-fit: cover; transition: transform .4s ease; opacity: 0.92; }
.gallery-grid a:hover img { transform: scale(1.06); opacity: 1; }

/* team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member img { aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; border: 1px solid var(--line); }
.member b { display: block; font-size: 1.04rem; font-family: var(--serif); } .member span { color: var(--ink-soft); font-size: 14px; }

/* faq */
.faq { max-width: 78ch; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 12px 0 0; color: var(--ink-soft); }

/* cta */
.cta-band { padding: 76px 0; text-align: center; background: linear-gradient(150deg, #1b160b, #0d0f16); border-top: 1px solid var(--line); }
.cta-band .fakeh2 { color: var(--gold-bright); }
.cta-band p { color: var(--ink-soft); margin: 0 auto 26px; max-width: 54ch; }

/* login */
.login-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 78vh; }
.login-aside { background: linear-gradient(160deg, #14100a, #0d0f16); color: var(--ink); padding: 64px 6vw; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.login-aside .lead-big { font-family: var(--serif); font-size: clamp(1.9rem,3vw,2.5rem); letter-spacing: -0.01em; font-weight: 700; margin-bottom: 12px; line-height: 1.1; color: #fff; }
.login-aside p { color: var(--ink-soft); max-width: 40ch; }
.login-main { padding: 64px 6vw; display: flex; flex-direction: column; justify-content: center; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; max-width: 440px; width: 100%; }
.card h1 { font-family: var(--serif); font-size: 1.7rem; letter-spacing: -0.005em; margin: 0 0 6px; }

/* forms */
.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font: inherit; color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #5c6377; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(214,178,94,.2); border-color: var(--gold); }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.btn-block { width: 100%; justify-content: center; background: var(--gold); color: #0d0f16; }
.btn-block:hover { background: var(--gold-bright); }
.muted { color: var(--ink-soft); font-size: 14.5px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; }
.contact-list ul { padding: 0; margin: 0; }
.contact-list li { list-style: none; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.contact-list .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); font-weight: 700; }

/* page hero */
.page-hero { padding: 60px 0; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3.2rem); letter-spacing: -0.005em; margin: 0 0 10px; font-weight: 700; }
.page-hero p { color: var(--ink-soft); max-width: 62ch; margin: 0; }
.crumbs { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; font-weight: 600; letter-spacing: 0.04em; }

/* footer */
.site-foot { background: #090b11; color: var(--ink-soft); padding: 54px 0 26px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 26px; }
.site-foot .fh { color: var(--gold); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 14px; font-weight: 700; }
.site-foot a { color: var(--ink-soft); display: block; padding: 5px 0; } .site-foot a:hover { color: var(--gold-bright); }
.site-foot .brand b { color: var(--ink); }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 20px; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* cookie */
.cookie { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 560px; margin: 0 auto; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); padding: 15px 18px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; z-index: 60; font-size: 14px; }
.cookie button { border: 0; border-radius: 999px; padding: 9px 15px; font-weight: 700; cursor: pointer; }
.cookie .ok { background: var(--gold); color: #0d0f16; } .cookie .no { background: transparent; color: var(--ink-soft); }

/* thank-you */
.ty { text-align: center; padding: 92px 0; }
.ty .check { width: 78px; height: 78px; margin: 0 auto 22px; border-radius: 999px; border: 1px solid var(--gold); display: grid; place-items: center; box-shadow: var(--shadow-gold); }
.ty h1 { font-family: var(--serif); font-size: clamp(2rem,4vw,3rem); letter-spacing: -0.005em; margin: 0 0 12px; }

@media (max-width: 900px) {
  .hero .grid, .mediaband, .stats, .gallery-grid, .team, .contact-grid, .foot-grid, .login-shell { grid-template-columns: 1fr; }
  .stats, .team, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; margin-left: auto; border: 1px solid var(--gold); background: transparent; color: var(--gold-bright); border-radius: 8px; padding: 10px 15px; font-weight: 700; cursor: pointer; }
  .mediaband.flip { direction: ltr; } .login-aside { display: none; }
  .wrow { grid-template-columns: 38px 1fr auto; } .wrow .val2 { display: none; }
}
