/* ============================================================
   KTMEDIA · Kameron Taylor Media
   Ink / proof paper / aviation orange. Call sheet structure.
   ============================================================ */

:root {
  --ink: #141414;
  --ink-2: #1d1d1d;
  --paper: #f4f2ec;
  --paper-2: #ece9e0;
  --signal: #ff4d00;
  --graphite: #6b675f;
  --line: rgba(20, 20, 20, 0.16);
  --line-light: rgba(244, 242, 236, 0.18);

  /* client palettes, used only in work panels */
  --xc-black: #0a0a0c;
  --xc-red: #c1121f;
  --bf-ink: #141f27;
  --bf-yellow: #ffd60a;
  --ad-paper: #fffcf3;
  --ad-ink: #302921;
  --ad-sun: #ffc53d;
  --ad-tomato: #e8503b;
  --ad-sky: #a6d9f4;
  --ad-royal: #2f5fd0;
  --ad-grass: #4fa653;
  --ad-grape: #8a63c9;
  --lv-ink: #1f2a22;
  --lv-terracotta: #e39a6c;
  --lv-green: #3f6b3a;
  --br-ink: #121417;
  --br-forest: #1e2e23;
  --br-orange: #ff5500;

  --display: "Archivo", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 420;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 13px;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

/* ---------- spec labels (the call sheet voice) ---------- */

.spec {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
  display: flex;
  align-items: center;
  gap: 12px;
}
.spec-light { color: rgba(244, 242, 236, 0.6); }
.spec-pip {
  width: 10px;
  height: 10px;
  background: var(--signal);
  flex: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 28px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background 0.25s, color 0.25s;
}
.btn-solid {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 6px 6px 0 var(--signal);
}
.btn-solid:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--signal);
}
.btn-solid:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--signal);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 14px clamp(20px, 4vw, 48px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.nav-mark { width: 34px; height: 34px; }
.mark-plate { fill: var(--ink); }
.mark-k { fill: var(--paper); }
.mark-chip { fill: var(--signal); }
.nav-word {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.nav-links a:hover { border-color: var(--signal); }
.btn-nav {
  padding: 10px 18px;
  font-size: 12px;
  color: var(--ink);
  background: transparent;
}
.btn-nav:hover { background: var(--signal); border-color: var(--signal); color: var(--paper); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-cross {
  position: absolute;
  top: 8%;
  right: -6%;
  width: clamp(280px, 34vw, 520px);
  opacity: 0.5;
  animation: cross-spin 90s linear infinite;
}
.cross-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.cross-line { stroke: var(--line); stroke-width: 1; }
.cross-dot { fill: var(--signal); }
@keyframes cross-spin {
  to { transform: rotate(360deg); }
}
.hero-crop {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--ink);
  border-style: solid;
  border-width: 0;
  opacity: 0.5;
}
.hero-crop-tl { top: 88px; left: 24px; border-top-width: 2px; border-left-width: 2px; }
.hero-crop-br { bottom: 24px; right: 24px; border-bottom-width: 2px; border-right-width: 2px; }

.hero-spec { margin-bottom: clamp(24px, 4vh, 48px); }

.hero-title {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(52px, 10.2vw, 160px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.line-inner {
  display: block;
  transform: translateY(110%);
}
body.loaded .line-inner {
  animation: line-up 0.9s var(--ease-out) forwards;
}
body.loaded .line-mask:nth-child(1) .line-inner { animation-delay: 0.05s; }
body.loaded .line-mask:nth-child(2) .line-inner { animation-delay: 0.17s; }
body.loaded .line-mask:nth-child(3) .line-inner { animation-delay: 0.29s; }
@keyframes line-up {
  to { transform: translateY(0); }
}
.accent { color: var(--signal); }

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-top: clamp(32px, 5vh, 64px);
  opacity: 0;
  transform: translateY(20px);
}
body.loaded .hero-foot {
  animation: fade-up 0.8s var(--ease-out) 0.55s forwards;
}
@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  max-width: 520px;
  font-size: 17px;
  color: var(--graphite);
}
.hero-cta { display: flex; gap: 16px; flex: none; }

/* ---------- ticker ---------- */

.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-run 28s linear infinite;
}
.ticker-set {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding: 16px 0;
}
.ticker-set i {
  font-style: normal;
  color: var(--signal);
  padding: 0 18px;
}
@keyframes ticker-run {
  to { transform: translateX(-50%); }
}

/* ---------- problem ---------- */

.problem { padding: clamp(90px, 14vh, 160px) 0; }
.problem-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  margin-top: 40px;
  align-items: start;
}
.problem-lead {
  font-family: var(--display);
  font-stretch: 116%;
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.problem-copy {
  border-left: 2px solid var(--signal);
  padding-left: 28px;
  color: var(--graphite);
  font-size: 17px;
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

/* ---------- services ---------- */

.services {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(90px, 14vh, 160px) 0;
}
.services-title {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 28px 0 clamp(40px, 7vh, 72px);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.svc {
  border: 1px solid var(--line-light);
  background: var(--ink-2);
  padding: 28px 28px 34px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    border-color 0.35s;
}
.svc:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--signal);
  border-color: var(--paper);
}
.svc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.svc-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--signal);
  letter-spacing: 0.2em;
}
.svc-cue {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(244, 242, 236, 0.55);
}
.svc h3 {
  font-family: var(--display);
  font-stretch: 120%;
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.svc p { color: rgba(244, 242, 236, 0.72); font-size: 16px; }

/* ---------- work ---------- */

.work-intro { padding: clamp(90px, 14vh, 160px) 0 clamp(48px, 8vh, 88px); }
.work-title {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(34px, 5.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-top: 28px;
}

.panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 92svh;
  padding: clamp(28px, 5vh, 56px) clamp(20px, 4vw, 48px);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}
.panel-spec, .panel-status, .panel-tags {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.panel-status {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}
.panel-status.is-live .status-dot {
  background: #37d067;
  opacity: 1;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.5); }
}
.panel-word {
  font-size: clamp(64px, 14.5vw, 230px);
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: center;
  will-change: transform;
}
.panel-word.is-stacked {
  white-space: normal;
  font-size: clamp(48px, 8.4vw, 132px);
  line-height: 0.92;
}
.panel-word.is-stacked .word-sub {
  display: block;
  font-size: 0.46em;
  line-height: 1.04;
}
.panel-word.panel-logo {
  white-space: normal;
  width: 100%;
  max-width: 900px;
  line-height: 0;
}
.panel-word.panel-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  position: relative;
  z-index: 2;
}
.panel-scope { max-width: 460px; font-size: 16px; }
.panel-tags { text-align: right; flex: none; }

