/* ---------- Base ---------- */
:root {
  --bg: #f4f4f4;
  --ink: #111111;
  --ink-soft: #333333;
  --muted: #6b6b6b;
  --line: #555555;
  --panel: #ffffff;
  --dark: #141414;
  --dark-2: #1c1c1c;
  --on-dark: #bdbdbd;
  --gutter: 80px;
  --rule: 1.5px solid var(--ink);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Hanken Grotesk', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--line); }
img { max-width: 100%; display: block; }
input::placeholder, textarea::placeholder { color: #8a8a8a; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; color: var(--bg); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  height: 104px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Name wordmark used as the header logo; same type style as the former hero name */
.wordmark {
  flex-shrink: 0; white-space: nowrap;
  color: var(--ink); text-decoration: none;
  font-size: 24px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1;
  display: inline-flex; align-items: center;
}

.main-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a {
  padding: 10px 12px;
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
}
.main-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 0 var(--gutter) 140px; }
.section--first { padding-top: 40px; }
.section--projects { padding-top: 140px; }

.section-title {
  margin: 0;
  padding-bottom: 24px;
  border-bottom: var(--rule);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.8px;
}
.section-title--small { font-size: 24px; letter-spacing: -0.2px; }

.two-col {
  padding-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
  align-items: start;
}

.lead { margin: 0; font-size: 22px; line-height: 1.4; }
.stack { display: flex; flex-direction: column; gap: 32px; }
.stack p { margin: 0; }

.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--panel); color: var(--muted); font-size: 16px;
}
.placeholder--dark { background: var(--dark); color: var(--on-dark); }

.arrow-link {
  font-size: 20px;
  text-underline-offset: 5px;
  display: inline-flex; align-items: center; gap: 8px;
}

.circle-btn {
  width: 60px; height: 60px; flex-shrink: 0; padding: 0;
  border-radius: 50%; border: var(--rule);
  background: transparent; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.circle-btn:hover { background: var(--ink); color: var(--bg); }
/* Back to top (added by main.js): the shelf sticks to the bottom of the screen but never past the footer,
   the button sits 32px above it in the right corner and fades in after the first screen */
.to-top-shelf { position: sticky; bottom: 0; height: 0; z-index: 50; }
.to-top {
  position: absolute; right: 32px; bottom: 32px;
  background: var(--bg);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .to-top { transition: none; }
}
.circle-btn:disabled,
.circle-btn:disabled:hover {
  background: transparent; color: #b5b5b5;
  border-style: dashed; border-color: #b5b5b5;
  cursor: default;
}

/* Hover tooltip; replaces the native title tooltip, which can't be styled */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 10px); right: 0;
  padding: 6px 10px; background: var(--ink); color: #fff;
  font-size: 14px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 64px;
}

/* Collage: a macOS Notes window with photos around it. Sized in cqi so it scales as one piece. */
.collage {
  position: relative; container-type: inline-size;
  /* 1366px = the original 1024px scaled by 1.3341; may extend into the page gutters */
  width: min(1366px, calc(100vw - 48px)); align-self: center; aspect-ratio: 1024 / 560;
  background-image: radial-gradient(circle, #9a9a9a 1px, transparent 1.5px);
  background-size: 20% 25%; background-position: 2.5% 12%;
}
.collage__item { position: absolute; margin: 0; }
.collage__photo { font-size: 2.2cqi; background: #dcdcdc; }
.collage__photo--tl {
  left: 8%; top: 6%; width: 17%; height: 35%;
  transform: rotate(-5deg);
}
.collage__photo--bl {
  left: 13%; top: 70%; z-index: 3;
  width: auto; height: auto; max-width: 32.2%; max-height: 34.5%;
  object-fit: contain; display: block;
  filter: grayscale(100%) contrast(0.8);
  transition: filter 0.08s ease;
}

.collage__photo--bl:hover {
  filter: grayscale(0%);
}
.collage__photo--br {
  right: 7%; top: 67%; width: 23%; height: 29%;
  transform: rotate(2.5deg);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), z-index 0.28s ease;
}
.collage__photo--br:hover {
  transform: translate(6px, 6px) scale(1.025) rotate(2.5deg);
  z-index: 10;
}
.collage__photo--tl {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), z-index 0.28s ease;
}
.collage__photo--tl:hover {
  transform: translate(-6px, -6px) scale(1.025) rotate(-5deg);
  z-index: 10;
}
.collage__quote {
  left: 2%; top: 32%; width: 15.5%; z-index: 3;
  padding: 1.2cqi 1.3cqi; background: #e9e4d8;
  font-family: 'Times New Roman', Times, serif; font-size: 1.55cqi; line-height: 1.25; color: #111;
  box-shadow: 0 .3cqi .8cqi rgba(0,0,0,.12);
}
.collage__note {
  right: 0%; top: 45%; width: 190px; height: 190px; z-index: 5;
  padding: 20px 20px 18px; background: #f2a8c3;
  font-family: 'Hanken Grotesk', Helvetica, Arial, sans-serif;
  font-size: 14px; line-height: 1.26; letter-spacing: 0.12em; color: #9b1f2b; white-space: normal;
  font-style: normal; font-weight: 300; text-transform: none;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left;
  gap: 8px;
  transform: rotate(4deg);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), z-index 0.28s ease;
  box-shadow: 0 0.8cqi 1.2cqi rgba(0,0,0,.08);
}

