/* ============================================================
   FreeCo 法芮可 — Design System v2 (2026)
   Editorial minimalism · ink on paper · electric blue accent
   ============================================================ */

:root {
  --paper: #fafaf7;
  --paper-dim: #f1f1ec;
  --ink: #101014;
  --ink-60: rgba(16, 16, 20, 0.6);
  --ink-40: rgba(16, 16, 20, 0.4);
  --ink-12: rgba(16, 16, 20, 0.12);
  --accent: #2749ff;
  --accent-ink: #1e3ad6;
  --lime: #d6ff4b;
  --font-en: "Space Grotesk", "Noto Sans TC", sans-serif;
  --font-tc: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --max-w: 1280px;
  --pad-x: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-tc);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ---------- typography ---------- */
.h-display {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(2.2rem, 7.2vw, 6.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h1, .h2 { text-wrap: balance; }
.h-display .tc { font-family: var(--font-tc); font-weight: 900; letter-spacing: 0.01em; }

.h1 { font-family: var(--font-tc); font-weight: 900; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.25; letter-spacing: 0.02em; }
.h2 { font-family: var(--font-tc); font-weight: 900; font-size: clamp(1.55rem, 3.2vw, 2.4rem); line-height: 1.35; }
.h3 { font-family: var(--font-tc); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; }

.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 2; color: var(--ink-60); }
.lead strong, .lead b { color: var(--ink); }

.eyebrow {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); }

.num {
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: transform 0.4s var(--ease), background 0.3s, box-shadow 0.3s;
  background: transparent;
}
.site-header.scrolled { background: rgba(250, 250, 247, 0.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--ink-12); }
.site-header.hidden { transform: translateY(-110%); }
.dark-page .site-header.scrolled { background: rgba(16, 16, 20, 0.82); box-shadow: 0 1px 0 rgba(255,255,255,0.1); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-en); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 8px;
}
.logo em { font-style: normal; color: var(--accent); }
.logo span { font-family: var(--font-tc); font-size: 0.78rem; font-weight: 500; color: var(--ink-40); letter-spacing: 0.12em; }

.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; position: relative; padding: 6px 0;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

/* mobile nav */
.nav-toggle { display: none; z-index: 130; width: 44px; height: 44px; position: relative; }
.nav-toggle span {
  position: absolute; left: 10px; width: 24px; height: 2px; background: currentColor;
  transition: 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; background: var(--ink); color: var(--paper);
    flex-direction: column; justify-content: center; gap: 8px;
    opacity: 0; pointer-events: none; transition: opacity 0.35s;
    z-index: 120;
  }
  .nav-links a { font-size: 1.7rem; font-weight: 700; padding: 12px; }
  .nav-links .btn { margin-top: 24px; }
  body.nav-open .nav-links { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff !important;
  font-weight: 700; font-size: 0.98rem;
  padding: 14px 28px; border-radius: 100px;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 18px rgba(39, 73, 255, 0.28);
}
.btn:hover { background: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(39, 73, 255, 0.36); }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost {
  background: transparent; color: var(--ink) !important;
  box-shadow: inset 0 0 0 1.5px var(--ink-40);
}
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--ink); color: var(--paper) !important; }
.btn.on-dark { background: var(--lime); color: var(--ink) !important; box-shadow: 0 4px 18px rgba(214, 255, 75, 0.25); }
.btn.on-dark:hover { background: #e6ff7d; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--accent);
}
.link-arrow .arr { transition: transform 0.3s var(--ease); }
.link-arrow:hover .arr { transform: translateX(5px); }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }

.dark-section { background: var(--ink); color: var(--paper); }
.dark-section .lead { color: rgba(250, 250, 247, 0.6); }
.dark-section .lead strong { color: var(--paper); }
.dark-section .eyebrow { color: var(--lime); }
.dark-section .eyebrow::before { background: var(--lime); }

/* ---------- hero ---------- */
.hero { padding: calc(76px + clamp(56px, 9vw, 120px)) 0 clamp(56px, 8vw, 110px); position: relative; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(var(--ink-12) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero .h-display { max-width: 1100px; }
.hero .h-display .accent-line { color: var(--accent); display: block; }
.hero-sub { max-width: 640px; margin-top: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--ink-12); border-block: 1px solid var(--ink-12);
}
.stat { background: var(--paper); padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); }
.stat .v { font-family: var(--font-en); font-weight: 700; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -0.02em; }
.stat .v small { font-size: 0.5em; color: var(--accent); font-weight: 700; margin-left: 2px; }
.stat .k { color: var(--ink-60); font-size: 0.95rem; margin-top: 6px; }

