@font-face {
  font-family: "Titling Gothic FB Wide";
  src: url("assets/fonts/titling-gothic-fb-wide-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --silver: #b8b8b3;
  --paper: #f2f0e9;
  --signal: #ffd22e;
  --line-dark: #323230;
  --line-light: #cfcdc6;
  --shell: min(100% - 32px, 1440px);
  --pad: clamp(18px, 2.7vw, 44px);
  --font-display: "Titling Gothic FB Wide", "Arial Black", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--silver);
  font-family: "Inter", system-ui, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 5px;
}
.mono { font-family: "IBM Plex Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.shell { width: var(--shell); margin-inline: auto; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr .8fr;
  align-items: start;
  gap: 24px;
  min-height: 112px;
  padding: 26px max(28px, calc((100vw - 1440px) / 2 + 28px));
  color: var(--silver);
  transition: background-color .35s ease, border-color .35s ease;
}
.site-header.scrolled { background: rgba(10,10,10,.88); border-bottom: 1px solid var(--line-dark); backdrop-filter: blur(12px); }
.brand img { display: block; width: 255px; max-width: 100%; height: auto; }
.header-status { justify-self: start; font-size: 10px; display: flex; align-items: center; gap: 10px; padding-top: 8px; }
.status-dot { width: 7px; aspect-ratio: 1; border-radius: 50%; background: var(--signal); box-shadow: 0 0 14px rgba(255,210,46,.65); }
.site-header nav { display: grid; text-transform: uppercase; font-size: 16px; line-height: 1.15; }
.site-header nav a, .header-cta { position: relative; width: fit-content; }
.site-header nav a::after, .header-cta::after, .text-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s ease;
}
.site-header nav a:hover::after, .header-cta:hover::after, .text-link:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta { justify-self: end; text-transform: uppercase; font-size: 16px; display: flex; gap: 20px; padding-top: 2px; }

