/* ==========================================================================
   DEMIQ.WEBSITE — Chromatic Editorial
   Pure HTML5 + CSS3
   ========================================================================== */

:root {
  --paper: #F5F2EA;
  --ink: #151515;
  --cobalt: #2457FF;
  --coral: #FF6347;
  --butter: #F3D65A;
  --soft-gray: #B9B8B1;
  --deep-cobalt: #1738B5;

  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "Space Mono", monospace;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  --border: 1px solid rgba(21, 21, 21, 0.18);
  --border-light: 1px solid rgba(245, 242, 234, 0.25);
  --border-active: 1px solid #FF6347;

  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 320ms;
  --radius: 4px;
  --page-pad: clamp(20px, 4vw, 64px);
  --max: 1440px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 1000;
  padding: var(--space-2) var(--space-3);
  background: var(--coral);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: var(--space-2);
}

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

/* Link underline slide */
.nav-link,
.feature-link,
.footer-cols a,
.hero-scroll a {
  position: relative;
}

.nav-link::after,
.feature-link::after,
.footer-cols a::after,
.hero-scroll a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}

.nav-link:hover::after,
.feature-link:hover::after,
.footer-cols a:hover::after,
.hero-scroll a:hover::after,
.nav-link:focus-visible::after,
.feature-link:focus-visible::after,
.footer-cols a:focus-visible::after,
.hero-scroll a:focus-visible::after {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition:
    background-color var(--duration) var(--ease),
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.btn-primary {
  background: var(--coral);
  color: var(--ink);
  border: 1px solid var(--coral);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--paper);
  transform: translateY(-3px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--paper);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Section chrome
   -------------------------------------------------------------------------- */

.section-label {
  font-size: 0.75rem;
  color: var(--soft-gray);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-5);
}

.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* --------------------------------------------------------------------------
   1. EDITORIAL HEADER
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid rgba(21, 21, 21, 0.18);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  width: fit-content;
}

.logo-mark {
  width: 10px;
  height: 10px;
  background: var(--cobalt);
  flex-shrink: 0;
  align-self: center;
  transition: transform var(--duration) var(--ease);
}

.logo:hover .logo-mark {
  transform: rotate(12deg) scale(1.1);
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.04em;
}

.logo-ext {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--soft-gray);
  letter-spacing: 0.06em;
  transform: translateY(-2px);
}

