/* Underdog Studio — underdogstudio.it */

:root {
  --teal: #008894;        /* brand teal (logo RGB; CMYK 85/0/25/31) — large text and blocks only */
  --teal-dark: #006B75;   /* small text and links on light backgrounds */
  --teal-light: #6CC8D0;  /* accents on dark backgrounds */
  --ink: #0E2F35;
  --cream: #FAF9F5;
  --white: #FFFFFF;
  --mist: #E4EEF0;
  --mist-soft: #F1F5F4;
  --line: #D5DEDF;
  --line-dark: #2A4C52;
  --muted: #3F5559;
  --muted-2: #5E7377;
  --on-dark: #B9CED2;
  --on-teal: #D7ECEE;
  --field-border: #8FB3BA;

  --font: "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1360px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 9vw, 144px);
  --corner: 0 0 40px 0;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ol, dl, dd, blockquote { margin: 0; }
a { color: var(--teal-dark); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--cream); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--line { border-top: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--soft { background: var(--mist-soft); border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.stack-sm { display: flex; flex-direction: column; gap: 24px; }

/* Two columns that stack on small screens */
.split { display: flex; flex-wrap: wrap; gap: 24px clamp(32px, 6vw, 96px); }
.split > * { flex: 1 1 380px; min-width: 0; }
.split--end { align-items: flex-end; }

/* Type */
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-dark);
}
.section--dark .eyebrow { color: var(--teal-light); }

.display {
  font-size: clamp(56px, 10.5vw, 172px); line-height: 0.9; letter-spacing: -0.045em; font-weight: 500;
}
.h-xl { font-size: clamp(44px, 7vw, 112px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 500; }
.h-l  { font-size: clamp(36px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.03em; font-weight: 500; }
.h-m  { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; }
.h-s  { font-size: 22px; line-height: 1.2; font-weight: 600; }
.light { font-weight: 300; }
.accent { color: var(--teal); }
.accent-dark { color: var(--teal-dark); }
.section--dark .accent { color: var(--teal-light); }
.block { display: block; }

.lead { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.38; font-weight: 500; }
.body-l { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--muted); }
.body { font-size: 18px; line-height: 1.55; color: var(--muted); }
.section--dark .body { color: var(--on-dark); }
.num { font-size: 15px; font-weight: 600; color: var(--teal-dark); }
.section--dark .num { color: var(--teal-light); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 24px; border: 0; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none;
  border-radius: 0 0 20px 0; transition: background-color .2s ease, color .2s ease;
}
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: var(--teal-dark); color: var(--white); }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--cream:hover { background: var(--white); color: var(--ink); }
.btn--l { min-height: 56px; padding: 0 32px; font-size: 17px; border-radius: 0 0 24px 0; }
.btn svg { flex: 0 0 auto; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 16px; font-weight: 600; color: var(--ink);
}

/* Header */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 24px; padding-bottom: 24px;
}
.site-header__logo { line-height: 0; flex: 0 0 auto; }
.site-header__logo img { height: 64px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--teal-dark); }
.site-nav .btn--ink, .site-nav .btn--ink:hover { color: var(--cream); }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav {
    display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding-top: 8px; border-top: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { display: block; padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 20px; align-self: flex-start; }
  .site-header__logo img { height: 52px; }
}

/* Hero */
.hero .wrap {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(40px, 6vw, 96px);
  padding-top: clamp(40px, 7vw, 112px); padding-bottom: clamp(64px, 8vw, 128px);
}
.hero__text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px); }
.hero__intro { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.hero__intro > * { flex: 1 1 300px; }
.hero__mark { flex: 1 1 200px; display: flex; justify-content: flex-end; }
.hero__mark img { width: clamp(150px, 22vw, 330px); }

/* Masthead: full-bleed image */
.masthead { position: relative; min-height: clamp(440px, max(72vh, 44vw), 900px); display: flex; align-items: flex-end; background: var(--ink); color: var(--white); overflow: hidden; }
.masthead__bg { position: absolute; inset: 0; overflow: hidden; }
.masthead__bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 30% 50%); transform: scale(var(--zoom, 1)); transform-origin: var(--pos, 30% 50%); }
.masthead__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,47,53,.82) 0%, rgba(14,47,53,.5) 40%, rgba(14,47,53,.08) 72%, rgba(14,47,53,0) 100%), linear-gradient(180deg, rgba(14,47,53,0) 55%, rgba(14,47,53,.35) 100%); }
.masthead__inner { position: relative; width: 100%; display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); padding-top: 120px; padding-bottom: clamp(48px, 7vw, 104px); }
.masthead .eyebrow { color: var(--teal-light); }
.masthead .display { color: var(--white); text-shadow: 0 2px 30px rgba(0,0,0,.25); font-size: clamp(52px, 9vw, 140px); }
.masthead .light { color: var(--teal-light); }
.masthead-intro .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.masthead-intro .wrap > * { flex: 1 1 320px; }