/* ---------- service cards ---------- */
.svc-list { display: grid; gap: 1px; background: var(--ink-12); border-block: 1px solid var(--ink-12); }
.svc-item {
  background: var(--paper); display: grid; gap: 18px;
  grid-template-columns: minmax(56px, 90px) 1fr auto;
  align-items: start;
  padding: clamp(30px, 4.5vw, 54px) clamp(4px, 2vw, 24px);
  transition: background 0.35s;
  position: relative;
}
.svc-item:hover { background: var(--paper-dim); }
.svc-item .idx { font-family: var(--font-en); font-weight: 500; color: var(--ink-40); font-size: 1rem; padding-top: 8px; }
.svc-item h3 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 900; margin-bottom: 10px; }
.svc-item p { color: var(--ink-60); max-width: 640px; }
.svc-item .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.svc-item .go {
  align-self: center; width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid var(--ink-12); display: grid; place-items: center;
  transition: 0.3s var(--ease); font-size: 1.2rem;
}
.svc-item:hover .go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }
@media (max-width: 700px) {
  .svc-item { grid-template-columns: 1fr; }
  .svc-item .go { display: none; }
}

.tag {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 100px;
  border: 1px solid var(--ink-12); color: var(--ink-60);
  white-space: nowrap;
}
.dark-section .tag { border-color: rgba(250,250,247,0.2); color: rgba(250,250,247,0.65); }

/* ---------- works ---------- */
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 820px) { .works-grid { grid-template-columns: 1fr; } }

.work-card { display: grid; gap: 18px; }
.work-cover {
  border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 16 / 11;
}
.work-cover svg { width: 100%; height: 100%; transition: transform 0.8s var(--ease); }
.work-card:hover .work-cover svg { transform: scale(1.04); }
.work-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.work-meta h3 { font-size: 1.25rem; font-weight: 900; }
.work-meta .yr { font-family: var(--font-en); color: var(--ink-40); font-size: 0.9rem; }
.work-card p { color: var(--ink-60); font-size: 0.98rem; line-height: 1.9; }
.work-card .tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(16px, 2.5vw, 28px); counter-reset: step; }
.step {
  border: 1px solid rgba(250,250,247,0.14); border-radius: var(--radius);
  padding: 28px 24px; display: grid; gap: 12px; align-content: start;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-en); font-weight: 700; font-size: 1rem; color: var(--lime);
}
.step h3 { font-size: 1.15rem; font-weight: 700; }
.step p { color: rgba(250,250,247,0.6); font-size: 0.93rem; line-height: 1.85; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--ink-12); padding: 22px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track span {
  font-family: var(--font-en); font-weight: 500; font-size: 1.05rem; color: var(--ink-40);
  white-space: nowrap; display: flex; align-items: center; gap: 56px;
}
.marquee-track span::after { content: "·"; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- faq ---------- */
.faq-list { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--ink-12); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; font-weight: 700; font-size: clamp(1.02rem, 1.6vw, 1.15rem);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink-12); display: grid; place-items: center; transition: 0.3s var(--ease); font-size: 1rem; }
.faq-item[open] summary .ic { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg); }
.faq-item .a { padding: 0 0 28px; color: var(--ink-60); max-width: 720px; }
.faq-item .a a { color: var(--accent); font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band { text-align: left; }
.cta-band .h1 { max-width: 900px; }
.cta-contact-lines { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 56px); margin-top: 40px; }
.cta-contact-lines a { display: grid; gap: 4px; }
.cta-contact-lines .k { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(250,250,247,0.5); font-family: var(--font-en); }
.cta-contact-lines .v { font-family: var(--font-en); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.7rem); }
.cta-contact-lines a:hover .v { color: var(--lime); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(250,250,247,0.55); font-size: 0.9rem; padding: 48px 0; border-top: 1px solid rgba(250,250,247,0.1); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a:hover { color: var(--paper); }

/* ---------- page hero (subpages) ---------- */
.page-hero { padding: calc(76px + clamp(48px, 7vw, 96px)) 0 clamp(40px, 6vw, 80px); }
.page-hero .h1 { max-width: 900px; margin-top: 20px; }
.page-hero .lead { max-width: 720px; margin-top: 24px; }

.breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; color: var(--ink-40); margin-bottom: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- two-col feature ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.feat {
  border: 1px solid var(--ink-12); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; align-content: start;
  background: #fff; transition: 0.3s var(--ease);
}
.feat:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16,16,20,0.07); }
.feat .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(39,73,255,0.09); color: var(--accent); display: grid; place-items: center; font-size: 1.3rem; }
.feat h3 { font-size: 1.12rem; font-weight: 700; }
.feat p { color: var(--ink-60); font-size: 0.95rem; }

