/* Paper Plane Productions — one-pager
   Desktop sizes are taken from the Illustrator artboard (842pt wide) and scale
   with the viewport through --u (1 artboard point). Below 860px the layout
   switches to a single column with fixed sizes. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --max: 1680px;
  --u: calc(min(100vw, var(--max)) / 842);
  --line: rgba(255, 255, 255, 0.8);
  --fold: rgba(255, 255, 255, 0.55);
  --font: "Helvetica Neue", "Neue Haas Grotesk Text", Helvetica, Arial, sans-serif;

  /* Frame & columns (artboard points) */
  --inset: calc(26.4 * var(--u));   /* page edge -> frame line */
  --pad: calc(22 * var(--u));       /* frame line -> content */
  --col2: calc(447 * var(--u));     /* frame line -> right column */
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: var(--font);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, address { margin: 0; }
address { font-style: normal; }
em { font-style: italic; }

.page { max-width: var(--max); margin: 0 auto; }

/* ---------- Header ---------- */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: calc(39.4 * var(--u));
  /* logo flush with the frame's left line, tagline flush with its right line */
  padding: 0 var(--inset);
}
.logo {
  font-weight: 700;
  font-size: calc(18 * var(--u));
  letter-spacing: -0.035em;
  text-decoration: none;
  margin-left: -0.075em; /* optical: cancels the P's side bearing so the stem sits on the line */
}
.tagline {
  font-weight: 300;
  font-size: calc(17 * var(--u));
  letter-spacing: -0.01em;
}

/* ---------- Frame & fold lines ---------- */
.rails {
  margin: 0 var(--inset);
  padding-bottom: calc(26 * var(--u));
}
.frame {
  position: relative;
  display: block;
  border: 1px solid var(--line); /* closed box: side lines stop at the bottom line */
  padding: 0 var(--pad);
  overflow: hidden;
}
.folds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.folds line { stroke: var(--fold); stroke-width: 1; vector-effect: non-scaling-stroke; }
.frame > section { position: relative; z-index: 1; }

/* ---------- Type ---------- */
.display {
  font-weight: 700;
  font-size: calc(72 * var(--u));
  line-height: 0.914;
  letter-spacing: -0.045em;
}
.display .kern-r, .h2 .kern-r { letter-spacing: 0; } /* opens up r→t and r→v so they don't touch at tight tracking */
.h2 {
  font-weight: 700;
  font-size: calc(38 * var(--u));
  line-height: 1;
  letter-spacing: -0.03em;
}
.bullets {
  list-style: none;
  padding: 0;
  font-size: calc(12 * var(--u));
  line-height: 1.333;
}
.bullets li { position: relative; padding-left: calc(11.3 * var(--u)); }
.bullets li::before { content: "•"; position: absolute; left: 0; }

/* ---------- Paper images ---------- */
.paper { filter: drop-shadow(0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, 0.6)); }

/* ---------- Hero ---------- */
.hero { padding-top: calc(57 * var(--u)); }
.hero__img { width: calc(530 * var(--u)); margin: 0 auto; }

/* ---------- Intro ---------- */
.intro {
  display: grid;
  grid-template-columns: calc(447 * var(--u) - var(--pad)) 1fr;
  margin-top: calc(66 * var(--u));
}
.intro__title { margin-top: calc(-2 * var(--u)); }
.intro__text {
  font-size: calc(16 * var(--u));
  line-height: 1.2;
  max-width: calc(290 * var(--u));
}
.intro__text p + p { margin-top: 1.2em; }

/* ---------- Services / Approach ---------- */
.cols {
  display: grid;
  grid-template-columns: calc(447 * var(--u) - var(--pad)) 1fr;
  margin-top: calc(122 * var(--u));
}
.cols .h2 { margin-bottom: calc(22 * var(--u)); }
.cols .bullets { max-width: calc(300 * var(--u)); }