.header-edition {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.edition-short {
  display: none;
}

.header-nav {
  justify-self: end;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}

.nav-mobile {
  display: none;
}

/* --------------------------------------------------------------------------
   2. CHROMATIC HERO
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-6) var(--page-pad) var(--space-5);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  left: -4vw;
  top: 18%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20vw;
  line-height: 0.8;
  letter-spacing: -0.07em;
  color: var(--ink);
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  animation: fadeRise 900ms var(--ease) both;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
  align-items: end;
  flex: 1;
}

.hero-copy {
  grid-column: 1 / span 6;
  padding-bottom: var(--space-4);
  animation: fadeRise 700ms var(--ease) both;
}

.hero-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--soft-gray);
  margin-bottom: var(--space-4);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 11vw, 12rem);
  line-height: 0.78;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.hero-title .line {
  display: block;
}

.hero-title .offset-1 {
  margin-left: 0.12em;
}

.hero-title .offset-2 {
  margin-left: -0.04em;
  margin-top: -0.04em;
}

.hero-title .offset-3 {
  margin-left: 0.08em;
  margin-top: -0.06em;
  position: relative;
  z-index: 2;
}

.hero-title .accent {
  color: var(--coral);
}

.hero-support {
  max-width: 28ch;
  font-size: clamp(1rem, 1.4vw, 1.175rem);
  margin-bottom: var(--space-5);
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-art {
  grid-column: 7 / span 7;
  position: relative;
  min-height: clamp(280px, 42vw, 560px);
  animation: slideIn 900ms var(--ease) 120ms both;
}

.poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.poster-block {
  position: absolute;
  top: 8%;
  left: 8%;
  width: 78%;
  height: 78%;
  background: linear-gradient(135deg, #2457FF 0%, #1738B5 100%);
  animation: blockSlide 1000ms var(--ease) 200ms both;
}

.poster-circle {
  position: absolute;
  width: clamp(120px, 18vw, 220px);
  height: clamp(120px, 18vw, 220px);
  border-radius: 50%;
  background: var(--coral);
  top: 58%;
  left: -8%;
  z-index: 2;
  transition: transform var(--duration) var(--ease);
  animation: popIn 800ms var(--ease) 450ms both;
}

.hero-art:hover .poster-circle {
  transform: translate(6px, -6px);
}

.poster-butter {
  position: absolute;
  width: clamp(48px, 6vw, 80px);
  height: clamp(48px, 6vw, 80px);
  background: var(--butter);
  top: 12%;
  right: 4%;
  z-index: 3;
  animation: spinSoft 12s linear infinite, popIn 700ms var(--ease) 550ms both;
}

.poster-line {
  position: absolute;
  width: 2px;
  height: 55%;
  background: var(--ink);
  top: 20%;
  right: 22%;
  z-index: 2;
  transform-origin: top;
  animation: lineGrow 800ms var(--ease) 400ms both;
}

.poster-num {
  position: absolute;
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--paper);
  mix-blend-mode: difference;
  bottom: 10%;
  right: 10%;
  z-index: 3;
  opacity: 0.9;
}

.poster-tag {
  position: absolute;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--paper);
  padding: 4px 8px;
  border: var(--border);
  z-index: 4;
}

.tag-a { top: 4%; left: 18%; }
.tag-b { top: 28%; right: -2%; }
.tag-c { bottom: 18%; left: 2%; }
.tag-d { bottom: 4%; right: 28%; color: var(--paper); background: var(--ink); border-color: var(--ink); }

.hero-scroll {
  position: relative;
  z-index: 1;
  margin-top: var(--space-5);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  animation: fadeRise 700ms var(--ease) 600ms both;
}

.hero-scroll a {
  display: inline-block;
}

.hero-scroll a span {
  display: inline-block;
  transition: transform var(--duration) var(--ease);
}

.hero-scroll a:hover span {
  transform: translateY(4px);
}

/* --------------------------------------------------------------------------
   3. MANIFESTO
   -------------------------------------------------------------------------- */

.manifesto {
  background: var(--cobalt);
  color: var(--paper);
  padding: var(--space-8) var(--page-pad);
}

.manifesto-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-3);
}

.manifesto .section-label {
  grid-column: 1 / -1;
  color: rgba(245, 242, 234, 0.55);
}

.manifesto-title {
  grid-column: 1 / span 8;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 9vw, 9rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
}

.manifesto-title span {
  display: block;
}

.manifesto-title span:nth-child(2) {
  margin-left: 0.35em;
}

.manifesto-title span:nth-child(3) {
  margin-left: 0.08em;
}

.manifesto-title span:nth-child(4) {
  margin-left: 0.5em;
}

.manifesto-rule {
  grid-column: 1 / span 4;
  width: 96px;
  height: 3px;
  background: var(--coral);
  margin: var(--space-4) 0;
}

.manifesto-text {
  grid-column: 5 / span 6;
  max-width: 38ch;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.6;
  align-self: end;
  margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------
   4. VISUAL PRINCIPLES
   -------------------------------------------------------------------------- */

.principles {
  padding: var(--space-8) 0;
  background: var(--paper);
}

.principle-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  border-top: var(--border);
}

.principle-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: var(--border);
  position: relative;
  transition: transform var(--duration) var(--ease);
}

.principle-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--coral);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform var(--duration) var(--ease);
}

.principle-row:hover,
.principle-row:focus-visible {
  transform: translateX(6px);
}