/* ---------- checklist ---------- */
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; margin-top: 6px;
  border-radius: 50%; background: rgba(39,73,255,0.1); color: var(--accent);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 900;
}
.dark-section .checklist li::before { background: rgba(214,255,75,0.14); color: var(--lime); }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 22px; max-width: 720px; }
.form-row { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; padding: 14px 16px; border-radius: 10px;
  border: 1.5px solid var(--ink-12); background: #fff; color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(39,73,255,0.12);
}
.field textarea { min-height: 150px; resize: vertical; }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--ink-12); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }

/* ============================================================
   v3 — signature layer(格線 / 游標 / 標記 / 膠卷 / 外框 / 解碼)
   ============================================================ */

/* ---------- full-page column grid (Block-Studio-inspired, our own) ---------- */
.page-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
}
.page-grid i { border-left: 1px solid rgba(16,16,20,0.05); }
.page-grid i:last-child { border-right: 1px solid rgba(16,16,20,0.05); }
main, .site-footer { position: relative; z-index: 2; }
.site-header { z-index: 100; }

/* ---------- custom cursor ---------- */
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999;
    border-radius: 50%; transform: translate(-50%, -50%);
  }
  .cursor-dot { width: 8px; height: 8px; background: var(--accent); }
  .cursor-ring {
    width: 38px; height: 38px; border: 1.5px solid rgba(39,73,255,0.5);
    transition: width 0.25s, height 0.25s, background 0.25s, border-color 0.25s;
  }
  body.cursor-hover .cursor-ring { width: 64px; height: 64px; background: rgba(39,73,255,0.08); border-color: var(--accent); }
}

/* ---------- marker highlights ---------- */
.mark-blue, .mark-dark {
  display: inline-block; padding: 0 0.35em; margin: 0 0.08em;
  border-radius: 4px; transform: rotate(-0.6deg);
}
.mark-blue { background: var(--accent); color: #fff; }
.mark-dark { background: var(--ink); color: var(--lime); }
.dark-section .mark-dark { background: var(--lime); color: var(--ink); }

/* ---------- EN display + scramble ---------- */
.h-display-en {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.6rem); letter-spacing: 0.14em;
  color: var(--ink-40); text-transform: uppercase; white-space: nowrap;
}
.h-display-en .cursor-blink { color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- availability bar ---------- */
.avail-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px;
  border-block: 1px solid var(--ink-12);
  padding: 18px 0;
}
.avail-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 4px rgba(47,191,113,0.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(47,191,113,0.06); } }
.avail-bar .k { font-size: 0.85rem; color: var(--ink-40); letter-spacing: 0.1em; font-family: var(--font-en); text-transform: uppercase; }
.avail-bar .v { font-family: var(--font-en); font-weight: 700; font-size: 1.3rem; }
.avail-bar .spacer { flex: 1; }
@media (max-width: 640px) { .avail-bar .spacer { display: none; } }

