/* ============================================================
   CICONIQ.STUDIO — ink, cured by light
   Palette = the white stork: paper, ink, one red accent.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/archivo-v25-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/archivo-v25-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/archivo-v25-latin-900.woff2") format("woff2");
}

:root {
  --paper: #F5F1E8;
  --paper-2: #ECE5D6;
  --ink: #171410;
  --coal: #141210;
  --red: #E03E23;
  --red-l: #FF5A3C;       /* red for text on dark grounds */
  --cyan: #29B7CB;
  --magenta: #E0489B;
  --yellow: #F2C230;
  --sans: "Archivo", system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "SF Mono", "Liberation Mono", monospace;
  --hairline: rgba(23, 20, 16, .2);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  opacity: .06;
  pointer-events: none;
  z-index: 90;
}

::selection { background: var(--red); color: var(--paper); }

img, svg { display: block; }

.container {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

section {
  padding-block: clamp(64px, 9vw, 120px);
  scroll-margin-top: 16px;
}

#surfaces, #process { border-top: 1px solid var(--hairline); }

/* ---------- type ---------- */

h1 {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3.2rem, 9vw, 6.6rem);
  line-height: .92;
  letter-spacing: -.015em;
  margin: 18px 0 26px;
}

h2 {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  line-height: .95;
  letter-spacing: -.01em;
  margin: 14px 0 22px;
}

.h2-small { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }

h3 {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.02rem;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

/* misregistration on hover — the CMYK wink */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  h1:hover, h2:hover {
    text-shadow: -3px 0 0 rgba(41, 183, 203, .5), 3px 0 0 rgba(224, 72, 155, .45);
  }
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 32em;
}

.body-copy { max-width: 38em; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* registration mark ⊕ */
.reg {
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex: none;
}
.reg::before, .reg::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 19px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.reg::after { transform: translate(-50%, -50%) rotate(90deg); }

a { color: inherit; }

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

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 15px 24px;
  border: 2px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--red); border-color: var(--red); }
.btn-ghost:hover { color: var(--red); border-color: var(--red); }
.btn-invert { border-color: var(--paper); color: var(--paper); }
.btn-invert:hover { background: var(--red); border-color: var(--red); }

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

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ---------- topbar ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px clamp(20px, 5vw, 56px);
  border-top: 6px solid var(--red);
  border-bottom: 1px solid var(--hairline);
}

.word {
  font-weight: 900;
  font-size: 21px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.word-mark { width: 26px; height: 26px; }
.q, .dot { color: var(--red); }

.topbar nav {
  display: flex;
  gap: clamp(14px, 2.6vw, 26px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.topbar nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.topbar nav a:hover { color: var(--red); border-color: var(--red); }

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

.hero { padding-block: clamp(40px, 6vw, 84px); }

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  position: relative;
  padding-block: clamp(28px, 4vw, 56px);
}

.crop {
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: .55;
}
.crop.tl { top: 0; left: 0; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.crop.tr { top: 0; right: 0; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); }
.crop.bl { bottom: 0; left: 0; border-bottom: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.crop.br { bottom: 0; right: 0; border-bottom: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }

.pass-c, .pass-m { transition: transform .35s ease; }
.pass-c { opacity: .5; transform: translate(-6px, 4px); }
.pass-m { opacity: .45; transform: translate(6px, -4px); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-art:hover .pass-c { transform: translate(-10px, 7px); }
  .hero-art:hover .pass-m { transform: translate(10px, -7px); }
}

.annot text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  fill: var(--ink);
  opacity: .75;
}
.annot line { stroke: var(--ink); stroke-width: 1; opacity: .45; }
.baseline { stroke: var(--ink); stroke-width: 1.5; opacity: .35; }

.stamp {
  position: absolute;
  right: 2%;
  bottom: 4%;
  transform: rotate(-8deg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 3px;
  padding: 7px 12px;
  opacity: .75;
}

.spec-strip {
  grid-column: 1 / -1;
  list-style: none;
  padding: 16px 0 0;
  margin-top: clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  opacity: .85;
}

/* ---------- dark sections ---------- */

.dark {
  background: var(--coal);
  color: var(--paper);
}
.dark .kicker { color: var(--red-l); }
.dark .body-copy { color: rgba(245, 241, 232, .82); }

/* ---------- the press (exploded print) ---------- */

.press-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-top: 44px;
}

.press { perspective: 1500px; }

.stack {
  width: min(340px, 74vw);
  aspect-ratio: 1;
  margin: clamp(40px, 6vw, 84px) auto clamp(30px, 5vw, 64px);
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-40deg);
}

.plane {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  transform: translateZ(calc(var(--i) * var(--gap) + var(--lift, 0px)));
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .3s;
}

.plane-substrate {
  background: linear-gradient(135deg, #26221e, #0d0c0b 55%, #1d1a17);
  border: 1px solid #3d3833;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
}
.plane-substrate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, transparent 42%, rgba(245, 241, 232, .07) 50%, transparent 58%);
}

