/* ───────────────────────────────────────────────────────────────
   artt.pro — landing
   Aesthetic: editorial print poster. Warm cream paper, deep ink
   black, electric yellow + teal accents (logo dot). Massive
   display type as the hero, animated tickers, rotating stamp,
   crop marks, paper grain.
   ─────────────────────────────────────────────────────────────── */

/* Tokens ------------------------------------------------------- */
:root {
  --paper: #F4EFE6;
  --paper-2: #ECE5D5;
  --ink: #0E0E0E;
  --ink-soft: #1A1A1A;
  --dim: #6B6357;
  --rule: #20201D;

  --yellow: #FFD60A;
  --teal: #00C8B3;
  --coral: #FF5A36;

  --gutter: clamp(20px, 4vw, 56px);
  --page-pad: clamp(28px, 4vw, 72px);

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

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --body: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

/* Reset / base ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "kern";
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: var(--ink); color: var(--yellow); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Paper grain — subtle noise via inline SVG data URI -------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

/* Page-wide warm gradient + halftone vibe */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(255,214,10,.22), transparent 60%),
    radial-gradient(45% 40% at 0% 100%, rgba(0,200,179,.12), transparent 70%),
    radial-gradient(40% 35% at 90% 95%, rgba(255,90,54,.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Halftone dot field, anchored bottom-left for editorial weight */
body::after {
  content: "";
  position: fixed;
  left: -8vw; bottom: -8vw;
  width: 38vw; height: 38vw;
  background-image: radial-gradient(circle, var(--ink) 1.1px, transparent 1.4px);
  background-size: 14px 14px;
  opacity: .07;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(closest-side at 30% 70%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(closest-side at 30% 70%, #000 30%, transparent 75%);
}

/* Crop marks (corner registration) ---------------------------- */
.crop {
  position: fixed;
  width: 22px; height: 22px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  animation: cropDraw .6s var(--ease-out) .15s forwards;
}
.crop::before, .crop::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.crop::before { width: 22px; height: 1.5px; }
.crop::after  { width: 1.5px; height: 22px; }
.crop--tl { top: 14px; left: 14px; }
.crop--tl::before { top: 10px; left: 0; }
.crop--tl::after  { left: 10px; top: 0; }
.crop--tr { top: 14px; right: 14px; }
.crop--tr::before { top: 10px; right: 0; }
.crop--tr::after  { right: 10px; top: 0; }
.crop--bl { bottom: 14px; left: 14px; }
.crop--bl::before { bottom: 10px; left: 0; }
.crop--bl::after  { left: 10px; bottom: 0; }
.crop--br { bottom: 14px; right: 14px; }
.crop--br::before { bottom: 10px; right: 0; }
.crop--br::after  { right: 10px; bottom: 0; }

@keyframes cropDraw {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: .6; transform: scale(1); }
}

/* Tickers ----------------------------------------------------- */
.ticker {
  position: relative;
  z-index: 3;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-block: 1px solid var(--ink);
}
.ticker--top    { transform: translateY(-100%); animation: tickerIn .7s var(--ease-out) .25s forwards; }
.ticker--bottom { transform: translateY(100%);  animation: tickerIn .7s var(--ease-out) .35s forwards; }
@keyframes tickerIn { to { transform: translateY(0); } }

.ticker__track {
  display: flex;
  gap: 56px;
  padding: 11px 0;
  white-space: nowrap;
  width: max-content;
  animation: scroll 38s linear infinite;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ticker__track--reverse { animation-direction: reverse; animation-duration: 46s; }
.ticker__track span { flex: 0 0 auto; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker--bottom { position: fixed; left: 0; right: 0; bottom: 0; }
.ticker--bottom .ticker__track { color: var(--ink); }
.ticker--bottom { background: var(--yellow); border-color: var(--ink); }

/* Page wrapper ------------------------------------------------ */
.page {
  position: relative;
  z-index: 2;
  padding: var(--page-pad) var(--page-pad) calc(var(--page-pad) + 56px);
  max-width: 1480px;
  margin: 0 auto;
}

/* Header ------------------------------------------------------ */
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(48px, 9vh, 120px);
  opacity: 0;
  animation: fadeUp .6s var(--ease-out) .5s forwards;
}
.head__logo {
  color: var(--ink);
  display: inline-block;
  transition: color .25s var(--ease);
}
.head__logo svg {
  height: clamp(28px, 3.4vw, 40px);
  width: auto;
}
.head__logo:hover { color: var(--ink-soft); }

.head__meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kbd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  line-height: 1;
}
.kbd--accent { background: var(--ink); color: var(--paper); }
.kbd.dim { color: var(--dim); border-color: var(--dim); }

.pulse {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(0,200,179,.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,200,179,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(0,200,179,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,200,179,0); }
}

.hide-sm { display: none; }
@media (min-width: 760px) { .hide-sm { display: inline-flex; } }

/* Reveal animation base -------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp .9s var(--ease-out) forwards;
}
[data-reveal]:nth-of-type(1) { animation-delay: .65s; }
.eyebrow      { animation-delay: .60s; }
.row:nth-child(1) { animation-delay: .75s; }
.row:nth-child(2) { animation-delay: .92s; }
.row:nth-child(3) { animation-delay: 1.08s; }
.lede             { animation-delay: 1.28s; }
.signup           { animation-delay: 1.45s; }
.ticker-mini      { animation-delay: 1.60s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero -------------------------------------------------------- */
.hero {
  position: relative;
  max-width: 1200px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 28px;
}
.bullet {
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--coral);
  border-radius: 999px;
  animation: float 3.2s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-3px); }
}

