/* Applied Design Solutions — 2026 redesign */
:root {
  --ink: #070b3a;
  --navy: #0a1370;
  --cobalt: #2338ff;
  --sky: #9fb4ff;
  --orange: #ff5a1f;
  --sun: #ffd23f;
  --paper: #f7f2e8;
  --white: #fff;
  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }

h1, h2 {
  font-family: var(--display);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(2.9rem, 7.4vw, 7rem); }
h2 { font-size: clamp(2.3rem, 5.2vw, 4.8rem); }
h1 em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.02em;
}
.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .45em .9em;
  border: 2px solid currentColor;
  border-radius: 99px;
  margin-bottom: 1.4rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  text-decoration: none;
  padding: 1em 1.6em;
  border-radius: 99px;
  border: 2px solid var(--ink);
  background: var(--orange);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
}
.btn:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; box-shadow: 5px 5px 0 currentColor; }
.btn.sun { background: var(--sun); }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--white);
  border-bottom: 3px solid var(--orange);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav img { height: 40px; width: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 38px); list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav li a:not(.btn):hover { color: var(--sun); }
.nav .btn { padding: .65em 1.2em; font-size: .95rem; box-shadow: 3px 3px 0 var(--sun); border-color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--cobalt);
  color: var(--paper);
  padding: clamp(56px, 8vw, 120px) 0 clamp(90px, 11vw, 170px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before { /* halftone dots */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.22) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
  mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(28px, 4vw, 70px); align-items: center; }
.hero h1 .hl {
  display: inline-block; background: var(--sun); color: var(--ink);
  padding: 0 .12em; transform: rotate(-1.5deg); margin: .04em 0;
}
.hero .lede { font-size: clamp(1.1rem, 1.5vw, 1.35rem); max-width: 34em; margin: 1.8rem 0 2.2rem; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 18px; }
.hero .proof { margin-top: 2.2rem; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; }
.stars { color: var(--sun); letter-spacing: 3px; font-size: 1.15rem; }