.plane-white, .plane-color, .plane-gloss {
  background: rgba(245, 241, 232, .045);
  border: 1px dashed rgba(245, 241, 232, .3);
}

.plane-art {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
}

.plane-white {
  --mk-neck: #fff; --mk-bill: #fff; --mk-eye: transparent; --mk-sw: 11;
  --dot-c: #fff; --dot-m: #fff; --dot-y: #fff; --dot-k: #fff;
}
.plane-color { --mk-neck: #F5F1E8; --mk-eye: #141210; }
.plane-gloss {
  --mk-neck: rgba(255, 255, 255, .22); --mk-bill: rgba(255, 255, 255, .2);
  --mk-eye: transparent; --mk-sw: 8;
  --dot-c: rgba(255,255,255,.2); --dot-m: rgba(255,255,255,.2);
  --dot-y: rgba(255,255,255,.2); --dot-k: rgba(255,255,255,.2);
}
.plane-gloss .plane-art { filter: blur(.6px); }

.chip {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: rgba(245, 241, 232, .6);
}

/* legend hover raises its plane */
.stack[data-focus] .plane { opacity: .25; }
.stack[data-focus="substrate"] .plane-substrate,
.stack[data-focus="white"] .plane-white,
.stack[data-focus="color"] .plane-color,
.stack[data-focus="gloss"] .plane-gloss { opacity: 1; --lift: 26px; }

.slider-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, .7);
}
.slider-row input[type="range"] {
  accent-color: var(--red);
  width: min(240px, 50vw);
}

.legend {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 18px;
}
.legend li {
  border-left: 3px solid;
  padding: 3px 0 3px 16px;
}
.legend li:hover { background: rgba(245, 241, 232, .045); }
.lg-substrate { border-color: #4a443e; }
.lg-white { border-color: #F5F1E8; }
.lg-color { border-color: var(--red); }
.lg-gloss { border-color: rgba(245, 241, 232, .4); }
.legend b {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  display: block;
  margin-bottom: 4px;
}
.legend p {
  font-size: 14.5px;
  color: rgba(245, 241, 232, .75);
  max-width: 30em;
}

/* ---------- surfaces ---------- */

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
  margin-top: 44px;
}

.tile { margin: 0; }

.swatch {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(23, 20, 16, .28);
  overflow: hidden;
}
.swatch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sheen, none);
}
.swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: var(--noise-o, .08);
}