/* ---------- Cases ---------- */
.cases { margin-top: calc(178 * var(--u)); }
.cases .h2 { margin-bottom: calc(34 * var(--u)); }
.cases__grid {
  display: grid;
  grid-template-columns: calc(447 * var(--u) - var(--pad)) 1fr;
  row-gap: calc(34 * var(--u));
}
.case {
  display: grid;
  grid-template-columns: calc(105.3 * var(--u)) calc(240 * var(--u));
  align-content: start;
}
.case__img {
  grid-column: 1 / -1;
  width: calc(268 * var(--u));
  margin-left: calc(25 * var(--u));
  margin-bottom: calc(14 * var(--u));
}
.case__title {
  font-weight: 500;
  font-size: calc(9 * var(--u));
  line-height: 1.2;
  margin-bottom: calc(9 * var(--u));
}
.case__title a, .case__title span { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
.case__credit, .case__desc {
  font-style: italic;
  font-size: calc(7.5 * var(--u));
  line-height: 1.2;
}
.case__desc { padding-right: calc(4 * var(--u)); }

/* ---------- And more ---------- */
.more {
  margin-top: calc(100 * var(--u));
  text-align: center;
  font-size: calc(16 * var(--u));
  line-height: 1.31;
}
.more__title { margin-bottom: calc(58 * var(--u)); }
.more p { max-width: calc(690 * var(--u)); margin-left: auto; margin-right: auto; }
.more p + p { margin-top: calc(21 * var(--u)); }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: calc(447 * var(--u) - var(--pad)) 1fr;
  margin-top: calc(150 * var(--u));
  padding-bottom: calc(30 * var(--u));
}
.contact .h2 { margin-bottom: calc(22 * var(--u)); }
.contact address {
  padding-left: calc(27.4 * var(--u));
  font-size: calc(16 * var(--u));
  line-height: 1.31;
}
.contact address p + p { margin-top: 1.31em; }
.contact a { text-decoration: none; }
.contact a:hover, .case__title a:hover { opacity: 0.7; }
.contact__portrait {
  width: calc(200 * var(--u));
  margin: calc(-16 * var(--u)) 0 0 calc(44 * var(--u));
  transform: rotate(4deg);
  align-self: start;
}

/* =========================================================
   Tablet & mobile — single column
   ========================================================= */
@media (max-width: 860px) {
  :root {
    --inset: 10px;
    --pad: 18px;
  }
  .top { height: 52px; }
  .logo { font-size: 20px; }
  .tagline { font-size: 14px; }
  .rails { padding-bottom: 10px; }

  .display { font-size: clamp(48px, 15vw, 84px); }
  .h2 { font-size: clamp(32px, 9vw, 44px); }
  .bullets { font-size: 15px; line-height: 1.35; }
  .bullets li { padding-left: 14px; }
  .bullets li + li { margin-top: 6px; }

  .hero { padding-top: 32px; }
  .hero__img { width: 100%; }

  .intro, .cols, .cases__grid, .contact { grid-template-columns: 1fr; }
  .intro { margin-top: 44px; row-gap: 28px; }
  .intro__text { font-size: 17px; line-height: 1.3; max-width: 34em; }

  .cols { margin-top: 80px; row-gap: 56px; }
  .cols .h2, .cases .h2, .contact .h2 { margin-bottom: 20px; }
  .cols .bullets { max-width: none; }

  .cases { margin-top: 96px; }
  .cases__grid { row-gap: 48px; }
  .case { grid-template-columns: 1fr; }
  .case__img { width: 100%; margin: 0 0 16px; }
  .case__title { font-size: 17px; margin-bottom: 4px; }
  .case__credit { font-size: 14px; margin-bottom: 10px; }
  .case__desc { font-size: 15px; line-height: 1.35; padding: 0; }

  .more { margin-top: 96px; font-size: 16px; line-height: 1.4; }
  .more__title { margin-bottom: 32px; }
  .more p { max-width: none; }
  .more p + p { margin-top: 20px; }

  .contact { margin-top: 96px; padding-bottom: 40px; row-gap: 40px; }
  .contact address { padding-left: 0; font-size: 17px; line-height: 1.35; }
  .contact__portrait { width: min(70%, 300px); margin: 0 auto; }
}

/* Mid-size tablets: keep two columns for the case grid */
@media (min-width: 600px) and (max-width: 860px) {
  .cases__grid { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .case__title { font-size: 15px; }
  .case__credit { font-size: 13px; }
  .case__desc { font-size: 14px; }
}

@media (max-width: 380px) {
  .tagline { display: none; }
}

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