/* Suryakanta Sahoo — "spectrum" portfolio.
   Warm paper, black ink and one prism: a single idea split into design, marketing and sales. */

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --card: #fffdf8;
  --ink: #0c0c0d;
  --ink-2: #26262a;
  --muted: #5d5d64;
  --line: rgba(12, 12, 13, 0.12);
  --line-2: rgba(12, 12, 13, 0.22);
  --red: #ff4d6d;
  --orange: #ff8f3c;
  --yellow: #ffd23f;
  --green: #1fb978;
  --cyan: #2ec4f1;
  --indigo: #5b5bf6;
  --violet: #b04cf0;
  --spectrum: linear-gradient(90deg, #ff4d6d, #ff8f3c, #ffd23f, #3ddc97, #2ec4f1, #5b5bf6, #b04cf0);
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  --gutter: 28px;
  --header: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  overflow-x: hidden;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: inherit; }

h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.05; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

:focus-visible {
  outline: 2.5px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== Header ===== */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.topbar.is-scrolled {
  background: rgba(244, 241, 234, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.brand {
  font: 800 15px var(--display);
  font-stretch: 112%;
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
}

.brand span { font-weight: 300; margin-left: 3px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--spectrum);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }

.nav .nav-cta {
  margin-left: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}

.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--ink-2); }

.menu-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.menu-btn span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}

.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(12, 12, 13, 0.6); }

.btn-line {
  border: 1.5px solid var(--ink);
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    var(--spectrum) border-box;
}

.btn-line:hover {
  transform: translateY(-2px);
  border-color: transparent;
}

/* ===== Hero ===== */

.hero {
  padding: calc(var(--header) + 48px) 0 56px;
  overflow: hidden;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.prism-dot {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid var(--ink);
}

.name {
  margin-top: 18px;
  font-size: var(--name-size, clamp(34px, 10vw, 128px));
  font-weight: 850;
  font-stretch: 125%;
  line-height: 0.86;
  letter-spacing: -0.01em;
}

.name-line {
  display: block;
  width: max-content;
  white-space: nowrap;
}

.name-line-2 {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  background: var(--spectrum);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position 1.6s ease;
}

.hero.is-ready .name-line-2 { background-position: 0 0; color: transparent; }

.name .ch {
  display: inline-block;
  font-stretch: 125%;
  transition: font-stretch 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), font-weight 0.45s ease;
}

.js .name .ch { font-stretch: 62%; }
.js .hero.is-ready .name .ch {
  font-stretch: 125%;
  transition-delay: calc(var(--i) * 45ms);
}

.js .hero.is-ready .name .ch.is-squeezed {
  font-stretch: 70%;
  transition-delay: 0s;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: end;
  margin-top: 36px;
}

.lead {
  max-width: 30em;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.6;
  color: var(--ink-2);
}

.lead em {
  font-style: normal;
  font-weight: 650;
  background: linear-gradient(transparent 62%, rgba(255, 210, 63, 0.55) 62%);
}

