/* Talos Labs — "Ember" design. Dark, minimal, bronze → ember accents. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #11100f;
  --surface: #181614;
  --surface-2: #1d1915;
  --line: #24211e;
  --line-2: #2a2622;
  --ink: #efe9e1;
  --muted: #b9b0a5;
  --faint: #9d948a;
  --bronze: #c8925a;
  --bronze-hi: #e2ae74;
  --ember: #ff8a4c;
  --ember-hi: #ffa06a;
  --on-accent: #150f09;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--text); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--bronze-hi); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; }
p, ul, ol { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: max(5vw, 16px); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.hd { position: sticky; top: 0; z-index: 10; background: rgb(17 16 15 / 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.links { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; font-size: 15px; list-style: none; padding: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; font: 600 16px/1 var(--text); cursor: pointer; color: var(--on-accent); background: linear-gradient(100deg, var(--bronze), var(--ember)); transition: filter .2s ease; }
.btn:hover { color: var(--on-accent); filter: brightness(1.1); }
.btn .ar { transition: transform .2s ease; }
.btn:hover .ar { transform: translateX(4px); }
.btn-sm { min-height: 44px; padding: 0 20px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid #3a352f; }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); filter: none; }
.btn[aria-disabled="true"] { opacity: .6; cursor: progress; }

/* Sections */
section { padding-block: clamp(72px, 9vw, 104px); }
section + section { border-top: 1px solid var(--line); }
.h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.03em; line-height: 1.05; }
.lead { color: var(--muted); font-size: 18px; }
.stack { display: flex; flex-direction: column; gap: 24px; }

/* Hero */
.hero { padding-block: clamp(80px, 11vw, 120px); }
.hero h1 { font-size: clamp(48px, 8.4vw, 124px); line-height: 0.95; letter-spacing: -0.05em; max-width: 11em; }
.hero-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px; align-items: center; margin-top: 32px; }
.hero-row p { color: var(--muted); font-size: 20px; max-width: 30em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* Services */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-head p { color: var(--muted); max-width: 26em; }
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; }
.card { height: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--ember); background: var(--surface-2); }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); }
.badge { width: 48px; height: 48px; }

/* Approach */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin-top: 44px; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 3px solid var(--bronze); }
.steps li:nth-child(2) { border-color: #e0a06a; }
.steps li:nth-child(3) { border-color: #f2955a; }
.steps li:nth-child(4) { border-color: var(--ember); }
.steps h3 { font-size: 22px; }
.steps p { color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; align-items: start; }
.exp-title { font: 600 16px/1.6 var(--text); margin-bottom: 8px; }
.exp { list-style: none; padding: 0; border-bottom: 1px solid var(--line-2); }
.exp li { display: flex; flex-direction: column; gap: 6px; padding-block: 20px; border-top: 1px solid var(--line-2); }
.exp h4 { font-family: var(--display); font-weight: 600; font-size: 19px; margin: 0; }
.exp p { color: var(--muted); }

/* Contact */
.contact-sec { padding-top: 40px; border-top: 0 !important; }
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; padding: clamp(28px, 4vw, 52px); border-radius: 24px; border: 1px solid #3a2c22; background: radial-gradient(120% 140% at 100% 0%, #2a1a10 0%, #181512 55%); }
.contact .h2 { font-size: clamp(30px, 3.4vw, 44px); }
form { display: flex; flex-direction: column; gap: 16px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.opt { color: var(--faint); font-weight: 400; }
input, textarea { font: 16px/1.4 var(--text); color: var(--ink); background: var(--bg); border: 1px solid #736b62; border-radius: 10px; padding: 13px 14px; width: 100%; }
textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus { outline: 2px solid var(--ember); outline-offset: 1px; border-color: var(--ember); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.status { min-height: 1.6em; font-size: 15px; }
.status.ok { color: #8fd9a8; }
.status.err { color: #ff9b8a; }

/* Footer */
.ft { border-top: 1px solid var(--line); padding-block: 32px; color: var(--faint); font-size: 14px; }
.ft .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ft nav ul { display: flex; gap: 20px; list-style: none; padding: 0; }
.ft a { color: var(--faint); }
.ft a:hover { color: var(--bronze-hi); }

/* 404 */
.nf { min-height: 70vh; display: flex; align-items: center; }
.nf > * { flex: 1 1 auto; min-width: 0; }

@media (max-width: 960px) {
  .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .cta { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .svc, .steps, .row2 { grid-template-columns: minmax(0, 1fr); }
  .links .hide { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .btn .ar { transition: none; }
  .card:hover { transform: none; }
}
