/* ============================================================
   CODIRO — codiro.io
   Editorial studio theme · paper / ink / international orange
   ============================================================ */

:root {
  --paper: #f5f2ea;
  --paper-2: #ece7db;
  --white: #fffdf7;
  --ink: #171410;
  --ink-soft: #6d675b;
  --line: rgba(23, 20, 16, 0.14);
  --line-strong: rgba(23, 20, 16, 0.8);
  --accent: #e84600;
  --accent-bright: #ff5a14;
  --font-disp: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 10px);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='260' height='260' filter='url(%23n)'/></svg>");
}

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb {
  background: #c9c2b2;
  border-radius: 8px;
  border: 3px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover { background: #a8a08d; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }

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

.container { width: min(1240px, 93vw); margin: 0 auto; }

.accent { color: var(--accent); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- reveal-on-scroll (hidden only when JS runs) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ?static — freeze all motion at final state (screenshots / previews) */
html.static { scroll-behavior: auto; }
html.static *, html.static *::before, html.static *::after {
  animation: none !important;
  transition: none !important;
}
html.static .reveal { opacity: 1 !important; transform: none !important; }
html.static .hero-title .w { transform: none !important; }
html.static .hero { min-height: 720px; }
html.static .float-preview { display: none !important; }
html.static .demo-progress { display: none !important; }

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

.btn-pill, .btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 13px 24px;
  border-radius: 100px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    transform 0.3s var(--ease-out), box-shadow 0.3s ease;
  will-change: transform;
}
.btn-pill {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-pill:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}
.btn-solid {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(232, 70, 0, 0.6);
}
.btn-pill span, .btn-solid span { transition: transform 0.3s var(--ease-out); }
.btn-pill:hover span, .btn-solid:hover span { transform: translate(2px, -1px); }

.btn-pill-light {
  border-color: rgba(245, 242, 234, 0.35);
  color: var(--paper);
}
.btn-pill-light:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

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

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.nav.scrolled {
  background: rgba(245, 242, 234, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(1240px, 93vw);
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  margin-right: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.brand-star {
  color: var(--accent);
  font-size: 0.95rem;
  display: inline-block;
  transition: transform 0.6s var(--ease-out);
}
.brand:hover .brand-star { transform: rotate(180deg); }

.nav-links { display: flex; gap: 28px; }
.nav-link {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0 11px;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out);
}
body.nav-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(245, 242, 234, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
body.nav-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mob-link {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
}
.mob-link:hover { color: var(--accent); }
body.nav-open .mob-link { opacity: 1; transform: none; }
body.nav-open .mob-link:nth-child(1) { transition-delay: 0.08s; }
body.nav-open .mob-link:nth-child(2) { transition-delay: 0.15s; }
body.nav-open .mob-link:nth-child(3) { transition-delay: 0.22s; }
body.nav-open .mob-link:nth-child(4) { transition-delay: 0.29s; }
.mob-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-soft); font-size: 0.95rem; }
.mob-foot a { color: var(--accent); font-weight: 600; }

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

.hero {
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  padding: calc(var(--nav-h) + 34px) 0 44px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 5vh;
}

.hero-title {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(3rem, 10.2vw, 8.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero-title .w {
  display: inline-block;
  transform: translateY(112%);
  animation: riseIn 0.95s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes riseIn { to { transform: translateY(0); } }

/* rotating word */
.rotator {
  display: inline-grid;
  text-align: left;
}
.rot-word {
  grid-area: 1 / 1;
  color: var(--accent);
  opacity: 0;
  transform: translateY(0.55em);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  will-change: transform;
}
.rot-word.on { opacity: 1; transform: none; }
html.static .rot-word { opacity: 0; }
html.static .rot-word:first-child { opacity: 1; transform: none; }

/* rotating badge */
.hero-badge {
  position: absolute;
  top: 24%;
  right: 1%;
  width: 158px;
  height: 158px;
  pointer-events: none;
}
.hero-badge svg { width: 100%; height: 100%; animation: spin 18s linear infinite; overflow: visible; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge-text {
  font-family: var(--font-mono);
  font-size: 10.2px;
  font-weight: 500;
  letter-spacing: 0.16em;
  fill: var(--ink);
  text-transform: uppercase;
}
.badge-star { font-size: 30px; fill: var(--accent); }

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: 6vh;
}
.hero-sub {
  color: var(--ink-soft);
  font-size: 1.06rem;
  max-width: 44ch;
}
.hero-cta { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* ---------- marquee ---------- */

.marquee {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  overflow: hidden;
  padding: 16px 0;
  background: var(--paper);
}
.marquee-inner {
  display: flex;
  width: max-content;
  animation: tick 28s linear infinite;
}
.marquee:hover .marquee-inner { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.marquee-seq { display: flex; align-items: center; flex-shrink: 0; }
.marquee-seq span {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  padding: 0 30px;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.marquee-seq span:hover { color: var(--accent); }
.marquee-seq i { font-style: normal; color: var(--accent); font-size: 1rem; }

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

.section { padding: 110px 0; }
.section-tint {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 14px;
  margin-bottom: 58px;
}
.sec-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sec-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

h2 {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

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

.work-list { display: flex; flex-direction: column; }

.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr 240px 56px;
  align-items: center;
  gap: 28px;
  padding: 34px 22px;
  margin-inline: -22px;
  border-top: 1px solid var(--line);
  transition: color 0.3s ease;
  isolation: isolate;
}
.work-row:last-child { border-bottom: 1px solid var(--line); }
.work-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.38s var(--ease-out);
}
.work-row:not(.is-soon):hover::before { transform: scaleY(1); }
.work-row:not(.is-soon):hover { color: var(--paper); }

.row-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  transition: color 0.3s ease;
}
.work-row:not(.is-soon):hover .row-num { color: var(--accent-bright); }

.row-name {
  display: block;
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  transition: transform 0.38s var(--ease-out);
}
.work-row:not(.is-soon):hover .row-name { transform: translateX(16px); }

.row-desc {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 58ch;
  margin-top: 7px;
  transition: color 0.3s ease;
}
.work-row:not(.is-soon):hover .row-desc { color: rgba(245, 242, 234, 0.68); }

.row-thumb { display: none; }

.row-side { text-align: right; }
.row-tags {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s ease;
}
.row-url {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
  margin-top: 7px;
  transition: color 0.3s ease;
}
.work-row:not(.is-soon):hover .row-tags { color: rgba(245, 242, 234, 0.55); }
.work-row:not(.is-soon):hover .row-url { color: var(--accent-bright); }

.row-arrow {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 1.7rem;
  text-align: center;
  transition: transform 0.35s var(--ease-out), color 0.3s ease;
}
.work-row:not(.is-soon):hover .row-arrow {
  transform: translate(5px, -5px);
  color: var(--accent-bright);
}

/* coming soon row */
.is-soon { cursor: default; }
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  vertical-align: middle;
  margin-left: 16px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(232, 70, 0, 0.45);
  border-radius: 100px;
  padding: 5px 12px;
  transform: translateY(-0.35em);
}
.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 70, 0, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(232, 70, 0, 0); }
}
.row-arrow-soon {
  font-size: 0.7rem;
  color: var(--accent);
  animation: pulseOpacity 1.6s ease-in-out infinite;
}
@keyframes pulseOpacity {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ---------- floating preview ---------- */

.float-preview {
  position: fixed;
  top: 0; left: 0;
  width: 400px;
  aspect-ratio: 1020 / 480;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -25px rgba(23, 20, 16, 0.5);
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: var(--white);
}
.float-preview.show { opacity: 1; }
.float-preview img, .preview-soon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.float-preview img.active, .preview-soon.active { opacity: 1; }

.preview-soon {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-soon span {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.32em;
  color: rgba(245, 242, 234, 0.22);
  z-index: 1;
}
.ecg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0 6%;
}
.ecg-path {
  stroke: var(--accent-bright);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 160 840;
  stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 6px rgba(255, 90, 20, 0.7));
  animation: ecgRun 3.4s linear infinite;
}
@keyframes ecgRun { to { stroke-dashoffset: 0; } }

/* ---------- demo ---------- */

.demo-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.demo-copy p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin: 18px 0 30px;
  max-width: 44ch;
}
.demo-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-tab {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 17px;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.demo-tab:hover { color: var(--ink); border-color: var(--line-strong); }
.demo-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.browser {
  display: block;
  background: var(--white);
  border: 1px solid rgba(23, 20, 16, 0.2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 70px -28px rgba(23, 20, 16, 0.45);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.browser:hover {
  transform: translateY(-5px);
  box-shadow: 0 40px 80px -30px rgba(23, 20, 16, 0.55);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.b-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(23, 20, 16, 0.16);
}
.browser:hover .b-dot:nth-child(1) { background: #ff5f57; }
.browser:hover .b-dot:nth-child(2) { background: #febc2e; }
.browser:hover .b-dot:nth-child(3) { background: #28c840; }
.b-url {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 14px;
  margin-left: 10px;
}
.b-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 1.8s ease-in-out infinite;
}
.browser-body {
  position: relative;
  display: block;
  aspect-ratio: 1020 / 480;
  background: var(--paper-2);
  overflow: hidden;
}
.browser-body img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s var(--ease-out);
}
.browser:hover .browser-body img { transform: scale(1.03); }

.demo-shot { opacity: 0; transition: opacity 0.5s ease, transform 0.7s var(--ease-out); }
.demo-shot.active { opacity: 1; }

.demo-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(23, 20, 16, 0.1);
  z-index: 2;
}
.demo-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

/* ---------- studio ---------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 90px;
}
.stat {
  padding: 30px 24px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-num {
  display: block;
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 10px;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.studio-grid > *, .demo-grid > * { min-width: 0; }
.studio-copy p {
  color: var(--ink-soft);
  font-size: 1.04rem;
  margin-top: 18px;
  max-width: 48ch;
}
.studio-copy p:last-child { color: var(--ink); font-weight: 600; }

.service-list { list-style: none; }
.service {
  display: grid;
  grid-template-columns: 44px 240px 1fr;
  align-items: baseline;
  gap: 18px;
  padding: 21px 0;
  border-top: 1px solid var(--line);
  transition: transform 0.35s var(--ease-out);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service:hover { transform: translateX(10px); }
.srv-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
}
.srv-name {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}
.service:hover .srv-name { color: var(--accent); }
.srv-desc { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- contact (inverted) ---------- */

.contact {
  background: var(--ink);
  color: var(--paper);
  padding-top: 110px;
  overflow: hidden;
}
.contact .section-head { border-bottom-color: rgba(245, 242, 234, 0.3); }
.contact .sec-note { color: rgba(245, 242, 234, 0.5); }

.contact-title {
  font-size: clamp(2.5rem, 6.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 34px 0 56px;
}
.contact-title .accent { color: var(--accent-bright); }

.mail-line {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.6vw, 3.4rem);
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 10px;
  transition: color 0.3s ease;
}
.mail-line::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s var(--ease-out);
}
.mail-line:hover { color: var(--accent-bright); }
.mail-line:hover::after { transform: scaleX(1); }
.mail-arrow {
  color: var(--accent-bright);
  font-size: 0.7em;
  transition: transform 0.35s var(--ease-out);
}
.mail-line:hover .mail-arrow { transform: translate(6px, -6px); }

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 60px;
}
.copy-btn.copied { border-color: var(--accent-bright); color: var(--accent-bright); }
.contact-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(245, 242, 234, 0.5);
  margin-left: auto;
}

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

.footer {
  margin-top: 100px;
  border-top: 1px solid rgba(245, 242, 234, 0.18);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 40px;
  padding: 52px 0 40px;
}
.f-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.f-head {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, 0.45);
  margin-bottom: 6px;
}
.f-col a, .f-col span { color: rgba(245, 242, 234, 0.78); font-size: 0.92rem; transition: color 0.25s ease; }
.f-col a:hover { color: var(--accent-bright); }
.f-soon { opacity: 0.5; }
.f-col-top { justify-self: end; }
.back-top {
  border: 1px solid rgba(245, 242, 234, 0.3);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 0.85rem;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.back-top:hover { background: var(--paper); color: var(--ink) !important; border-color: var(--paper); }

.footer-word {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(4rem, 15.8vw, 15rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 242, 234, 0.3);
  user-select: none;
  transition: color 0.6s ease;
}
.footer-word:hover { color: rgba(245, 242, 234, 0.07); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(245, 242, 234, 0.18);
  padding: 22px 0 30px;
}
.footer-bottom p { color: rgba(245, 242, 234, 0.45); font-size: 0.78rem; }
.f-disclaimer { max-width: 58ch; text-align: right; }

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

@media (max-width: 1020px) {
  .hero-badge { display: none; }
  .demo-grid { grid-template-columns: 1fr; gap: 44px; }
  .studio-grid { grid-template-columns: 1fr; gap: 54px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .f-col-top { justify-self: start; }
}

@media (max-width: 860px) {
  .float-preview { display: none; }
  .work-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "num arrow"
      "main main"
      "side side";
    gap: 10px;
    padding: 28px 0;
    margin-inline: 0;
  }
  .row-num { grid-area: num; }
  .row-arrow { grid-area: arrow; }
  .row-main { grid-area: main; }
  .row-side { grid-area: side; text-align: left; display: flex; gap: 18px; align-items: baseline; }
  .row-url { margin-top: 0; }
  .row-thumb {
    display: block;
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
  }
  .work-row:not(.is-soon):hover .row-name { transform: none; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .hero { padding-top: calc(var(--nav-h) + 18px); }
  .hero-meta-right { display: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 28px; margin-top: 5vh; }
  .section { padding: 80px 0; }
  .section-head { flex-direction: column; gap: 6px; margin-bottom: 44px; }
  .marquee-seq span { font-size: 1.1rem; padding: 0 20px; }
  .soon-badge { display: inline-flex; margin-left: 10px; }
  .contact-row { flex-direction: column; align-items: flex-start; }
  .contact-meta { margin-left: 0; }
  .service {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    row-gap: 4px;
  }
  .srv-num { grid-row: 1 / 3; }
  .srv-name, .srv-desc { grid-column: 2; }
  .footer-cols { grid-template-columns: 1fr; gap: 34px; }
  .f-disclaimer { text-align: left; }
  .stat { padding: 22px 16px; }
}

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

@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;
  }
  .hero-title .w { transform: none; animation: none; }
  html.js .reveal { opacity: 1; transform: none; }
  .float-preview { display: none; }
  .rot-word { opacity: 0; }
  .rot-word:first-child { opacity: 1; transform: none; }
}