.hero-art { position: relative; }
.arch {
  border-radius: 999px 999px 24px 24px;
  border: 4px solid var(--ink);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 14px 14px 0 var(--ink);
  background: var(--navy);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.sticker {
  position: absolute; left: -9%; bottom: 10%;
  width: clamp(120px, 12vw, 170px); aspect-ratio: 1;
  display: grid; place-items: center; text-align: center;
  background: var(--orange); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 50%;
  font-family: var(--display); font-weight: 800; line-height: 1.05;
  font-size: clamp(.95rem, 1.2vw, 1.2rem);
  transform: rotate(-12deg);
  animation: wobble 5s ease-in-out infinite;
}
.sticker small { display: block; font-size: .62em; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
@keyframes wobble { 0%,100% { transform: rotate(-12deg) } 50% { transform: rotate(-4deg) scale(1.05) } }

.tag {
  position: absolute; right: -4%; top: 8%;
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 14px;
  padding: .7em 1em; font-weight: 700; font-size: .9rem;
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(4deg);
}
.tag b { color: var(--orange); }

/* ---------- ticker ---------- */
.ticker {
  background: var(--sun); color: var(--ink);
  border-block: 3px solid var(--ink);
  overflow: hidden; white-space: nowrap;
  transform: rotate(-1.2deg); margin: -50px -2vw 0; position: relative; z-index: 3;
}
.ticker-track { display: inline-flex; animation: scroll 28s linear infinite; }
.ticker span {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  text-transform: uppercase; letter-spacing: -.01em; padding: .55em 0;
}
.ticker span::after { content: "✦"; margin: 0 1.1em; color: var(--orange); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- problem ---------- */
.problem { padding: clamp(90px, 11vw, 170px) 0 clamp(60px, 8vw, 120px); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 90px); align-items: start; }
.problem h2 .strike { text-decoration: line-through; text-decoration-color: var(--orange); text-decoration-thickness: .08em; }
.problem .copy p { font-size: 1.2rem; margin-bottom: 1.2rem; }
.problem .copy p.big { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.15; letter-spacing: -.02em; color: var(--cobalt); }

/* ---------- process ---------- */
.process { background: var(--ink); color: var(--paper); padding: clamp(70px, 9vw, 140px) 0; position: relative; }
.process .head { max-width: 900px; margin-bottom: clamp(36px, 5vw, 70px); }
.process .head p { font-size: 1.2rem; margin-top: 1.4rem; max-width: 36em; color: var(--sky); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step {
  counter-increment: s;
  position: relative;
  border: 3px solid var(--paper);
  border-radius: 22px;
  padding: 22px 20px 26px;
  min-height: 380px;
  display: flex; flex-direction: column;
  transition: transform .25s, background .25s, color .25s;
}
.step:nth-child(1) { background: var(--cobalt); }
.step:nth-child(2) { background: var(--orange); color: var(--ink); }
.step:nth-child(3) { background: var(--sun); color: var(--ink); }
.step:nth-child(4) { background: var(--sky); color: var(--ink); }
.step:nth-child(5) { background: var(--paper); color: var(--ink); }
.step:hover { transform: translateY(-12px) rotate(-1.5deg); }
.step::before {
  content: "0" counter(s);
  font-family: var(--display); font-weight: 800; font-size: .95rem; letter-spacing: .1em;
}
.step img { width: 64px; height: 64px; margin: 18px 0 auto; filter: brightness(0); }
.step:nth-child(1) img { filter: brightness(0) invert(1); }
.step h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 2.6vw, 2.5rem); letter-spacing: -.03em; margin: 28px 0 8px; line-height: 1; }
.step p { font-size: .98rem; line-height: 1.4; }

/* ---------- white glove ---------- */
.glove { padding: clamp(80px, 10vw, 160px) 0; }
.glove-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.glove-photo { position: relative; }
.glove-photo .frame {
  border: 4px solid var(--ink); border-radius: 24px; overflow: hidden;
  box-shadow: -14px 14px 0 var(--orange); aspect-ratio: 5 / 4;
}
.glove-photo img { width: 100%; height: 100%; object-fit: cover; }
.glove .copy p.lede { font-size: 1.25rem; margin: 1.6rem 0 2rem; }
.checks { list-style: none; padding: 0; margin: 0 0 2.2rem; display: grid; gap: 14px; }
.checks li {
  display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start;
  font-size: 1.08rem; padding-bottom: 14px; border-bottom: 2px dashed rgba(7,11,58,.25);
}
.checks li::before {
  content: "✓"; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--cobalt); color: #fff; font-weight: 800; border: 2px solid var(--ink);
}
.checks b { font-family: var(--display); font-weight: 800; }

