:root {
  --ink: #17211d;
  --forest: #2f4c43;
  --sage: #74846b;
  --ivory: #f6f0e6;
  --paper: #fffaf0;
  --sand: #d8c9b2;
  --clay: #9b5b4e;
  --plum: #62384b;
  --blue: #315c7d;
  --line: rgba(23, 33, 29, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--forest);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: var(--paper);
  background: linear-gradient(to bottom, rgba(23, 33, 29, 0.72), rgba(23, 33, 29, 0));
}

.brand,
.nav-links a,
.hero a,
.research-story a,
.progression a,
.feature-article a,
.text-article a,
.idea-collage a,
.social-links a,
.contact-primary a,
.site-footer a {
  text-decoration: none;
}

.brand {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(0.65rem, 1.8vw, 1.55rem);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.2rem;
  font-size: clamp(3rem, 6.7vw, 6.25rem);
}

h2 {
  font-size: clamp(2.3rem, 5.2vw, 5.4rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.12;
}

.section-pad {
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.2rem, 6vw, 5rem);
}

.kicker,
.section-marker,
.source {
  margin-bottom: 0.9rem;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--forest);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 58% 25%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.86), rgba(23, 33, 29, 0.38) 56%, rgba(23, 33, 29, 0.1)),
    linear-gradient(0deg, rgba(23, 33, 29, 0.86), rgba(23, 33, 29, 0.04) 54%);
}

.hero-content {
  position: relative;
  max-width: 1120px;
  padding: 9rem clamp(1.2rem, 6vw, 5rem) 5rem;
  color: var(--paper);
}

.hero .kicker {
  color: #f2d7ad;
}

.hero p:not(.kicker) {
  max-width: 710px;
  margin-bottom: 0.7rem;
  font-size: clamp(1.02rem, 1.8vw, 1.28rem);
}

.meaning {
  background: var(--paper);
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.meaning-lede {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.meaning-lede p,
.chapter-heading p,
.thinking-intro p,
.process-content > p,
.cta p {
  max-width: 720px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.system-map {
  display: grid;
  gap: clamp(0.7rem, 2vw, 1.2rem);
  margin: clamp(2rem, 5vw, 4rem) 0;
  max-width: 1120px;
}

.system-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.secondary-line {
  padding-left: clamp(1.5rem, 9vw, 8rem);
}

.tertiary-line {
  padding-left: clamp(0.5rem, 4vw, 3rem);
}

.system-line span {
  min-height: 4.8rem;
  display: inline-grid;
  place-items: center;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ece2d3;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  text-align: center;
}

.system-line b {
  position: relative;
  padding-right: 2.1rem;
  color: var(--clay);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.system-line b::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1.35rem;
  height: 1px;
  background: currentColor;
}

.system-line b::before {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.philosophy-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 5vw, 4rem);
  max-width: 1060px;
}

.philosophy-columns p {
  font-size: 1.08rem;
}

.thinking {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.2rem, 6vw, 5rem);
  background: #e5d7c5;
}

.thinking-intro {
  align-self: start;
  position: sticky;
  top: 1.5rem;
}

.editorial-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.feature-article,
.text-article {
  background: var(--paper);
}

.feature-article {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
}

.feature-article img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: 50% 65%;
}

.feature-article div,
.text-article {
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2.3rem);
}

.feature-article a,
.text-article a,
.research-story a,
.progression a {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--blue);
  font-weight: 900;
}

.text-article h3,
.text-article p,
.placeholder {
  overflow-wrap: anywhere;
}

.now {
  background: var(--forest);
  color: var(--paper);
}

.now .section-marker,
.now .source {
  color: #f2d7ad;
}