/* Display headline — the entire reason the page exists. */
.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(60px, 12vw, 200px);
  line-height: .96;
  letter-spacing: -0.04em;
  margin: 0 0 40px;
  color: var(--ink);
  font-variation-settings: "opsz" 96, "wdth" 100;
}
.display .row {
  display: flex;
  align-items: baseline;
  gap: .22em;
  flex-wrap: wrap;
}
.display .row--offset { padding-left: clamp(40px, 8vw, 180px); }
.display .word {
  display: inline-block;
}
.display .period { color: var(--coral); }

/* italic flourish */
.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-right: .04em;
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
  background-size: 100% 100%;
}

/* "ink" treatment — striped ink-roller look */
.display .ink {
  background: var(--ink);
  color: var(--paper);
  padding: 0 .12em 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background .3s var(--ease);
}
.display .ink:hover { background: var(--teal); color: var(--ink); }

/* word swapper */
.word--swap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  height: .94em;
  line-height: .94em;
  position: relative;
  top: .03em;
}
.swap__inner {
  display: flex;
  flex-direction: column;
  animation: swap 13s steps(1) infinite;
}
.swap__inner em {
  display: block;
  height: .94em;
  line-height: .94em;
}
@keyframes swap {
  0%, 13%   { transform: translateY(0); }        /* art */
  15%, 28%  { transform: translateY(-.94em); }   /* work */
  30%, 43%  { transform: translateY(-1.88em); }  /* prints */
  45%, 58%  { transform: translateY(-2.82em); }  /* frames */
  60%, 73%  { transform: translateY(-3.76em); }  /* posters */
  75%, 88%  { transform: translateY(-4.70em); }  /* canvas */
  90%, 100% { transform: translateY(-5.64em); }  /* art (wrap) */
}

/* Lede -------------------------------------------------------- */
.lede {
  max-width: 580px;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 44px;
}
.lede .ul {
  background: linear-gradient(transparent 84%, var(--teal) 84%, var(--teal) 100%);
}

