/* =============================================================
   Soluneer — Software Consulting & Development
   Design system: warm-black void + ember glow + Hanken Grotesk.
   Cinematic, minimal, modern. No stock photography — every
   "frame" is a drawn gradient placeholder, easy to swap for real
   screenshots/photos later.
   ============================================================= */

@import url("../fonts/hanken.css");

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces (warm-tinted blacks) */
  --bg:        #0a0806;
  --bg-2:      #100c09;
  --surface:   #17110c;
  --surface-2: #1f1710;

  /* Ink (warm off-whites, never pure white) */
  --ink:       #f3ede3;
  --ink-muted: #a89e91;
  --ink-faint: #6f665c;

  /* Ember accent — sun-glow, for Sol-uneer */
  --ember:     #ea5f26;
  --ember-lit: #f6824a;
  --rust:      #b8391a;
  --amber:     #e9a24c;

  /* Lines & glows */
  --line:      rgba(243, 237, 227, 0.09);
  --line-2:    rgba(243, 237, 227, 0.16);
  --glow:      rgba(234, 95, 38, 0.35);

  /* Type */
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(5rem, 12vw, 10rem);
  --radius: 14px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html { overflow-x: hidden; }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--ember); color: #150a05; }

/* ---------- Atmosphere: vignette ---------- */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9000;
  background: radial-gradient(130% 100% at 50% 0%, transparent 55%, rgba(0,0,0,0.45) 100%);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.display {
  font-weight: 800;
  font-size: clamp(2.75rem, 1.6rem + 6vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.h2 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.25rem); font-weight: 700; letter-spacing: -0.025em; }
.h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); font-weight: 600; letter-spacing: -0.015em; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: ""; width: 1.9rem; height: 1px; background: var(--ember); opacity: 0.7;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  color: var(--ink-muted);
  font-weight: 400;
  line-height: 1.5;
  max-width: 42ch;
}
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--ember); color: #180b05;
  box-shadow: 0 0 0 0 var(--glow);
}
.btn--primary:hover { background: var(--ember-lit); box-shadow: 0 8px 30px -6px var(--glow); transform: translateY(-2px); }
.btn--ghost {
  border: 1px solid var(--line-2); color: var(--ink); background: rgba(255,255,255,0.015);
}
.btn--ghost:hover { border-color: var(--ember); color: var(--ember-lit); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.textlink {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--ink); font-weight: 600; position: relative;
  transition: color 0.2s var(--ease);
}
.textlink::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%;
  background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.textlink:hover { color: var(--ember-lit); }
.textlink:hover::after { transform: scaleX(1); }
.textlink .arrow { transition: transform 0.25s var(--ease); }
.textlink:hover .arrow { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 8, 6, 0.92);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand {
  font-weight: 700; letter-spacing: 0.14em; font-size: 0.9rem; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px var(--glow); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-muted);
  letter-spacing: 0.02em; transition: color 0.2s var(--ease); position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--ember);
}
.nav-cta { display: flex; align-items: center; gap: 1.25rem; }

/* Mobile menu button */
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; z-index: 1100; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: 0.3s var(--ease); }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--ink); transition: 0.3s var(--ease); }
.menu-toggle span::before { top: -7px; } .menu-toggle span::after { top: 7px; }
body.menu-open .menu-toggle span { background: transparent; }
body.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero (drawn, no photo) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 78% 22%, rgba(234,95,38,0.30), transparent 60%),
    radial-gradient(50% 40% at 15% 85%, rgba(184,57,26,0.16), transparent 65%),
    linear-gradient(160deg, var(--bg-2), var(--bg) 60%);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 4%, rgba(10,8,6,0.15) 45%, transparent 100%);
}
.hero__inner { padding-block: clamp(6rem, 14vh, 9rem) clamp(3.5rem, 9vh, 6rem); width: 100%; }
.hero .display { max-width: 15ch; margin-top: 1.4rem; }
.hero__sub { margin-top: 1.6rem; }
.hero__cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  opacity: 1; transition: opacity 0.4s var(--ease);
}
.scroll-cue.hide { opacity: 0; pointer-events: none; }
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--ember), transparent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .line { animation: none; } }

/* ---------- Page header (interior pages) ---------- */
.page-head { padding-top: clamp(9rem, 18vh, 13rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-head .display { margin-top: 1rem; }
.page-head .lead { margin-top: 1.6rem; }

/* ---------- Section header ---------- */
.sec-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head .index { font-size: 0.8rem; letter-spacing: 0.2em; color: var(--ink-faint); font-weight: 600; }

/* ---------- Statement / audience ---------- */
.statement { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; max-width: 24ch; }
.statement em { font-style: normal; color: var(--ember-lit); }

.audience { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 760px) { .audience { grid-template-columns: repeat(3, 1fr); } }
.audience__item { background: var(--bg); padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.2rem, 2.5vw, 2rem); }
.audience__num { color: var(--ember); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.15em; }
.audience__item h3 { margin-top: 1rem; font-size: 1.25rem; }
.audience__item p { margin-top: 0.6rem; color: var(--ink-muted); font-size: 0.98rem; }

/* ---------- Framed placeholder (drawn gradient, stands in for a photo/screenshot) ---------- */
.frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.8);
}
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), inset 0 0 90px rgba(0,0,0,0.4);
}
.frame .art { width: 100%; height: 100%; display: block; }

