/* ==========================================================================
   WOKEY — dark editorial studio site.
   Shares the brand system with the HÄBITS sister-site:
   near-black base, signal orange, condensed display type, numbered sections.
   Signature element: the kinetic "Animationsloop" (the only verified brand
   spur), used as Wokey's recurring identity motif.
   ========================================================================== */

@font-face {
  font-family: "Wokey Display";
  src: local("Arial Narrow"), local("Helvetica Neue Condensed Bold");
  font-stretch: condensed;
  font-weight: 800;
}

:root {
  --ink: #11110f;
  --ink-soft: #1c1c19;
  --paper: #f0efe9;
  --white: #fffefa;
  --signal: #ff4d00;
  --muted: #8c8b86;
  --muted-light: #aaa9a4;
  --line: rgba(17, 17, 15, 0.22);
  --line-light: rgba(255, 254, 250, 0.28);
  --page-pad: clamp(1rem, 3vw, 3.5rem);
  --display: "Wokey Display", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--signal);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.tbd {
  color: var(--signal);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1.2rem var(--page-pad);
  color: var(--white);
  border-bottom: 1px solid var(--line-light);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  color: inherit;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  text-decoration: none;
}

/* Tiny inline loop mark sitting next to the wordmark. */
.mark-loop {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
}

.mark-loop circle {
  fill: none;
  stroke: var(--signal);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 90 160;
  transform-origin: center;
  animation: spin 3.6s linear infinite;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
}