.hero {
  min-height: 100svh;
  padding: 144px var(--pad) 30px;
  border-inline: 1px solid var(--line-dark);
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
}
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); font-size: 10px; padding-bottom: 18px; }
.hero-meta span:nth-child(2) { text-align: center; }
.hero-meta span:last-child { text-align: right; }
.signal-field { height: clamp(230px, 30vh, 285px); min-height: 0; position: relative; border-block: 1px solid var(--line-dark); overflow: hidden; }
#signal-canvas { display: block; width: 100%; height: 100%; min-height: 0; }
.signal-axis { position: absolute; top: 12px; right: 12px; font-size: 9px; color: #6d6d69; pointer-events: none; }
.signal-axis span { color: var(--signal); }
.signal-legend {
  position: absolute;
  inset: auto 12px 11px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 9px;
  color: #696965;
  pointer-events: none;
}
.signal-legend span:nth-child(2) { text-align: center; }
.signal-legend span:last-child { text-align: right; }
.hero-copy { padding-top: clamp(14px, 1.8vw, 28px); }
.eyebrow { font-size: clamp(10px, 1.1vw, 14px); margin: 0 0 24px; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 0;
  color: var(--silver);
  font-family: var(--font-display);
  font-size: clamp(40px, 8.9vw, 128px);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.hero-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: end; margin-top: 34px; }
.hero-bottom p { max-width: 620px; margin: 0; font-size: clamp(18px, 2vw, 28px); line-height: 1.08; text-transform: uppercase; }
.text-link { justify-self: end; position: relative; font-family: "IBM Plex Mono", monospace; text-transform: uppercase; font-size: 12px; display: flex; gap: 24px; }

.section-index { font-size: 11px; }
.manifesto {
  min-height: 92svh;
  padding: clamp(90px, 14vw, 220px) var(--pad) 60px;
  border-inline: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-content: space-between;
  column-gap: 28px;
}
.manifesto h2 {
  color: var(--silver);
  max-width: 1120px;
  font-family: var(--font-display);
  font-size: clamp(30px, 5.95vw, 86px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.manifesto-note { grid-column: 2; max-width: 400px; font-size: 12px; align-self: end; }

.services { border-inline: 1px solid var(--line-dark); padding: 120px var(--pad); }
.section-head { display: grid; grid-template-columns: 1fr 3fr; gap: 28px; margin-bottom: clamp(70px, 10vw, 150px); }
.section-head h2 {
  color: var(--silver); margin: 0; font-family: var(--font-display); font-size: clamp(30px, 5.95vw, 86px); font-weight: 700;
  line-height: .92; letter-spacing: -.02em; text-transform: uppercase;
}
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.service { min-height: 470px; padding: 20px 24px 28px 0; display: flex; flex-direction: column; border-right: 1px solid var(--line-dark); }
.service + .service { padding-left: 24px; }
.service:last-child { border-right: 0; }
.service-no { color: var(--signal); font-size: 11px; }
.service h3 { margin-top: auto; margin-bottom: 24px; color: var(--silver); font-size: clamp(32px, 3.4vw, 52px); font-weight: 520; line-height: .95; text-transform: uppercase; }
.service > p:not(.service-no) { max-width: 390px; font-size: 17px; line-height: 1.35; color: #8c8c88; }
.service-tags { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line-dark); font-size: 10px; }

.work { background: var(--paper); color: var(--ink); border-radius: 34px 34px 0 0; overflow: hidden; }
.work-shell { padding: 120px var(--pad); min-width: 0; }
.section-head.light h2 { color: var(--ink); }
.case-grid { display: grid; grid-template-columns: 1.35fr .65fr; min-width: 0; }
.case { border-top: 1px solid var(--line-light); display: block; color: var(--ink); min-width: 0; }
.case:nth-child(2) { border-left: 1px solid var(--line-light); }
.case:nth-child(3) { grid-column: 2; border-left: 1px solid var(--line-light); }
/* case-large's grid cell is stretched by its two-row-tall right-hand
   neighbours; a flex column with the visual set to flex:1 lets the image
   absorb that leftover height instead of leaving empty panel below the copy. */
.case-large { grid-row: span 2; display: flex; flex-direction: column; }
.case-visual { position: relative; height: 330px; overflow: hidden; background: #dedcd4; }
.case-large .case-visual { height: auto; flex: 1 1 auto; min-height: 330px; }
.case-copy { min-height: 170px; padding: 20px 18px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; border-top: 1px solid var(--line-light); min-width: 0; }
.case-copy .mono { font-size: 9px; }
.case-copy h3 { margin: 10px 0 0; font-size: 38px; line-height: 1; text-transform: uppercase; }
.case-copy p { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.case-arrow { font-size: 26px; transition: transform .25s ease; }
.case:hover .case-arrow { transform: translate(4px,-4px); }
.visual-royale { background: var(--ink); color: var(--silver); }
.visual-bridge { background: var(--silver); }
/* The LittleBridge screenshot's identifying chrome (logo, green sidebar) sits
   at its left edge; center-cropping this tall case-large box would crop that
   off entirely and land on the mostly-empty middle of the dashboard. */
.visual-bridge .visual-thumb { object-position: left top; }
.bridge-lines { position: absolute; width: 110%; height: 70%; left: -5%; top: 18%; background: repeating-linear-gradient(0deg,transparent 0 20px,var(--ink) 20px 21px); clip-path: polygon(0 20%,30% 20%,30% 0,70% 0,70% 60%,100% 60%,100% 80%,50% 80%,50% 100%,0 100%); }
.visual-projectp { background: linear-gradient(140deg, #d6d4cb 0%, #bfbdb4 100%); }
.visual-voice { background: linear-gradient(140deg, #1b1b19 0%, #37352f 100%); }
.visual-minu, .visual-twolights, .visual-sagot { background: #1c1c1a; }
.visual-peakjuan, .visual-reset { background: #e6e3dc; }
/* zykro.art's own page background, so the card doesn't flash a light panel
   before a dark screenshot loads. */
.visual-zykro { background: #0b0a12; }
.see-all { display: inline-block; margin-top: 40px; font-size: 11px; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.see-all:hover { color: var(--signal); border-color: var(--signal); }

.process { background: var(--paper); color: var(--ink); padding: 160px var(--pad); border-inline: 1px solid var(--line-light); }
.process .section-head h2 { color: var(--ink); }
.process-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.process-list li { min-height: 170px; display: grid; grid-template-columns: 1fr 2fr 2fr; gap: 28px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line-light); }
.process-list li > span { font-size: 11px; color: #6b6a65; }
.process-list h3 { margin: 0; font-size: clamp(28px, 3vw, 46px); text-transform: uppercase; line-height: .95; }
.process-list p { max-width: 440px; margin: 0; font-size: 18px; line-height: 1.25; }

.contact { background: var(--signal); color: var(--ink); min-height: 100svh; }
.contact-inner { min-height: 100svh; padding: 80px var(--pad) 48px; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.contact-mark { position: absolute; right: 5%; top: 7%; width: min(42vw, 560px); color: var(--ink); opacity: .12; }
.contact-mark img { display: block; width: 100%; filter: brightness(0); }
.contact h2 { position: relative; margin: auto 0; font-family: var(--font-display); font-size: clamp(42px, 7.6vw, 110px); line-height: .86; letter-spacing: -.02em; text-transform: uppercase; font-weight: 700; }
.contact-bottom { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: end; border-top: 1px solid rgba(10,10,10,.4); padding-top: 22px; }
.contact-bottom a { width: fit-content; font-size: clamp(20px, 3vw, 42px); text-transform: uppercase; }
.contact-bottom p { margin: 0; font-size: 10px; }
.site-footer { min-height: 170px; padding: 32px var(--pad); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; border-inline: 1px solid var(--line-dark); font-size: 10px; }
.site-footer span:nth-child(2) { text-align: center; }
.site-footer a { justify-self: end; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 78px; padding: 18px; }
  .brand img { width: 205px; }
  .header-status, .site-header nav { display: none; }
  .header-cta { font-size: 13px; }
  .hero { padding-top: 102px; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta span:nth-child(2) { text-align: right; }
  .hero-meta span:last-child { display: none; }
  .signal-field { height: 230px; }
  .signal-legend span:nth-child(2) { display: none; }
  .signal-legend { grid-template-columns: 1fr 1fr; }
  .hero-bottom, .contact-bottom { grid-template-columns: 1fr; }
  .text-link { justify-self: start; }
  .manifesto, .section-head { grid-template-columns: minmax(0, 1fr); }
  .manifesto-note { grid-column: 1; }
  .service-grid { grid-template-columns: 1fr; }
  .service { min-height: 390px; border-right: 0; border-bottom: 1px solid var(--line-dark); padding-inline: 0 !important; }
  .case-grid { grid-template-columns: 1fr; }
  .case, .case:nth-child(2), .case:nth-child(3) { grid-column: 1; grid-row: auto; border-left: 0; }
  .case-large .case-visual, .case-visual { height: 420px; }
  .case-copy { grid-template-columns: 1fr auto; }
  .case-copy p { grid-column: 1; }
  .process-list li { grid-template-columns: 48px 1fr; }
  .process-list p { grid-column: 2; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer span:nth-child(2) { display: none; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 16px); --pad: 14px; }
  .header-cta span { display: none; }
  .hero { min-height: 900px; }
  .signal-field { height: 235px; }
  .manifesto { min-height: 820px; }
  .case-copy { grid-template-columns: 1fr auto; }
  .case-copy p { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
