:root {
  --paper: #fffaf0;
  --paper-2: #f4efe4;
  --ink: #19221d;
  --muted: #68716a;
  --forest: #173b2d;
  --leaf: #4f7d5a;
  --clay: #b4573d;
  --sky: #5e8ca3;
  --sun: #e4a62f;
  --white: #ffffff;
  --line: rgba(25, 34, 29, .12);
  --shadow: 0 28px 90px rgba(28, 43, 33, .14);
  --max: 1160px;
  --head: "Playfair Display", Georgia, serif;
  --body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  background:
    radial-gradient(circle at 8% 12%, rgba(228, 166, 47, .22), transparent 23rem),
    radial-gradient(circle at 92% 16%, rgba(94, 140, 163, .18), transparent 28rem),
    linear-gradient(180deg, #fffdf8 0%, var(--paper) 46%, #fff 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .5;
  background-image:
    linear-gradient(rgba(25,34,29,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,34,29,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

a { color: inherit; }
figure { margin: 0; }
img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.ptm-hero,
.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.ptm-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ghost-link,
.solid-link,
.btn-primary,
.btn-secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.ghost-link,
.btn-secondary {
  color: var(--forest);
  background: rgba(255,255,255,.74);
  border: 1px solid var(--line);
}

.ghost-link::before {
  content: "<";
  margin-right: .65rem;
}

.solid-link,
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--forest), #254d38);
  border: 1px solid rgba(23,59,45,.25);
  box-shadow: 0 18px 52px rgba(23,59,45,.2);
}

.ghost-link:hover,
.solid-link:hover,
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
}

.solid-link:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, var(--clay), #7d392b);
}

.hero-grid {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--clay);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
}

h1,
h2 {
  font-family: var(--head);
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  color: var(--forest);
  font-size: clamp(3.15rem, 7vw, 6.8rem);
}

h2 {
  max-width: 960px;
  color: var(--forest);
  font-size: clamp(2.25rem, 5vw, 4.65rem);
}

h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  line-height: 1.2;
}

.hero-lead,
.section-kicker p,
.split p,
.intro-grid p,
.final-card p {
  color: var(--muted);
  font-size: clamp(1rem, 1.18vw, 1.14rem);
}

.hero-lead {
  max-width: 720px;
  margin: 1.35rem 0 0;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.hero-showcase {
  position: relative;
  min-height: 620px;
}

.device-card,
.image-panel,
.wide-panel,
.prototype-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.device-card img,
.image-panel img,
.wide-panel img {
  padding: clamp(.45rem, 1.2vw, .85rem);
  border-radius: inherit;
}

.main-shot {
  position: absolute;
  inset: 5% 4% auto 0;
  transform: rotate(-2deg);
  animation: floatMain 7s ease-in-out infinite;
}

.floating-shot {
  position: absolute;
  width: min(62%, 420px);
  right: 0;
  bottom: 6%;
  transform: rotate(3deg);
  box-shadow: 0 28px 90px rgba(180, 87, 61, .18);
  animation: floatSecond 8s ease-in-out infinite;
}

@keyframes floatMain {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-.6deg) translateY(-12px); }
}

@keyframes floatSecond {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(12px); }
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.metric-strip article {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(255,255,255,.86), rgba(244,239,228,.72));
}

.metric-strip strong {
  display: block;
  color: var(--forest);
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  line-height: 1;
}

.metric-strip span,
.tool-row span,
.pill {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.section-kicker {
  max-width: 920px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-kicker.centered {
  margin-inline: auto;
  text-align: center;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(360px, .95fr) minmax(0, 1fr);
}

.band,
.dark-section {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
}

.band {
  background:
    radial-gradient(circle at 78% 12%, rgba(228,166,47,.2), transparent 24rem),
    var(--paper-2);
}

.dark-section {
  color: #fff;
  background:
    radial-gradient(circle at 15% 0, rgba(228,166,47,.18), transparent 25rem),
    linear-gradient(135deg, #132920, #243f31 58%, #173027);
}

.dark-section h2,
.dark-section h3 {
  color: #fff;
}

.dark-section .eyebrow {
  color: #f0bd5a;
}

.dark-section p {
  color: rgba(255,255,255,.74);
}

.dark-section .image-panel {
  background: rgba(255,255,255,.96);
}

.insight-list {
  display: grid;
  gap: .85rem;
  margin-top: 1.5rem;
}

.insight-list article,
.check-list li,
.persona-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  border-radius: 20px;
}

.insight-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: .9rem;
  padding: 1rem;
}

.insight-list span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--clay);
  font-size: 12px;
  font-weight: 900;
}

