/* ==========================================================================
   Tattoo City Ink — main.css
   Dark cinematic, photo-led, near-monochrome + purple accent.
   ========================================================================== */

:root{
  --ink:#17130E;
  --ink-2:#211B13;
  --ink-3:#2A2318;
  --paper:#ECE2CD;
  --paper-dim:#C9BCA2;
  --purple:#7D5FB2;
  --purple-deep:#5F4691;
  --pink:#EFC9E4;
  --oxblood:#8A3530;
  --line: rgba(236,226,205,.14);
  --line-strong: rgba(236,226,205,.28);
  --purple-line: rgba(125,95,178,.45);

  --font-display:'Big Shoulders Display', sans-serif;
  --font-body:'Barlow', sans-serif;
  --font-mono:'Space Mono', monospace;
  --font-script:'Sacramento', cursive;

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust:100%; }
html,body{ margin:0; padding:0; }
body{
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
button{ font-family: inherit; background:none; border:0; color:inherit; cursor:pointer; }
ul,ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3,p,figure{ margin:0; }
svg{ display:block; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Grain overlay ---------- */
.grain{
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: overlay;
}

/* ---------- Type helpers ---------- */
.section-label{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.section-label .stencil-svg{
  width: 34px; height: 34px;
  flex: none;
}
.section-label .stencil-svg path,
.section-label .stencil-svg polygon{
  fill: none;
  stroke: var(--purple);
  stroke-width: 1.4;
}

h2{
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .92;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: var(--paper);
  margin-bottom: 20px;
}

.script{
  font-family: var(--font-script);
  color: var(--purple);
  font-weight: 400;
  line-height: 1;
}

.body-text{
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--paper-dim);
  max-width: 46ch;
}

.ghost-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper);
  border-bottom: 1px solid var(--purple-line);
  padding-bottom: 4px;
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.ghost-link:hover{ color: var(--purple); border-color: var(--purple); }
.ghost-link .arrow{ transition: transform .25s var(--ease-out); }
.ghost-link:hover .arrow{ transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 17px 26px;
  border: 1px solid var(--paper);
  white-space: nowrap;
  transition: transform .25s var(--ease-out), background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.btn .arrow{ transition: transform .25s var(--ease-out); }
.btn:hover .arrow{ transform: translateX(4px); }

.btn-paper{
  background: var(--paper);
  color: var(--ink);
}
.btn-paper:hover{ background: var(--purple); border-color: var(--purple); color: var(--paper); }

.btn-ghost{
  background: transparent;
  color: var(--paper);
  border-color: var(--line-strong);
}
.btn-ghost:hover{ border-color: var(--purple); color: var(--purple); }

.btn-sm{ padding: 11px 18px; font-size: 11.5px; }

.btn-nav-outline{
  background: transparent;
  color: var(--paper);
  border: 1.5px solid var(--purple);
}
.btn-nav-outline:hover{ background: var(--purple); color: var(--ink); border-color: var(--purple); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(23,19,14,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo{
  width: 34px; height: 34px;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  flex: none;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}
.nav-logo img{ width: 26px; height: 26px; object-fit: contain; }
.nav-word{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper);
}
.nav-links{
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a:not(.btn){
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: color .2s var(--ease-out);
}
.nav-links a:not(.btn):hover{ color: var(--purple); }

.burger{
  display: none;
  width: 32px; height: 22px;
  position: relative;
  flex: none;
}
.burger span{
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--paper);
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.burger span:nth-child(1){ top: 0; }
.burger span:nth-child(2){ top: 10px; }
.burger span:nth-child(3){ top: 20px; }
.burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(10px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-10px) rotate(-45deg); }

.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 450;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s linear .35s;
}
.mobile-menu.open{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s;
}
.mobile-menu nav{
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}
.mobile-menu a{
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 12vw, 3.2rem);
  color: var(--paper);
  letter-spacing: -.01em;
}
.mobile-menu a:hover{ color: var(--purple); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  overflow: hidden;
}
.hero-photo{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.hero-photo img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.hero-photo::before{
  /* left-side scrim for text legibility — photo itself stays full opacity */
  content:'';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--ink) 0%, rgba(23,19,14,.92) 20%, rgba(23,19,14,.55) 38%, rgba(23,19,14,.12) 58%, rgba(23,19,14,0) 72%);
  z-index: 2;
}
.hero-photo::after{
  /* bottom scrim so CTAs/trust row sit on solid ground */
  content:'';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,19,14,0) 0%, rgba(23,19,14,0) 40%, rgba(23,19,14,.5) 78%, rgba(23,19,14,.82) 100%);
  z-index: 2;
}
.hero-fog{
  position: absolute; inset: 0; z-index: 3;
  mix-blend-mode: screen;
  opacity: .55;
}
.fog{
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
}
.fog-1{
  width: 46%; height: 46%;
  left: 6%; top: 18%;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  animation: fogDrift1 26s ease-in-out infinite;
}
.fog-2{
  width: 38%; height: 38%;
  right: 8%; bottom: 12%;
  background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
  animation: fogDrift2 32s ease-in-out infinite;
}
@keyframes fogDrift1{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(6%, 8%) scale(1.12); }
}
@keyframes fogDrift2{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-8%, -6%) scale(1.15); }
}

