/* ————————————————————————————————
   Wroffle — wroffle.com
   Black/white editorial system, sash.agency-inspired
———————————————————————————————— */

:root {
  --black: #000;
  --white: #fff;
  --off: #f2f2f1;
  --dim: rgba(255, 255, 255, .55);
  --hair: rgba(255, 255, 255, .18);
  --pad: clamp(20px, 4vw, 64px);
  --font: -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; color: var(--dim); }

:focus-visible { outline: 1px solid var(--white); outline-offset: 4px; }

::selection { background: var(--white); color: var(--black); }

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.19, 1, .22, 1), transform .9s cubic-bezier(.19, 1, .22, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Opacity-only reveal — for elements that carry their own transforms (rotated words) */
.reveal-o {
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(.19, 1, .22, 1);
}
.reveal-o.is-in { opacity: 1; }

/* ——— Header ——— */
.header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  padding: clamp(20px, 3vw, 40px) var(--pad) 0;
}
.header__logo {
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
}
.header__menu {
  display: flex;
  gap: clamp(28px, 6vw, 96px);
  padding-top: 10px;
}
.header__item { position: relative; }
.header__item::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.19, 1, .22, 1);
}
.header__item:hover::after { transform: scaleX(1); }
.header__mark {
  grid-column: 2;
  display: flex;
  gap: 5px;
  margin-top: 22px;
  justify-self: start;
}
.header__mark span {
  width: 20px; height: 20px;
  background: var(--white);
  border-radius: 50%;
}
.header__mark span:last-child {
  width: 10px;
  border-radius: 0 20px 20px 0;
}

/* ——— Vertical rail ——— */
.rail {
  position: fixed;
  left: 14px;
  top: 50vh;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 14px;
  color: var(--dim);
  z-index: 2;
  pointer-events: none;
}

/* ——— Hero ——— */
.hero { padding: clamp(80px, 12vh, 160px) var(--pad) clamp(80px, 10vh, 140px); }

.hero__title {
  font-size: clamp(34px, 4.6vw, 74px);
  font-weight: 300;
  letter-spacing: -.01em;
  line-height: 1.12;
  max-width: 18em;
  text-wrap: balance;
}

.hero__lab {
  display: grid;
  grid-template-columns: minmax(0, 640px) auto;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(64px, 10vh, 140px);
  transition-delay: .15s;
}

.hero__grid {
  width: 100%;
  height: auto;
  display: block;
  color: var(--off);
}

.hero__channels { display: flex; gap: 28px; align-items: center; }
.hero__arrows { font-size: 18px; line-height: 1.6; color: var(--off); }

.channels {
  height: 560px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.channels li {
  padding: 6px 0;
  font-size: 16px;
  color: var(--off);
}

/* ——— Manifesto ——— */
.manifesto {
  padding: clamp(100px, 16vh, 220px) var(--pad);
  overflow: hidden;
}
.manifesto__inner {
  position: relative;
  min-height: clamp(560px, 90vh, 900px);
}
.manifesto__word {
  font-size: clamp(48px, 8vw, 128px);
  font-weight: 300;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  color: var(--off);
}
.manifesto__word--1 { transform: rotate(-12deg); margin-left: -.5vw; }
.manifesto__word--2 {
  position: absolute;
  bottom: 18%;
  left: 8%;
  transform: rotate(9deg);
}
.manifesto__word--3 {
  position: absolute;
  right: 0;
  top: 8%;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.manifesto__quote {
  max-width: 300px;
  margin-top: 48px;
  font-size: 13px;
  font-weight: 400;
  color: var(--dim);
}
.manifesto__quote blockquote { margin-bottom: 10px; }
.manifesto__quote figcaption {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
}
.manifesto__quote--2 {
  position: absolute;
  bottom: 2%;
  left: 30%;
}
.manifesto__tri {
  position: absolute;
  top: 26%;
  left: 34%;
  width: clamp(240px, 32vw, 440px);
  color: var(--off);
}
.manifesto__bars {
  position: absolute;
  top: 0;
  right: 10%;
  width: 90px;
  height: 60px;
  background: repeating-linear-gradient(90deg, var(--off) 0 2px, transparent 2px 7px);
}

/* ——— Marquee ——— */
.marquee {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
  padding: 18px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 300;
  color: var(--off);
  white-space: nowrap;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ——— Section label ——— */
.section-label {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--dim);
  margin-bottom: clamp(40px, 6vh, 72px);
}

/* ——— Services ——— */
.services { padding: clamp(100px, 14vh, 200px) var(--pad); }

.service { border-top: 1px solid var(--hair); }
.service:last-child { border-bottom: 1px solid var(--hair); }
.service a {
  display: grid;
  grid-template-columns: 3.5em minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: baseline;
  padding: clamp(22px, 3.4vh, 40px) 0;
  transition: padding-left .45s cubic-bezier(.19, 1, .22, 1);
}
.service a:hover { padding-left: 20px; }
.service__num { font-size: 13px; color: var(--dim); }
.service__name {
  font-size: clamp(26px, 3.4vw, 54px);
  font-weight: 300;
  letter-spacing: -.01em;
  line-height: 1.1;
  transition: color .3s;
}
.service a:hover .service__name { color: var(--white); }
.service__desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--dim);
  max-width: 42em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .45s, transform .45s;
}
.service a:hover .service__desc,
.service a:focus-visible .service__desc { opacity: 1; transform: none; }

