/* ValleyFiber fancy demo — loud-flat-poster / waterline headline
   Palette: grey, mint, orange. Type: Pilcrow Rounded. Motion: masked-headline. */

:root {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --ink: #000000;
  --muted: #666666;
  --mint: #a7ff9c;
  --orange: #ff6831;
  --grey: #c5c5c5;
  --font: "Pilcrow Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--step-body);
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-transform: lowercase;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--mint); padding: 0.5rem 1rem; z-index: 100;
  text-transform: none;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ——— HERO waterline ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, var(--bg) 50%, var(--orange) 50%);
}
.hero__mark {
  position: absolute;
  top: 28px; left: 28px;
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.03em;
  z-index: 2;
  text-transform: none;
}
.hero__action {
  position: absolute;
  top: 28px; right: 28px;
  z-index: 2;
  background: var(--mint);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85em 1.2em;
  text-transform: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.hero__action:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .hero__action:hover { background: #fff; }
}
.hero__title {
  /* Seat the block so the 50% viewport seam cuts the middle of line 2 */
  margin: 0 auto;
  margin-top: calc(50svh - 1.29em); /* 1.5 lines * 0.86em ≈ mid of line 2 */
  width: min(65vw, 920px);
  font-size: clamp(72px, 9vw, 140px); /* inherit down; keep measurable */
  position: relative;
  line-height: 0;
}
.hero__waterline {
  display: block;
  position: relative;
  width: 100%;
  font-size: inherit;
  height: 1.72em;
  line-height: 0.86;
}
.hero__half {
  position: absolute;
  left: 0; right: 0;
  height: 50%;
  overflow: hidden;
}
.hero__half--top {
  top: 0;
  color: #ff6831;
  z-index: 1;
}
.hero__half--bottom {
  bottom: 0;
  color: #000000;
  z-index: 1;
}
.hero__half .lines {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  width: 100%;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.86;
  text-transform: uppercase;
  text-align: center;
}
.hero__half--bottom .lines {
  top: -100%; /* same origin as top copy; bottom clip shows lower half */
}
.lines .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.lines [data-line] { display: block; }

.hero__support {
  position: relative;
  z-index: 1;
  margin: 0 auto 40px;
  max-width: 36ch;
  text-align: center;
  font-size: 20px;
  line-height: 1.35;
  color: var(--bg);
  text-transform: none;
  font-weight: 500;
  padding: 0 28px;
}

@media (prefers-reduced-motion: no-preference) {
  .js:not(.is-settled) .hero .lines [data-line] {
    transform: translateY(105%);
    animation: line-up 900ms var(--ease-expo) forwards;
    animation-delay: calc(var(--i) * 110ms + 150ms);
  }
  .js:not(.is-settled) .hero [data-load] {
    opacity: 0;
    transform: translateY(12px);
    animation: load-rise 500ms var(--ease-out) forwards;
    animation-delay: var(--d);
  }
}
@keyframes line-up { to { transform: none; } }
@keyframes load-rise { to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  .hero { background: linear-gradient(to bottom, var(--bg) 46%, var(--orange) 46%); }
  .hero__mark, .hero__action { top: 16px; }
  .hero__mark { left: 16px; }
  .hero__action { right: 16px; padding: 0.65em 0.9em; font-size: 0.8rem; }
  .hero__title {
    width: calc(100% - 32px);
    font-size: 15.5vw;
    margin-top: calc(46svh - 1.29em);
  }
  .hero__support {
    text-align: left;
    margin: 0 16px 40px;
    font-size: 17px;
    max-width: none;
  }
}

/* ——— SHOWCASE ——— */
.showcase {
  padding: 80px 28px 0;
  overflow: hidden;
  background: var(--bg);
  min-height: 90svh;
}
.showcase__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  max-width: 1200px;
}
.showcase__top h2 {
  margin: 0;
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: none;
}
.showcase__top p {
  margin: 0;
  font-size: 17px;
  max-width: 42ch;
  text-transform: none;
  color: var(--muted);
}
.showcase__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 12vh;
  height: 55vh;
  overflow: hidden;
}
.showcase__spec { position: relative; overflow: hidden; }
.showcase__cap {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  text-transform: lowercase;
}
.showcase__giant {
  margin: 0;
  font-size: clamp(180px, 34vw, 520px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.8;
  text-transform: lowercase;
}
@media (max-width: 700px) {
  .showcase__top { grid-template-columns: 1fr; }
  .showcase__pair { grid-template-columns: 1fr; height: auto; margin-top: 48px; gap: 32px; }
  .showcase__spec { height: 38svh; overflow: hidden; }
  .showcase__giant { font-size: 62vw; }
  .showcase__spec:last-child { background: var(--ink); color: var(--mint); padding: 16px; }
  .showcase__spec:last-child .showcase__cap { color: var(--mint); }
}

/* ——— STACKING SHEETS ——— */
.sheets {
  padding: 120px 0 0;
  background: var(--bg);
}
.sheets__heading {
  margin: 0 28px 48px;
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-transform: lowercase;
}
.sheet {
  position: sticky;
  top: var(--stick, 0px);
  min-height: 86svh;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 16px 32px;
  margin-top: -1px;
}
.sheet h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: none;
  grid-column: 1;
  align-self: start;
  min-height: 44px;
}
.sheet p {
  grid-column: 1;
  align-self: end;
  margin: 0;
  max-width: 40ch;
  font-size: 18px;
  text-transform: none;
}
.sheet__art {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: stretch;
  margin-top: 72px;
  overflow: hidden;
}
.sheet__art svg { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 280px; }
.sheet--grey { background: var(--grey); color: var(--ink); }
.sheet--mint { background: var(--mint); color: var(--ink); }
.sheet--orange { background: var(--orange); color: var(--ink); }
.sheet--black { background: var(--ink); color: var(--bg); }
@media (max-width: 700px) {
  .sheet {
    top: calc(var(--stick) * 0.72);
    grid-template-columns: 1fr;
    min-height: 70svh;
    height: auto;
  }
  .sheet h3 { font-size: 22px; min-height: 0; }
  .sheet__art { grid-column: 1; grid-row: auto; margin-top: 0; order: -1; aspect-ratio: 4 / 3; }
  .sheet p { font-size: 17px; padding-bottom: 20px; }
}