.chapter-heading {
  max-width: 1050px;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.research-story {
  display: grid;
  grid-template-columns: minmax(310px, 0.62fr) minmax(0, 1fr);
  gap: 1px;
  background: rgba(255, 250, 240, 0.28);
}

.research-copy,
.research-story figure {
  margin: 0;
  min-width: 0;
  background: rgba(255, 250, 240, 0.08);
}

.research-copy {
  padding: clamp(1.35rem, 3vw, 2.4rem);
}

.research-copy ul {
  padding-left: 1.2rem;
}

.research-story img {
  width: 100%;
  background: white;
}

.research-story figcaption {
  padding: 1rem 1.2rem 1.3rem;
  color: rgba(255, 250, 240, 0.86);
}

.journey {
  background: var(--ivory);
}

.progression {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.progression article {
  min-width: 0;
  background: var(--paper);
}

.progression img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.progression article:nth-child(2) img,
.progression article:nth-child(3) img {
  aspect-ratio: 4 / 4.7;
}

.progression article > *:not(img) {
  margin-left: clamp(1.2rem, 2vw, 1.7rem);
  margin-right: clamp(1.2rem, 2vw, 1.7rem);
}

.progression span {
  display: inline-block;
  margin-top: 1.4rem;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.progression p:last-child,
.progression a:last-child {
  margin-bottom: 1.7rem;
}

.process {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.process-video,
.process-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.process-video {
  object-fit: cover;
  object-position: center;
  opacity: 0.54;
}

.process-overlay {
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.9), rgba(23, 33, 29, 0.38)),
    linear-gradient(0deg, rgba(23, 33, 29, 0.78), rgba(23, 33, 29, 0.1) 50%);
}

.process-content {
  position: relative;
  max-width: 930px;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.2rem, 6vw, 5rem);
}

.process .section-marker {
  color: #f2d7ad;
}

.method-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.28rem;
  margin-top: 1.8rem;
  max-width: 980px;
}

.method-strip span {
  position: relative;
  flex: 0 1 auto;
  padding: 0.6rem 0.78rem;
  border: 1px solid rgba(255, 250, 240, 0.36);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.08);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.method-strip span:not(:last-child)::after {
  content: "->";
  position: absolute;
  left: calc(100% + 0.36rem);
  top: 50%;
  color: #f2d7ad;
  font-weight: 900;
  transform: translateY(-50%);
}

.ideas {
  background: var(--paper);
}

.idea-collage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(230px, 0.76fr);
  gap: clamp(1rem, 2.2vw, 1.6rem);
  align-items: start;
}

.collage-item {
  position: relative;
  display: grid;
  align-content: end;
  gap: 0.45rem;
  min-width: 0;
  overflow: hidden;
  padding: clamp(1rem, 2.2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--ink);
}

.collage-item img,
.collage-item video {
  width: 100%;
  object-fit: cover;
}

.collage-item > img:first-child,
.collage-item > video:first-child {
  margin: calc(clamp(1rem, 2.2vw, 1.5rem) * -1) calc(clamp(1rem, 2.2vw, 1.5rem) * -1) 1rem;
  max-width: none;
  width: calc(100% + clamp(2rem, 4.4vw, 3rem));
}

.feature-preview {
  grid-column: 1;
  grid-row: 2;
  display: block;
  min-height: 0;
}

.feature-preview img {
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center top;
}

.collage-item span,
.collage-item strong {
  display: block;
}

.video-preview {
  grid-column: 1 / span 2;
  grid-row: 1;
  min-height: 0;
  background: var(--ink);
  color: var(--paper);
}

.video-preview img {
  aspect-ratio: 16 / 9;
  height: auto;
  opacity: 0.82;
  object-fit: cover;
  object-position: center;
}

.play-mark {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 4rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 250, 240, 0.7);
  border-radius: 50%;
  background: rgba(23, 33, 29, 0.45);
  color: var(--paper);
  font-size: 0.72rem;
}

.phone-preview {
  grid-column: 3;
  grid-row: 1 / span 2;
  min-height: 0;
  border-radius: 28px;
  background: var(--ink);
  color: var(--paper);
}

.phone-preview img {
  aspect-ratio: 9 / 16;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  object-position: center top;
}

.secondary-phone {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  margin-top: 0;
}

.secondary-phone img {
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  background: rgba(255, 250, 240, 0.08);
}

.project-preview {
  grid-column: 1 / span 2;
  grid-row: 3;
  min-height: 0;
  background: #ebe3d5;
}

.project-preview img {
  height: 220px;
  object-position: center;
}

.browser-frame {
  display: grid;
  grid-template-columns: repeat(3, 0.55rem) 1fr;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.8rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: var(--paper);
  color: var(--forest);
  font-size: 0.8rem;
}

.browser-frame span {
  width: 0.55rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--clay);
}