a.panel .panel-word { transition: transform 0.5s var(--ease-out); }
a.panel:hover .panel-word { transform: scale(1.02); }

/* Xcalibur: black field, red X, condensed steel */
.panel-xc { background: var(--xc-black); color: #fff; }
.panel-xc .panel-word {
  font-family: "Barlow Condensed", var(--display);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.panel-xc .xc-x { color: var(--xc-red); }
.panel-xc .panel-spec, .panel-xc .panel-status { color: rgba(255, 255, 255, 0.6); }
.panel-xc .panel-scope { color: rgba(255, 255, 255, 0.75); }
.panel-xc .panel-tags { color: var(--xc-red); }

/* Bearfish: yellow field, ink Anton */
.panel-bf { background: var(--bf-yellow); color: var(--bf-ink); }
.panel-bf .panel-word { font-family: "Anton", var(--display); font-weight: 400; letter-spacing: 0.01em; }
.panel-bf .panel-spec, .panel-bf .panel-status { color: rgba(20, 31, 39, 0.65); }
.panel-bf .panel-scope { color: rgba(20, 31, 39, 0.8); }
.panel-bf .panel-tags { color: var(--bf-ink); }

/* Angel's: warm paper, crayon letters */
.panel-ad { background: var(--ad-paper); color: var(--ad-ink); }
.panel-ad .panel-word { font-family: "Chewy", cursive; font-weight: 400; }
.panel-ad .cl-1 { color: var(--ad-tomato); }
.panel-ad .cl-2 { color: var(--ad-sun); }
.panel-ad .cl-3 { color: var(--ad-royal); }
.panel-ad .cl-4 { color: var(--ad-grass); }
.panel-ad .cl-5 { color: var(--ad-grape); }
.panel-ad .panel-spec, .panel-ad .panel-status { color: rgba(48, 41, 33, 0.6); }
.panel-ad .panel-scope { color: rgba(48, 41, 33, 0.8); }
.panel-ad .panel-tags { color: var(--ad-tomato); }

/* Little VIP: forest ink field, terracotta Fraunces */
.panel-lv { background: var(--lv-ink); color: #f6f1e8; }
.panel-lv .panel-word {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  color: var(--lv-terracotta);
  text-transform: none;
  letter-spacing: -0.01em;
}
.panel-lv .panel-spec, .panel-lv .panel-status { color: rgba(246, 241, 232, 0.6); }
.panel-lv .panel-scope { color: rgba(246, 241, 232, 0.8); font-family: "Lora", Georgia, serif; }
.panel-lv .panel-tags { color: var(--lv-terracotta); }

.panel-br { background: var(--br-forest); color: #f2f4f2; }
.panel-br .panel-word {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 700;
  color: var(--br-orange);
  letter-spacing: 0.01em;
}
.panel-br .panel-spec, .panel-br .panel-status { color: rgba(242, 244, 242, 0.6); }
.panel-br .panel-scope { color: rgba(242, 244, 242, 0.8); }
.panel-br .panel-tags { color: var(--br-orange); }

/* ---------- aerial ---------- */

.aerial {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 12vh, 140px) 0;
  overflow: hidden;
}
.aerial-line {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(70px, 13vw, 200px);
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px var(--signal);
  will-change: transform;
}
.aerial-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
  margin-top: clamp(40px, 7vh, 72px);
}
.aerial-copy {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  color: rgba(244, 242, 236, 0.85);
}

/* ---------- contact ---------- */

.contact { padding: clamp(90px, 14vh, 160px) 0; }
.contact-title {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(52px, 9vw, 140px);
  line-height: 0.94;
  letter-spacing: -0.015em;
  margin: 28px 0 clamp(40px, 7vh, 72px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-copy { font-size: 18px; color: var(--graphite); display: grid; gap: 24px; }
.contact-mail {
  font-family: var(--mono);
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--signal);
  padding-bottom: 4px;
  justify-self: start;
  word-break: break-all;
}
.contact-mail:hover { background: var(--signal); color: var(--paper); }
.contact-note { font-size: 14px; font-family: var(--mono); letter-spacing: 0.04em; }

.contact-form {
  display: grid;
  gap: 20px;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 10px 10px 0 var(--ink);
}
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
}
.field input, .field select {
  font-family: var(--display);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 13px 14px;
  border-radius: 0;
  width: 100%;
}
.field input:focus, .field select:focus {
  outline: 3px solid var(--signal);
  outline-offset: 0;
  border-color: var(--ink);
}
.btn-submit { justify-self: start; }

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 8vh, 88px) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: 0.03em;
}
.footer-line { color: rgba(244, 242, 236, 0.6); margin-top: 10px; max-width: 360px; }
.footer-links, .footer-meta { display: grid; gap: 12px; justify-items: start; }
.footer-links a, .footer-meta a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 2px;
}
.footer-links a:hover, .footer-meta a:hover { border-color: var(--signal); }
.footer-copy { font-family: var(--mono); font-size: 12px; color: rgba(244, 242, 236, 0.45); letter-spacing: 0.08em; }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .nav-links { display: none; }
  .problem-grid, .contact-grid, .aerial-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .panel { min-height: 72svh; }
  .panel-word { white-space: normal; text-align: center; line-height: 1; }
  .panel-foot { flex-direction: column; align-items: flex-start; }
  .panel-tags { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .btn-nav { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .btn { text-align: center; }
  .ticker-set { font-size: 17px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .line-inner { transform: none; }
  .hero-foot { opacity: 1; transform: none; }
  body.loaded .line-inner,
  body.loaded .hero-foot { animation: none; }
  .ticker-track { animation: none; }
  .hero-cross { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .status-dot { animation: none; }
  html { scroll-behavior: auto; }
}