/* ——— WORD TILES ——— */
.tiles { padding: 8px; background: var(--bg); }
.tiles__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.tile {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.tile__word {
  font-size: clamp(56px, 9vw, 150px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  width: 55%;
  text-align: center;
  text-transform: none;
}
.tile__cap {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  text-transform: lowercase;
}
.tile--a { background: var(--ink); color: var(--mint); }
.tile--b { background: var(--mint); color: var(--ink); }
.tile--c { background: var(--orange); color: var(--ink); }
.tile--d { background: var(--grey); color: var(--ink); }
.tile--photo { padding: 0; }
.tile--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
@media (max-width: 700px) {
  .tiles { padding: 6px; }
  .tiles__grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .tile__word { font-size: 22vw; }
  .tile__cap { font-size: 13px; bottom: 12px; }
}

/* ——— INTRO BOARD ——— */
.intro-board { padding: 8px; }
.intro-board__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 38svh 38svh;
  gap: 8px;
}
.intro-board__slogan {
  grid-column: 1 / 9;
  grid-row: 1 / 3;
  background: var(--ink);
  color: var(--mint);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.intro-board__slogan p {
  margin: 0;
  font-size: clamp(64px, 9vw, 132px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.86;
  text-transform: uppercase;
}
.intro-board__word {
  grid-column: 9 / 13;
  grid-row: 1;
  background: var(--surface);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  overflow: hidden;
}
.intro-board__word p {
  margin: 0;
  font-size: clamp(64px, 9vw, 132px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.86;
  text-transform: uppercase;
}
.intro-board__photo {
  grid-column: 9 / 13;
  grid-row: 2;
  margin: 0;
  overflow: hidden;
}
.intro-board__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.intro-board__text {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  margin-top: 8px;
  background: var(--bg);
  padding: 40px 0;
}
.intro-board__text p {
  grid-column: 7 / 13;
  margin: 0;
  padding: 0 40px;
  font-size: clamp(22px, 1.6vw, 24px);
  line-height: 1.35;
  text-transform: none;
  max-width: 42ch;
}
@media (max-width: 700px) {
  .intro-board__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 46svh auto auto;
  }
  .intro-board__slogan {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .intro-board__slogan p { font-size: 17vw; }
  .intro-board__word, .intro-board__photo {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1;
    min-height: 0;
  }
  .intro-board__word p { font-size: 18vw; }
  .intro-board__text { display: block; }
  .intro-board__text p { padding: 20px; font-size: 18px; }
}

/* ——— STEPS (pricing-like) ——— */
.steps {
  padding: 100px 28px 80px;
  background: var(--surface);
}
.steps__heading {
  margin: 0 0 40px;
  font-size: clamp(40px, 4vw, 72px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-transform: lowercase;
  max-width: 8ch;
}
.steps__row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.steps__tile {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 0;
  border-radius: var(--radius);
  position: relative;
}
.steps__tile--1 { background: var(--grey); height: 360px; }
.steps__tile--2 { background: var(--mint); height: 480px; }
.steps__tile--3 { background: var(--orange); height: 600px; }
.steps__tile h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  text-transform: none;
}
.steps__price {
  margin: 0.2em 0 0.8em;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: none;
}
.steps__tile ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
  text-transform: none;
  flex: 1;
}
.steps__tile li { padding: 0.2em 0; }
.steps__btn {
  display: block;
  margin: 24px -28px 0;
  background: rgba(0,0,0,0.18);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 20px 28px;
  height: 64px;
  text-transform: none;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.steps__btn:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .steps__btn:hover { background: var(--ink); color: var(--mint); }
}
.steps__note {
  margin: 24px 0 0;
  font-size: var(--step-small);
  color: var(--muted);
  text-transform: none;
}
@media (max-width: 800px) {
  .steps__row { flex-direction: column; }
  .steps__tile { height: auto !important; min-height: 0; width: 100%; }
  .steps__price { font-size: 44px; }
  .steps__heading { font-size: 9vw; max-width: none; }
}

/* ——— CLOSE inverted ——— */
.close {
  background: var(--ink);
  color: var(--bg);
  min-height: 90svh;
  padding: 80px 28px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.close__title {
  margin: 0;
  font-size: clamp(48px, 10vw, 11vw);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-transform: uppercase;
}
.close__title .line { display: block; overflow: hidden; }
.close__title [data-rise] { display: block; }
.close__bar {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: end;
}
.close__bar p {
  grid-column: 1 / 6;
  margin: 0;
  font-size: 20px;
  text-transform: none;
  max-width: 28ch;
}
.close__btn {
  grid-column: 10 / 13;
  justify-self: end;
  background: var(--mint);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 1em 1.4em;
  height: 56px;
  display: inline-flex;
  align-items: center;
  text-transform: none;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.close__btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .close__btn:hover { background: var(--orange); }
}
@media (max-width: 700px) {
  .close { min-height: 80svh; }
  .close__title { font-size: 15vw; }
  .close__bar { display: flex; flex-direction: column; gap: 24px; align-items: stretch; }
  .close__bar p { font-size: 17px; }
  .close__btn { width: 100%; justify-content: center; }
}

/* ——— RFQ ——— */
.rfq {
  padding: 100px 28px;
  background: var(--mint);
  color: var(--ink);
}
.rfq h2 {
  margin: 0 0 8px;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: lowercase;
}
.rfq__lead { margin: 0 0 24px; font-size: 1.1rem; text-transform: none; }
.rfq__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.rfq__wa, .rfq__mail {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--mint);
  text-decoration: none;
  font-weight: 700;
  padding: 0.9em 1.2em;
  text-transform: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .rfq__wa:hover, .rfq__mail:hover { background: var(--orange); color: var(--ink); }
}
.rfq__form {
  display: grid;
  gap: 16px;
  max-width: 520px;
}
.rfq__form label {
  display: grid;
  gap: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: none;
}
.rfq__form input, .rfq__form textarea {
  font: inherit;
  text-transform: none;
  border: 3px solid var(--ink);
  background: var(--bg);
  padding: 0.75em 0.9em;
  border-radius: 0;
}
.rfq__form button {
  font: inherit;
  font-weight: 700;
  text-transform: none;
  border: none;
  background: var(--ink);
  color: var(--bg);
  padding: 1em 1.4em;
  cursor: pointer;
  justify-self: start;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.rfq__form button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .rfq__form button:hover { background: var(--orange); color: var(--ink); }
}
.rfq__note { margin: 16px 0 0; font-size: var(--step-small); text-transform: none; color: #333; }

/* ——— FOOTER blocks ——— */
.foot {
  background: var(--orange);
  color: var(--ink);
  padding: 48px 28px 32px;
}
.foot__blocks {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34svh;
  margin-bottom: 56px;
}
.foot__block {
  flex: 1;
  background: var(--ink);
  color: var(--mint);
  display: grid;
  place-items: center;
  font-size: clamp(2rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  min-height: 60%;
}
.foot__cols {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
  font-size: 15px;
  text-transform: none;
}
.foot__cols a {
  display: block;
  text-decoration: none;
  margin-bottom: 0.4em;
  font-weight: 500;
}
.foot__cols p { margin: 0 0 0.4em; }
.foot__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  text-transform: none;
}
.foot__bottom p { margin: 0; }
.foot__pill {
  background: var(--ink);
  color: var(--mint);
  text-decoration: none;
  font-weight: 700;
  padding: 0.7em 1.1em;
  text-transform: none;
}
@media (max-width: 700px) {
  .foot__blocks { height: 22svh; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}
