/* =========================================================
   HUGINN MEDIA — Design tokens
   Palette is drawn from the brand story: a dark storm sky
   (--ink), parting to let warm light through (--daybreak),
   with a cool, iridescent raven-feather sheen (--wingsheen)
   used sparingly for links and detail work.
   ========================================================= */

:root {
  --ink: #0B0F16;          /* background — storm sky */
  --ink-raised: #131A26;   /* card / panel surface */
  --ink-line: #232B3A;     /* hairline borders on dark surfaces */
  --mist: #8C97AC;         /* secondary text — fog over the fjord */
  --parchment: #EDEEF2;    /* primary text, soft off-white */
  --wingsheen: #5C93A8;    /* raven-feather sheen — links, hover, detail */
  --daybreak: #E3A34D;     /* the light breaking through — CTAs, signature */
  --daybreak-dim: #7A5C33; /* daybreak at low opacity for borders/glows */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', -apple-system, sans-serif;
  --font-utility: 'Space Grotesk', 'Courier New', monospace;

  --max-width: 1180px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 8rem;
}

/* ---------- Reset & base ---------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0 0 var(--space-2) 0; }

a {
  color: var(--wingsheen);
  text-decoration: none;
}
a:hover { color: var(--daybreak); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--daybreak);
  outline-offset: 3px;
}

img, video { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  font-family: var(--font-utility);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wingsheen);
}

/* ---------- Nav ---------- */

.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
}

.nav__mark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--parchment);
  letter-spacing: 0.02em;
}
.nav__mark span {
  color: var(--mist);
  font-family: var(--font-utility);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.nav__links {
  display: flex;
  gap: var(--space-4);
  font-family: var(--font-utility);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.nav__links a { color: var(--mist); }
.nav__links a:hover { color: var(--daybreak); }

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

.hero {
  position: relative;
  padding: var(--space-6) 0 var(--space-5);
  overflow: hidden;
}

/* Signature element: dusk horizon — light rising from below,
   matching the brand mark's dusk gradient */
.hero::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  background:
    radial-gradient(
      ellipse 120% 55% at 50% 100%,
      rgba(148, 96, 66, 0.34) 0%,
      rgba(227, 163, 77, 0.10) 45%,
      transparent 75%
    );
  animation: dusk-breathe 16s ease-in-out infinite;
  pointer-events: none;
}

@keyframes dusk-breathe {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.hero__content {
  position: relative;
  max-width: 42rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: var(--parchment);
}

.hero h1 em {
  font-style: normal;
  color: var(--daybreak);
}

.hero__sub {
  margin-top: var(--space-3);
  font-size: 1.15rem;
  color: var(--mist);
  max-width: 32rem;
}

.hero__actions {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-utility);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--daybreak);
  color: var(--ink);
}
.btn--primary:hover { background: #eeb266; color: var(--ink); }

.btn--ghost {
  border: 1px solid var(--ink-line);
  color: var(--mist);
}
.btn--ghost:hover { border-color: var(--wingsheen); color: var(--parchment); }

/* ---------- Section shell ---------- */

.section {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--ink-line);
}

.section__head {
  max-width: 34rem;
  margin-bottom: var(--space-4);
}

.section__head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-top: var(--space-1);
  color: var(--parchment);
}

/* ---------- What flies out (services teaser) ---------- */

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.capability {
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  padding: var(--space-3);
  border-radius: 3px;
}

.capability h3 {
  font-size: 1.1rem;
  color: var(--parchment);
  margin-bottom: var(--space-1);
}

.capability p {
  color: var(--mist);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Currently airborne (portfolio preview) ---------- */

.airborne {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.airborne__slot {
  aspect-ratio: 4 / 5;
  background: var(--ink-raised);
  border: 1px dashed var(--ink-line);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2);
}

.airborne__slot span {
  font-family: var(--font-utility);
  font-size: 0.75rem;
  color: var(--mist);
  letter-spacing: 0.04em;
}

.airborne__note {
  margin-top: var(--space-3);
  color: var(--mist);
  font-size: 0.95rem;
}

/* ---------- Story teaser ---------- */

.story {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-4);
  align-items: start;
}

.story blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--parchment);
  border-left: 2px solid var(--daybreak);
  padding-left: var(--space-3);
}

.story__body p { color: var(--mist); }
.story__body a { font-family: var(--font-utility); font-size: 0.85rem; }

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

.cta {
  text-align: center;
  padding: var(--space-6) 0;
}

.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--parchment);
}

.cta p {
  color: var(--mist);
  max-width: 28rem;
  margin: var(--space-2) auto var(--space-4);
}

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

.footer {
  border-top: 1px solid var(--ink-line);
  padding: var(--space-3) 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-utility);
  font-size: 0.78rem;
  color: var(--mist);
}

/* ---------- Responsive ---------- */

@media (max-width: 800px) {
  .nav__links { gap: var(--space-3); }
  .capabilities { grid-template-columns: 1fr; }
  .airborne { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: var(--space-1); text-align: center; }
}

@media (max-width: 480px) {
  .airborne { grid-template-columns: 1fr; }
  .nav__links { font-size: 0.75rem; gap: var(--space-2); }
  .hero__actions { flex-direction: column; align-items: stretch; }
}