.hero-hex{
  position: absolute;
  right: 26%;
  top: 22%;
  width: min(30vw, 340px);
  height: min(30vw, 340px);
  z-index: 2;
  opacity: .5;
  pointer-events: none;
}
.hero-hex polygon, .hero-hex circle{
  fill: none;
  stroke: var(--purple);
  stroke-width: 1;
}

.hero-badge{
  position: absolute;
  top: 96px;
  right: var(--gutter);
  z-index: 6;
  width: 150px;
  height: 150px;
  opacity: 1;
  pointer-events: none;
}
.hero-badge::before{
  /* dark halo so the purple ring reads over bright photo areas */
  content:'';
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle, rgba(23,19,14,.72) 0%, rgba(23,19,14,.4) 55%, rgba(23,19,14,0) 75%);
}
.hero-badge svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-badge-ring{
  animation: heroBadgeSpin 60s linear infinite;
}
.hero-badge-ring text{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  fill: var(--purple);
}
.hero-badge-glyph rect{
  fill: none;
  stroke: var(--purple);
  stroke-width: 3;
}
@keyframes heroBadgeSpin{
  to{ transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce){
  .hero-badge-ring{ animation: none; }
}
.reduced-motion .hero-badge-ring{ animation: none; }

.scroll-rail{
  position: absolute;
  left: var(--gutter);
  bottom: 64px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.scroll-label{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  writing-mode: vertical-rl;
  color: var(--paper-dim);
}
.scroll-line{
  width: 1px; height: 90px;
  background: linear-gradient(var(--purple), transparent);
}
.scroll-hex{
  width: 14px; height: 14px;
  border: 1px solid var(--purple);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}

.hero-content{
  position: relative;
  z-index: 5;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
}
.overline{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 22px;
}
.overline .dash{
  width: 26px; height: 1px;
  background: var(--purple);
}

.hero-h1{
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.015em;
  line-height: .86;
  font-size: clamp(3.4rem, 10vw, 8.4rem);
  color: var(--paper);
}
.hero-h1 .line{
  display: block;
  overflow: hidden;
}
.hero-h1 .line span.char{
  display: inline-block;
  will-change: transform;
}
.hero-h1 .outline{
  color: transparent;
  -webkit-text-stroke: 2px var(--purple);
}

.hero-script{
  position: absolute;
  right: 24px;
  top: 34%;
  z-index: 6;
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  color: #B79BE8;
  text-align: right;
  transform: rotate(-6deg);
  transform-origin: right center;
  max-width: 380px;
  pointer-events: none;
  text-shadow: 0 2px 26px rgba(23,19,14,.95), 0 0 3px rgba(23,19,14,.7);
}

.hero-sub{
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--paper-dim);
  max-width: 34ch;
  margin-bottom: 34px;
}

.hero-ctas{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}
/* No solid paper fill in the hero — photo shows through both CTAs.
   Primary is distinguished by a stronger border + a faint paper tint. */
.hero-ctas .btn{
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(236,226,205,.35);
}
.hero-ctas .btn.btn-paper{
  background: rgba(236,226,205,.07);
  border-color: rgba(236,226,205,.55);
}
.hero-ctas .btn:hover{
  background: var(--purple);
  border-color: var(--purple);
  color: var(--ink);
}

.trust-row{
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--paper);
  line-height: 1.5;
  padding: 0 24px;
  transition: color .2s var(--ease-out);
}
.trust-item:first-child{ padding-left: 0; }
.trust-item + .trust-item{ border-left: 1px solid var(--line-strong); }
a.trust-item:hover{ color: var(--purple); }
a.trust-item:hover svg{ stroke: var(--purple); }
.trust-item svg{
  width: 22px; height: 22px;
  flex: none;
  stroke: var(--purple);
  fill: none;
  stroke-width: 1.3;
}
.trust-item em{ font-style: normal; color: var(--paper-dim); }