.insight-list strong {
  display: block;
  color: var(--forest);
}

.insight-list p {
  grid-column: 2;
  margin: .25rem 0 0;
  font-size: .94rem;
}

.check-list {
  display: grid;
  gap: .8rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.check-list li {
  color: var(--muted);
  padding: .9rem 1rem;
}

.check-list li::before {
  content: "✓";
  color: var(--leaf);
  font-weight: 900;
  margin-right: .7rem;
}

.check-list.on-dark li {
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}

.research-grid,
.persona-grid {
  display: grid;
  gap: 1rem;
}

.research-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.persona-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.persona-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.persona-card img {
  border-radius: 18px;
}

.wide-panel {
  width: min(940px, 100%);
  margin: 0 auto;
}

.journey-stack {
  display: grid;
  gap: 1rem;
}

.journey-stack img {
  border-radius: 24px;
  background: #fff;
  padding: .65rem;
  box-shadow: var(--shadow);
}

.double-img {
  display: grid;
  gap: 1rem;
}

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.5rem;
}

.tool-row span {
  color: var(--forest);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: .55rem .8rem;
}

.prototype-section {
  background:
    linear-gradient(180deg, transparent, rgba(94,140,163,.08));
}

.prototype-card {
  position: relative;
  display: block;
  max-width: 980px;
  margin: 0 auto;
  text-decoration: none;
}

.prototype-card img {
  transition: transform .55s ease, filter .55s ease;
}

.prototype-card span {
  position: absolute;
  inset: auto 1rem 1rem;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 2rem);
  color: #fff;
  border-radius: 18px;
  background: rgba(23, 59, 45, .92);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.prototype-card:hover img {
  transform: scale(1.018);
  filter: saturate(1.08) contrast(1.02);
}

.final-section {
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.final-card {
  text-align: center;
  border-radius: 38px;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 16% 0, rgba(228,166,47,.24), transparent 28%),
    radial-gradient(circle at 86% 20%, rgba(94,140,163,.16), transparent 32%),
    #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.final-card h2 {
  margin-inline: auto;
}

.final-card p {
  max-width: 850px;
  margin: 1.25rem auto 0;
}

.final-actions {
  justify-content: center;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  transition:
    opacity .8s cubic-bezier(.22,1,.36,1),
    transform .8s cubic-bezier(.22,1,.36,1),
    filter .8s cubic-bezier(.22,1,.36,1);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .split.reverse,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: auto;
  }

  .main-shot,
  .floating-shot {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
    animation: none;
  }

  .floating-shot {
    margin-top: 1rem;
  }

  .metric-strip,
  .research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ptm-hero,
  .section {
    width: min(var(--max), calc(100vw - 28px));
  }

  .ptm-nav {
    flex-direction: column;
    align-items: stretch;
    padding: .9rem 0;
  }

  .ghost-link,
  .solid-link,
  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding-inline: 14px;
    text-align: center;
  }

  .hero-actions,
  .final-actions {
    flex-direction: column;
  }

  h1 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .metric-strip,
  .research-grid,
  .persona-grid {
    grid-template-columns: 1fr;
  }

  .band,
  .dark-section {
    width: 100%;
    max-width: none;
  }

  .device-card,
  .image-panel,
  .wide-panel,
  .prototype-card {
    border-radius: 18px;
  }

  .main-shot,
  .floating-shot {
    transform: none;
    animation: none;
  }

  .prototype-card span {
    position: static;
    width: 100%;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

html,
body {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden;
  overflow-y: auto !important;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
  scrollbar-gutter: stable;
}