.site-nav a,
.header-meta {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-nav a {
  text-underline-offset: 0.3rem;
}

.header-meta {
  display: none;
  margin: 0;
}

.header-meta span {
  color: var(--signal);
}

/* --------------------------------------------------------------------------
   Hero — the loop is the centrepiece
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 7rem var(--page-pad) 1.5rem;
  color: var(--white);
  background:
    linear-gradient(115deg, transparent 0 72%, rgba(255, 77, 0, 0.13) 72% 73%, transparent 73%),
    radial-gradient(circle at 70% 42%, #2f2f2a 0, var(--ink) 40%);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.17'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.3;
  mix-blend-mode: soft-light;
}

.hero-kicker {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-left: 0.15rem;
  font-family: var(--serif);
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  font-style: italic;
}

.hero-kicker span + span::before {
  padding-right: 1.5rem;
  color: var(--signal);
  content: "×";
  font-family: var(--sans);
  font-style: normal;
}

.hero-stage {
  position: relative;
  width: 100%;
  margin: auto 0;
  padding: 3vh 0;
}

.edition {
  margin: 0 0 -0.2rem 0.35rem;
  color: var(--signal);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(5.5rem, 27vw, 26rem);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.085em;
  line-height: 0.74;
  text-transform: uppercase;
}

/* The hero loop — Wokey's signature kinetic mark, replacing the
   static HÄBITS stamp. A rotating ring with a comet of orange. */
.hero-loop {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(0.5rem, 4vw, 5rem);
  width: clamp(7rem, 22vw, 16rem);
  aspect-ratio: 1;
  transform: translateY(-50%);
}

.hero-loop svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-loop .ring-track {
  fill: none;
  stroke: rgba(255, 254, 250, 0.16);
  stroke-width: 2;
}

.hero-loop .ring-arc {
  fill: none;
  stroke: var(--signal);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 120 380;
  transform-origin: center;
  animation: spin 5.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.hero-loop .ring-arc--inner {
  stroke: var(--white);
  stroke-width: 2;
  stroke-dasharray: 40 420;
  animation: spin-rev 4s linear infinite;
}

.hero-loop .loop-word {
  fill: var(--white);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-loop .loop-word--orbit {
  animation: spin 14s linear infinite;
  transform-origin: center;
}

.hero-loop .loop-word--orbit text {
  fill: var(--signal);
  font-size: 9px;
  letter-spacing: 0.35em;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-rev {
  to {
    transform: rotate(-360deg);
  }
}

.hero-footer {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.hero-deck {
  margin: 0;
  max-width: 26rem;
  font-size: clamp(0.85rem, 1.5vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-transform: uppercase;
}

.round-link {
  display: grid;
  width: 4.75rem;
  flex: none;
  aspect-ratio: 1;
  place-content: center;
  gap: 0.3rem;
  color: var(--white);
  border: 1px solid rgba(255, 254, 250, 0.55);
  border-radius: 50%;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.round-link svg {
  width: 1rem;
  margin: 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.7;
}

.round-link:hover {
  color: var(--ink);
  background: var(--signal);
  border-color: var(--signal);
}

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */

.ticker {
  overflow: hidden;
  color: var(--ink);
  background: var(--signal);
  border-block: 1px solid var(--ink);
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 1.3rem;
  padding: 0.75rem 0;
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  animation: ticker 28s linear infinite;
}

.ticker-track i {
  font-family: var(--serif);
  font-style: normal;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   Sections (shared)
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(4.5rem, 10vw, 9rem) var(--page-pad);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-label span {
  display: grid;
  width: 1.7rem;
  aspect-ratio: 1;
  place-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.section-label p {
  margin: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--signal);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   About / Manifesto
   -------------------------------------------------------------------------- */

.manifesto-copy {
  display: grid;
  gap: 3rem;
}

.manifesto h2,
.section-heading h2,
.contact h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.8rem, 11vw, 10rem);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.82;
  text-transform: uppercase;
}

.manifesto h2 em {
  color: var(--signal);
  font-family: var(--serif);
  font-weight: 400;
  text-transform: none;
}

.body-copy {
  max-width: 34rem;
}

.body-copy p {
  margin: 0 0 1.5rem;
}

.body-copy .lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.14;
}

.hypothesis-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hypothesis-tag::before {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--signal);
  border-radius: 50%;
  content: "";
}

/* --------------------------------------------------------------------------
   Showcase / Projects grid
   -------------------------------------------------------------------------- */

.showcase {
  color: var(--white);
  background: var(--ink);
}

.showcase-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.showcase-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.5rem, 8vw, 7.2rem);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.85;
  text-transform: uppercase;
}

.showcase-head p {
  max-width: 32rem;
  margin: 0;
  color: var(--muted-light);
  font-size: 0.92rem;
}

.work-grid {
  display: grid;
  gap: 1px;
  background: rgba(255, 254, 250, 0.18);
  border: 1px solid rgba(255, 254, 250, 0.18);
}

.work-card {
  position: relative;
  display: flex;
  min-height: 17rem;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  background: var(--ink);
  text-decoration: none;
  transition: background 200ms ease;
}

.work-card:hover,
.work-card:focus-visible {
  background: var(--ink-soft);
}

.work-card .work-index {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted-light);
  text-transform: uppercase;
}

.work-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-transform: uppercase;
}

.work-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.work-meta small {
  color: var(--muted-light);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-status {
  padding: 0.18rem 0.45rem;
  color: var(--signal);
  border: 1px solid var(--signal);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Feature card — the Animationsloop showcase tile. */
.work-card--feature {
  min-height: 22rem;
  background:
    radial-gradient(circle at 75% 30%, rgba(255, 77, 0, 0.22) 0, transparent 55%),
    var(--ink);
}

.work-card--feature h3 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
}

.tile-loop {
  position: absolute;
  top: 50%;
  right: -2.5rem;
  width: 13rem;
  aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: 0.85;
  pointer-events: none;
}

.tile-loop svg {
  width: 100%;
  height: 100%;
}

.tile-loop .t-track {
  fill: none;
  stroke: rgba(255, 254, 250, 0.14);
  stroke-width: 1.5;
}

.tile-loop .t-arc {
  fill: none;
  stroke: var(--signal);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 70 230;
  transform-origin: center;
  animation: spin 4.5s linear infinite;
}

.work-card--placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 14px,
      rgba(255, 254, 250, 0.04) 14px 15px
    ),
    var(--ink);
}

.work-card--placeholder h3 {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   HÄBITS teaser
   -------------------------------------------------------------------------- */

.haebits {
  position: relative;
  display: grid;
  min-height: 85svh;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--signal);
}

