/* Little Tough · landing
   Palette: deep ink (#0b0b0d) with bone (#f5f4ef) and a single warm accent (#e8d8b7).
   Type: Inter Tight for structure, Instrument Serif italic for accent.
*/

:root {
  --ink: #0b0b0d;
  --ink-2: #111114;
  --bone: #f5f4ef;
  --bone-dim: rgba(245, 244, 239, 0.66);
  --bone-faint: rgba(245, 244, 239, 0.36);
  --hair: rgba(245, 244, 239, 0.12);
  --warm: #e8d8b7;
  --easing: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1180px;
  --display-size: clamp(56px, 11vw, 168px);
  --head-size: clamp(36px, 6vw, 84px);
  --body-size: clamp(16px, 1.05vw, 19px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  font-size: var(--body-size);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }
em { font-family: 'Instrument Serif', 'Times New Roman', serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--bone); color: var(--ink); padding: 8px 12px; border-radius: 4px;
}
.skip:focus { left: 12px; top: 12px; z-index: 100; }

/* Container */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(to bottom, rgba(11,11,13,0.7), rgba(11,11,13,0));
  transition: background 600ms var(--easing), border-color 400ms var(--easing);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(11,11,13,0.78);
  border-bottom-color: var(--hair);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .mark { width: 22px; height: 22px; color: var(--bone); }
.mark .mark-block { fill: none; stroke: currentColor; stroke-width: 1.4; }
.mark .mark-chip { fill: currentColor; }
.brand:hover .mark .mark-chip { animation: chipShift 700ms var(--easing) forwards; }
@keyframes chipShift {
  0% { transform: translate(0,0); }
  50% { transform: translate(2px, 2px); }
  100% { transform: translate(0,0); }
}
.brand .mark { transform-box: fill-box; transform-origin: center; }
.wordmark { font-weight: 600; letter-spacing: -0.01em; font-size: 15px; }

.links { display: flex; gap: clamp(12px, 2.5vw, 28px); }
.links a {
  font-size: 14px; color: var(--bone-dim); position: relative; padding: 4px 0;
  transition: color 240ms var(--easing);
}
.links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--bone); transform: scaleX(0); transform-origin: right;
  transition: transform 360ms var(--easing);
}
.links a:hover { color: var(--bone); }
.links a:hover::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 540px) {
  .links a:not(:last-child) { display: none; }
}

/* Reveal animation */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 900ms var(--easing), transform 900ms var(--easing);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-grid { position: absolute; inset: 0; z-index: -1; }
.hero-bg { width: 100%; height: 100%; display: block; }
.hero-rings circle { transform-origin: 800px 460px; animation: breathe 14s var(--easing) infinite; }
.hero-rings circle:nth-child(2) { animation-duration: 18s; animation-delay: -3s; }
.hero-rings circle:nth-child(3) { animation-duration: 22s; animation-delay: -6s; }
.hero-rings circle:nth-child(4) { animation-duration: 28s; animation-delay: -9s; }
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.04); opacity: 1; }
}

.hero-inner {
  text-align: left;
  padding: 0 var(--gutter);
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}
.kicker {
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone-faint); margin: 0 0 28px;
}
.display {
  font-family: 'Inter Tight', sans-serif;
  font-size: var(--display-size);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0;
}
.display .line { display: block; }
.display em { letter-spacing: -0.02em; }
.lede {
  margin-top: clamp(28px, 4vw, 44px);
  font-size: clamp(17px, 1.4vw, 22px);
  max-width: 36ch;
  color: var(--bone-dim);
  line-height: 1.45;
  font-weight: 300;
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--bone-faint); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  transition: color 300ms var(--easing);
}
.scroll-cue:hover { color: var(--bone); }
.scroll-cue svg { width: 22px; height: 36px; }
.scroll-cue .dot { animation: cueDot 2.4s var(--easing) infinite; }
@keyframes cueDot {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* Sections, common */
section { position: relative; padding: clamp(96px, 14vh, 180px) 0; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone-faint); margin: 0 0 28px;
}
.head {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: var(--head-size);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0 0 56px;
  max-width: 18ch;
}
.head em { font-weight: 400; }