/* ---------- hero canvas ---------- */
.hero { overflow: hidden; }
#hero-canvas {
  position: absolute; right: max(calc((100vw - var(--max-w)) / 2 - 120px), -4vw); top: 40px;
  width: min(46vw, 680px); height: min(46vw, 680px);
  pointer-events: none; opacity: 0.9;
}
@media (max-width: 900px) { #hero-canvas { opacity: 0.28; right: -20vw; width: 90vw; height: 90vw; } }

/* ---------- showreel(膠卷截圖牆)---------- */
.reel-section { padding: clamp(48px, 7vw, 90px) 0; overflow: hidden; }
.reel { transform: rotate(-2deg) scale(1.03); }
.reel-track { display: flex; gap: clamp(18px, 2.4vw, 32px); width: max-content; animation: marquee 55s linear infinite; will-change: transform; }
.reel-section:hover .reel-track { animation-play-state: paused; }
.reel-item { flex: none; }

/* ---------- device frames ---------- */
.browser-frame {
  background: #e8e8e2; border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(16,16,20,0.18), 0 2px 8px rgba(16,16,20,0.1);
}
.browser-frame .bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
}
.browser-frame .bar b { width: 10px; height: 10px; border-radius: 50%; display: block; }
.browser-frame .bar b:nth-child(1) { background: #ff5f57; }
.browser-frame .bar b:nth-child(2) { background: #febc2e; }
.browser-frame .bar b:nth-child(3) { background: #28c840; }
.browser-frame .bar span {
  margin-left: 10px; flex: 1; max-width: 320px;
  background: #fff; border-radius: 6px; padding: 3px 12px;
  font-family: var(--font-en); font-size: 0.72rem; color: var(--ink-40);
  white-space: nowrap; overflow: hidden;
}
.browser-frame img { width: 100%; display: block; }

.phone-frame {
  border-radius: 36px; border: 8px solid var(--ink); overflow: hidden;
  box-shadow: 0 24px 60px rgba(16,16,20,0.22);
  background: var(--ink); position: relative;
}
.phone-frame::after {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 20px; background: var(--ink); border-radius: 0 0 14px 14px;
}
.phone-frame img { width: 100%; display: block; border-radius: 26px; }

.reel .browser-frame { width: clamp(360px, 34vw, 520px); }
.reel .phone-frame { width: clamp(120px, 11vw, 168px); }

/* ---------- work cards with real shots ---------- */
.work-cover.shot { aspect-ratio: auto; border-radius: 0; overflow: visible; position: relative; }
.work-cover.shot .browser-frame { transition: transform 0.6s var(--ease); }
.work-card:hover .work-cover.shot .browser-frame { transform: translateY(-6px) rotate(-0.5deg); }
.work-cover.shot .phone-float {
  position: absolute; right: -6px; bottom: -22px; width: 26%;
  transform: rotate(3deg); transition: transform 0.6s var(--ease);
}
.work-card:hover .work-cover.shot .phone-float { transform: rotate(0deg) translateY(-6px); }

/* ---------- brand wall ---------- */
.brand-wall { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(250,250,247,0.12); border-left: 1px solid rgba(250,250,247,0.12); }
@media (max-width: 860px) { .brand-wall { grid-template-columns: repeat(2, 1fr); } }
.brand-cell {
  border-right: 1px solid rgba(250,250,247,0.12); border-bottom: 1px solid rgba(250,250,247,0.12);
  min-height: 120px; display: grid; place-items: center; text-align: center; gap: 4px;
  padding: 22px 12px; transition: background 0.3s;
  align-content: center;
}
.brand-cell:hover { background: rgba(250,250,247,0.05); }
.brand-cell .m { font-family: var(--font-en); font-weight: 700; font-size: clamp(1.05rem, 1.8vw, 1.45rem); color: var(--paper); letter-spacing: 0.02em; }
.brand-cell .m.tc { font-family: var(--font-tc); font-weight: 900; }
.brand-cell .s { font-size: 0.78rem; color: rgba(250,250,247,0.45); letter-spacing: 0.08em; }

/* ---------- outline marquee (CTA) ---------- */
.outline-marquee { overflow: hidden; padding: 10px 0 26px; }
.outline-marquee .track { display: flex; gap: 64px; width: max-content; animation: marquee 28s linear infinite; }
.outline-marquee span {
  font-family: var(--font-en); font-weight: 700; font-size: clamp(3.6rem, 9vw, 8rem);
  line-height: 1; white-space: nowrap; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(250,250,247,0.35);
}
.outline-marquee span.fill { color: var(--lime); -webkit-text-stroke: 0; }

/* ---------- stats v3 ---------- */
.stat .v { -webkit-text-stroke: 0; }
.stat { position: relative; }
.stat::after {
  content: attr(data-idx); position: absolute; top: 14px; right: 16px;
  font-family: var(--font-en); font-size: 0.75rem; color: var(--ink-40); letter-spacing: 0.15em;
}

/* ---------- mini works strip ---------- */
.mini-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 820px) { .mini-works { grid-template-columns: 1fr; } }
.mini-work { display: grid; gap: 12px; }
.mini-work .browser-frame { box-shadow: 0 12px 32px rgba(16,16,20,0.12); }
.mini-work h4 { font-size: 1rem; font-weight: 700; }
.mini-work p { font-size: 0.88rem; color: var(--ink-60); }

@media (prefers-reduced-motion: reduce) {
  .reel-track, .outline-marquee .track { animation: none; }
  .cursor-dot, .cursor-ring { display: none; }
}