/* Variant "right": photo anchored bottom-right, a bit taller than the band (less sky on top) and nudged right;
   the left side fades into the sky colour behind the title */
.masthead--right .masthead__bg { background: var(--hero-bg, var(--ink)); }
.masthead--right .masthead__bg img { position: absolute; right: 0; bottom: 0; width: auto; height: var(--hero-h, 115%); max-width: none; object-fit: contain;
  transform: translateX(var(--hero-shift, 14%)); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }

/* Tablets and phones: image on top, title below, never on top of each other */
@media (max-width: 820px) {
  .masthead { display: block; min-height: 0; }
  .masthead__bg { position: relative; height: clamp(300px, 92vw, 620px); }
  .masthead__bg::after { background: linear-gradient(180deg, rgba(14,47,53,0) 70%, rgba(14,47,53,.55) 100%); }
  .masthead__bg img, .masthead--right .masthead__bg img { position: static; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-m, 50% 50%); transform: none; -webkit-mask-image: none; mask-image: none; }
  .masthead__inner { padding-top: 32px; padding-bottom: 48px; }
}

/* Who */
.who-row + .who-row { padding-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); }
.who-row h2 { flex-basis: 420px; }

/* Pillars / stats grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(32px, 4vw, 56px); }
.pillar { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 2px solid var(--teal-light); }
.statement { padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line-dark); align-items: flex-end; }
.statement .big { flex: 999 1 520px; font-size: clamp(30px, 3.6vw, 54px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 500; }
.statement .body { flex: 1 1 320px; }

/* Experience first */
.means { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px; }
.means__card { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3vw, 48px); background: var(--mist); }
.means__card h3 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; }
.means__card--dest { background: var(--teal-dark); color: var(--white); border-radius: 0 0 48px 0; }
.means__card--dest .body { color: #E6F3F4; }
.means__arrow { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; padding: 0 8px; color: var(--teal-dark); }
@media (max-width: 760px) { .means__arrow svg { transform: rotate(90deg); } .means__arrow { flex-basis: 100%; } }

.quote {
  padding: clamp(40px, 6vw, 96px) clamp(28px, 5vw, 80px); background: var(--teal); color: var(--white);
  border-radius: 0 0 clamp(48px, 8vw, 120px) 0;
}
.quote p { font-size: clamp(36px, 5.6vw, 88px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; }
.people { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }

/* Services */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 16px; min-height: 240px; padding: clamp(28px, 3vw, 44px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--corner);
}
.card { min-height: 0; }
.question { padding-top: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 12px; }
.question .big { font-size: clamp(40px, 6.4vw, 104px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 500; }

/* Work */
.work-feature { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.work-feature__media { flex: 999 1 560px; min-width: 0; min-height: clamp(260px, 36vw, 560px); border-radius: 0 0 clamp(48px, 6vw, 96px) 0; }
.work-feature + .work-feature { padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.work-feature--reverse { flex-direction: row-reverse; }
.work-feature--reverse .work-feature__media { border-radius: 0 0 0 clamp(48px, 6vw, 96px); }
.media-badge { position: absolute; left: 16px; top: 16px; z-index: 1; padding: 8px 14px; background: rgba(14, 47, 53, .85); color: var(--cream); font-size: 13px; font-weight: 600; letter-spacing: .04em; border-radius: 0 0 12px 0; }
.work-feature__body { flex: 1 1 360px; display: flex; flex-direction: column; gap: 20px; }
.work-feature__body .link-arrow { margin-top: auto; }
.work-feature h3 { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; }
.work-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dark); }
.work-meta .soft { color: var(--muted-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { padding: 6px 12px; border: 1px solid var(--ink); font-size: 13px; font-weight: 500; }
.work-facts { display: flex; flex-direction: column; gap: 16px; }
.work-facts > div { padding-top: 16px; border-top: 1px solid var(--line); }
.work-facts dt { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.work-facts dd { font-size: 17px; color: var(--muted); }
.work-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(40px, 4vw, 48px) clamp(24px, 3vw, 40px);
  padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line);
}
.work-card { display: flex; flex-direction: column; gap: 16px; }
.work-card__media { aspect-ratio: 4 / 3; border-radius: var(--corner); }
.work-card .body { font-size: 17px; }
.media-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--mist); border: 1px dashed var(--field-border); color: var(--muted); font-size: 15px; font-weight: 500;
  text-align: center; padding: 16px;
}
.work-feature__media { margin: 0; overflow: hidden; position: relative; }
.work-feature__media img { position: absolute; inset: 0; object-position: 22% 50%; }
@media (max-width: 600px) { .work-feature__media { min-height: 300px; } }
.work-feature__media img, .work-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.work-gallery { flex: 1 1 100%; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.work-gallery a { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist); }
.work-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work-gallery a:hover img { transform: scale(1.04); }
.work-gallery li:last-child a { border-radius: 0 0 24px 0; }
@media (prefers-reduced-motion: reduce) { .work-gallery img { transition: none; } }
@media (max-width: 600px) { .work-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .work-gallery li:first-child:nth-last-child(odd) { grid-column: 1 / -1; } }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox::backdrop { background: rgba(14, 47, 53, .94); }
.lightbox__figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 64px 72px 32px; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; }
.lightbox__caption { color: var(--on-dark); font-size: 15px; text-align: center; max-width: 720px; }
.lightbox__btn { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid rgba(250,249,245,.4); background: rgba(14,47,53,.6); color: var(--cream); cursor: pointer; }
.lightbox__btn:hover { background: var(--teal-dark); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox__figure { padding: 72px 12px 24px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; } }