.print {
  position: absolute;
  right: 8%;
  bottom: 7%;
  width: 62px;
  height: 62px;
  z-index: 1;
}
.pr-white { --mk-neck: #F8F5EC; --mk-bill: #F8F5EC; --mk-eye: transparent; }

.tile figcaption { margin-top: 12px; }
.tile figcaption b {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .12em;
  display: block;
}
.tile figcaption span {
  display: block;
  margin-top: 3px;
  font-size: 14.5px;
  color: rgba(23, 20, 16, .75);
}

.sw-acrylic {
  background: linear-gradient(155deg, #F0F3F4, #DCE6E9 45%, #C9D8DD);
  box-shadow: inset 0 0 0 7px rgba(150, 205, 198, .28), inset 0 0 30px rgba(120, 170, 168, .25);
  --sheen: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .6) 44%, transparent 52%);
  --noise-o: .04;
}
.sw-ply {
  background:
    repeating-linear-gradient(92deg, rgba(133, 89, 44, .18) 0 2px, rgba(133, 89, 44, 0) 2px 23px),
    repeating-linear-gradient(88deg, rgba(110, 70, 30, .12) 0 3px, transparent 3px 37px),
    linear-gradient(90deg, #DDBE92, #CBA271);
  --noise-o: .14;
}
.sw-alu {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 1px, rgba(88, 90, 94, .14) 1px 2px, rgba(0, 0, 0, 0) 2px 3px),
    linear-gradient(100deg, #C9CACD, #EDEEF0 35%, #AFB1B5 65%, #D8D9DC);
  --sheen: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .5) 50%, transparent 60%);
  --noise-o: .05;
}
.sw-glass {
  background: linear-gradient(150deg, #E3ECE7, #BFD4CB 55%, #A9C4B9);
  box-shadow: inset 0 0 0 6px rgba(78, 140, 118, .25), inset 0 0 26px rgba(70, 120, 105, .22);
  --sheen: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 40%, transparent 48%);
  --noise-o: .03;
}
.sw-slate {
  background:
    repeating-linear-gradient(14deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 16px),
    linear-gradient(140deg, #37332F, #201E1C 55%, #2B2825);
  --noise-o: .3;
}
.sw-leather {
  background: radial-gradient(130% 130% at 28% 18%, #7C4C2E, #56331D 65%, #402514);
  --noise-o: .28;
}

.weird-strip {
  margin-top: clamp(28px, 4vw, 44px);
  border: 1.5px dashed rgba(23, 20, 16, .55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 26px;
}
.weird-strip p { font-size: 15.5px; max-width: 46em; }

/* ---------- output / process / name ---------- */

.tinted { background: var(--paper-2); }

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 44px);
  margin-top: 36px;
}
.cols-3 > div { border-top: 2px solid var(--ink); padding-top: 16px; }
.cols-3 p { font-size: 15px; color: rgba(23, 20, 16, .8); }

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.5vw, 34px);
  margin-top: 44px;
}
.steps li { border-top: 2px solid var(--ink); padding-top: 14px; }
.step-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--red);
  display: block;
  margin-bottom: 12px;
}
.step-no::before { content: "STEP "; }
.steps p { font-size: 15px; color: rgba(23, 20, 16, .8); }

.name-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
}
.name-mark { width: 150px; height: 150px; }
#name .body-copy { max-width: 44em; }

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

.contact h2 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
.contact-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: rgba(245, 241, 232, .6);
  margin-top: 28px;
}

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

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

.colorbar { display: flex; height: 42px; }
.cb {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: rgba(0, 0, 0, .55);
}
.cb-c { background: var(--cyan); }
.cb-m { background: var(--magenta); }
.cb-y { background: var(--yellow); }
.cb-k { background: #000; color: rgba(245, 241, 232, .5); }
.cb-w { background: var(--paper); }
.cb-g {
  background: linear-gradient(115deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, .05));
  color: rgba(245, 241, 232, .5);
  border-left: 1px solid rgba(245, 241, 232, .15);
}

.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
}
.foot-note { display: flex; gap: 10px; align-items: center; opacity: .7; }

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

@media (max-width: 960px) {
  .press-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 440px; }
  .crop { display: none; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .swatch-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .cols-3 { grid-template-columns: 1fr; }
  .name-grid { grid-template-columns: 1fr; }
  .name-mark { width: 96px; height: 96px; }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plane, .pass-c, .pass-m { transition: none; }
}
