/* ==========================================================
   Portfolio — bold Swiss style: pink / white / black
   Edit the tokens below to retheme the whole site.
   ========================================================== */
:root {
  --pink: #f8cddd;
  --pink-deep: #f3b4cc;
  --white: #ffffff;
  --black: #0b0b0b;
  --ink: #111111;
  --muted: #5c5c5c;
  --muted-dark: #a9a9a9;
  --line: #1a1a1a;
  --line-dark: #3a3a3a;

  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--black); color: var(--pink); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Big tight display headline used everywhere */
.display {
  font-weight: 700;
  font-size: clamp(56px, 10vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0;
}
.lede {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.3;
  font-weight: 500;
  max-width: 30ch;
  margin: 0;
}
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* Pill-outline button */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}
.pill:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.on-dark .pill:hover { background: var(--pink); color: var(--black); border-color: var(--pink); }

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Nav (sits inside the pink hero) ---------- */
.nav { background: var(--pink); position: relative; z-index: 20; }
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.logo { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { padding-bottom: 2px; border-bottom: 1.5px solid transparent; transition: border-color 0.2s; }
.nav-links a:hover,
.nav-links a.active { border-color: currentColor; }
.icons { display: flex; gap: 8px; }
.icons a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.2s var(--ease);
}
.icons a:hover { transform: scale(1.1); }
.menu-btn {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 16px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--pink);
  padding: clamp(48px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
}
.hero .display { margin-bottom: clamp(28px, 4vw, 48px); }

/* Services strip */
.strip {
  border-bottom: 1px solid #e6e6e6;
  padding: 22px 0;
  text-align: center;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- Sections ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; }
.section-intro { margin-bottom: clamp(40px, 6vw, 72px); }
.section-intro .display { margin-bottom: 28px; }

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 28px);
}
.project a { display: block; }
.thumb {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f1f1f1;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.project:hover .thumb img { transform: scale(1.04); }
.project h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 14px 0 2px;
}
.project .tags { display: block; font-size: 14px; color: var(--muted); }
.project .more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
}

/* More-work list */
.more-work { margin-top: clamp(64px, 8vw, 104px); }
.more-work h3 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.list li { border-bottom: 1px solid var(--line); }
.list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-size: 15px;
  transition: padding 0.3s var(--ease);
}
.list a:hover { padding-left: 10px; }
.list .arrow { font-size: 18px; }

/* ---------- Black approach section ---------- */
.on-dark { background: var(--black); color: var(--white); }
.on-dark .display { color: var(--pink); }
.on-dark .eyebrow { color: var(--muted-dark); }