/* ---------- Work teaser (home) ---------- */
.work-grid { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
@media (min-width: 800px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work-card { display: block; }
.work-card .frame { aspect-ratio: 16/10; transition: transform 0.5s var(--ease), border-color 0.4s var(--ease); }
.work-card:hover .frame { transform: translateY(-4px); border-color: rgba(234,95,38,0.4); box-shadow: 0 30px 70px -28px rgba(0,0,0,0.9), 0 0 60px -30px var(--glow); }
.work-card__meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: 1.1rem; gap: 1rem; }
.work-card__meta h3 { font-size: 1.3rem; }
.work-card__meta .tag { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.cta-band__glow { position: absolute; inset: 0; z-index: 0; background: radial-gradient(70% 130% at 50% 120%, rgba(234,95,38,0.22), transparent 60%); }
.cta-band .container { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }
.cta-band .display { max-width: 18ch; }

/* ---------- Feature block (work.html engagement models) ---------- */
.feature { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.feature .frame { aspect-ratio: 16/9; }
.feature__label { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; flex-wrap: wrap; }
.feature__label h3 { font-size: 1.4rem; }
.feature__body { margin-top: 1.5rem; max-width: 62ch; color: var(--ink-muted); }

.cap-grid { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
@media (min-width: 720px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
.cap-card .frame { aspect-ratio: 16/9; }
.cap-card h4 { margin-top: 1rem; font-size: 1.1rem; font-weight: 600; }
.cap-card p { color: var(--ink-muted); font-size: 0.94rem; margin-top: 0.35rem; }

/* ---------- Bio / About panel (drawn, no photo) ---------- */
.bio-mag { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-2); }
.bio-mag__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 70% at 80% 10%, rgba(234,95,38,0.22), transparent 65%),
    radial-gradient(45% 55% at 10% 90%, rgba(184,57,26,0.14), transparent 65%),
    linear-gradient(165deg, var(--surface), var(--bg-2));
}
.bio-mag__inner { position: relative; padding: clamp(1.75rem, 5vw, 3rem); }
.bio-prose p {
  color: var(--ink);
  font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.18rem);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1.05rem;
  max-width: 64ch;
}
.bio-prose p:last-child { margin-bottom: 0; }

.credits { list-style: none; border-top: 1px solid var(--line); margin-top: 1rem; }
.credits li { display: grid; grid-template-columns: 7rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.credits .yr { color: var(--ember); font-weight: 600; font-size: 0.9rem; }
.credits .title { font-weight: 600; }
.credits .title small { display: block; color: var(--ink-faint); font-weight: 400; font-size: 0.85rem; margin-top: 0.15rem; }
.credits .role { color: var(--ink-muted); font-size: 0.88rem; text-align: right; }

.capabilities { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px){ .capabilities { grid-template-columns: repeat(2, 1fr); } }
.cap-item { background: var(--bg); padding: 1.4rem 1.6rem; }
.cap-item h4 { color: var(--ember); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.cap-item p { margin-top: 0.6rem; color: var(--ink-muted); font-size: 0.94rem; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (min-width: 920px){ .contact { grid-template-columns: 1fr 1fr; } }
.contact__aside .display { font-size: clamp(2.2rem, 1.4rem + 3.5vw, 4rem); max-width: 14ch; }
.contact__methods { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.4rem; }
.method { display: flex; flex-direction: column; gap: 0.2rem; }
.method .k { font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.method a { font-size: 1.15rem; font-weight: 600; width: fit-content; }

.form { display: grid; gap: 1.3rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.82rem; letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--ink); padding: 0.85rem 1rem; font-family: inherit; font-size: 1rem; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(234,95,38,0.15); }
.field textarea { resize: vertical; min-height: 130px; }
.form .btn--primary { justify-content: center; margin-top: 0.4rem; }
.form-note { font-size: 0.8rem; color: var(--ink-faint); }
.two-col { display: grid; gap: 1.3rem; }
@media (min-width: 520px){ .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-brand { max-width: 30ch; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: var(--ink-muted); font-size: 0.95rem; }
.footer-nav { display: flex; gap: clamp(2rem, 6vw, 5rem); }
.footer-col h5 { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: var(--ink-muted); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--ember-lit); }
.footer-base { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: var(--ink-faint); font-size: 0.85rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Mobile nav ---------- */
@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1050; flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
    background: rgba(10,8,6,0.99);
    opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  }
  .nav-links a { font-size: 1.5rem; color: var(--ink); }
  body.menu-open .nav-links { opacity: 1; visibility: visible; }
}

/* Utility */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.stack-lg { display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.4rem); }