.more-work {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
  padding: clamp(28px, 4vw, 56px); background: var(--mist); border-radius: 0 0 clamp(40px, 5vw, 72px) 0;
}
.more-work__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }

/* Method */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: clamp(24px, 3vw, 32px); }
.steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--ink); }
.steps .step-num { font-size: clamp(40px, 4vw, 56px); line-height: 1; font-weight: 300; color: var(--teal-dark); }
.steps .body { font-size: 17px; }

/* Why */
.versus p { padding: clamp(24px, 3vw, 40px) 0; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.2; letter-spacing: -0.015em; }
.versus .no { border-top: 1px solid var(--line); color: var(--muted-2); font-weight: 400; }
.versus .no s { text-decoration-thickness: 2px; }
.versus .yes { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-weight: 600; }

/* Stats */
.stat { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.stat__value { font-size: clamp(88px, 10vw, 152px); line-height: 0.9; letter-spacing: -0.05em; font-weight: 300; color: var(--teal-light); }
.stat h3 { font-size: 24px; line-height: 1.2; font-weight: 600; }

/* Break the pattern */
.break h2 { flex: 1 1 360px; font-size: clamp(44px, 6vw, 96px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 500; }
.break__body { flex: 1 1 460px; display: flex; flex-direction: column; gap: 32px; }
.break__lines { display: flex; flex-direction: column; gap: 4px; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; }

/* Contact */
.contact { background: var(--teal-dark); color: var(--white); }
.contact .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(40px, 6vw, 96px); }
.contact__intro { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: clamp(28px, 3vw, 40px); }
.contact__intro h2 { font-size: clamp(48px, 7vw, 112px); line-height: 0.92; letter-spacing: -0.045em; font-weight: 500; }
.contact__intro .sub { font-size: 18px; color: var(--on-teal); }
.contact__mail { display: flex; align-items: center; gap: 20px; padding-top: 8px; }
.contact__mail img { width: 56px; }
.contact__mail p { font-size: 16px; color: var(--on-teal); }
.contact__mail a { color: var(--white); font-weight: 600; }
.contact__panel {
  flex: 1 1 480px; min-width: 0; background: var(--cream); color: var(--ink);
  padding: clamp(28px, 4vw, 56px); border-radius: 0 0 clamp(48px, 6vw, 80px) 0;
}

.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--field-border); border-radius: 0;
  background: var(--white); color: var(--ink); font: inherit; font-size: 17px;
}
.field textarea { height: auto; min-height: 160px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal-dark); outline-offset: 2px; border-color: var(--teal-dark); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-error { font-size: 14px; color: #B3261E; font-weight: 500; }
.consent { display: flex; align-items: flex-start; gap: 12px; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--teal-dark); }
.consent label { font-size: 15px; line-height: 1.5; color: var(--muted); }
.form__note { font-size: 14px; color: var(--muted); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 4px; }
.form__status { font-size: 15px; font-weight: 500; }
.form__status--error { color: #B3261E; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .6; cursor: progress; }

.form-done { display: flex; flex-direction: column; gap: 20px; min-height: 360px; justify-content: center; }
.form-done h3 { font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 500; }
.text-btn { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--teal-dark); font: inherit; font-size: 16px; font-weight: 600; text-decoration: underline; cursor: pointer; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 48px; padding-bottom: 48px; }
.site-footer__brand { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer__brand img { height: 56px; width: auto; }
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.site-footer a { color: var(--cream); }
.site-footer__legal { flex-basis: 100%; font-size: 13px; color: var(--on-dark); padding-top: 24px; border-top: 1px solid var(--line-dark); }

/* Simple content page (privacy) */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.03em; font-weight: 500; margin-bottom: 32px; }
.prose h2 { font-size: 26px; line-height: 1.2; font-weight: 600; margin: 48px 0 12px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 12px 0 0; }