/* Signup ------------------------------------------------------ */
.signup {
  display: flex;
  align-items: stretch;
  gap: 10px;
  max-width: 560px;
  margin: 0 0 28px;
  flex-wrap: wrap;
  position: relative;
}
.signup__field { flex: 1 1 280px; position: relative; }
.signup input[type="email"] {
  width: 100%;
  padding: 18px 22px;
  font: 500 16px/1.2 var(--body);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  outline: none;
  transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.signup input[type="email"]::placeholder { color: #8E8678; }
.signup input[type="email"]:focus {
  background: #FFFBF1;
  box-shadow: 0 0 0 4px rgba(255,214,10,.45);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 26px;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font: 500 15px/1 var(--body);
  letter-spacing: .01em;
  overflow: hidden;
  isolation: isolate;
  transition: color .25s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: translateY(100%);
  transition: transform .35s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn__arrow {
  display: inline-flex;
  width: 18px; height: 18px;
  transition: transform .25s var(--ease);
}
.btn__arrow svg { width: 100%; height: 100%; }

.signup__msg {
  flex-basis: 100%;
  margin: 4px 6px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--dim);
  min-height: 18px;
}
.signup__msg.ok { color: #0a6e60; }
.signup__msg.err { color: #c0392b; }

/* mini ticker / counter line */
.ticker-mini {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ticker-mini strong { font-weight: 600; }
.ticker-mini .sep { opacity: .35; }
.dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  display: inline-block;
}
.dot--teal { background: var(--teal); }

/* Side rail (vertical text) ---------------------------------- */
.rail {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
  z-index: 4;
  pointer-events: none;
}
@media (max-width: 1100px) { .rail { display: none; } }

/* Rotating stamp --------------------------------------------- */
.stamp {
  position: fixed;
  right: clamp(24px, 4vw, 56px);
  bottom: clamp(76px, 10vh, 120px);
  width: clamp(110px, 11vw, 144px);
  height: clamp(110px, 11vw, 144px);
  display: grid;
  place-items: center;
  color: var(--ink);
  z-index: 4;
  opacity: 0;
  transform: scale(.4) rotate(-30deg);
  animation: stampIn .9s var(--ease-out) 1.9s forwards;
  transition: transform .3s var(--ease);
}
.stamp:hover { transform: scale(1.06); }
@keyframes stampIn {
  to { opacity: 1; transform: scale(1) rotate(0); }
}
.stamp__rotor {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  animation: spin 18s linear infinite;
}
.stamp__text {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  fill: var(--ink);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.stamp__core {
  width: 46%; height: 46%;
  background: var(--yellow);
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  transition: background .25s var(--ease);
}
.stamp:hover .stamp__core { background: var(--teal); }
.stamp__core svg { width: 40%; height: 40%; }
@media (max-width: 640px) {
  .stamp { right: 18px; bottom: 64px; width: 92px; height: 92px; }
  .stamp__text { font-size: 11px; }
}

/* Specimen / value props ------------------------------------- */
.specimen {
  margin-top: clamp(80px, 14vh, 160px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.spec {
  padding: 28px 24px 30px;
  border-right: 1px solid var(--ink);
  position: relative;
}
.spec:last-child { border-right: none; }
.spec__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--dim);
  display: block;
  margin-bottom: 18px;
}
.spec__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  color: var(--ink);
}
.spec__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--coral);
}
.spec p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 32ch;
}
@media (max-width: 760px) {
  .specimen { grid-template-columns: 1fr; }
  .spec { border-right: none; border-bottom: 1px solid var(--ink); }
  .spec:last-child { border-bottom: none; }
}

/* Footer ----------------------------------------------------- */
.foot {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.foot__col { display: flex; gap: 10px; flex-wrap: wrap; }
.foot__nav {
  display: flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.foot__nav a {
  position: relative;
  padding-bottom: 2px;
  transition: color .25s var(--ease);
}
.foot__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--ink);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .35s var(--ease);
}
.foot__nav a:hover { color: var(--coral); }
.foot__nav a:hover::after { transform: scaleX(1); background: var(--coral); }

/* Responsive headline trims --------------------------------- */
@media (max-width: 760px) {
  .display { font-size: clamp(56px, 17vw, 110px); }
  .display .row--offset { padding-left: 16px; }
  .head__meta .kbd:nth-child(1) { display: none; }
  .ticker__track { gap: 32px; }
}

/* Reduced motion --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .ticker--top, .ticker--bottom { transform: none; }
  .stamp { opacity: 1; transform: none; }
}