/* ——— Results ——— */
.results { padding: clamp(80px, 12vh, 160px) var(--pad); }
.results__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 64px);
}
.stat dd {
  font-size: clamp(44px, 5.4vw, 92px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1;
  order: -1;
}
.stat { display: flex; flex-direction: column; gap: 14px; }
.stat dt {
  font-size: 13px;
  font-weight: 400;
  color: var(--dim);
}

/* ——— Process ——— */
.process { padding: clamp(100px, 14vh, 200px) var(--pad); }
.process__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 56px);
  counter-reset: step;
}
.step { border-top: 1px solid var(--hair); padding-top: 22px; }
.step__num { font-size: 13px; color: var(--dim); display: block; margin-bottom: clamp(32px, 6vh, 80px); }
.step h3 {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 300;
  margin-bottom: 14px;
}
.step p { font-size: 14px; font-weight: 400; color: var(--dim); max-width: 26em; }

/* ——— About ——— */
.about { padding: clamp(80px, 12vh, 180px) var(--pad); }
.about__text {
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -.01em;
  max-width: 26em;
}

/* ——— FAQ ——— */
.faq { padding: clamp(100px, 14vh, 200px) var(--pad); }

.faq__item { border-top: 1px solid var(--hair); }
.faq__item:last-child { border-bottom: 1px solid var(--hair); }
.faq__item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: clamp(20px, 3vh, 34px) 0;
  font-size: clamp(20px, 2.4vw, 36px);
  font-weight: 300;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--off);
  cursor: pointer;
  list-style: none;
  transition: color .3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--dim);
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary:hover { color: var(--white); }
.faq__item p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--dim);
  max-width: 46em;
  padding-bottom: clamp(22px, 3vh, 34px);
}

/* ——— Contact ——— */
.contact {
  padding: clamp(72px, 12vh, 160px) var(--pad);
  border-top: 1px solid var(--hair);
}
.contact__kicker {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--dim);
  margin-bottom: 32px;
}
.contact__mail {
  display: inline-block;
  font-size: clamp(52px, 10.5vw, 168px);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: .98;
  transition: opacity .3s;
}
.contact__mail:hover { opacity: .55; }
.contact__note { margin-top: 36px; font-size: 17px; color: var(--off); font-weight: 400; }

/* ——— Footer ——— */
.footer {
  border-top: 1px solid var(--hair);
  padding: clamp(48px, 8vh, 96px) var(--pad) clamp(24px, 4vh, 40px);
}
.footer__wordmark {
  font-size: clamp(64px, 10vw, 160px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: clamp(56px, 10vh, 120px);
}
.footer__cols {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 16px;
  margin-bottom: clamp(56px, 10vh, 120px);
}
.footer__cols p { margin-bottom: 6px; font-weight: 400; color: var(--off); }
.footer__right { text-align: right; }
.footer a:hover { opacity: .6; }
.footer__legal {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--hair);
  padding-top: 20px;
  font-size: 14px;
}

/* ——— Responsive ——— */
@media (max-width: 1200px) {
  .rail { display: none; }
}

@media (max-width: 900px) {
  .hero__lab { grid-template-columns: 1fr; }
  .channels { height: 320px; }
  .results__grid, .process__list { grid-template-columns: repeat(2, 1fr); }
  .service a { grid-template-columns: 3em 1fr; }
  .service__desc { grid-column: 2; opacity: 1; transform: none; }
  .manifesto__word--3 { writing-mode: horizontal-tb; transform: rotate(-7deg); top: 40%; right: -2%; }
}

@media (max-width: 560px) {
  .header { grid-template-columns: 1fr; gap: 18px; }
  .header__mark { display: none; }
  .header__menu { gap: 22px; padding-top: 0; }
  .results__grid { grid-template-columns: 1fr; }
  .process__list { grid-template-columns: 1fr; }
  .footer__right { text-align: left; }
  .manifesto__quote--2 { left: 8%; }
  .manifesto__tri { left: 40%; top: 32%; }
}

/* ——— Reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-o { opacity: 1; transition: none; }
  .marquee__track { animation: none; }
}
