/* Hutch Media Group — shared styles */

:root {
  --bg: #050507;
  --bg-alt: #0a0a12;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-border: rgba(255, 255, 255, 0.08);
  --fg: #f5f5f7;
  --fg-dim: rgba(245, 245, 247, 0.6);
  --fg-dimmer: rgba(245, 245, 247, 0.38);
  --accent: #8b6bff;
  --accent-bright: #a98bff;
  --accent-2: #00ffa8;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--accent); color: #05050a; }

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

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2rem;
  background: linear-gradient(to bottom, rgba(5,5,7,0.85), transparent);
  backdrop-filter: blur(6px);
}

.site-nav .mark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav .mark .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.site-nav a.nav-link {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  transition: color 0.2s ease;
}

.site-nav a.nav-link:hover { color: var(--fg); }

.site-nav a.nav-cta {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--bg);
  background: var(--accent-bright);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(139, 107, 255, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 70;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--fg);
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  display: none;
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav ul {
    display: none;
  }

  .site-nav ul.open {
    display: flex;
    position: fixed;
    inset: 0 0 0 auto;
    height: 100vh;
    width: min(75vw, 300px);
    background: #0a0a12;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 2.5rem;
    border-left: 1px solid var(--panel-border);
    z-index: 60;
  }

  .site-nav ul.open a.nav-link { font-size: 1.05rem; }
  .site-nav ul.open a.nav-cta { padding: 0.7rem 1.4rem; }

  .nav-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(3,3,6,0.6);
    z-index: 55;
  }
}

/* ---------- Boot overlay ---------- */

#boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #030304;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#boot.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#boot .boot-box {
  width: min(90vw, 460px);
}

#boot .boot-title {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--accent-2);
  margin-bottom: 1.1rem;
}

#boot .boot-line {
  font-size: 0.78rem;
  color: var(--fg-dimmer);
  opacity: 0;
  transform: translateY(3px);
  animation: bootIn 0.35s ease forwards;
  margin-bottom: 0.35rem;
}

#boot .boot-line .ok { color: var(--accent-2); margin-right: 0.5em; }
#boot .boot-line .fail { color: #ff5c5c; margin-right: 0.5em; }

#boot .boot-welcome {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--fg);
  opacity: 0;
  animation: bootIn 0.4s ease forwards;
}

#boot .boot-bar {
  margin-top: 0.9rem;
  height: 1px;
  background: var(--panel-border);
  position: relative;
  overflow: hidden;
}

#boot .boot-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: bootBar 3.6s ease forwards;
}

@keyframes bootIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bootBar {
  to { transform: scaleX(1); }
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(0.6) brightness(0.9);
  transform: scale(1.35);
  opacity: 0;
  animation: heroZoom 2.6s cubic-bezier(0.16, 1, 0.3, 1) forwards, heroDrift 22s ease-in-out infinite 2.6s alternate;
  animation-delay: 0s, 2.6s;
}

@keyframes heroZoom {
  0% { opacity: 0; transform: scale(1.35); }
  100% { opacity: 1; transform: scale(1.06); }
}

@keyframes heroDrift {
  from { transform: scale(1.06); }
  to { transform: scale(1.14); }
}

.hero .overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 25%, rgba(3,3,6,0.88) 100%),
    linear-gradient(to bottom, rgba(3,3,6,0.55) 0%, rgba(3,3,6,0.35) 40%, rgba(3,3,6,0.92) 100%);
}

.hero .grade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(20, 8, 50, 0.28);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero .darken {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  opacity: 0.25;
  pointer-events: none;
}

.hero .grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.hero .content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  animation: heroContentIn 1.1s ease forwards;
  animation-delay: 1.9s;
}

@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(5rem, 17vw, 13rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 4px rgba(255, 255, 255, 0.75);
  text-shadow: 0 0 90px rgba(255,255,255,0.55), 0 0 140px rgba(255,255,255,0.4), 0 12px 40px rgba(0,0,0,0.5);
}

.hero .sub {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--fg-dim);
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.hero .scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 4;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--fg-dimmer);
  opacity: 0;
  animation: heroContentIn 1s ease forwards;
  animation-delay: 2.4s;
}

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

section { position: relative; padding: 7rem 0; }

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.2rem;
  display: block;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

p.lead {
  font-size: 1.15rem;
  color: var(--fg-dim);
  max-width: 42rem;
  font-weight: 300;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 2rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: rgba(139, 107, 255, 0.5);
  transform: translateY(-3px);
}

.card .index {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent-2);
  margin-bottom: 1rem;
  display: block;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.92rem;
  color: var(--fg-dim);
  font-weight: 300;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--panel-border), transparent);
}

/* Work list */

.work-list { margin-top: 3rem; }

.work-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.6rem 0;
  border-top: 1px solid var(--panel-border);
  gap: 1rem;
  flex-wrap: wrap;
  transition: padding-left 0.25s ease;
}

.work-row:last-child { border-bottom: 1px solid var(--panel-border); }

.work-row:hover { padding-left: 0.5rem; }

.work-row .name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.work-row .desc {
  font-size: 0.9rem;
  color: var(--fg-dim);
  flex: 1;
  min-width: 14rem;
}

.work-row .link {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent-bright);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* CTA band */

.cta-band {
  text-align: center;
  padding: 8rem 0;
}

.cta-band h2 { margin-bottom: 1rem; }

.btn {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: var(--accent-bright);
  padding: 0.9rem 2rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 107, 255, 0.35);
}

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--panel-border);
}

.btn.ghost:hover { border-color: var(--accent); box-shadow: none; }

/* ---------- Simple page header (About / Contact / Legal) ---------- */

.page-hero {
  padding: 11rem 0 4rem;
  border-bottom: 1px solid var(--panel-border);
}

.page-hero.compact {
  padding: 7rem 0 1rem;
  border-bottom: none;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

/* ---------- Legal content ---------- */

.legal { padding: 4rem 0 8rem; }

.legal h2 {
  font-size: 1.4rem;
  margin-top: 2.6rem;
  margin-bottom: 0.9rem;
}

.legal h2:first-child { margin-top: 0; }

.legal p, .legal li {
  color: var(--fg-dim);
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 1rem;
  max-width: 44rem;
}

.legal ul { padding-left: 1.3rem; margin-bottom: 1rem; }

.legal .meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-dimmer);
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}

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

footer {
  border-top: 1px solid var(--panel-border);
  padding: 3rem 0;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

footer .mark {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
}

footer ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
}

footer a {
  font-size: 0.8rem;
  color: var(--fg-dimmer);
  transition: color 0.2s ease;
}

footer a:hover { color: var(--fg); }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

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

.contact-card {
  margin-top: 3rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 3rem;
  max-width: 34rem;
}

.contact-card .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.8rem;
}

.contact-card a.email {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  display: inline-block;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 0.3rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-card a.email:hover { color: var(--accent-bright); border-color: var(--accent-bright); }