/* ---------- messages / phone ---------- */
.updates { background: var(--orange); padding: clamp(80px, 10vw, 150px) 0; border-block: 4px solid var(--ink); overflow: hidden; }
.updates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.updates p.lede { font-size: 1.25rem; margin: 1.6rem 0 0; max-width: 30em; }
.phone {
  width: min(340px, 82vw); margin: 0 auto;
  background: var(--ink); border-radius: 44px; padding: 14px;
  box-shadow: 14px 14px 0 var(--ink), 0 0 0 4px var(--ink);
  transform: rotate(4deg);
}
.screen { background: var(--paper); border-radius: 32px; padding: 22px 16px 26px; min-height: 520px; display: flex; flex-direction: column; gap: 14px; }
.screen .bar { text-align: center; font-family: var(--display); font-weight: 800; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.msg {
  background: #fff; border: 2px solid var(--ink); border-radius: 18px 18px 18px 4px;
  padding: 12px 14px; font-size: .92rem; line-height: 1.35;
  opacity: 0; transform: translateY(16px);
  animation: pop .5s forwards;
}
.msg small { display: block; font-weight: 700; color: var(--cobalt); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }
.msg:nth-of-type(1) { animation-delay: .3s; }
.msg:nth-of-type(2) { animation-delay: 1.1s; background: var(--sun); }
.msg:nth-of-type(3) { animation-delay: 1.9s; }
.msg:nth-of-type(4) { animation-delay: 2.7s; background: var(--cobalt); color: #fff; }
.msg:nth-of-type(4) small { color: var(--sun); }
.paused .msg { animation-play-state: paused; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* ---------- fiber-seal ---------- */
.fs { background: var(--navy); color: var(--paper); padding: clamp(80px, 10vw, 150px) 0; position: relative; overflow: hidden; }
.fs::after {
  content: ""; position: absolute; right: -12%; top: -30%; width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
  border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 22px, rgba(159,180,255,.18) 22px 26px);
}
.fs-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.fs p.lede { font-size: 1.2rem; margin: 1.6rem 0 1.4rem; max-width: 36em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2.2rem; }
.chips span { border: 2px solid var(--sky); color: var(--sky); border-radius: 99px; padding: .3em .9em; font-weight: 600; font-size: .92rem; }
.fs-logo { background: var(--cobalt); border: 4px solid var(--paper); border-radius: 32px; padding: clamp(28px, 4vw, 56px); transform: rotate(3deg); box-shadow: 12px 12px 0 var(--orange); }

/* ---------- guarantee ---------- */
.guar { padding: clamp(80px, 10vw, 150px) 0; }
.guar-card {
  display: grid; grid-template-columns: .6fr 1.4fr; gap: clamp(26px, 5vw, 80px); align-items: center;
  background: var(--sun); border: 4px solid var(--ink); border-radius: 32px;
  padding: clamp(26px, 5vw, 70px); box-shadow: 14px 14px 0 var(--ink);
}
.guar-card .portrait { border: 4px solid var(--ink); border-radius: 50% 50% 22px 22px; overflow: hidden; aspect-ratio: 1; background: var(--navy); }
.guar-card .portrait img { width: 100%; height: 100%; object-fit: cover; }
.guar-card blockquote { margin: 1.4rem 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.3vw, 2rem); line-height: 1.25; }
.guar-card cite { font-style: normal; font-weight: 700; font-family: var(--display); }
.guar-card cite span { display: block; font-weight: 500; font-family: var(--body); font-size: .9rem; }

/* ---------- contact ---------- */
.contact { background: var(--cobalt); color: var(--paper); padding: clamp(80px, 10vw, 150px) 0; position: relative; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.reviews { display: grid; gap: 18px; margin-top: 2.4rem; }
.review { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px; padding: 20px 22px; box-shadow: 6px 6px 0 var(--ink); }
.review:nth-child(2) { transform: translateX(clamp(0px, 3vw, 40px)) rotate(1deg); }
.review:nth-child(1) { transform: rotate(-1deg); }
.review p { margin: .5rem 0 .7rem; }
.review b { font-family: var(--display); }
.form { background: var(--paper); color: var(--ink); border: 4px solid var(--ink); border-radius: 28px; padding: clamp(22px, 3.5vw, 44px); box-shadow: 12px 12px 0 var(--ink); }
.form h3 { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -.03em; line-height: 1; margin-bottom: .4rem; }
.form > p { margin-bottom: 1.4rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin: 14px 0 6px; }
.form input, .form textarea {
  width: 100%; font: inherit; color: inherit; background: #fff;
  border: 3px solid var(--ink); border-radius: 14px; padding: .8em 1em;
}
.form input:focus, .form textarea:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.form textarea { min-height: 130px; resize: vertical; }
.form .btn { width: 100%; justify-content: center; margin-top: 22px; font-size: 1.15rem; }
.form-note { font-size: .85rem; margin-top: 14px; text-align: center; opacity: .75; }
.form-done { display: none; font-weight: 700; padding: 14px; margin-top: 18px; background: var(--sun); border: 3px solid var(--ink); border-radius: 14px; }
.form-done.show { display: block; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: var(--paper); padding: 40px 0; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
footer img { height: 36px; width: auto; }
footer p { font-size: .9rem; opacity: .75; }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
.js .step.rv.in:hover { transform: translateY(-12px) rotate(-1.5deg); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { min-height: 320px; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav ul li:not(:last-child) { display: none; }
  .hero-grid, .problem-grid, .glove-grid, .updates-grid, .fs-grid, .contact-grid, .guar-card { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 20px auto 0; }
  .sticker { left: -4%; }
  .tag { right: -2%; }
  .glove-photo { order: -1; }
  .fs-logo { max-width: 260px; }
  .guar-card .portrait { max-width: 240px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step img { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .msg { opacity: 1; transform: none; }
  .js .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
