/* ==========================================================================
   Warewolf Technologies
   Palette is taken straight from the logo:
     indigo  #333652   amber  #FA832C -> #FA9B2C -> #FAB42C
   ========================================================================== */

:root {
  --ink-950: #191b2b;   /* page */
  --ink-900: #1e2033;   /* alt sections */
  --ink-850: #23263c;
  --ink-800: #262940;   /* cards */
  --ink-700: #333652;   /* the logo indigo — borders, raised chips */
  --ink-600: #414568;

  --amber:   #fab42c;
  --amber-2: #fa9b2c;
  --amber-3: #fa832c;

  --text:    #edeef5;
  --muted:   #a0a5c2;
  --line:    #2f3350;

  --wrap: 1080px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .3, 1);

  --font-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* `clip`, not `hidden` — `hidden` would make this a scroll container
     and break the sticky header. */
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--amber); color: #17182a;
  padding: 10px 16px; border-radius: 0 0 10px 0;
  font-weight: 600; text-decoration: none; z-index: 100;
}
.skip-link:focus { left: 0; top: 0; }

:where(a, button):focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header ---------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(25, 27, 43, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 92px;
}

.brand {
  display: inline-flex; align-items: center; gap: 13px;
  text-decoration: none; flex-shrink: 0;
}
.brand-mark { width: 36px; height: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.28rem; letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name-accent { color: var(--amber); }

.nav { display: flex; gap: clamp(16px, 3vw, 34px); }
.nav a {
  text-decoration: none; color: var(--muted);
  font-size: 1.06rem; font-weight: 500;
  transition: color .18s var(--ease);
}
.nav a:hover { color: var(--text); }

/* ---------- Hero ------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 15vh, 140px) 0 clamp(72px, 13vh, 124px);
}

/* soft amber wash, echoing the glow around the mark */
.hero::before {
  content: '';
  position: absolute; inset: -30% -10% auto auto;
  width: 780px; height: 780px;
  background: radial-gradient(circle, rgba(250, 155, 44, .16), transparent 62%);
  pointer-events: none;
}

/* The mark, ghosted in behind the copy — sized so the whole crescent reads
   as the logo rather than an anonymous shape bleeding off the edge. */
.hero-glyph {
  position: absolute;
  right: 2%; top: 54%;
  width: min(490px, 44vw);
  transform: translateY(-50%) rotate(-6deg);
  opacity: .1;
  pointer-events: none;
  user-select: none;
}

/* .wrap owns the container width and gutters, so the hero's left edge lines up
   with every section below it. The cap for line length goes on the children. */
.hero-inner { position: relative; }
.hero-inner > * { max-width: 720px; }

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber);
}

h1 { font-size: clamp(2.45rem, 6.4vw, 4.35rem); font-weight: 700; }

.lede {
  margin: 26px 0 0;
  max-width: 54ch;
  font-size: clamp(1.04rem, 1.6vw, 1.2rem);
  color: var(--muted);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 600;
  text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(100deg, var(--amber-3), var(--amber));
  color: #17182a;
  box-shadow: 0 8px 22px -10px rgba(250, 155, 44, .8);
}
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(250, 155, 44, .9); }

.btn-ghost { border: 1px solid var(--ink-600); color: var(--text); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- Sections -------------------------------------------------- */

.section { padding: clamp(64px, 11vh, 108px) 0; }
.section-alt {
  background: var(--ink-900);
  border-block: 1px solid var(--line);
}

.section-head { margin-bottom: 42px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.55rem); }
.section-sub { margin: 12px 0 0; color: var(--muted); }

/* amber tick above every section heading — and above the hero h1, so the
   top of the page opens the same way each section below it does */
h2::before,
.hero h1::before {
  content: '';
  display: block;
  width: 42px; height: 3px;
  margin-bottom: 20px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amber-3), var(--amber));
}

/* a little more air under it, to match the larger type it sits above */
.hero h1::before { margin-bottom: 26px; }

/* ---------- Project cards --------------------------------------------- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}

.card {
  display: flex; flex-direction: column;
  padding: 26px 26px 24px;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .22s var(--ease), border-color .22s var(--ease),
              background-color .22s var(--ease);
}
a.card:hover { transform: translateY(-4px); border-color: var(--ink-600); background: var(--ink-850); }
a.card:hover .card-link { color: var(--amber); }

.card-quiet { background: transparent; border-style: dashed; border-color: var(--ink-700); }

.card h3 { font-size: 1.24rem; margin: 14px 0 0; }
.card p { margin: 10px 0 0; color: var(--muted); font-size: .95rem; flex-grow: 1; }

.pill {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  border: 1px solid transparent;
}
.is-live     { background: rgba(250, 180, 44, .14); color: var(--amber);   border-color: rgba(250, 180, 44, .35); }
.is-building { background: rgba(250, 131, 44, .12); color: var(--amber-2); border-color: rgba(250, 131, 44, .30); }
.is-soon     { background: var(--ink-700); color: var(--muted); border-color: var(--ink-600); }

.card-link {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: .9rem; font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.card-quiet .card-link:hover { color: var(--amber); }

/* ---------- About ----------------------------------------------------- */

.about-grid {
  display: grid; gap: clamp(32px, 6vw, 64px);
  grid-template-columns: 1.25fr .9fr;
  align-items: start;
}
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

.prose { color: var(--muted); max-width: 56ch; margin: 20px 0 0; }

.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
}
.facts li:first-child { border-top: 1px solid var(--line); }
.fact-k { color: var(--muted); }
.fact-v { font-weight: 500; text-align: right; }

/* ---------- Contact --------------------------------------------------- */

.mailto {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--amber);
  text-decoration: none;
  border-bottom: 2px solid rgba(250, 180, 44, .28);
  padding-bottom: 3px;
  transition: border-color .2s var(--ease);
}
.mailto:hover { border-bottom-color: var(--amber); }

.links {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; margin: 34px 0 0; padding: 0;
}
.links a {
  display: inline-block;
  padding: 8px 17px;
  border: 1px solid var(--ink-600);
  border-radius: 999px;
  font-size: .88rem; font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.links a:hover { color: var(--amber); border-color: var(--amber); }

/* ---------- Footer ---------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--muted);
  font-size: .88rem;
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--amber); }
.footer-dot { opacity: .5; }

/* ---------- 404 ------------------------------------------------------- */

.notfound {
  min-height: 72vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.notfound h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.notfound .lede { margin-inline: auto; }
.notfound-mark { width: 96px; margin: 0 auto 32px; opacity: .9; }

/* ---------- Reveal ---------------------------------------------------- */
/* Only hidden when JS is running, so the page still reads with JS off. */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .grid .reveal:nth-child(2) { transition-delay: .08s; }
.js .grid .reveal:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, a.card:hover { transform: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-glyph { opacity: .06; right: -22%; width: 90vw; }
  .brand-name-accent { display: none; }

  /* the larger desktop header type overruns the gutter at this width */
  .header-inner { min-height: 74px; }
  .brand { gap: 10px; }
  .brand-mark { width: 30px; }
  .brand-name { font-size: 1.1rem; }
  .nav { gap: 15px; }
  .nav a { font-size: .95rem; }
}