.principle-row:hover::before,
.principle-row:focus-visible::before {
  transform: scaleY(1);
}

.principle-num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color var(--duration) var(--ease);
  padding-left: var(--space-3);
}

.principle-row:hover .principle-num,
.principle-row:focus-visible .principle-num {
  color: var(--cobalt);
}

.principle-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.principle-desc {
  display: block;
  color: rgba(21, 21, 21, 0.7);
  font-size: 1rem;
}

.principle-arrow {
  font-size: 1.5rem;
  transition: transform var(--duration) var(--ease);
  padding-right: var(--space-2);
}

.principle-row:hover .principle-arrow,
.principle-row:focus-visible .principle-arrow {
  transform: translateX(8px);
  color: var(--coral);
}

/* --------------------------------------------------------------------------
   5. FEATURE INDEX
   -------------------------------------------------------------------------- */

.features {
  padding: 0 0 var(--space-8);
  background: var(--paper);
}

.features-head {
  margin-bottom: var(--space-2);
}

.feature-stack {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-3);
}

.feature {
  position: relative;
  padding: var(--space-5);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--duration) var(--ease);
}

.feature:hover {
  transform: translateY(-6px);
}

.feature-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  margin-bottom: auto;
  padding-bottom: var(--space-5);
}

.feature-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-bottom: var(--space-3);
  max-width: 10ch;
}

.feature-desc {
  max-width: 34ch;
  margin-bottom: var(--space-4);
  font-size: 1rem;
  line-height: 1.55;
}

.feature-link {
  width: fit-content;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-link span {
  display: inline-block;
  transition: transform var(--duration) var(--ease);
}

.feature:hover .feature-link span {
  transform: translateX(6px);
}

/* 01 Culture — Cobalt */
.feature-culture {
  grid-column: 1 / span 8;
  background: var(--cobalt);
  color: var(--paper);
}

.feature-culture .feature-meta {
  color: rgba(245, 242, 234, 0.65);
}

.feature-culture .feature-link:hover {
  color: var(--butter);
}

/* 02 Design — Paper + Coral type */
.feature-design {
  grid-column: 5 / span 8;
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  margin-top: calc(var(--space-4) * -1);
}

.feature-design .feature-title {
  color: var(--coral);
}

.feature-design .feature-meta {
  color: var(--soft-gray);
}

/* 03 Perspective — Ink + Butter */
.feature-perspective {
  grid-column: 1 / span 7;
  background: var(--ink);
  color: var(--paper);
  margin-top: var(--space-2);
}

.feature-perspective .feature-meta {
  color: var(--butter);
}

.feature-butter {
  position: absolute;
  width: 64px;
  height: 64px;
  background: var(--butter);
  top: var(--space-4);
  right: var(--space-4);
  transition: transform var(--duration) var(--ease);
}

.feature-perspective:hover .feature-butter {
  transform: translate(-6px, 6px) rotate(8deg);
}

/* --------------------------------------------------------------------------
   6. COLOR BREAK
   -------------------------------------------------------------------------- */

.color-break {
  position: relative;
  background: var(--coral);
  color: var(--ink);
  padding: var(--space-8) var(--page-pad);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(320px, 50vw, 520px);
}

.break-circle {
  position: absolute;
  width: clamp(220px, 38vw, 480px);
  height: clamp(220px, 38vw, 480px);
  border-radius: 50%;
  background: var(--cobalt);
  left: 12%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

.break-butter {
  position: absolute;
  width: 56px;
  height: 56px;
  background: var(--butter);
  right: 18%;
  top: 22%;
  z-index: 0;
  animation: spinSoft 14s linear infinite;
}

.break-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 11rem);
  line-height: 0.8;
  letter-spacing: -0.065em;
  text-align: center;
  text-transform: uppercase;
}

.break-title span {
  display: block;
}