.haebits-ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(8rem, 26vw, 26rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(17, 17, 15, 0.32);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.haebits-card {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
  padding: clamp(1.5rem, 5vw, 4rem);
  color: var(--white);
  background: var(--ink);
  box-shadow: 1rem 1rem 0 rgba(17, 17, 15, 0.22);
  transform: rotate(-1.5deg);
}

.haebits-card h2 {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.82;
  text-transform: uppercase;
}

.haebits-card .eyebrow {
  color: var(--signal);
}

.haebits-card > p:not(.eyebrow) {
  max-width: 28rem;
  margin: 0 0 2rem;
  color: #c9c8c2;
}

.button {
  display: inline-flex;
  min-height: 3.4rem;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.5rem;
  color: var(--ink);
  background: var(--signal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease;
}

.button svg {
  width: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.button:hover {
  background: var(--white);
  transform: translateX(2px);
}

.button:hover svg {
  transform: translateX(0.25rem);
}

.haebits-card small {
  display: block;
  margin-top: 1rem;
  color: #898983;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  background: var(--white);
}

.contact-content {
  display: grid;
  gap: 4rem;
}

.contact h2 {
  font-size: clamp(4.5rem, 9vw, 9rem);
}

.contact-action {
  max-width: 38rem;
  align-self: end;
}

.contact-action > p:first-of-type {
  max-width: 27rem;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  line-height: 1.2;
}

.contact-list {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.contact-list li {
  border-bottom: 1px solid var(--line);
}

.contact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  font-size: clamp(1rem, 2.6vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.contact-list a svg {
  width: 1.4rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.7;
  transition: transform 180ms ease;
}

.contact-list a:hover svg {
  transform: translate(0.25rem, -0.25rem);
}

.contact-list .row-label {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.privacy-note {
  margin-top: 1.5rem;
  color: #6e6d68;
  font-size: 0.68rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  display: grid;
  gap: 3rem;
  padding: 3rem var(--page-pad) 1.5rem;
  color: var(--white);
  background: var(--ink);
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.8rem;
  font-style: italic;
}

.footer-brand strong {
  color: var(--signal);
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.footer-about {
  max-width: 27rem;
  color: #b8b7b1;
  font-size: 0.85rem;
}

.site-footer address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.8;
}

.site-footer address a:hover {
  color: var(--signal);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #3d3d39;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-legal p {
  margin: 0;
}

.footer-legal details {
  width: 100%;
  order: -1;
}

.footer-legal summary {
  width: max-content;
  color: var(--white);
  cursor: pointer;
}

.footer-legal details div {
  max-width: 36rem;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  color: #b8b7b1;
  background: var(--ink-soft);
  letter-spacing: 0;
  line-height: 1.7;
  text-transform: none;
}

.footer-legal a:hover {
  color: var(--signal);
}

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */

@media (min-width: 48rem) {
  .site-header {
    grid-template-columns: 1fr auto 1fr;
  }

  .header-meta {
    display: block;
    justify-self: end;
  }

  .hero {
    padding-top: 8rem;
  }

  .hero h1 {
    line-height: 0.66;
  }

  .hero-loop {
    top: 44%;
    right: clamp(2rem, 8vw, 9rem);
  }

  .manifesto-copy {
    grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 0.65fr);
    align-items: end;
  }

  .showcase-head {
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
    align-items: end;
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-card--feature {
    grid-column: 1 / -1;
  }

  .contact-content {
    grid-template-columns: minmax(0, 1.35fr) minmax(23rem, 0.65fr);
    align-items: end;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }

  .footer-legal {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 75rem) {
  .hero h1 {
    font-size: min(23vw, 22rem);
  }

  .section-label {
    position: absolute;
  }

  .manifesto,
  .contact {
    position: relative;
  }

  .manifesto-copy,
  .contact-content {
    padding-left: 10rem;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion — freeze every loop, ticker and transition.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  /* Keep the loop arcs in a deliberate, balanced still pose. */
  .hero-loop .ring-arc,
  .hero-loop .ring-arc--inner,
  .tile-loop .t-arc,
  .mark-loop circle {
    transform: rotate(-90deg);
  }
}