/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */
section{ position: relative; }
.work, .studio, .book, .faq, .review{
  padding: clamp(80px, 12vw, 150px) 0;
}
.section-line{
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  color: var(--paper-dim);
  max-width: 50ch;
  margin-bottom: 48px;
}

/* ==========================================================================
   WORK
   ========================================================================== */
.work{ border-top: 1px solid var(--line); }

.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.chip{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--paper-dim);
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.chip:hover{ border-color: var(--purple); color: var(--paper); }
.chip.active{
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.work-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 14px;
  margin-bottom: 44px;
}
.tile{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.tile:nth-child(1){ grid-column: 1; grid-row: 1 / 3; }
.tile:nth-child(2){ grid-column: 2; grid-row: 1; }
.tile:nth-child(3){ grid-column: 3; grid-row: 1; }
.tile:nth-child(4){ grid-column: 4; grid-row: 1 / 3; }
.tile:nth-child(5){ grid-column: 2; grid-row: 2; }
.tile:nth-child(6){ grid-column: 3; grid-row: 2; }

.tile-media{
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.tile img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.tile:hover img{ transform: scale(1.03); }

.tile{ transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.tile.filtered-out{ opacity: 0; transform: scale(.92); pointer-events: none; }

.tile figcaption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paper);
  background: linear-gradient(to top, rgba(23,19,14,.92), rgba(23,19,14,0));
  transform: translateY(100%);
  transition: transform .35s var(--ease-out);
}
.tile:hover figcaption{ transform: translateY(0); }

.tile.hidden{ display: none; }

/* ==========================================================================
   STUDIO
   ========================================================================== */
.studio{ border-top: 1px solid var(--line); }
.studio-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.studio-pull{
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-top: 30px;
  transform: rotate(-4deg);
  transform-origin: left center;
}
.studio-photo{
  position: relative;
  aspect-ratio: 941 / 1400;
  overflow: hidden;
  border: 1px solid var(--line);
}
.studio-photo img{
  width: 100%; height: 100%;
  object-fit: cover;
}
.studio-hex{
  position: absolute;
  top: -12%; right: -14%;
  width: 42%;
  z-index: 2;
  opacity: .9;
}
.studio-hex polygon{
  fill: none;
  stroke: var(--purple);
  stroke-width: 1.4;
}

/* ==========================================================================
   BOOK
   ========================================================================== */
.book{ border-top: 1px solid var(--line); }
.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 70px;
}
.step{
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
}
.step .num{
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--purple);
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.step p{
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper-dim);
}

.stencil-slip{
  position: relative;
  max-width: 640px;
  margin: 0 auto 48px;
  background: var(--paper);
  color: var(--ink);
  padding: 46px 44px 38px;
  transform: rotate(-1.6deg);
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.stencil-slip::before,
.stencil-slip::after{
  content:'';
  position: absolute;
  left: 0; right: 0;
  height: 10px;
  background-image: radial-gradient(circle at 8px 8px, transparent 7px, var(--ink) 7px);
  background-size: 16px 16px;
  background-repeat: repeat-x;
}
.stencil-slip::before{ top: -5px; background-position: 0 -4px; }
.stencil-slip::after{ bottom: -5px; transform: scaleY(-1); background-position: 0 -4px; }

.stamp{
  position: absolute;
  top: 26px; right: 30px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--oxblood);
  border: 2px solid var(--oxblood);
  padding: 6px 10px;
  transform: rotate(9deg);
  opacity: .85;
}

.stencil-slip h3{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--purple-deep);
  max-width: 80%;
}
.policy-rows{ display: flex; flex-direction: column; gap: 14px; }
.policy-rows li{
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(95,70,145,.35);
}
.policy-rows li:last-child{ border-bottom: 0; padding-bottom: 0; }
.policy-rows li span{
  font-weight: 700;
  color: var(--purple-deep);
  letter-spacing: .06em;
}
.fine-print{
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  opacity: .75;
}
.fine-print a{ text-decoration: underline; text-underline-offset: 3px; }