/* ---------- Bilingual + project pages ---------- */
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.lang-switch:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 900px) { .site-nav .lang-switch { margin-top: 16px; align-self: flex-start; } }

a.work-feature__media { display: block; }
.work-title-link { color: inherit; text-decoration: none; }
.work-title-link:hover { color: var(--teal-dark); }
.work-feature__body .link-arrow { margin-top: auto; }

.design-list { display: flex; flex-direction: column; gap: 16px; }
.design-list .eyebrow { margin: 0; }
.tags--l li { padding: 10px 16px; font-size: 15px; background: var(--white); border-color: var(--line); }

.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--muted-2); }
.breadcrumb a { color: var(--muted); }

.project__head { display: flex; flex-direction: column; gap: 20px; padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(32px, 4vw, 56px); }
.project__head .h-xl { max-width: 14ch; }
.project__head .body-l { max-width: 760px; }
.project__hero { position: relative; display: block; overflow: hidden; border-radius: 0 0 clamp(48px, 7vw, 120px) 0; background: var(--mist); }
.project__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 700px) { .project__hero img { aspect-ratio: 4 / 3; } }
.project__body { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 96px); padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); }
.project__facts { flex: 1 1 260px; display: flex; flex-direction: column; gap: 0; margin: 0; align-self: flex-start; }
.project__facts > div { padding: 14px 0; border-top: 1px solid var(--line); }
.project__facts > div:last-child { border-bottom: 1px solid var(--line); }
.project__facts dt { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 4px; }
.project__facts dd { margin: 0; font-size: 17px; }
.project__story { flex: 999 1 520px; display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); max-width: 820px; }
.project__story section { display: flex; flex-direction: column; gap: 12px; }
.project__gallery { display: flex; flex-direction: column; gap: 20px; padding-bottom: clamp(48px, 6vw, 96px); }
.work-gallery--l { display: block; columns: 3 260px; column-gap: 16px; }
.work-gallery--l li { break-inside: avoid; margin-bottom: 16px; }
.work-gallery--l a { aspect-ratio: auto; }
.work-gallery--l img { height: auto; }
.work-gallery--l li:last-child a { border-radius: 0; }
@media (max-width: 600px) { .work-gallery--l { columns: 2; column-gap: 10px; } .work-gallery--l li { margin-bottom: 10px; } }
.project__next { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 96px); border-top: 1px solid var(--line); }
.project__next-link { display: flex; flex-direction: column; gap: 12px; color: var(--ink); text-decoration: none; max-width: 900px; }
.project__next-link .h-l svg { width: .8em; height: .8em; vertical-align: middle; }
.project__next-link:hover .h-l { color: var(--teal-dark); }
.contact--compact .wrap { align-items: center; justify-content: space-between; }
.contact--compact .contact__intro h2 { font-size: clamp(40px, 5vw, 80px); }

/* Contact by email (static hosting, no form) */
.contact__panel--mail { position: relative; display: flex; flex-direction: column; gap: 20px; overflow: hidden; }
.contact__address { font-size: clamp(24px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; color: var(--teal-dark); text-decoration: none; word-break: break-word; }
.contact__address:hover { color: var(--ink); text-decoration: underline; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 8px; position: relative; z-index: 1; }
.contact__panel--mail .body { max-width: 46ch; }

/* Prevent very long project headings overflowing older 320px screens. */
@media (max-width: 360px) { .h-xl { overflow-wrap: anywhere; } }