.break-title span:last-child {
  margin-left: 0.15em;
}

/* --------------------------------------------------------------------------
   7. EXPERIMENTAL GALLERY
   -------------------------------------------------------------------------- */

.gallery {
  padding: var(--space-8) 0;
  background: var(--paper);
}

.gallery-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-3);
}

.study {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.study-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border: var(--border);
  overflow: hidden;
  background: var(--paper);
  transition: transform var(--duration) var(--ease);
}

.study:hover .study-art {
  transform: translateY(-6px);
  border-color: var(--coral);
}

.study figcaption {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  display: flex;
  gap: var(--space-2);
  color: var(--ink);
}

.study figcaption span {
  color: var(--soft-gray);
}

/* Study 01 — Type / Shift */
.study-01 .study-art {
  background: var(--ink);
}

.s01-rect {
  position: absolute;
  left: 12%;
  top: 18%;
  width: 55%;
  height: 48%;
  background: var(--cobalt);
  transition: transform var(--duration) var(--ease);
}

.study-01:hover .s01-rect {
  transform: translate(6px, 6px);
}

.s01-type {
  position: absolute;
  right: 8%;
  bottom: 16%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: 0.8;
  color: var(--coral);
  letter-spacing: -0.06em;
}

.s01-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  height: 1px;
  background: rgba(245, 242, 234, 0.35);
}

/* Study 02 — Color / Block */
.s02-a,
.s02-b,
.s02-c {
  position: absolute;
  transition: transform var(--duration) var(--ease);
}

.s02-a {
  inset: 0;
  background: var(--cobalt);
  clip-path: polygon(0 0, 70% 0, 45% 100%, 0 100%);
}

.s02-b {
  top: 18%;
  right: 10%;
  width: 42%;
  height: 42%;
  background: var(--coral);
}

.s02-c {
  bottom: 12%;
  right: 18%;
  width: 18%;
  height: 18%;
  background: var(--butter);
}

.study-02:hover .s02-b {
  transform: translate(-6px, 6px);
}

.study-02:hover .s02-c {
  transform: translate(6px, -6px);
}

/* Study 03 — Form / Cut */
.study-03 .study-art {
  background: var(--butter);
}

.s03-cut {
  position: absolute;
  inset: 0;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 42%, 0 68%);
  transition: clip-path var(--duration) var(--ease);
}

.study-03:hover .s03-cut {
  clip-path: polygon(0 0, 100% 0, 100% 48%, 0 58%);
}

.s03-circle {
  position: absolute;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--coral);
  bottom: 14%;
  left: 18%;
  transition: transform var(--duration) var(--ease);
}

.study-03:hover .s03-circle {
  transform: translate(6px, -6px) rotate(-8deg);
}

/* Study 04 — Space / Break */
.s04-frame {
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(21, 21, 21, 0.35);
}

.s04-offset {
  position: absolute;
  top: 28%;
  left: 28%;
  width: 48%;
  height: 48%;
  background: var(--cobalt);
  transition: transform var(--duration) var(--ease);
}

.s04-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--coral);
  top: 12%;
  right: 12%;
}

.study-04:hover .s04-offset {
  transform: translate(10px, -8px);
}

/* Study 05 — Image / Frame */
.study-05 .study-art {
  background: var(--deep-cobalt);
}

.s05-outer {
  position: absolute;
  inset: 12%;
  border: 2px solid var(--paper);
}

.s05-inner {
  position: absolute;
  inset: 24%;
  background: var(--paper);
  transition: transform var(--duration) var(--ease);
}

.s05-bar {
  position: absolute;
  left: 0;
  bottom: 20%;
  width: 70%;
  height: 12px;
  background: var(--coral);
  transition: transform var(--duration) var(--ease);
}

.study-05:hover .s05-inner {
  transform: translate(-6px, 6px);
}

.study-05:hover .s05-bar {
  transform: translateX(8px);
}