.collage__note span { display: block; }
.collage__note-spacer {
  display: block; height: 18px;
}
.collage__note-city { font-size: 16px; }

.collage__note:hover {
  transform: translate(8px, -8px) scale(1.025) rotate(4deg);
  z-index: 10;
}


.notes-window {
  left: 21%; top: 10.6%; width: 58%; height: 66%; z-index: 2; display: grid; grid-template-columns: 15% max-content 1fr;
  background: #fff; border-radius: 1.2cqi; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 1.6cqi 4cqi rgba(0,0,0,.18);
  font-size: 1.05cqi; color: #3a3a3a;
}
.notes-window__sidebar { background: #e6e6e6; padding: 1.4cqi 1cqi; display: flex; flex-direction: column; gap: .4cqi; }
.notes-window__lights { display: flex; gap: .7cqi; margin-bottom: 2.4cqi; }
.notes-window__lights span { width: 1.2cqi; height: 1.2cqi; border-radius: 50%; background: #ff5f57; }
.notes-window__lights span:nth-child(2) { background: #febc2e; }
.notes-window__lights span:nth-child(3) { background: #28c840; }
.notes-window__folder { padding: .5cqi .6cqi; border-radius: .5cqi; }
.notes-window__folder.is-active { background: #d2d2d2; }
.notes-window__list { border-right: 1px solid #e4e4e4; padding: 1cqi; }
.notes-window__toolbar { position: relative; height: 3cqi; display: flex; align-items: center; gap: 1.4cqi; color: #777; }
.notes-window__toolbar svg { width: 1.5cqi; height: 1.5cqi; }
.notes-window__entry { margin-top: 1.2cqi; padding: .8cqi; border-radius: .5cqi; background: #efefef; display: flex; flex-direction: column; gap: .2cqi; }
.notes-window__entry strong { font-weight: 500; color: #222; }
.notes-window__entry span { color: #888; }
.notes-window__note { padding: 1cqi 3cqi 3cqi; }
.notes-window__label { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; }
.notes-window__text { margin: 2.6cqi 0 0; font-size: 1.9cqi; line-height: 1.38; font-weight: 300; color: #333; }
.notes-window__greeting {
  font-style: normal; font-weight: 500; color: #1e1e1e;
}

/* ---------- Projects ---------- */
.projects {
  padding-top: 56px;
  display: flex; align-items: center; gap: 32px;
}
.project { flex: 1 1 0; display: flex; flex-direction: column; gap: 14px; }
.project__name { font-size: 18px; }
.project__card { position: relative; display: block; height: 500px; overflow: hidden; background: var(--card-color); color: inherit; text-decoration: none; }
.project__card:focus-visible { outline-offset: 4px; }
.project__image { position: absolute; inset: 0; background: #dcdcdc; }
/* Project details: hidden behind the image, fade in on hover or keyboard focus */
.project__info {
  position: absolute; inset: 0; padding: 32px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left;
  background: var(--card-color); color: var(--ink);
  opacity: 0; transition: opacity .25s ease;
}
.project__card:hover .project__info,
.project__card:focus-within .project__info { opacity: 1; }
/* Same size as the [Project image] placeholder text, centred the same way */
.project__title { margin: 0 0 8px; max-width: 32ch; font-size: 18px; font-weight: 700; line-height: 1.3; }
.project__desc { margin: 0; max-width: 30ch; font-size: 16px; line-height: 1.45; }
.project__tag {
  position: absolute; bottom: 32px; right: 32px; left: 32px; margin: 0; text-align: left;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.project__card--blue { --card-color: #b4caeb; }
.project__card--yellow { --card-color: #fbc243; }
.project__card--orange { --card-color: #eb641b; }
.projects .circle-btn { width: 56px; height: 56px; }

/* ---------- Content creation ---------- */
.video {
  height: 340px;
  background: var(--dark-2); color: var(--on-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  font-size: 16px;
}
.video__play {
  width: 64px; height: 64px; border-radius: 50%;
  border: 1.5px solid var(--on-dark);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Project (case study) pages ---------- */
.case-hero { padding: 40px var(--gutter) 0; }
.case-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; color: var(--muted); text-decoration: none; text-transform: uppercase;
}
.case-back:hover { color: var(--ink); }
.case-hero__num { margin: 56px 0 8px; font-size: 18px; display: flex; align-items: center; }
.case-hero__title {
  margin: 0;
  font-size: clamp(56px, 9vw, 128px); line-height: .9; font-weight: 800;
  letter-spacing: -0.035em; text-transform: uppercase;
}
/* The title links back to the front page; a "<" fades in to its left on hover */
.case-hero__link { position: relative; display: block; color: inherit; text-decoration: none; }
.case-hero__link:hover { color: inherit; }
.case-hero__lead { margin: 32px 0 0; max-width: 640px; font-size: 22px; line-height: 1.4; }
.case-meta {
  margin: 56px 0 0; padding-top: 20px; border-top: var(--rule);
  /* last column sizes to its content so a longer value (e.g. stakeholders) stays on one line */
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) max-content; gap: 24px;
}
/* equal columns when several values are long (KINDA) */
.case-meta--even { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-meta dt { font-size: 14px; color: var(--muted); }
.case-meta dd { margin: 6px 0 0; font-size: 18px; }
.case-cover {
  height: 640px; margin: 72px var(--gutter) 140px; color: var(--ink-soft);
  background-position: center center; background-repeat: no-repeat; background-size: cover;
}
.case-cover--blue { background: #b4caeb; }
.case-cover--yellow { background: #f6d668; }
.case-cover--orange { background: #f18c22; }
.case-image { height: 520px; margin-top: 56px; background: #dcdcdc; }
/* image placeholder beside text in a two-col: top-aligned with the text */
.two-col > .case-image { margin-top: 0; }
/* photo beside text in a two-col: never taller than the text (height 0 so only the text sizes the row,
   then stretched to it), shrinks inside its box to keep the image's own aspect ratio */
.case-photo { display: block; justify-self: center; width: 85%; height: 0; min-height: 100%; object-fit: contain; object-position: center top; }

/* Process: organic timeline. Text above/below a wavy line, one dot per step.
   Each step is a column spanning three shared rows (text / line / text) via subgrid. */
.timeline {
  --line-h: 160px;
  position: relative; padding-top: 56px;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto var(--line-h) auto;
}
.timeline__line {
  grid-column: 1 / -1; grid-row: 2; width: 100%; height: 100%; overflow: visible;
  fill: none; stroke: var(--ink); stroke-width: 1.5;
}
.timeline__line path { vector-effect: non-scaling-stroke; }
.timeline__steps { display: contents; }
.timeline__step {
  grid-column: var(--col); grid-row: 1 / 4;
  display: grid; grid-template-rows: subgrid; position: relative;
}
.timeline__text { display: flex; flex-direction: column; gap: 6px; margin-left: calc(12% - 24px); padding-right: 24px; }
.timeline__step--up .timeline__text { grid-row: 1; align-self: end; padding-bottom: 20px; }
.timeline__step--down .timeline__text { grid-row: 3; align-self: start; padding-top: 20px; }
.timeline__num { font-size: 14px; color: var(--muted); }
.timeline__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.timeline__text p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
/* the dot sits on the line: row 2, at the step's height on the curve */
.timeline__dot {
  grid-row: 2; justify-self: start; align-self: start; margin-left: calc(12% - 24px);
  width: 48px; height: 48px; margin-top: calc(var(--y) * var(--line-h) - 24px);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  border-radius: 50%; border: var(--rule); background: var(--bg); position: relative; z-index: 1;
}

/* Larger accordion style, shared by the research findings and About Me; titles can wrap, so give them room */
/* dropdown column takes 60% of the row */
.two-col--wide-right { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
:is(.case-section, #about) .service__toggle { padding: 22px 0; gap: 18px; font-size: 20px; line-height: 1.4; }
:is(.case-section, #about) .service__num { width: 30px; height: 30px; font-size: 14px; align-self: flex-start; margin-top: 1px; }
:is(.case-section, #about) .service__body { padding: 0 0 28px 48px; font-size: 20px; line-height: 1.45; color: var(--muted); }

/* Design: carousel – one image at a time, heading and text change with it */
.carousel {
  padding-top: 56px;
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 64px; align-items: center;
}
/* slides are stacked in one grid cell, so the box keeps the height of the tallest slide */
.carousel__media, .carousel__texts { display: grid; }
.carousel__media > *, .carousel__texts > * { grid-area: 1 / 1; }
.carousel__stage {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
}
.carousel__media { aspect-ratio: 16 / 10; }
.carousel__image { aspect-ratio: 16 / 10; background: #dcdcdc; }
.carousel__image--brand { display: block; width: 100%; height: auto; background: #b4caeb; }
.carousel__image--photo { display: block; width: 100%; height: 100%; object-fit: cover; }
/* arrows sit on the image, one on each side */
.carousel__btn {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 1;
  width: 48px; height: 48px; background: var(--bg);
}
.carousel__btn--prev { left: 20px; }
.carousel__btn--next { right: 20px; }
.carousel [data-slide] { opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.carousel [data-slide].is-active { opacity: 1; visibility: visible; }
.carousel__count { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.carousel__text { display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 1.5; }
.carousel__text p { margin: 0; }
.carousel__title { margin: 0 0 4px; font-size: 24px; font-weight: 700; line-height: 1.3; }
@media (prefers-reduced-motion: reduce) { .carousel [data-slide] { transition: none; } }

/* Small bold subheadings (used in Reflection) */
.case-sub__title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.35; }

/* Test: short section, so the key sentence is set large */
.case-statement { margin: 56px 0 0; max-width: 900px; font-size: 32px; font-weight: 300; line-height: 1.3; letter-spacing: -0.4px; }

/* Reflection: key takeaway as a pull quote */
.case-quote { margin: 0; padding-left: 28px; border-left: var(--rule); align-self: center; }
/* Outcome: the clickable Rippl' prototype (its own page in prototypes/rippl/, scales itself to the frame) */
.case-prototype { margin: 0; justify-self: center; translate: -25px 0; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.case-prototype iframe { display: block; width: 100%; height: 800px; border: 0; }
.case-prototype figcaption { font-size: 14px; color: var(--muted); text-align: left; }
/* several text blocks stacked in one column */
.case-stack { display: flex; flex-direction: column; gap: 48px; }
.case-quote p { margin: 0; font-size: 32px; font-weight: 300; font-style: italic; line-height: 1.3; letter-spacing: -0.4px; }

/* ---------- Services accordion ---------- */
.about-text { display: flex; flex-direction: column; gap: 24px; font-size: 20px; line-height: 1.45; }
.about-text p { margin: 0; }
.about-text--bold { font-weight: 700; }
.service { border-bottom: var(--rule); }
.service:first-of-type { border-top: var(--rule); }
.service__toggle {
  width: 100%; min-height: 56px; padding: 0;
  border: none; background: transparent; color: var(--ink);
  font: inherit; font-size: 20px; text-align: left;
  display: flex; align-items: center; gap: 14px; cursor: pointer;
}
.service__num {
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%; border: var(--rule);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.service__title { flex-grow: 1; }
.service__chevron { flex-shrink: 0; transition: transform .2s ease; }
.service__toggle[aria-expanded="true"] .service__chevron { transform: rotate(180deg); }
.service__body {
  margin: 0;
  max-width: calc(100% - 30px);
  padding: 0 0 20px 38px;
  font-size: 16px; line-height: 1.5; color: var(--ink-soft);
}
#service-1 .service__body,
#service-1.service__body,
#service-2 .service__body,
#service-2.service__body,
#service-3 .service__body,
#service-3.service__body {
  font-size: 16px;
}
.service__body p {
  margin: 0;
  text-align: justify;
}
.service__body > :not(:first-child) { margin-top: 14px; }
/* How I think: phases as a small definition list */
.about-phases { margin-bottom: 0; display: flex; flex-direction: column; gap: 14px; }
.about-phases dt { font-weight: 700; color: var(--ink); }
.about-phases dd { margin: 2px 0 0; }

/* ---------- Tools marquee ---------- */
.tools { overflow: hidden; padding: 0 0 130px; }
.tools__track {
  display: flex; gap: 36px; width: max-content;
  white-space: nowrap; font-size: 18px; padding-left: 40px;
  animation: marquee 40s linear infinite;
}
.tools__group {
  display: flex; align-items: center; gap: 36px;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Tools strip inside the Projects section */
.project-tools { margin-top: 28px; }
.project-tools__label { margin: 0 0 24px; font-size: 16px; font-style: italic; color: var(--muted); opacity: .55; }
/* Pull the strip out past the section's side padding so it runs edge to edge */
.project-tools .tools { padding: 0; margin-inline: calc(-1 * var(--gutter)); }
/* Skills under the About Me dropdowns: category dropdowns (native <details>) with outlined tags */
/* About Me: at least 40px between the groups; main.js adds a fixed extra top margin (worked out
   while everything is closed) so the column ends level with the text on the left, without anything
   moving when a dropdown opens */
.skill-groups { padding-top: 40px; }
#about .service__toggle { padding-block: 18px; }
.skill-group { border-bottom: var(--rule); }
.skill-group:first-of-type { border-top: var(--rule); }
/* small grey label above a dropdown list */
.list-label { margin: 0 0 14px; font-size: 14px; font-weight: 400; color: var(--muted); }
.skill-group summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-size: 20px; line-height: 1.4; color: var(--ink);
}
.skill-group summary::-webkit-details-marker { display: none; }
.skill-group__chevron { flex-shrink: 0; color: var(--ink); transition: transform .2s ease; }
.skill-group[open] .skill-group__chevron { transform: rotate(180deg); }
.skill-chips { margin: 0; padding: 0 0 24px; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.skill-chips li { padding: 7px 16px; border: 1px solid var(--ink); border-radius: 999px; font-size: 16px; line-height: 1.3; }
@media (prefers-reduced-motion: reduce) { .tools__track { animation: none; } }

/* ---------- Testimonials ---------- */
.section--testimonials { padding-bottom: 120px; }
.testimonials {
  padding: 120px 96px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
}
.testimonial {
  margin: 0; flex-grow: 1; max-width: 820px;
  display: flex; flex-direction: column; align-items: center; gap: 40px;
}
.testimonial blockquote {
  margin: 0; font-size: 30px; line-height: 1.3; letter-spacing: -0.3px; text-align: center;
}
.testimonial figcaption { display: flex; gap: 16px; }
.testimonial__dash { width: 20px; height: 2px; background: var(--ink); margin-top: 15px; }
.testimonial__who { display: flex; flex-direction: column; font-size: 22px; line-height: 1.4; }

/* ---------- Contact ---------- */
.contact-grid { padding-top: 72px; }
.contact-copy { display: flex; flex-direction: column; gap: 32px; font-size: 24px; line-height: 1.3; max-width: 520px; }
.contact-copy p { margin: 0; }
.contact-copy a { text-underline-offset: 4px; }
.page-contact .contact-copy { font-size: 26px; max-width: 540px; }

.form { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-size: 16px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

.input {
  width: 100%; height: 46px; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 17px;
}
textarea.input { height: 140px; padding: 10px 12px; resize: vertical; }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 36px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.select-wrap svg { position: absolute; right: 12px; top: 15px; pointer-events: none; }

.btn {
  align-self: flex-start; min-height: 44px; padding: 0 30px;
  border: var(--rule); border-radius: 0;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 18px; cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--bg); }

.form-status { margin: 0; font-size: 16px; color: var(--ink-soft); min-height: 1.4em; }

/* ---------- Blogs ---------- */
.blogs { border-top: var(--rule); padding-top: 64px; }
.blogs h2 { margin: 0 0 56px; text-align: center; font-size: 30px; font-weight: 400; letter-spacing: -0.4px; }
.blogs__grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blog { padding: 8px 48px; display: flex; flex-direction: column; }
.blog + .blog { border-left: var(--rule); }
.blog h3 { margin: 0; font-size: 20px; font-weight: 400; line-height: 1.45; }
.blog__date { margin-top: 28px; font-size: 14px; }
.blog a {
  margin-top: 12px; font-size: 18px; text-underline-offset: 4px;
  display: inline-flex; align-items: center; gap: 12px; min-height: 28px;
}

/* ---------- Let's connect ---------- */
.connect__lead { margin: 0; max-width: 520px; font-size: 20px; line-height: 1.45; }
.connect__links {
  display: flex; flex-direction: column;
  border-top: var(--rule);
  gap: 8px;
}
.connect__link {
  display: flex; align-items: center; gap: 24px;
  padding: 18px 0; border-bottom: var(--rule);
  color: var(--ink); text-decoration: none;
}
.connect__text { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; }
.connect__label { font-size: 24px; letter-spacing: -0.5px; line-height: 1.15; font-weight: 700; }
.connect__handle { font-size: 16px; color: var(--muted); }
.connect__link:hover { color: var(--ink); }
.connect__link:hover .circle-btn { background: var(--ink); color: var(--bg); }

/* ---------- Newsletter ---------- */
.zigzag {
  display: block; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='14'%3E%3Cpath d='M0 10L6 4L12 10' fill='none' stroke='%23111111' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x;
}
.newsletter {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px var(--gutter) 88px; text-align: center;
}
.newsletter h2 { margin: 0; font-size: 32px; font-weight: 400; letter-spacing: -0.4px; }
.newsletter > p { margin: 20px 0 28px; max-width: 440px; font-size: 18px; line-height: 1.5; color: var(--ink-soft); }
.newsletter__form { display: flex; gap: 10px; width: 100%; max-width: 466px; }
.newsletter__form .input { height: 48px; flex: 1 1 auto; min-width: 0; }
.newsletter__submit {
  width: 76px; height: 48px; flex-shrink: 0; padding: 0;
  border: none; border-radius: 0; background: #4a4a4a; color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.newsletter__submit:hover { background: var(--ink); }
.newsletter .form-status { margin-top: 12px; }
.newsletter__fine { margin: 28px 0 0; font-size: 14px; color: var(--muted); }
.newsletter__fine a { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  min-height: 120px;
  border-top: var(--rule);
  padding: 24px var(--gutter);
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.copyright { font-size: 14px; color: var(--muted); }
/* When nothing follows it (no social links), push the copyright to the right edge */
.copyright:last-child { margin-left: auto; }
.copyright a { color: var(--muted); text-underline-offset: 3px; }
.copyright a:hover { color: var(--ink); }
.social { margin-left: auto; display: flex; gap: 28px; font-size: 16px; flex-wrap: wrap; }

/* ---------- Clients (About) ---------- */
.clients {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column;
  font-size: 54px; line-height: 1.16; font-weight: 300; letter-spacing: -1px;
}
.clients a { text-decoration-thickness: 2px; text-underline-offset: 8px; }
.portrait { height: 500px; }

/* ---------- Rights page ---------- */
.legal { padding: 40px var(--gutter) 140px; }
.legal h1 {
  margin: 0; padding-bottom: 24px; border-bottom: var(--rule);
  font-size: 44px; font-weight: 400; letter-spacing: -0.9px;
}
.legal__layout {
  padding-top: 56px;
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 80px; align-items: start;
}
.legal__toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.legal__toc a { text-decoration: none; }
.legal__toc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal__body { max-width: 760px; }
.legal__body section { padding-bottom: 48px; scroll-margin-top: 24px; }
.legal__body section + section { border-top: 1px solid #d6d6d6; padding-top: 40px; }
.legal__body h2 { margin: 0 0 16px; font-size: 28px; font-weight: 400; letter-spacing: -0.4px; }
.legal__body p, .legal__body li { font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.legal__body p { margin: 0 0 14px; }
.legal__body ul { margin: 0 0 14px; padding-left: 22px; }
.legal__updated { font-size: 14px; color: var(--muted); margin: 0 0 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  /* timeline turns vertical: a line down the left with the steps in order */
  .timeline { display: block; padding-top: 48px; }
  .timeline__line { display: none; }
  .timeline__steps { display: flex; flex-direction: column; gap: 36px; position: relative; margin: 0; padding: 0 0 0 64px; list-style: none; }
  .timeline__steps::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 20px; width: 1.5px; background: var(--ink); }
  .timeline__step { display: block; padding: 0; }
  .timeline__step--up .timeline__text, .timeline__step--down .timeline__text { padding: 0; margin: 0; }
  .timeline__dot { position: absolute; left: -64px; top: -4px; margin: 0; width: 44px; height: 44px; }
  :root { --gutter: 48px; }
  .testimonials { padding: 80px 0 0; }
  .clients { font-size: 44px; }
}

@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .site-header { height: auto; padding-top: 20px; padding-bottom: 20px; }
  .main-nav { gap: 4px; }
  .main-nav a { font-size: 16px; padding: 6px 4px; }
  .section { padding-bottom: 96px; }
  .section-title { font-size: 32px; }
  .hero { gap: 40px; }
  .section--projects { padding-top: 96px; }
  .section-title--small { font-size: 20px; }
  .two-col, .field-row, .legal__layout { grid-template-columns: 1fr; gap: 48px; }
  .field-row { gap: 22px; }
  .projects { flex-direction: column; align-items: stretch; }
  .project__card { height: 360px; }
  .to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .project__info { padding: 24px; }
  .project__tag { bottom: 24px; right: 24px; left: 24px; }
  .case-hero__num { margin-top: 40px; }
  .case-hero__lead { font-size: 18px; }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-cover { height: 360px; margin-top: 48px; margin-bottom: 96px; }
  .case-image { height: 300px; margin-top: 40px; }
  .case-section .two-col > div:empty { display: none; }
  .carousel { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .carousel__title { font-size: 20px; }
  .carousel__text { font-size: 16px; }
  .carousel__btn { width: 40px; height: 40px; }
  .carousel__btn--prev { left: 12px; }
  .carousel__btn--next { right: 12px; }
  :is(.case-section, #about) .service__toggle { font-size: 20px; padding: 18px 0; }
  :is(.case-section, #about) .service__body { padding-left: 48px; font-size: 16px; }
  .case-statement, .case-quote p { font-size: 24px; }
  .case-quote { padding-left: 20px; }
  .case-prototype { translate: none; }
  .case-photo { height: auto; min-height: 0; }
  .case-prototype iframe { height: 760px; }
  .projects .circle-btn { align-self: center; }
  .testimonials { padding-top: 56px; gap: 16px; }
  .testimonial blockquote { font-size: 22px; }
  .testimonial__who { font-size: 18px; }
  .circle-btn { width: 44px; height: 44px; }
  .contact-copy, .page-contact .contact-copy { font-size: 20px; }
  .connect__label { font-size: 30px; }
  .blogs__grid { grid-template-columns: 1fr; }
  .blog { padding: 24px 0; }
  .blog + .blog { border-left: none; border-top: var(--rule); }
  .clients { font-size: 36px; }
  .portrait { height: 360px; }
  .legal h1 { font-size: 34px; }
  .legal__toc { position: static; }
  .site-footer { gap: 20px; }
  .social { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
  /* Name and nav don't fit side by side on phones, so the nav drops below the name */
  .site-header { flex-wrap: wrap; row-gap: 8px; }
  .wordmark { font-size: 20px; }
  .main-nav { flex-wrap: nowrap; gap: 2px; width: 100%; justify-content: flex-start; margin-left: -5px; }
  .main-nav a { font-size: 15px; padding: 6px 5px; }
}