.browser-frame div {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collage-item span {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.video-preview span,
.phone-preview span {
  color: #f2d7ad;
}

.collage-item strong {
  min-width: 0;
  color: var(--blue);
  overflow-wrap: anywhere;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.video-preview strong,
.phone-preview strong {
  color: var(--paper);
}

.credentials {
  background: #d8d4c4;
}

.credentials h2 {
  max-width: 920px;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(1.8rem, 4vw, 3rem);
  background: rgba(23, 33, 29, 0.2);
}

.credential-grid article {
  min-width: 0;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  background: var(--ivory);
}

.credential-grid ul {
  margin: 0;
  padding-left: 1.15rem;
}

.cta {
  min-height: 640px;
  display: grid;
  align-items: center;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.2rem, 6vw, 5rem);
  background: var(--forest);
  color: var(--paper);
}

.cta > div {
  max-width: 980px;
}

.cta .section-marker {
  color: #f2d7ad;
}

.contact-primary {
  margin: 2rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.contact-primary a {
  color: var(--paper);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
}

.social-links a {
  color: #f2d7ad;
  font-weight: 900;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(170px, 0.3fr) minmax(200px, 0.3fr) minmax(280px, 0.4fr);
  gap: 1rem;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.2rem, 6vw, 5rem);
  background: var(--ink);
  color: var(--paper);
}

.site-footer strong {
  font-family: var(--serif);
  font-size: 1.7rem;
}

.site-footer a {
  color: #f2d7ad;
  font-weight: 900;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.placeholder {
  color: var(--plum);
  font-weight: 900;
}

.cta .placeholder,
.site-footer .placeholder {
  color: #f2d7ad;
}

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

  .process-video {
    display: none;
  }

  .process {
    background:
      linear-gradient(90deg, rgba(23, 33, 29, 0.92), rgba(23, 33, 29, 0.58)),
      url("assets/images/plannett-bts-folding.jpg") center / cover;
  }
}

@media (max-width: 980px) {
  .meaning-lede,
  .thinking,
  .research-story,
  .progression,
  .credential-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .thinking-intro {
    position: static;
  }

  .feature-article {
    grid-template-columns: 1fr;
  }

  .feature-article img {
    min-height: 360px;
    max-height: 620px;
  }

  .feature-preview,
  .project-preview {
    grid-column: auto;
  }

  .idea-collage {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
  }

  .video-preview {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .feature-preview {
    grid-column: 1;
    grid-row: 2;
  }

  .phone-preview {
    grid-column: 2;
    grid-row: 2 / span 2;
  }

  .project-preview {
    grid-column: 1;
    grid-row: 3;
  }

  .secondary-phone {
    grid-column: 1;
    grid-row: 4;
  }

  .feature-preview {
    grid-template-columns: 1fr;
  }

  .phone-preview,
  .secondary-phone {
    min-height: auto;
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    display: block;
  }

  .nav-links {
    justify-content: flex-start;
    margin-top: 0.8rem;
    font-size: 0.68rem;
  }

  .hero {
    min-height: 860px;
  }

  .hero-image {
    object-position: 58% 22%;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(23, 33, 29, 0.9), rgba(23, 33, 29, 0.12) 72%),
      linear-gradient(90deg, rgba(23, 33, 29, 0.64), rgba(23, 33, 29, 0.1));
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .system-line,
  .secondary-line,
  .tertiary-line {
    padding-left: 0;
  }

  .system-line {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .system-line span {
    min-height: auto;
    justify-self: stretch;
  }

  .system-line b {
    padding: 0 0 1.25rem 0.7rem;
  }

  .system-line b::after {
    left: 0.7rem;
    right: auto;
    top: 1.4rem;
    width: 1px;
    height: 0.9rem;
  }

  .system-line b::before {
    left: calc(0.7rem - 3px);
    right: auto;
    top: 2.12rem;
    transform: rotate(135deg);
  }

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

  .process {
    min-height: 720px;
  }

  .idea-collage {
    grid-template-columns: 1fr;
  }

  .feature-preview,
  .video-preview,
  .phone-preview,
  .secondary-phone,
  .project-preview {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
    width: auto;
  }

  .method-strip {
    display: grid;
    gap: 1.2rem;
    justify-items: start;
  }

  .method-strip span {
    white-space: normal;
  }

  .method-strip span:not(:last-child)::after {
    content: "";
    left: 1rem;
    top: calc(100% + 0.18rem);
    width: 1px;
    height: 0.9rem;
    background: #f2d7ad;
  }

  .method-strip span:not(:last-child)::before {
    content: "";
    position: absolute;
    left: calc(1rem - 3px);
    top: calc(100% + 0.86rem);
    width: 7px;
    height: 7px;
    border-right: 1px solid #f2d7ad;
    border-bottom: 1px solid #f2d7ad;
    transform: rotate(45deg);
  }

  .phone-preview img,
  .secondary-phone img {
    max-height: 520px;
  }
}
