:root {
  --bg: #f7f7f5;
  --bg-alt: #eef1f1;
  --ink: #22313a;
  --ink-soft: #5b6b73;
  --line: #d6dde0;
  --teal: #3d8a9e;
  --teal-deep: #2b6b7c;
  --teal-tint: #dcebef;
  --max: 1180px;
  --col: 640px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
b, strong { color: var(--ink); font-weight: 600; }
img, svg { display: block; max-width: 100%; }

/* ---------- NAV ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
header.scrolled { border-bottom-color: var(--line); }
.nav {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo-mark {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  font-weight: 600; font-size: 12px; letter-spacing: .02em;
}
.logo-text { line-height: 1.05; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }
.logo-text span { display: block; font-size: 15px; letter-spacing: .08em; font-weight: 600; }
.nav ul { list-style: none; display: flex; gap: 28px; align-items: center; }
.nav ul a {
  font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft);
  padding-bottom: 3px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav ul a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav .icon-link { display: grid; place-items: center; }
.nav .icon-link svg { width: 17px; height: 17px; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--ink); }

/* ---------- LAYOUT ---------- */
section { padding: 120px 24px; }
.col { max-width: var(--col); margin: 0 auto; }
.wide { max-width: var(--max); margin: 0 auto; }
.eyebrow {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--teal);
  font-weight: 500; margin-bottom: 18px;
}
h1, h2, h3 { color: var(--ink); font-weight: 400; line-height: 1.25; }
h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 36px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 28px; }
h3 { font-size: 18px; font-weight: 500; margin-bottom: 12px; }
h1 b, h2 b { font-weight: 600; }
.accent { color: var(--teal); }
p + p { margin-top: 22px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  padding: 15px 30px; border: 1.5px solid var(--ink); color: var(--ink);
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: var(--teal-deep); border-color: var(--teal-deep); }