/* Manifesto */
.manifesto .two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  max-width: 880px;
}
.manifesto p { color: var(--bone-dim); font-size: clamp(16px, 1.15vw, 19px); line-height: 1.6; max-width: 38ch; margin: 0; }
@media (max-width: 720px) { .manifesto .two-col { grid-template-columns: 1fr; } }

.rule {
  display: block; width: 100%; height: 1px; color: var(--bone);
  margin-top: clamp(80px, 10vw, 140px);
}
.rule .draw {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1800ms var(--easing);
}
.rule.in .draw { stroke-dashoffset: 0; }

/* Work / tenets */
.work { background: linear-gradient(to bottom, var(--ink), var(--ink-2) 60%, var(--ink)); }
.tenets {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px) clamp(40px, 7vw, 96px);
}
@media (max-width: 720px) { .tenets { grid-template-columns: 1fr; } }
.tenets li { padding-top: 22px; border-top: 1px solid var(--hair); }
.tenets h3 {
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 500; letter-spacing: -0.02em;
  margin: 22px 0 10px;
}
.tenets p { color: var(--bone-dim); margin: 0; max-width: 30ch; }
.glyph { width: 48px; height: 48px; color: var(--bone); display: block; }
.glyph .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1600ms var(--easing); }
.tenets li.in .glyph .draw { stroke-dashoffset: 0; }
.glyph .pulse { transform-origin: center; animation: pulse 4s var(--easing) infinite; transform-box: fill-box; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.glyph .chip { transform-box: fill-box; transform-origin: center; animation: chipFloat 6s var(--easing) infinite; }
@keyframes chipFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-3px, -3px); }
}

/* Origin */
.origin { background: var(--ink); }
.origin-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.origin p { color: var(--bone-dim); max-width: 42ch; }
@media (max-width: 820px) { .origin-grid { grid-template-columns: 1fr; } }
.origin-art { display: flex; justify-content: center; }
.coord-mark { width: 100%; max-width: 380px; height: auto; color: var(--bone); }
.coord-mark .draw {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 2200ms var(--easing);
}
.origin.in .coord-mark .draw { stroke-dashoffset: 0; }
.coord-letters text {
  font-family: 'Inter Tight', sans-serif; font-size: 10px;
  letter-spacing: 0.18em; fill: var(--bone-faint);
}
.coord-coord {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 16px; fill: var(--bone);
}
.coord-place {
  font-family: 'Inter Tight', sans-serif; font-size: 9px;
  letter-spacing: 0.28em; fill: var(--bone-faint);
}
.coord-pin { opacity: 0; transition: opacity 360ms var(--easing) 1500ms; }
.origin.in .coord-pin { opacity: 1; }
.coord-ping { opacity: 0; transform-box: fill-box; transform-origin: center; }
.origin.in .coord-ping { animation: ping 2.8s var(--easing) infinite 1.6s; }
@keyframes ping {
  0% { transform: scale(1); opacity: 0.65; }
  85%, 100% { transform: scale(5); opacity: 0; }
}

/* Contact */
.contact { padding-bottom: 0; text-align: left; }
.contact-h { font-size: clamp(56px, 10vw, 140px); margin: 0 0 48px; }
.mail {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500; letter-spacing: -0.015em;
  padding: 14px 0; border-bottom: 1px solid var(--hair);
  transition: border-color 320ms var(--easing), color 320ms var(--easing);
}
.mail:hover { border-color: var(--bone); }
.mail .arrow { width: 22px; height: 22px; transition: transform 360ms var(--easing); }
.mail:hover .arrow { transform: translateX(6px); }
.addr {
  margin-top: 56px;
  color: var(--bone-dim);
  font-size: 15px; line-height: 1.7;
  font-feature-settings: "tnum";
}

/* Footer */
.foot {
  padding: 32px 0 40px;
  border-top: 1px solid var(--hair);
  margin-top: clamp(96px, 12vw, 140px);
}
.foot-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 12px; color: var(--bone-faint); letter-spacing: 0.04em;
}
.foot-mark svg { width: 14px; height: 14px; fill: none; stroke: currentColor; }
.foot-mark svg rect:last-child { fill: currentColor; stroke: none; }
.foot-meta { font-style: italic; }
@media (max-width: 540px) {
  .foot-row { flex-direction: column; align-items: flex-start; }
}