/* Study 06 — Signal / Scale */
.study-06 .study-art {
  background: var(--paper);
}

.s06-big {
  position: absolute;
  left: -8%;
  bottom: -6%;
  font-size: clamp(6rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 0.75;
  letter-spacing: -0.08em;
  color: var(--ink);
  opacity: 0.12;
}

.s06-signal {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 55%;
  height: 8px;
  background: var(--coral);
  box-shadow:
    0 24px 0 var(--cobalt),
    0 48px 0 var(--butter);
  transition: transform var(--duration) var(--ease);
}

.s06-line {
  position: absolute;
  right: 18%;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: rgba(21, 21, 21, 0.25);
}

.study-06:hover .s06-signal {
  transform: translateY(6px);
}

/* --------------------------------------------------------------------------
   8. JOURNAL
   -------------------------------------------------------------------------- */

.journal {
  padding: 0 0 var(--space-8);
  background: var(--paper);
}

.journal-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  border-top: var(--border);
}

.journal-row {
  display: grid;
  grid-template-columns: 64px 120px 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) var(--space-3);
  border-bottom: var(--border);
  position: relative;
  transition:
    background-color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.journal-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--cobalt);
  transform: scaleY(0);
  transition: transform var(--duration) var(--ease);
}

.journal-row:hover,
.journal-row:focus-visible {
  background: var(--butter);
}

.journal-row:hover::before,
.journal-row:focus-visible::before {
  transform: scaleY(1);
}

.journal-num {
  font-size: 0.875rem;
  font-weight: 700;
}

.journal-cat {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: rgba(21, 21, 21, 0.55);
}

.journal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  letter-spacing: -0.03em;
}

.journal-arrow {
  font-size: 1.25rem;
  transition: transform var(--duration) var(--ease);
}

.journal-row:hover .journal-arrow,
.journal-row:focus-visible .journal-arrow {
  transform: translateX(8px);
  color: var(--cobalt);
}

/* --------------------------------------------------------------------------
   9. FINAL STATEMENT
   -------------------------------------------------------------------------- */

.statement {
  padding: var(--space-8) var(--page-pad);
  background: var(--paper);
  border-top: var(--border);
}

.statement-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.statement-copy {
  grid-column: 1 / span 10;
}

.statement-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 10vw, 9.5rem);
  line-height: 0.8;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.statement-title span {
  display: block;
}

.statement-title span:nth-child(2) {
  margin-left: 0.2em;
}

.statement-title span:nth-child(3) {
  margin-left: -0.02em;
}

.statement-title span:nth-child(4) {
  margin-left: 0.12em;
}

.statement-title .cobalt {
  color: var(--cobalt);
}

.statement-text {
  max-width: 32ch;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  margin-bottom: var(--space-5);
}

.statement-cta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.cta-comp {
  position: relative;
  width: 96px;
  height: 96px;
}

.cta-block {
  position: absolute;
  inset: 12px 0 0 12px;
  background: var(--cobalt);
}

.cta-circle {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--coral);
  top: 0;
  left: 0;
  transition: transform var(--duration) var(--ease);
}

.cta-line {
  position: absolute;
  width: 2px;
  height: 48px;
  background: var(--ink);
  right: 18px;
  bottom: 8px;
}

.statement-cta:hover .cta-circle {
  transform: translate(6px, 4px);
}

/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 0 var(--page-pad) var(--space-5);
}

.footer-divider {
  height: 4px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto var(--space-6);
  background: linear-gradient(90deg, var(--cobalt) 0%, var(--coral) 100%);
}

.footer-top {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: var(--border-light);
}

.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: var(--space-3);
}

.footer-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
}

.footer-ext {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--soft-gray);
  letter-spacing: 0.08em;
}

.footer-tagline {
  font-size: 1.05rem;
  max-width: 28ch;
  color: rgba(245, 242, 234, 0.75);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  align-content: start;
  padding-top: var(--space-3);
}