/* ---------- HERO ---------- */
.hero { padding-top: 110px; padding-bottom: 60px; }
.hero .col p { font-size: 17px; }
.hero-cta { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- SKETCH-TO-FACTORY DRAWING ---------- */
.drawing-wrap {
  position: relative; max-width: var(--max); margin: 40px auto 0; padding: 0 24px;
}
.drawing {
  position: relative; background: #fff; border: 1px solid var(--line);
  aspect-ratio: 16 / 7; overflow: hidden;
}
.drawing .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--bg-alt) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-alt) 1px, transparent 1px);
  background-size: 32px 32px;
}
.drawing .circle {
  position: absolute; left: 50%; top: 50%; width: 78%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border: 1px solid var(--line); border-radius: 50%;
}
.drawing .circle.two { width: 52%; }
.drawing svg.shoe { position: absolute; inset: 6% 10%; width: 80%; height: 88%; }
.shoe path, .shoe line, .shoe circle, .shoe ellipse {
  fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.shoe .thin { stroke-width: 1; stroke: var(--ink-soft); }
.shoe .dash { stroke-dasharray: 4 5; stroke: var(--teal); stroke-width: 1.2; }
.shoe .dim { stroke: var(--teal); stroke-width: 1; }
.shoe text { font-family: "Poppins", sans-serif; font-size: 11px; fill: var(--teal); letter-spacing: .1em; }
.draw { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); }
.drawing.in .draw { animation: draw 2.6s cubic-bezier(.6,.1,.3,1) forwards; }
.drawing.in .draw.d2 { animation-delay: .6s; }
.drawing.in .draw.d3 { animation-delay: 1.1s; }
.shoe .late { opacity: 0; transition: opacity .8s 2.2s; }
.drawing.in .late { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.drawing-meta {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  padding: 12px 2px 0;
}

/* ---------- MARQUEE ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap; padding: 16px 0; margin-top: 90px;
  background: var(--bg);
}
.marquee-track { display: inline-flex; animation: marquee 38s linear infinite; }
.marquee span {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  font-weight: 500; padding-right: .42em;  /* same space as after the other slashes, so the loop reads evenly */
}
.marquee span em { font-style: normal; color: var(--teal); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- DESIGNERS ---------- */
.designers { background: var(--teal); color: #e4f1f4; }
.designers h2, .designers b { color: #fff; }
.designers .eyebrow { color: #bfe0e8; }
.designers .col p { font-size: 17px; }
.who {
  margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.25);
}
.who div { background: var(--teal); padding: 28px 26px; }
.who h3 { color: #fff; font-size: 15px; }
.who p { font-size: 14px; line-height: 1.65; }

/* ---------- PROCESS ---------- */
.process-head { max-width: var(--col); margin: 0 auto 70px; text-align: left; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.steps::before {
  content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: var(--line);
}
.steps li { position: relative; padding-right: 22px; }
.steps .num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink);
  display: grid; place-items: center; font-size: 13px; font-weight: 500; color: var(--ink);
  margin-bottom: 26px; position: relative; transition: background .3s, color .3s;
}
.steps li:hover .num { background: var(--ink); color: var(--bg); }
.steps h3 { font-size: 16px; }
.steps p { font-size: 14px; line-height: 1.65; }

/* ---------- SERVICES ---------- */
.services { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-top: 64px; }
.svc { border-top: 1.5px solid var(--ink); padding-top: 26px; }
.svc .tag { font-size: 12px; letter-spacing: .18em; color: var(--teal); font-weight: 500; }
.svc h3 { font-size: 22px; font-weight: 500; margin: 6px 0 14px; }
.svc > p { font-size: 14.5px; margin-bottom: 22px; }
.svc ul { list-style: none; }
.svc li {
  font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--bg-alt); color: var(--ink);
  display: flex; gap: 12px;
}
.svc li::before { content: "—"; color: var(--teal); }
.extra {
  margin-top: 72px; padding: 34px 36px; background: var(--bg); border: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
}
.extra h3 { margin-bottom: 4px; }
.extra p { font-size: 14.5px; max-width: 620px; }

/* ---------- PARTNERS / MAP ---------- */
.partners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.regions { list-style: none; border-top: 1px solid var(--line); }
.regions li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink);
  font-size: 15px;
}
.regions li span:last-child { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.stat .n { font-size: 40px; color: var(--ink); font-weight: 500; line-height: 1; }
.stat .n small { font-size: 20px; color: var(--teal); }
.stat .l { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-top: 10px; line-height: 1.5; }

/* ---------- WHY ---------- */
.why { background: var(--bg-alt); }
.why-list { list-style: none; margin-top: 40px; counter-reset: why; }
.why-list li {
  counter-increment: why; display: grid; grid-template-columns: 56px 1fr; gap: 10px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.why-list li::before {
  content: counter(why, decimal-leading-zero); font-size: 13px; color: var(--teal); font-weight: 500; padding-top: 3px;
}
.why-list b { display: block; font-weight: 500; font-size: 17px; margin-bottom: 2px; }
.why-list span { font-size: 14.5px; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; }
.contact-info { margin-top: 36px; font-size: 15px; }
.contact-info div { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.contact-info div span:first-child { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.contact-info a, .contact-info div span:last-child { color: var(--ink); }
.contact-info a:hover { color: var(--teal); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form .full { grid-column: 1 / -1; }
label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); padding: 13px 14px; border-radius: var(--r-sm);
  transition: border-color .2s; appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2322313a' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); }
textarea { min-height: 140px; resize: vertical; }
form .btn { cursor: pointer; justify-self: start; font-family: inherit; }
.form-note { font-size: 13px; }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 24px; }
.foot {
  max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.foot .social { display: flex; gap: 22px; }
.foot a:hover { color: var(--ink); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .draw { stroke-dashoffset: 0 !important; animation: none !important; }
  .shoe .late { opacity: 1; transition: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  section { padding: 90px 24px; }
  .svc-grid { grid-template-columns: 1fr; gap: 48px; }
  .partners-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 1px; height: auto; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; gap: 0 22px; padding: 0; }
  .steps .num { margin: 0; grid-row: span 2; }
  .who { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav ul {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; display: none;
  }
  .nav ul.open { display: flex; }
  .nav ul li { width: 100%; }
  .nav ul a { display: block; padding: 12px 0; border: 0; }
  .drawing { aspect-ratio: 4 / 3; }
  .drawing svg.shoe { inset: 8% 4%; width: 92%; height: 84%; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .stat .n { font-size: 30px; }
  form { grid-template-columns: 1fr; }
  .extra { padding: 26px 22px; }
}

/* ---------- ABOUT extras ---------- */
.btn.light { border-color: #fff; color: #fff; }
.btn.light:hover { background: #fff; color: var(--teal-deep); }
.who-head { margin-top: 80px; }
.who-head + .who { margin-top: 0; }
.nav ul a.active { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- WORK PAGE ---------- */
.work-hero { padding-bottom: 50px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.filters button {
  font: inherit; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  background: transparent; color: var(--ink-soft); border: 1px solid var(--line);
  padding: 9px 18px; cursor: pointer; transition: all .2s;
}
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.work-section { padding-top: 20px; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.work-card { cursor: pointer; text-align: left; background: none; border: 0; font: inherit; color: inherit; padding: 0; }
.work-card[hidden] { display: none; }
.work-img {
  position: relative; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--line); overflow: hidden;
}
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-img .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background-image:
    linear-gradient(var(--bg-alt) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-alt) 1px, transparent 1px);
  background-size: 24px 24px; transition: transform .6s ease;
}
.work-img .ph svg { width: 72%; }
.work-img .ph path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.work-img .ph .t { stroke: var(--teal); stroke-width: 1.1; stroke-dasharray: 4 5; }
.work-card:hover .work-img img, .work-card:hover .work-img .ph { transform: scale(1.04); }
.work-img .stage {
  position: absolute; left: 12px; top: 12px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--bg); color: var(--ink); padding: 4px 9px; border: 1px solid var(--line);
}
.work-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.work-meta span:first-child { color: var(--teal); font-weight: 500; }
.work-card h3 { margin: 6px 0 4px; font-size: 18px; }
.work-card p { font-size: 14px; line-height: 1.6; }
.empty { display: none; padding: 60px 0; text-align: center; }

/* ---------- PROJECT PAGE ---------- */
.case-hero { padding-top: 130px; padding-bottom: 56px; }
.case-back { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 30px; }
.case-back:hover { color: var(--ink); }
.case-hero h1 { margin-bottom: 30px; }
.case-intro { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start; }
.case-intro > p { font-size: 17px; }
.case-intro dl { border-top: 1px solid var(--line); }
.case-intro dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.case-intro dt { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.case-intro dd { color: var(--ink); text-align: right; }
.case-cover { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.case-cover img, .case-imgs img { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.case-cover img { width: 100%; max-height: 82vh; object-fit: contain; }
.case-section { padding: 90px 24px 0; }
.case-section-head { max-width: var(--col); margin-bottom: 36px; }
.case-section-head h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 14px; }
.case-imgs { display: grid; gap: 28px; }
.case-imgs img { width: auto; max-width: 100%; max-height: 88vh; margin: 0 auto; }
.case-nav { max-width: var(--max); margin: 0 auto; padding: 110px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case-nav a { display: block; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s, background .2s; }
.case-nav a:hover { border-color: var(--ink); background: #fff; }
.case-nav span { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.case-nav b { font-size: 18px; font-weight: 500; }
.case-nav .next { text-align: right; }
/* project page building blocks: section ref, fact strip, style spotlight, captioned grid */
.case-section-head.with-ref { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: end; }
.case-section-head.with-ref > div { max-width: var(--col); }
#case figure { margin: 0; }
#case figure img { display: block; width: 100%; border-radius: var(--r-md); background: #eeeeec; }
#case figcaption { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; margin-top: 10px; }
.case-ref img { aspect-ratio: 4 / 3; object-fit: cover; }
.case-factstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 36px; }
.case-factstrip div { background: #fff; padding: 20px 22px; }
.case-factstrip dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); font-weight: 500; margin-bottom: 6px; }
.case-factstrip dd { color: var(--ink); font-size: 16px; line-height: 1.45; }
.case-style { padding: 40px 0 8px; border-top: 1px solid var(--line); margin-top: 40px; }
.case-section-head + .case-style { margin-top: 0; }
.style-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.style-head span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); font-weight: 500; white-space: nowrap; }
.style-head h3 { font-size: 20px; margin: 0; }
.style-main { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.style-main.solo { grid-template-columns: 1fr; }
.style-refs { display: grid; gap: 20px; }
.style-hero img { aspect-ratio: 16 / 9; object-fit: cover; }
.style-refs img { aspect-ratio: 4 / 3; object-fit: contain; }
.style-colors { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 14px; margin-top: 14px; }
.style-text { max-width: var(--col); margin: -8px 0 22px; font-size: 15px; }
.style-colors img { aspect-ratio: 16 / 9; object-fit: cover; }
.case-grid { display: grid; gap: 24px; }
.case-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.case-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.case-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.case-grid.cols-5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.case-grid.cols-6 { grid-template-columns: repeat(6, 1fr); gap: 14px; }
/* let long captions wrap instead of stretching a column */
.case-grid, .style-colors { grid-auto-columns: minmax(0, 1fr); }
.case-grid > figure, .style-colors > figure { min-width: 0; }
#case figcaption { overflow-wrap: anywhere; }
#case .case-grid img { aspect-ratio: 4 / 3; object-fit: contain; background: #fff; outline: 1px solid var(--line); outline-offset: -1px; }
#case .case-grid.fit-cover img { object-fit: cover; outline: 0; }
.case-grid.tall img { aspect-ratio: 3 / 4; }
.case-grid + .case-grid, .case-imgs + .case-grid, .case-grid + .case-imgs { margin-top: 24px; }
.case-swatches { margin-bottom: 28px; }
.swatch-label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.swatch-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.swatch span { display: block; aspect-ratio: 1; border-radius: var(--r-md); border: 1px solid rgba(0, 0, 0, .08); }
.swatch code { display: block; margin-top: 8px; font: 11px/1.4 ui-monospace, Menlo, monospace; color: var(--ink-soft); text-transform: uppercase; }
@media (max-width: 760px) {
  .case-hero { padding-top: 110px; }
  .case-intro { grid-template-columns: 1fr; gap: 32px; }
  .case-section { padding-top: 64px; }
  .case-imgs { gap: 16px; }
  .case-nav { grid-template-columns: 1fr; padding: 80px 24px; }
  .case-section-head.with-ref { grid-template-columns: 1fr; gap: 24px; }
  .case-ref { max-width: 280px; }
  .style-main { grid-template-columns: 1fr; }
  .style-refs { grid-template-columns: 1fr 1fr; }
  .style-colors { grid-template-columns: 1fr 1fr; gap: 10px; }
  .case-grid.cols-3, .case-grid.cols-4, .case-grid.cols-5, .case-grid.cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swatch-row { grid-template-columns: repeat(4, 1fr); }
  .case-grid.cols-2 { grid-template-columns: 1fr; }
}
.work-cta { background: var(--teal); color: #e4f1f4; text-align: center; }
.work-cta h2 { color: #fff; }
.work-cta b { color: #fff; }
.work-cta .col p { margin-bottom: 36px; }

@media (max-width: 960px) {
  .work-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }
}

section[id] { scroll-margin-top: 100px; }

/* ---------- PHOTO HERO (work page) ---------- */
.photo-hero {
  position: relative; color: #d9e4e8; margin-bottom: 70px;
  padding-top: 150px; padding-bottom: 80px;
  background:
    linear-gradient(100deg, rgba(18, 28, 34, .86) 0%, rgba(18, 28, 34, .62) 55%, rgba(18, 28, 34, .35) 100%),
    var(--hero-img) center 40% / cover no-repeat;
}
.photo-hero h1, .photo-hero b { color: #fff; }
.photo-hero .eyebrow { color: #9fd0dc; }
.photo-hero .filters button { color: #e4f1f4; border-color: rgba(255, 255, 255, .35); }
.photo-hero .filters button:hover { border-color: #fff; color: #fff; }
.photo-hero .filters button[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--ink); }
@media (max-width: 760px) { .photo-hero { padding-top: 110px; padding-bottom: 60px; } }

/* ---------- ROUNDED (FILLET) CORNERS ---------- */
:root { --r-sm: 10px; --r-md: 14px; --r-lg: 18px; }
.btn, .filters button { border-radius: 999px; }
input, select, textarea { border-radius: var(--r-sm); }
.drawing, .work-img, .extra, .who { border-radius: var(--r-lg); }
.who { overflow: hidden; }
.who div:first-child { border-radius: var(--r-lg) 0 0 var(--r-lg); }
.who div:last-child { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.work-img .stage { border-radius: 6px; }
@media (max-width: 960px) {
  .who div:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .who div:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
}

/* ---------- FLOATING PILL NAV ---------- */
header {
  position: fixed; top: 16px; left: 0; right: 0;
  background: transparent; border: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  pointer-events: none;
}
header.scrolled { border-bottom-color: transparent; }
.nav {
  pointer-events: auto; position: relative;
  width: fit-content; max-width: calc(100% - 32px); margin: 0 auto;
  gap: 28px; padding: 7px 7px 7px 8px;
  border-radius: 999px;
  background: rgba(247, 247, 245, .74);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 8px 30px rgba(20, 30, 36, .10);
  transition: background .3s, box-shadow .3s;
}
header.scrolled .nav { background: rgba(247, 247, 245, .86); box-shadow: 0 10px 34px rgba(20, 30, 36, .14); }
.logo-mark { width: auto; height: 34px; border: 0; border-radius: 0; margin-left: 10px; }
.logo { padding-right: 4px; }
.nav ul { gap: 2px; }
.nav ul a {
  display: block; padding: 8px 14px; border: 0; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav ul a:hover { background: rgba(34, 49, 58, .08); color: var(--ink); }
.nav ul a.active { background: var(--ink); color: var(--bg); }
.nav .icon-link { padding: 8px 10px; }

@media (max-width: 760px) {
  .nav { width: calc(100% - 32px); justify-content: space-between; }
  .menu-btn { border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center; }
  .nav ul {
    top: calc(100% + 8px); padding: 10px; border-radius: 22px;
    background: rgba(247, 247, 245, .92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(20, 30, 36, .14);
  }
  .nav ul a { padding: 12px 16px; }
}

/* ---------- SELECTED WORK (homepage) ---------- */
.featured { padding-top: 40px; }
.featured-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.featured-head h2 { margin-bottom: 0; }
a.work-card { display: block; }
.who { margin-top: 64px; }

/* ---------- EXPERIENCE ---------- */
.xp { list-style: none; border-top: 1px solid var(--line); }
.xp li {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.xp .when { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 500; padding-top: 4px; }
.xp h3 { margin-bottom: 2px; }
.xp .where { color: var(--ink); font-size: 14.5px; margin-bottom: 8px; }
.xp .where + p { margin-top: 0; font-size: 14.5px; }
@media (max-width: 760px) { .xp li { grid-template-columns: 1fr; gap: 6px; } }

.about-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 28px; border: 3px solid rgba(255,255,255,.5); }

/* Nav hover: red pill */
:root { --red: #d63a2f; }
.nav ul a:hover, .nav ul a.active:hover { background: var(--red); color: #fff; }

/* =====================================================================
   2026 REFRESH — editorial, quiet layout (after monsieurgermain.com)
   with a modern near-black / warm-white palette and one bright accent.
   Palette is taken from Evan's headshot (2026).
   ===================================================================== */
:root {
  /* palette taken from the headshot: backdrop, black tee, sage cap, tortoiseshell frames */
  --bg: #eeebe5;
  --bg-alt: #e4e1d9;
  --surface: #f8f6f2;
  --ink: #1e1d20;
  --ink-soft: #5d5b57;
  --line: #d9d5cc;
  --sage: #bdcac1;
  --sage-deep: #5e7066;
  --accent: #2450c8;        /* cobalt blue: fills, underlines, big type */
  --accent-text: #1f45ad;   /* deeper cobalt: small labels on light backgrounds */
  --accent-light: #8aa8ff;  /* light cobalt: accent text on dark backgrounds */
  --accent-tint: color-mix(in srgb, var(--accent) 12%, transparent);
  --teal: var(--accent-text);
  --teal-deep: var(--ink);
  --teal-tint: var(--accent-tint);
  --red: var(--accent);
  --r-sm: 2px; --r-md: 3px; --r-lg: 4px;
}
::selection { background: var(--accent); color: #fff; }
body { background: var(--bg); }

/* ---------- Flat top bar instead of the floating pill ---------- */
header {
  position: sticky; top: 0; left: 0; right: 0; pointer-events: auto;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
header.scrolled { border-bottom-color: var(--line); }
.nav, header.scrolled .nav {
  width: auto; max-width: var(--max); margin: 0 auto; padding: 18px 24px;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.nav ul { gap: 26px; }
.nav ul a, .nav ul a.active {
  padding: 4px 0; border-radius: 0; background: none; color: var(--ink-soft);
  font-size: 12.5px; letter-spacing: .1em;
  border-bottom: 1.5px solid transparent;
}
.nav ul a:hover, .nav ul a.active:hover { background: none; color: var(--ink); border-bottom-color: var(--accent); }
.nav ul a.active { color: var(--ink); border-bottom-color: var(--accent); }
.nav .icon-link { padding: 4px 0; border: 0 !important; }
.nav .icon-link:hover { color: var(--accent-text); }
.logo-text span { letter-spacing: .06em; }

/* ---------- Type: lighter, calmer, bold keywords ---------- */
h1, h2 { font-weight: 400; letter-spacing: -.01em; }
h1 b, h2 b { font-weight: 600; }
.accent { color: var(--accent); }
.eyebrow { color: var(--accent-text); letter-spacing: .22em; }
.hero { padding-top: 130px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(32px, 4.2vw, 48px); }

/* ---------- Square, quiet buttons ---------- */
.btn, .filters button { border-radius: 0; }
.btn { border-width: 1px; padding: 14px 28px; }
.btn.solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.solid:hover, .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- About: stays on the light background ---------- */
.designers { background: var(--surface); color: var(--ink-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.designers h2, .designers b { color: var(--ink); }
.designers .eyebrow { color: var(--accent-text); }
.who { background: var(--line); border-color: var(--line); }
.who div { background: var(--surface); }
.who h3 { color: var(--ink); }
.about-photo { border: 0; outline: 1px solid var(--line); outline-offset: 4px; }
.btn.light { border-color: var(--ink); color: var(--ink); }
.btn.light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Marquee, skills, lists: accent as the single pop ---------- */
.marquee { margin-top: 70px; border-color: var(--ink); background: var(--ink); }
.marquee span { color: #f6f5f1; }
.marquee span em { color: var(--accent-light); }
.services { background: var(--bg); }
.svc { border-top-color: var(--ink); }
.extra { background: var(--surface); }

/* ---------- Cards and project pages: flatter, crisper ---------- */
.work-img, #case figure img, .case-cover img, .case-imgs img, .case-factstrip, .case-nav a { border-radius: var(--r-lg); }
.work-img .stage { border-radius: 0; background: var(--ink); color: #fff; border: 0; }
.work-card:hover h3 { color: var(--accent-text); }
.work-meta span:first-child { color: var(--accent-text); }
.case-factstrip div { background: var(--surface); }
.case-nav a:hover { border-color: var(--accent); background: var(--surface); }
.case-nav a:hover b { color: var(--accent-text); }
.style-head span, .xp .when { color: var(--accent-text); }

/* ---------- Portfolio page hero and call to action ---------- */
.photo-hero { color: #e9e8e3; background: linear-gradient(100deg, rgba(14, 14, 14, .88) 0%, rgba(14, 14, 14, .64) 55%, rgba(14, 14, 14, .35) 100%), var(--hero-img) center 40% / cover no-repeat; }
.photo-hero .eyebrow { color: var(--accent-light); }
.photo-hero .filters button { color: #e9e8e3; border-color: rgba(255, 255, 255, .35); }
.photo-hero .filters button:hover { border-color: var(--accent); color: #fff; }
.photo-hero .filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.work-cta { background: var(--ink); color: #c9c8c2; }
.work-cta .eyebrow { color: var(--accent-light) !important; }
.work-cta .btn.light { border-color: #fff; color: #fff; }

/* ---------- Footer: centered and minimal ---------- */
footer { border-top-color: var(--line); }
.foot { justify-content: center; text-align: center; flex-direction: column; gap: 12px; }
.foot .social a:hover { color: var(--accent-text); }

/* ---------- Forms ---------- */
input, select, textarea { background: var(--surface); border-radius: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }

@media (max-width: 760px) {
  .nav, header.scrolled .nav { width: auto; padding: 14px 20px; }
  .nav ul { top: 100%; border-radius: 0; background: var(--bg); box-shadow: none; border: 0; border-bottom: 1px solid var(--line); padding: 8px 20px 18px; }
  .nav ul a { padding: 12px 0; border-bottom: 0; }
  .menu-btn { border-radius: 0; }
}
/* the bar no longer floats over the page, so pages need less top padding */
.hero { padding-top: 90px; }
.case-hero { padding-top: 64px; }
.photo-hero { padding-top: 110px; }
@media (max-width: 760px) { .hero { padding-top: 56px; } .case-hero { padding-top: 40px; } .photo-hero { padding-top: 80px; } }
@media (max-width: 760px) {
  .nav ul.open { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 22px; }
  .nav ul li { width: 100%; }
  .nav ul li:has(.icon-link) { width: auto; padding-top: 10px; }
  .nav ul a { padding: 9px 0; line-height: 1.4; font-size: 13px; }
  .nav .icon-link { justify-content: flex-start; }
}

/* ---------- Headshot palette: sage as the quiet second color ---------- */
.marquee { background: var(--ink); }
.marquee span { color: var(--bg); }
.work-img .stage { background: var(--sage); color: var(--ink); }
.who div { background: var(--surface); }
.who h3 { color: var(--sage-deep); }
.svc .tag, .svc li::before { color: var(--sage-deep); }
.case-factstrip dt { color: var(--sage-deep); }
.designers { background: var(--surface); }
.about-photo { display: block; width: 240px; height: 240px; margin: 0 auto 36px; border-radius: 50%; object-fit: cover; object-position: center top; outline: 0; box-shadow: 0 0 0 7px var(--accent); }
@media (max-width: 760px) { .about-photo { width: 200px; height: 200px; } }
.work-cta { background: var(--ink); }
.photo-hero .filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }

/* ---------- Image-led homepage hero ---------- */
.hero-split { padding-top: 56px; padding-bottom: 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.hero-text h1 { font-size: clamp(32px, 3.6vw, 50px); margin-bottom: 26px; }
.hero-text > p:not(.eyebrow) { font-size: 16.5px; max-width: 470px; }
.hero-media { position: relative; display: block; background: var(--surface); aspect-ratio: 5 / 4; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; transition: transform .8s ease; }
.hero-media:hover img { transform: scale(1.03); }
/* fill: photo runs edge to edge instead of sitting inside the frame; --pos sets which part stays in view */
.hero-media.fill img { object-fit: cover; object-position: center var(--pos, 50%); padding: 0; mix-blend-mode: normal; }
.hero-media.fill .hero-caption { background: rgba(247, 245, 240, .85); padding: 5px 9px; }
.hero-caption { position: absolute; left: 18px; bottom: 16px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.hero-media:hover .hero-caption { color: var(--accent-text); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { order: -1; aspect-ratio: 4 / 3; }
  .hero-split { padding-top: 24px; }
}

/* ---------- Impact line on cards ---------- */
.work-card p.work-impact { font-size: 12px; letter-spacing: .06em; color: var(--ink); font-weight: 500; margin: 2px 0 8px; }

/* ---------- Portfolio: Selected work (large) and More work (compact) ---------- */
.work-group[hidden] { display: none; }
.group-head { margin-bottom: 28px; }
.group-head h2 { margin: 0; }
#group-more { margin-top: 110px; padding-top: 70px; border-top: 1px solid var(--line); }
.featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
.featured-grid .work-img { aspect-ratio: 16 / 11; }
.featured-grid .work-card h3 { font-size: 24px; margin-top: 10px; }
.featured-grid .work-card p { font-size: 15px; max-width: 520px; }
.archive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
.archive-grid .work-card h3 { font-size: 15.5px; }
.archive-grid .work-card p:not(.work-impact) { display: none; }
.archive-grid .work-meta { font-size: 10.5px; }
@media (max-width: 960px) { .archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .featured-grid { grid-template-columns: 1fr; gap: 44px; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  #group-more { margin-top: 70px; padding-top: 50px; }
}

/* ---------- Impact line under project titles ---------- */
.case-impact { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); font-weight: 500;
  border-left: 3px solid var(--accent); padding-left: 14px; margin: -14px 0 30px; }

/* ---------- Full-screen image viewer ---------- */
#case-sections img, #case-cover img { cursor: zoom-in; }
dialog.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(20, 19, 21, .94); color: #e9e7e2; }
dialog.lightbox::backdrop { background: rgba(20, 19, 21, .6); }
.lb-figure { position: absolute; inset: 56px 72px 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; }
.lb-figure img { max-width: 100%; max-height: calc(100% - 34px); object-fit: contain; background: #fff; }
.lb-cap { margin-top: 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #bdbab3; text-align: center; }
.lb-btn { position: absolute; z-index: 2; background: none; border: 0; color: #fff; cursor: pointer; font: 300 46px/1 "Poppins", sans-serif; padding: 10px 18px; opacity: .75; }
.lb-btn:hover { opacity: 1; color: var(--accent); }
.lb-close { top: 8px; right: 12px; font-size: 40px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
@media (max-width: 760px) {
  .lb-figure { inset: 52px 8px 56px; }
  .lb-prev, .lb-next { top: auto; bottom: 6px; transform: none; font-size: 38px; }
}

/* ---------- Consistent tiles ---------- */
#case .case-grid:not(.fit-cover) img { padding: 5%; box-sizing: border-box; background: #fff; }
#case .case-grid.fit-cover img { aspect-ratio: 4 / 3; }
.grid-label { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-deep); margin: 30px 0 10px; }
.case-grid.process { gap: 10px; }
.case-grid.process img { aspect-ratio: 1; }
.case-grid + .grid-label { margin-top: 34px; }
@media (max-width: 760px) { #case .case-grid.process { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Confidential (password page + private work) */
.conf-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; max-width: 460px; }
.conf-form input { flex: 1 1 220px; }
.conf-form .btn { cursor: pointer; font-family: inherit; }
.conf-msg { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--accent-text); }
.conf-signout { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.conf-login { min-height: 70vh; }

/* Project video (thumbnail first, YouTube loads on click) and outside link */
.case-video { margin: 0 0 24px; }
.case-video .video-play, .case-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--r-lg); }
.case-video .video-play { position: relative; cursor: pointer; padding: 0; background: #111 center / cover no-repeat; }
.case-video .video-icon { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--accent); box-shadow: 0 6px 24px rgba(0,0,0,.35); transition: transform .2s ease; }
.case-video .video-icon::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.case-video .video-play:hover .video-icon, .case-video .video-play:focus-visible .video-icon { transform: scale(1.08); }
.case-video figcaption { margin-top: 10px; }
.case-link { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 24px; }
.case-link span { font-size: 14px; color: var(--ink-soft); }
