/* KZ MEDIA – sprint portfolio. Follows the KZ MEDIA design system:
   paper 70 / ink 25 / cut 5, square corners, Inter Tight + JetBrains Mono,
   the orange (cut) marks one thing per section: the playhead. */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper, #f2efe9);
  color: var(--ink, #0e0e0e);
  font: 400 17px/26px var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, var(--space-7));
}

/* ---------- Type ---------- */

.display {
  font: 800 clamp(44px, 8vw, 96px)/0.95 var(--font-sans);
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 14ch;
}

.h1 {
  font: 800 clamp(36px, 5.5vw, 56px)/1 var(--font-sans);
  letter-spacing: -0.025em;
  margin: 0;
}

.h2 {
  font: 700 clamp(24px, 3vw, 32px)/1.2 var(--font-sans);
  letter-spacing: -0.015em;
  margin: 0;
}

.lead { font-size: 20px; line-height: 30px; max-width: 38em; margin: 0; }

.small { font: 400 14px/20px var(--font-sans); }

.label {
  font: 500 12px/16px var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.timecode {
  font: 500 14px/20px var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.muted { color: var(--ink-muted); }

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

.site-header { padding: var(--space-5) 0; }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo { display: block; }
.logo .full { width: 240px; height: auto; }
.logo .mark { display: none; width: 44px; height: auto; }

.nav { display: flex; gap: var(--space-4); align-items: center; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav .lang { color: var(--ink-muted); }
.nav .lang[aria-current="true"] { color: var(--ink); }

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

section { padding: var(--space-7) 0; }
section + section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  max-width: 44em;
}

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

.hero { padding-top: var(--space-6); }
.hero .label { display: block; margin-bottom: var(--space-4); }
.hero .lead { margin-top: var(--space-5); }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

.btn {
  display: inline-block;
  padding: 16px 24px;
  font: 700 16px/20px var(--font-sans);
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius-none);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.hero .meta { margin-top: var(--space-6); display: block; }

/* Timeline + playhead: the one orange thing on a surface */
.timeline {
  position: relative;
  height: 2px;
  background: var(--ink);
  margin-top: var(--space-5);
}
.timeline::before {
  content: "";
  position: absolute;
  left: calc(var(--at, 92%) - 7px);
  top: -26px;
  width: 16px;
  height: 14px;
  background: var(--cut);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 50% 100%, 0 45%);
}
.timeline::after {
  content: "";
  position: absolute;
  left: var(--at, 92%);
  top: -14px;
  width: 2px;
  height: 30px;
  background: var(--cut);
}

/* ---------- Work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5) var(--space-4);
}

.work-card { display: grid; gap: var(--space-3); align-content: start; }

/* 9:16 frame with a 45° cut corner */
.frame {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  overflow: hidden;
}
.frame video { width: 100%; height: 100%; object-fit: cover; }

.frame .title-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-3);
}
.frame .title-card .name {
  font: 800 clamp(22px, 2.2vw, 30px)/1 var(--font-sans);
  letter-spacing: -0.02em;
}

.work-card .h2 { font-size: 20px; line-height: 26px; }
.work-card p { margin: 0; }

/* ---------- Services (dark surface) ---------- */

.dark { background: var(--paper); color: var(--ink); }

.services { display: grid; gap: 0; }

.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service p { margin: var(--space-3) 0 0; }

.prices { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.prices li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: baseline;
}
.prices .price { font: 700 20px/26px var(--font-sans); white-space: nowrap; }

.terms { margin-top: var(--space-5); }

/* ---------- Steps and reasons ---------- */

.steps, .reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.steps li, .reasons li { display: grid; gap: var(--space-3); align-content: start; }
.steps p, .reasons p { margin: 0; }

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

.contact .h1 { max-width: 16ch; }
.contact .lead { margin-top: var(--space-4); }

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

.site-footer { padding: var(--space-6) 0 var(--space-5); }
.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

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

@media (max-width: 1000px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { grid-template-columns: 1fr; gap: var(--space-4); }
  .steps, .reasons { grid-template-columns: 1fr; gap: var(--space-4); }
}

@media (max-width: 560px) {
  section { padding: var(--space-6) 0; }
  .site-header { padding: var(--space-4) 0; }
  .logo .full { display: none; }
  .logo .mark { display: block; }
  .nav { gap: var(--space-3); }
  .nav .hide-sm { display: none; }
  .work-grid { gap: var(--space-4) var(--space-3); }
  .lead { font-size: 18px; line-height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Orange brackets: only on dark surfaces (6.0:1 on ink), never as text on paper */
.cut { color: var(--cut); }