.book-ctas{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq{ border-top: 1px solid var(--line); }
.accordion{ max-width: 760px; }
.acc-item{ border-bottom: 1px solid var(--line-strong); }
.acc-trigger{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: var(--paper);
  letter-spacing: -.005em;
}
.acc-trigger:hover{ color: var(--purple); }
.acc-icon{
  flex: none;
  width: 26px; height: 26px;
  border: 1px solid var(--purple-line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--purple);
  transition: transform .3s var(--ease-out);
}
.acc-trigger[aria-expanded="true"] .acc-icon{ transform: rotate(135deg); }

.acc-panel{
  overflow: hidden;
  height: 0;
  transition: height .35s var(--ease-out);
}
.acc-panel-inner{
  padding: 0 0 28px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--paper-dim);
  max-width: 62ch;
}

/* ==========================================================================
   REVIEW STRIP
   ========================================================================== */
.review{ border-top: 1px solid var(--line); text-align: center; }
.review .container{ max-width: 780px; }
.quote-mark{
  width: 44px; height: 34px;
  margin: 0 auto 24px;
  fill: var(--purple);
}
.quote{
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.5;
  color: var(--paper);
  margin-bottom: 22px;
}
.attribution{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--paper-dim);
  margin-bottom: 26px;
}
.review .ghost-link{ margin: 0 auto; }

/* ==========================================================================
   KINETIC MARQUEE — between WORK and STUDIO
   Duplicate-track technique, transform-only animation (pattern lifted from
   cinematic-site-components/kinetic-marquee.html, simplified: no scroll-
   velocity coupling — continuous, pause-free loop only, per spec).
   ========================================================================== */