.lead em:nth-of-type(2) { background: linear-gradient(transparent 62%, rgba(255, 77, 109, 0.35) 62%); }
.lead em:nth-of-type(3) { background: linear-gradient(transparent 62%, rgba(31, 185, 120, 0.35) 62%); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* prism */
.prism-wrap { position: relative; }

@media (min-width: 881px) {
  .prism-wrap { margin-top: calc(var(--name-size, 120px) * -1.02 - 36px); }
}

.prism-legend { display: none; }
.prism { width: 100%; height: auto; overflow: visible; }

.beam-in {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
}

.inner {
  stroke: rgba(12, 12, 13, 0.45);
  stroke-width: 3;
}

.glass { filter: drop-shadow(0 18px 24px rgba(12, 12, 13, 0.12)); }

.glass-edge {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}

.fan { opacity: 0.92; }

.fan-lines {
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 1.5;
  fill: none;
}

.prism-body {
  transform-box: view-box;
  transform-origin: 290px 190px;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.label rect {
  fill: var(--card);
  stroke: var(--c);
  stroke-width: 2.5;
}

.label text {
  font: 700 15px var(--sans);
  fill: var(--ink);
  text-anchor: middle;
}

.beam-label {
  font: 600 13px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--muted);
}

/* the drawing sequence, once the prism is on screen */
.js .beam-in { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .glass-edge { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .glass,
.js .inner,
.js .beam-label { opacity: 0; }
.fan,
.fan-lines { transform-box: view-box; transform-origin: 338px 172px; }
.js .fan,
.js .fan-lines { transform: scaleX(0); }
.js .label { opacity: 0; transform: translateX(-14px); }

.js .prism-wrap.is-on .glass-edge { animation: dash 0.9s ease forwards; }
.js .prism-wrap.is-on .glass { animation: fade 0.6s ease 0.3s forwards; }
.js .prism-wrap.is-on .beam-in { animation: dash 0.8s cubic-bezier(0.6, 0, 0.3, 1) 0.6s forwards; }
.js .prism-wrap.is-on .beam-label { animation: fade 0.5s ease 0.9s forwards; }
.js .prism-wrap.is-on .inner { animation: fade 0.3s ease 1.3s forwards; }
.js .prism-wrap.is-on .fan,
.js .prism-wrap.is-on .fan-lines { animation: grow 1s cubic-bezier(0.2, 0.7, 0.2, 1) 1.4s forwards; }
.js .prism-wrap.is-on .label { animation: labelIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.js .prism-wrap.is-on .label:nth-child(1) { animation-delay: 1.9s; }
.js .prism-wrap.is-on .label:nth-child(2) { animation-delay: 2.05s; }
.js .prism-wrap.is-on .label:nth-child(3) { animation-delay: 2.2s; }

/* after it has drawn, the colours keep a slow shimmer */
.js .prism-wrap.is-done .fan { transform: none; animation: shimmer 6s ease-in-out infinite; }
.js .prism-wrap.is-done .fan-lines { transform: none; animation: none; }

@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes labelIn { to { opacity: 1; transform: none; } }
@keyframes shimmer {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.25) brightness(1.06); }
}

/* ===== Marquee ===== */

.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-block: 1px solid var(--ink);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding: 18px 0;
  font: 750 22px var(--display);
  font-stretch: 80%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}

.marquee-track i {
  font-style: normal;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sections ===== */

.section { padding: 120px 0 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background: var(--spectrum);
}

.kicker-light { color: rgba(244, 241, 234, 0.75); }

.sec-head { margin-bottom: 52px; }

.sec-head h2,
.about-copy h2 {
  margin-top: 14px;
  max-width: 18em;
  font-size: clamp(34px, 5.2vw, 66px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.sec-note {
  max-width: 24em;
  color: var(--muted);
  font-size: 16px;
}

/* a word that stretches out when its heading appears */
.stretch {
  display: inline-block;
  font-stretch: 125%;
  transition: font-stretch 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
}

.js .stretch { font-stretch: 62%; }
.js .is-in .stretch { font-stretch: 125%; }

/* marker highlight that sweeps in */
.hl {
  background: linear-gradient(90deg, rgba(255, 210, 63, 0.7), rgba(255, 143, 60, 0.55)) no-repeat 0 88% / 100% 34%;
  transition: background-size 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s;
}

.hl-2 { background-image: linear-gradient(90deg, rgba(46, 196, 241, 0.55), rgba(91, 91, 246, 0.45)); }
.js .hl { background-size: 0% 34%; }
.js .is-in .hl { background-size: 100% 34%; }

/* reveal on scroll (only once script.js has run) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js .reveal.is-in { opacity: 1; transform: none; }

/* ===== About ===== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 72px;
  align-items: center;
}

.portrait {
  margin: 0;
  max-width: 400px;
}

.portrait-inner {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  border: 6px solid transparent;
  background:
    radial-gradient(circle at 30% 20%, #fff, var(--paper-2) 70%) padding-box,
    conic-gradient(from 200deg, #ff4d6d, #ff8f3c, #ffd23f, #3ddc97, #2ec4f1, #5b5bf6, #b04cf0, #ff4d6d) border-box;
  overflow: hidden;
}

.portrait-inner span {
  font: 900 clamp(90px, 12vw, 150px) var(--display);
  font-stretch: 125%;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.portrait figcaption {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-copy h2 { font-size: clamp(32px, 4.2vw, 54px); }

.about-copy > p {
  margin-top: 22px;
  max-width: 36em;
  font-size: 18px;
  color: var(--ink-2);
}

.about-copy b { font-weight: 650; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 34px 0 0;
  border-top: 1.5px solid var(--ink);
}

.facts div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}

.facts div:nth-child(odd) { padding-right: 18px; }

.facts dt {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 4px 0 0;
  font: 700 17px var(--display);
  font-stretch: 100%;
}

/* ===== Craft ===== */

.crafts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.craft {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

.craft::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-soft);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.craft:hover { transform: translateY(-6px); box-shadow: 8px 10px 0 var(--c); }
.craft:hover::before { transform: scaleY(1); }

.craft-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.craft-n {
  font: 800 15px var(--display);
  color: var(--muted);
}

.craft-swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.35);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.craft:hover .craft-swatch { transform: scale(1.18) rotate(-8deg); }

.craft h3 {
  margin-top: 34px;
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.02em;
}

.craft > p:not(.tools) {
  margin-top: 12px;
  color: var(--ink-2);
}

.ticks {
  display: grid;
  gap: 8px;
  margin: 20px 0 22px;
}

.ticks li {
  position: relative;
  padding-left: 26px;
  font-weight: 550;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--c);
}

.ticks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.38em + 3px);
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tools {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
  font-size: 14px;
  color: var(--muted);
}

/* ===== Work ===== */

.works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.work {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

.work:hover { transform: translateY(-6px); box-shadow: 8px 10px 0 var(--c); }

.work-wide {
  grid-column: 1 / -1;
  flex-direction: row;
}

.work-flip { flex-direction: row-reverse; }
.work-flip .work-art { border-right: 0 !important; border-left: 1.5px solid var(--ink); }

.work-wide .work-art { flex: 0 0 56%; height: auto; min-height: 320px; border-bottom: 0; border-right: 1.5px solid var(--ink); }
.work-wide .work-body { justify-content: center; padding: 36px; }
.work-wide h3 { font-size: clamp(28px, 3vw, 38px); }

.work-art {
  position: relative;
  height: 260px;
  border-bottom: 1.5px solid var(--ink);
  overflow: hidden;
}

.work-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 28px 30px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.work-tags span {
  padding: 3px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.work-tags span:first-child { background: var(--c); border-color: var(--c); color: #fff; }

.work h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.02em;
}

.work-body > p:not(.work-tags) { color: var(--ink-2); }

/* -- art: brand -- */
.art-brand {
  container-type: inline-size;
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
  background: radial-gradient(circle at 50% 120%, #2a2a2e, #050505 60%);
  color: #fff;
}

.art-word {
  font: 800 clamp(13px, 5cqi, 34px) var(--display);
  font-stretch: 115%;
  letter-spacing: 0.14em;
}

.art-word span { font-weight: 300; margin-left: 4px; }

.art-tagline {
  font-size: clamp(9px, 1.9cqi, 12px);
  font-weight: 600;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.6);
}

.gem {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.02));
  transform: rotate(45deg);
  animation: fall 7s linear infinite;
}

.g1 { left: 12%; top: -10%; animation-delay: -1s; }
.g2 { left: 30%; top: -10%; width: 14px; height: 14px; animation-delay: -4.5s; animation-duration: 9s; }
.g3 { right: 16%; top: -10%; width: 18px; height: 18px; animation-delay: -2.5s; animation-duration: 8s; }
.g4 { right: 34%; top: -10%; width: 10px; height: 10px; animation-delay: -6s; }

@keyframes fall {
  from { transform: translateY(0) rotate(45deg); opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  to { transform: translateY(440px) rotate(225deg); opacity: 0; }
}

/* -- art: tiers -- */
.art-tiers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  background: #e9e8ff;
}

.tier {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 118px;
  padding: 18px 14px 40px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--card);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tier b { font: 800 16px var(--display); font-stretch: 100%; }
.tier span { font-size: 12.5px; color: var(--muted); }

.tier-pop {
  transform: translateY(-14px);
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
  box-shadow: 0 16px 30px -14px rgba(91, 91, 246, 0.8);
}

.tier-pop span { color: rgba(255, 255, 255, 0.8); }
.work:hover .tier:first-child { transform: translateY(6px) rotate(-4deg); }
.work:hover .tier:last-child { transform: translateY(6px) rotate(4deg); }
.work:hover .tier-pop { transform: translateY(-22px) scale(1.04); }

/* -- art: creator codes -- */
.art-codes {
  display: grid;
  place-items: center;
  background: #ffe5ea;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  animation: bob 5s ease-in-out infinite;
}

.b1 { width: 64px; height: 64px; left: 10%; top: 16%; background: linear-gradient(135deg, #ffd23f, #ff8f3c); }
.b2 { width: 46px; height: 46px; left: 8%; bottom: 12%; background: linear-gradient(135deg, #2ec4f1, #5b5bf6); animation-delay: -1.5s; }
.b3 { width: 56px; height: 56px; right: 12%; top: 12%; background: linear-gradient(135deg, #3ddc97, #2ec4f1); animation-delay: -3s; }
.b4 { width: 38px; height: 38px; right: 8%; bottom: 14%; background: linear-gradient(135deg, #b04cf0, #ff4d6d); animation-delay: -2s; }
.b5 { width: 30px; height: 30px; left: 46%; top: 10%; background: linear-gradient(135deg, #ff4d6d, #ffd23f); animation-delay: -4s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.code {
  position: relative;
  padding: 12px 22px;
  border: 2px dashed var(--ink);
  border-radius: 12px;
  background: var(--card);
  font: 800 22px var(--display);
  font-stretch: 112%;
  letter-spacing: 0.08em;
}

.code-2 {
  position: absolute;
  left: 50%;
  top: calc(50% + 40px);
  transform: translateX(-50%);
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: 650 12.5px var(--sans);
  letter-spacing: 0;
  white-space: nowrap;
}

/* -- art: views -- */
.art-views {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff0e3;
}

.play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
  transition: transform 0.3s ease;
}

.play::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 20px;
  border-left: 18px solid var(--orange);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.work:hover .play { transform: scale(1.1); }

.views {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

.views b {
  font: 900 34px var(--display);
  font-stretch: 112%;
  color: var(--ink);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 48px;
}

.bars i {
  width: 14px;
  border-radius: 4px 4px 0 0;
  background: var(--orange);
  transform-origin: bottom;
  animation: barUp 2.6s ease-in-out infinite;
}

.bars i:nth-child(1) { height: 30%; }
.bars i:nth-child(2) { height: 42%; animation-delay: 0.1s; }
.bars i:nth-child(3) { height: 38%; animation-delay: 0.2s; }
.bars i:nth-child(4) { height: 58%; animation-delay: 0.3s; }
.bars i:nth-child(5) { height: 66%; animation-delay: 0.4s; }
.bars i:nth-child(6) { height: 84%; animation-delay: 0.5s; }
.bars i:nth-child(7) { height: 100%; animation-delay: 0.6s; background: var(--red); }

@keyframes barUp {
  0%, 100% { transform: scaleY(0.75); }
  50% { transform: scaleY(1); }
}

/* -- art: certificate -- */
.art-cert {
  display: grid;
  place-items: center;
  background: #ddf6ea;
}

.cert {
  position: relative;
  width: min(270px, 78%);
  padding: 20px 22px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 6px 6px 0 var(--green);
  transform: rotate(-3deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work:hover .cert { transform: rotate(0deg) scale(1.03); }

.cert-k { font-size: 10.5px; font-weight: 700; letter-spacing: 0.3em; color: var(--green); }
.cert-n { margin-top: 8px; font: 800 20px var(--display); font-stretch: 108%; }
.cert-line { display: block; height: 6px; margin-top: 10px; width: 70%; border-radius: 3px; background: var(--paper-2); }
.cert-line.short { width: 45%; }

.qr {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  background:
    linear-gradient(var(--card), var(--card)) 4px 4px / 10px 10px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 0 / 18px 18px no-repeat,
    linear-gradient(var(--card), var(--card)) 38px 4px / 10px 10px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 34px 0 / 18px 18px no-repeat,
    linear-gradient(var(--card), var(--card)) 4px 38px / 10px 10px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 34px / 18px 18px no-repeat,
    repeating-conic-gradient(var(--ink) 0 25%, transparent 0 50%) 0 0 / 8px 8px;
}

/* -- art: wireframe placeholder -- */
.art-wire {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(46, 196, 241, 0.08) 14px 28px),
    #e6f7fd;
}

.wf {
  display: grid;
  gap: 10px;
  width: min(300px, 80%);
  padding: 14px;
  border: 2px dashed var(--ink);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.wf span { display: block; border-radius: 6px; background: rgba(12, 12, 13, 0.12); }
.wf-bar { height: 12px; width: 60%; }
.wf-hero { height: 64px; }
.wf-row { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; background: none !important; }
.wf-row i { height: 40px; border-radius: 6px; background: rgba(12, 12, 13, 0.12); }

.cursor {
  position: absolute;
  left: 30%;
  top: 30%;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 22px solid var(--ink);
  transform: rotate(-30deg);
  animation: cursor 6s ease-in-out infinite;
}

@keyframes cursor {
  0%, 100% { left: 30%; top: 30%; }
  30% { left: 62%; top: 44%; }
  60% { left: 44%; top: 66%; }
}

/* ===== Process ===== */

.process {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1.5px solid var(--ink);
}

.step {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 22px 24px 24px;
  border: 0;
  border-left: 1px solid var(--line-2);
  background: none;
  color: var(--muted);
  font: 800 clamp(18px, 2vw, 24px) var(--display);
  font-stretch: 100%;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, font-stretch 0.4s ease;
}

.step:first-child { border-left: 0; }
.step span { font: 700 13px var(--sans); color: var(--muted); }
.step:hover { color: var(--ink); }

.step[aria-selected="true"] {
  color: var(--ink);
  font-stretch: 118%;
  background: color-mix(in srgb, var(--c) 10%, transparent);
}

.step[aria-selected="true"] span { color: var(--c); }

.bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--c);
  transform: scaleX(0);
  transform-origin: left;
}

.step[aria-selected="true"] .bar { transform: scaleX(1); }
.process.is-auto .step[aria-selected="true"] .bar { animation: stepBar var(--step-ms, 5s) linear; }

@keyframes stepBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.panels { padding: 40px 44px 46px; min-height: 210px; }

.panel h3 {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.panel p {
  max-width: 40em;
  margin-top: 14px;
  font-size: 18px;
  color: var(--ink-2);
}

.panel:not([hidden]) { animation: panelIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }

@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }

/* ===== Numbers ===== */

.numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 26px 0 0;
  border-top: 1.5px solid var(--ink);
}

.num {
  padding: 26px 22px 6px 0;
}

.num dt {
  font: 900 clamp(44px, 5.4vw, 78px) var(--display);
  font-stretch: 110%;
  line-height: 1;
  letter-spacing: -0.03em;
}

.num dt::after {
  content: "";
  display: block;
  width: 56px;
  height: 6px;
  margin-top: 14px;
  border-radius: 6px;
  background: var(--c);
}

.num dd {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 550;
}

/* ===== Quote ===== */

.quote {
  position: relative;
  margin: 0;
  padding: 0 0 0 clamp(0px, 8vw, 110px);
}

.quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -0.18em;
  font: 900 clamp(90px, 12vw, 180px)/1 var(--display);
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quote p {
  font: 800 clamp(28px, 4.2vw, 56px)/1.12 var(--display);
  font-stretch: 100%;
  letter-spacing: -0.02em;
}

.quote footer {
  margin-top: 22px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== Contact ===== */

.contact {
  margin-top: 130px;
  padding: 110px 0 100px;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: var(--spectrum);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 56px;
  align-items: end;
}

.contact h2 {
  margin-top: 14px;
  font-size: clamp(38px, 6vw, 78px);
  font-weight: 850;
  letter-spacing: -0.03em;
}

.spectrum-text {
  background: var(--spectrum);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: slide 6s ease-in-out infinite alternate;
}

@keyframes slide { to { background-position: 100% 0; } }

.contact-lead {
  max-width: 30em;
  margin-top: 20px;
  font-size: 18px;
  color: rgba(244, 241, 234, 0.75);
}

.contact-card {
  padding: 26px;
  border: 1px solid rgba(244, 241, 234, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.mail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.2);
  text-decoration: none;
}

.mail-k {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.55);
}

.mail-v {
  font: 750 clamp(18px, 2vw, 22px) var(--display);
  font-stretch: 100%;
  overflow-wrap: anywhere;
}

.mail-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 20px;
  transition: transform 0.3s ease;
}

.mail:hover .mail-arrow { transform: translateX(4px) rotate(-30deg); }

.copy {
  margin-top: 16px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(244, 241, 234, 0.3);
  border-radius: 999px;
  background: none;
  color: var(--paper);
  font: 550 14px var(--sans);
  cursor: pointer;
}

.copy:hover { border-color: var(--paper); }
.copy.is-done { border-color: #3ddc97; color: #3ddc97; }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.1);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}

.socials a:hover { background: rgba(244, 241, 234, 0.2); }

/* ===== Footer ===== */

.footer {
  background: var(--ink);
  color: rgba(244, 241, 234, 0.55);
  border-top: 1px solid rgba(244, 241, 234, 0.12);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 14px;
}

.footer a { text-decoration: none; }
.footer a:hover { color: var(--paper); }

/* ===== Responsive ===== */

@media (max-width: 1024px) {
  .about-grid { gap: 44px; }
  .crafts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crafts .craft:last-child { grid-column: 1 / -1; }
  .work-wide { flex-direction: column; }
  .work-wide .work-art { flex: none; min-height: 280px; border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .work-wide .work-body { padding: 26px 28px 30px; }
  .work-flip { flex-direction: column; }
  .work-flip .work-art { border-left: 0; }
}

@media (max-width: 880px) {
  .menu-btn { display: block; }

  .nav {
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 20px;
    background: var(--paper);
    box-shadow: 0 1px 0 var(--line), 0 20px 30px -20px rgba(12, 12, 13, 0.3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav a { padding: 12px 4px; font-size: 17px; }
  .nav a::after { left: 4px; right: auto; width: 40px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; padding: 14px; }
  .topbar.menu-open { background: var(--paper); }

  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .prism-wrap { max-width: 560px; justify-self: center; width: 100%; }

  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 300px; }

  .sec-head-row { flex-direction: column; align-items: flex-start; gap: 16px; }

  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 720px) {
  .works { grid-template-columns: minmax(0, 1fr); }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num:nth-child(n + 3) { border-top: 1px solid var(--line-2); }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { border-left: 0; }
  .step:nth-child(n + 3) { border-top: 1px solid var(--line-2); }
  .panels { padding: 28px 24px 32px; min-height: 0; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header: 60px; }

  .hero { padding-top: calc(var(--header) + 32px); padding-bottom: 40px; }
  .eyebrow { font-size: 11.5px; letter-spacing: 0.1em; }
  .name { margin-top: 14px; }
  .name-line-2 { -webkit-text-stroke-width: 1.5px; }
  .actions .btn { flex: 1 1 140px; padding: 0 18px; }

  .marquee-track { font-size: 18px; padding: 14px 0; gap: 22px; }

  .labels,
  .beam-label { display: none; }

  .prism-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }

  .prism-legend li {
    padding: 6px 14px;
    border: 2px solid var(--c);
    border-radius: 999px;
    background: var(--card);
    font-size: 14px;
    font-weight: 700;
  }

  .quote { padding-left: 0; }
  .quote::before { position: static; display: block; height: 0.5em; margin-bottom: 8px; font-size: 96px; }

  .section { padding-top: 88px; }
  .sec-head { margin-bottom: 36px; }
  .about-copy > p { font-size: 17px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div:nth-child(odd) { padding-right: 0; }

  .crafts { grid-template-columns: minmax(0, 1fr); }
  .craft { padding: 24px 20px 22px; }
  .craft h3 { margin-top: 24px; }

  .work-art,
  .work-wide .work-art { height: 230px; min-height: 0; }
  .work-body,
  .work-wide .work-body { padding: 22px 20px 26px; }
  .tier { width: 96px; padding: 14px 10px 30px; }
  .tier b { font-size: 14px; }

  .step { padding: 16px 16px 18px; }
  .panel p { font-size: 17px; }

  .contact { margin-top: 100px; padding: 80px 0 72px; }
  .contact-card { padding: 20px; }
  .mail { grid-template-columns: minmax(0, 1fr) auto; }
  .mail-k { grid-column: 1; grid-row: 1; }
  .mail-arrow { grid-column: 2; grid-row: 1; width: 38px; height: 38px; font-size: 17px; }
  .mail-v { grid-column: 1 / -1; grid-row: 2; font-size: 18px; }

  .footer-inner { flex-direction: column; gap: 6px; }
}

@media (max-width: 380px) {
  .brand { font-size: 13px; letter-spacing: 0.1em; }
  .tier { width: 86px; }
  .code { font-size: 18px; padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .marquee-track { animation: none; }
}