.footer-col-title {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--butter);
  margin-bottom: var(--space-3);
}

.footer-cols li + li {
  margin-top: var(--space-2);
}

.footer-cols a {
  font-size: 0.95rem;
  color: rgba(245, 242, 234, 0.85);
}

.footer-cols a:hover {
  color: var(--paper);
}

.footer-bottom {
  max-width: var(--max);
  margin: var(--space-4) auto 0;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--soft-gray);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes blockSlide {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lineGrow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes spinSoft {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   Responsive — Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-copy {
    grid-column: 1 / span 7;
  }

  .hero-art {
    grid-column: 7 / span 6;
  }

  .manifesto-title {
    grid-column: 1 / -1;
  }

  .manifesto-rule {
    grid-column: 1 / span 3;
  }

  .manifesto-text {
    grid-column: 1 / span 8;
  }

  .feature-culture {
    grid-column: 1 / -1;
  }

  .feature-design {
    grid-column: 3 / -1;
    margin-top: 0;
  }

  .feature-perspective {
    grid-column: 1 / span 9;
  }

  .study {
    grid-column: span 6;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  :root {
    --header-h: 56px;
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
    gap: var(--space-2);
  }

  .logo-ext {
    display: none;
  }

  .edition-full {
    display: none;
  }

  .edition-short {
    display: inline;
  }

  .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: inline;
  }

  .hero {
    min-height: auto;
    padding-top: var(--space-5);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .hero-copy,
  .hero-art {
    grid-column: 1 / -1;
  }

  .hero-title {
    font-size: clamp(3.25rem, 16vw, 5.5rem);
  }

  .hero-title .offset-1,
  .hero-title .offset-2,
  .hero-title .offset-3 {
    margin-left: 0;
  }

  .hero-art {
    min-height: 320px;
  }

  .poster-block {
    left: 6%;
    width: 88%;
  }

  .poster-circle {
    left: 4%;
  }

  .tag-b {
    right: 4%;
  }

  .manifesto {
    padding: var(--space-7) var(--page-pad);
  }

  .manifesto-title {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .manifesto-title span:nth-child(2),
  .manifesto-title span:nth-child(3),
  .manifesto-title span:nth-child(4) {
    margin-left: 0;
  }

  .manifesto-rule,
  .manifesto-text {
    grid-column: 1 / -1;
  }

  .principles,
  .gallery,
  .statement {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }

  .principle-row {
    grid-template-columns: 72px 1fr auto;
    gap: var(--space-2);
  }

  .principle-num {
    font-size: 2rem;
    padding-left: var(--space-2);
  }

  .feature-stack {
    gap: var(--space-2);
  }

  .feature-culture,
  .feature-design,
  .feature-perspective {
    grid-column: 1 / -1;
    min-height: 300px;
    padding: var(--space-4);
  }

  .color-break {
    min-height: 280px;
    padding: var(--space-7) var(--page-pad);
  }

  .break-circle {
    left: -10%;
    opacity: 0.9;
  }

  .break-butter {
    right: 8%;
  }

  .study {
    grid-column: 1 / -1;
  }

  .journal-row {
    grid-template-columns: 40px 1fr auto;
    grid-template-areas:
      "num cat arrow"
      "num title arrow";
    row-gap: 4px;
    column-gap: var(--space-2);
  }

  .journal-num { grid-area: num; }
  .journal-cat { grid-area: cat; }
  .journal-title { grid-area: title; }
  .journal-arrow { grid-area: arrow; align-self: center; }

  .statement-copy {
    grid-column: 1 / -1;
  }

  .statement-title {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .statement-title span:nth-child(2),
  .statement-title span:nth-child(3),
  .statement-title span:nth-child(4) {
    margin-left: 0;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .footer-word {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }
}

@media (max-width: 420px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .principle-desc {
    font-size: 0.9rem;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