.exp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
}
.exp-list li {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr auto;
  gap: 4px 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-dark);
}
.exp-list strong {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.exp-list span { color: var(--muted-dark); }
.exp-list .yr { font-size: 14px; white-space: nowrap; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about-copy p { font-size: 17px; color: var(--muted); margin: 0 0 18px; max-width: 58ch; }
.about-copy p.big {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.facts h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.facts ul { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.9; }

/* ---------- Contact ---------- */
.contact { background: var(--pink); }
.contact .mail {
  display: inline-block;
  font-size: clamp(22px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  border-bottom: 3px solid currentColor;
  margin: 40px 0 32px;
  word-break: break-all;
}
.contact .pills { display: flex; gap: 10px; flex-wrap: wrap; }

footer {
  background: var(--black);
  color: var(--muted-dark);
  padding: 24px 0;
  font-size: 13px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a:hover { color: var(--white); }

/* ---------- Case study pages ---------- */
.cs-hero { background: var(--pink); padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.cs-hero h1 {
  font-weight: 700;
  font-size: clamp(48px, 8.5vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 18px 0 clamp(32px, 5vw, 56px);
}
.cs-hero .eyebrow { color: var(--ink); font-weight: 600; }
.cs-hero .eyebrow:hover { text-decoration: underline; }
.cs-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  border-top: 1.5px solid var(--ink);
  padding-top: 20px;
  margin: 0;
  font-size: 15px;
}
.cs-facts dt { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.cs-facts dd { margin: 0; }

main > .wrap { padding-top: clamp(40px, 6vw, 72px); }
.cs-cover { aspect-ratio: 16 / 9; overflow: hidden; }
.cs-cover img { width: 100%; height: 100%; object-fit: cover; }
.cs-cover.natural { aspect-ratio: auto; }
.cs-cover.natural img { height: auto; }

.cs-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(20px, 6vw, 96px);
  padding: clamp(56px, 8vw, 96px) 0 0;
}
.cs-body h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}
.cs-body p { color: var(--muted); margin: 0 0 16px; font-size: 17px; }
.cs-body p strong { color: var(--ink); font-weight: 600; }
.cs-pull {
  font-size: clamp(24px, 2.8vw, 34px) !important;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink) !important;
  background: var(--pink);
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 6px;
}
.cs-body p.cs-pull { display: inline-block; margin: 12px 0 28px; padding: 6px 10px; }
.cs-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cs-steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.cs-steps span { font-weight: 700; color: var(--ink); }
.cs-steps strong { display: block; color: var(--ink); font-weight: 600; }

/* Screen-by-screen walkthrough (phone screens + explanation) */
.cs-screens {
  list-style: none;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.cs-screens li {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
  padding: clamp(36px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}
.cs-screens li:nth-child(even) { grid-template-columns: 1fr minmax(200px, 300px); }
.cs-screens li:nth-child(even) img { order: 2; }
.cs-screens img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 24px 48px -16px rgba(0, 30, 60, 0.45);
}
.cs-screens .step {
  display: inline-block;
  background: var(--pink);
  font-weight: 700;
  font-size: 14px;
  padding: 3px 10px;
  border-radius: 999px;
}
.cs-screens h3 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 14px 0 18px;
}
.cs-screens p { color: var(--muted); font-size: 17px; margin: 0 0 14px; max-width: 52ch; }

.cs-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 24px);
  padding-top: clamp(56px, 8vw, 96px);
}
.cs-gallery > * { aspect-ratio: 4 / 3; overflow: hidden; }
.cs-gallery .full { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.cs-gallery.natural > *,
.cs-gallery.natural .full { aspect-ratio: auto; align-self: start; }
.cs-gallery.natural img { width: 100%; height: auto; }
.cs-gallery.natural figure { margin: 0; }
.cs-gallery.natural figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; }
.cs-gallery.tiles {
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  justify-content: center;
}
.cs-gallery.tiles > * { width: 100%; max-width: 340px; justify-self: center; }
.cs-gallery + .cs-gallery { padding-top: clamp(12px, 2vw, 24px); }
.cs-links { margin-top: 20px; font-size: 15px; font-weight: 600; }
.cs-links a { border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

.next-project {
  display: block;
  background: var(--black);
  color: var(--white);
  padding: clamp(72px, 10vw, 128px) 0;
  margin-top: clamp(80px, 10vw, 128px);
}
.next-project .eyebrow { color: var(--muted-dark); }
.next-project strong {
  display: block;
  font-size: clamp(40px, 7vw, 104px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-top: 12px;
  color: var(--pink);
  transition: opacity 0.3s;
}
.next-project:hover strong { opacity: 0.8; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .about-grid,
  .cs-body { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav-right {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--pink);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 8px var(--gutter) 28px;
    border-bottom: 1.5px solid var(--ink);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-right.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links { flex-direction: column; gap: 4px; font-size: 22px; }
  .nav-links a { display: inline-block; padding: 6px 0; }
  .work-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .exp-list li { grid-template-columns: 1fr; gap: 2px; }
  .cs-gallery,
  .cs-gallery.natural { grid-template-columns: 1fr !important; }
  .cs-gallery .full { aspect-ratio: 4 / 3; }
  .cs-screens li,
  .cs-screens li:nth-child(even) { grid-template-columns: 1fr; }
  .cs-screens li:nth-child(even) img { order: 0; }
  .cs-screens img { max-width: 260px; }
}