.marquee-band{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
}
.marquee-track{
  display: flex;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
  will-change: transform;
}
.marquee-seq{
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  line-height: 1;
  color: var(--paper-dim);
  white-space: nowrap;
  padding-right: 1.2em;
}
.marquee-seq .mdot{
  color: var(--purple);
  margin: 0 .5em;
}
@keyframes marqueeScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
  .marquee-seq:nth-child(2){ display: none; }
}
.reduced-motion .marquee-track{ animation: none; }
.reduced-motion .marquee-seq:nth-child(2){ display: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.footer-brand{ display: flex; flex-direction: column; gap: 10px; }
.footer-brand img{ width: 34px; height: 34px; margin-bottom: 6px; }
.footer-brand p:nth-child(2){
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--paper);
}
.footer-brand .script{ font-size: 1.6rem; margin-top: 4px; }
.footer-info p{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--paper-dim);
  line-height: 2;
}
.footer-socials{ display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-socials a{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--paper-dim);
  transition: color .2s var(--ease-out);
}
.footer-socials a:hover{ color: var(--purple); }
.footer-credit{
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--paper-dim);
  opacity: .6;
}
.footer-credit a{ text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover{ color: var(--purple); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px){
  .nav-links{ display: none; }
  .burger{ display: block; }

  .hero{ padding-top: 68px; align-items: flex-start; min-height: 100svh; }
  .hero-photo{
    width: 100%; height: 100%;
    top: 0; bottom: 0;
    z-index: 1;
  }
  .hero-photo img{ object-position: 66% center; }
  .hero-photo::before{
    background: linear-gradient(to right, var(--ink) 0%, rgba(23,19,14,.96) 38%, rgba(23,19,14,.74) 58%, rgba(23,19,14,.32) 74%, rgba(23,19,14,0) 88%);
  }
  .hero-photo::after{
    background: linear-gradient(180deg, rgba(23,19,14,0) 0%, rgba(23,19,14,0) 55%, rgba(23,19,14,.55) 85%, rgba(23,19,14,.88) 100%);
  }

  .hero-hex{
    display: block;
    width: min(92vw, 460px);
    height: min(92vw, 460px);
    right: 4%;
    top: 30%;
    opacity: .4;
  }

  .scroll-rail{
    display: flex;
    left: 16px;
    bottom: 24px;
  }

  .hero-badge{ width: 122px; height: 122px; top: 108px; }
  .hero-badge-ring text{ font-size: 11.5px; }

  .hero-script{
    top: 218px;
    right: 16px;
    font-size: clamp(2.5rem, 8vw, 2.8rem);
    max-width: 210px;
  }

  .hero-content{ padding-top: 30px; }
  .hero-h1{ font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero-sub{ max-width: 40ch; margin-top: 44px; }

  .trust-row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
    column-gap: 16px;
  }
  .trust-item{ padding: 0; border-left: 0 !important; }
  .trust-item:nth-child(2n){ position: relative; padding-left: 18px; }
  .trust-item:nth-child(2n)::before{
    content:'';
    position: absolute;
    left: 0; top: 2px; bottom: 2px;
    width: 1px;
    background: var(--line-strong);
  }

  .work-grid{
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 200px);
  }
  .tile:nth-child(1){ grid-column: 1; grid-row: 1 / 3; }
  .tile:nth-child(2){ grid-column: 2; grid-row: 1; }
  .tile:nth-child(3){ grid-column: 2; grid-row: 2; }
  .tile:nth-child(4){ grid-column: 1; grid-row: 3; }
  .tile:nth-child(5){ grid-column: 2; grid-row: 3; }
  .tile:nth-child(6){ grid-column: 1 / 3; grid-row: 4; }
  .work-grid{ grid-template-rows: repeat(3, 200px) 260px; }

  .studio-grid{ grid-template-columns: 1fr; }
  .studio-photo{ order: -1; max-width: 420px; margin: 0 auto 40px; }

  .steps{ grid-template-columns: 1fr; gap: 24px; }

  .footer-grid{ grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 620px){
  .hero-ctas{ flex-direction: column; align-items: stretch; }
  .hero-ctas .btn{ width: 100%; }

  /* portfolio: 3 strip tiles -> 1 feature tile -> 2 tiles (ref2-portfolio-mobile) */
  .work-grid{
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 4px;
  }
  .work-grid .tile{ grid-column: auto !important; grid-row: auto !important; aspect-ratio: 1 / 1; }
  /* strip: wolf(3), fineline(6), lettering(5) */
  .work-grid .tile:nth-child(3){ grid-column: 1 / 3 !important; grid-row: 1 !important; }
  .work-grid .tile:nth-child(6){ grid-column: 3 / 5 !important; grid-row: 1 !important; }
  .work-grid .tile:nth-child(5){ grid-column: 5 / 7 !important; grid-row: 1 !important; }
  /* feature: japanese back (1) */
  .work-grid .tile:nth-child(1){ grid-column: 1 / 7 !important; grid-row: 2 !important; }
  /* pair: dark sleeve (2), elephant (4) */
  .work-grid .tile:nth-child(2){ grid-column: 1 / 4 !important; grid-row: 3 !important; }
  .work-grid .tile:nth-child(4){ grid-column: 4 / 7 !important; grid-row: 3 !important; }

  /* quote card sits right after the grid on mobile (flex order below);
     the review section itself becomes that card */
  .review{ border-top: 0; padding: 0 0 clamp(56px, 12vw, 90px); }
  .review .container{
    max-width: none;
    text-align: left;
    border: 1px solid var(--line-strong);
    padding: 30px 22px 24px;
    position: relative;
  }
  .review .quote-mark{ margin: 0 0 16px; width: 32px; height: 25px; }
  .review .quote{ font-size: 1.15rem; margin-bottom: 18px; }
  .review .attribution{ margin-bottom: 20px; font-size: 11px; }
  .review .ghost-link{ margin: 0; font-size: 11px; }

  /* mobile reorder: hero -> work -> quote card -> marquee -> studio -> book -> faq -> footer
     (fixed/absolute elements — nav, mobile-menu, grain — are unaffected by flex order) */
  body{ display: flex; flex-direction: column; }
  .hero{ order: 1; }
  .work{ order: 2; }
  .review{ order: 3; }
  .marquee-band{ order: 4; }
  .studio{ order: 5; }
  .book{ order: 6; }
  .faq{ order: 7; }
  .site-footer{ order: 8; }

  .marquee-seq{ font-size: clamp(1.3rem, 6vw, 1.7rem); }

  /* policy slip: bigger, legible terms (fix #3) + tight gap to CTAs (fix #1) */
  .stencil-slip{ padding: 40px 24px 30px; margin: 0 auto 36px; }
  .stencil-slip h3{ font-size: 14px; max-width: 72%; }
  .policy-rows li{ font-size: 14.5px; line-height: 1.65; }
  .policy-rows{ gap: 16px; }
  .fine-print{ font-size: 12.5px; }
  .stamp{ top: 16px; right: 14px; font-size: 10px; padding: 4px 8px; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  .fog-1, .fog-2{ animation: none; }
  * { scroll-behavior: auto !important; }
}
.reduced-motion .fog-1,
.reduced-motion .fog-2{ animation: none; }
