/* Diametric Ideas — shared stylesheet
   Edit the colour and font variables below to restyle the whole site. */

:root {
  --paper: #FFFFFF;
  --sand: #F4F4F4;
  --card: #FFFFFF;
  --ink: #111111;
  --muted: #2E2E2E;
  --line: #E4E4E4;
  --line-strong: #BDBDBD;
  --teal: #111111;        /* links (no colour accent: black and white only) */
  --teal-deep: #000000;
  --ember: #555555;       /* labels and numbers */
  --on-dark-muted: #C4C4C4;

  --font-display: "Source Serif 4", "Noto Serif", Georgia, "Times New Roman", serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --gutter: 24px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: #000; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 3.3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 40em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .lede, .section--dark p { color: var(--on-dark-muted); }
.section--dark a { color: #fff; }
.section--dark h2, .section--dark h3 { color: var(--paper); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 20px;
}
.section--dark .eyebrow { color: var(--on-dark-muted); }

.ph-note { /* bracketed placeholder text the owner should replace */
  background: rgba(17, 17, 17, 0.07);
  border-radius: 4px; padding: 0 4px;
}
.section--dark .ph-note { background: rgba(255, 255, 255, 0.12); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 2px solid var(--ink);
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--paper);
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { background: #333333; border-color: #333333; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.section--dark .btn { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.section--dark .btn:hover { background: #fff; border-color: #fff; color: var(--teal-deep); }
.section--dark .btn--ghost { background: transparent; color: var(--paper); }
.section--dark .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.arrow-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; }
.arrow-link:hover { text-decoration: underline; }

/* ---------- Header (reversed: white on black) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: #fff;
  border-bottom: 1px solid #333333;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #fff; text-decoration: none; font-weight: 500; font-size: 1rem;
  padding: 10px 14px; border-radius: 999px;
}
.nav a:hover { background: #2A2A2A; color: #fff; }
.nav a[aria-current="page"] { background: #fff; color: var(--ink); }
.nav a.nav-cta { border: 2px solid #fff; margin-left: 6px; font-weight: 700; }
.nav a.nav-cta:hover { background: #fff; color: var(--ink); }
.nav-toggle {
  display: none; min-width: 48px; min-height: 48px; border: 2px solid #fff; background: transparent;
  border-radius: 999px; font: 700 0.95rem var(--font-body); color: #fff; cursor: pointer; padding: 0 16px;
}
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .section--dark :focus-visible { outline-color: #fff; }

/* ---------- Hero (echoes a title slide) ---------- */
.hero { background: var(--ink); color: var(--paper); text-align: center; padding: clamp(80px, 13vw, 170px) 0 clamp(72px, 11vw, 150px); }
.hero .eyebrow { color: var(--on-dark-muted); }
.hero h1 { color: #fff; max-width: 14em; margin: 0 auto 28px; }
.hero .rule { width: 120px; height: 1px; background: #555555; margin: 0 auto 28px; }
.hero p.lede { color: var(--on-dark-muted); margin: 0 auto; }
.hero .btn-row { justify-content: center; }
.hero .btn { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.hero .btn:hover { background: #fff; border-color: #fff; color: var(--teal-deep); }
.hero .btn--ghost { background: transparent; color: var(--paper); border-color: #7A7A7A; }
.hero .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); max-width: 16em; }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { margin: 0; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px -16px rgba(20, 24, 31, 0.35); color: inherit; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--muted); }
.card-meta { font-size: 0.875rem; color: var(--muted); font-weight: 500; }
.tag {
  display: inline-block; font-size: 0.8125rem; font-weight: 600; color: var(--teal-deep);
  background: #EDEDED; border-radius: 999px; padding: 3px 12px; align-self: flex-start;
}

/* Image slots: drop a file with the stated name into /images and it appears automatically.
   Until then the slot shows a quiet grey placeholder. */
.slot { margin: 0; position: relative; background: #EFEFEF; aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot span { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #6B6B6B; text-align: center; padding: 12px; }
.slot--square { aspect-ratio: 1 / 1; }
.slot--tall { aspect-ratio: 4 / 5; }
.slot--wide { aspect-ratio: 21 / 9; }
.slot--frame { border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 18px 40px -22px rgba(17, 17, 17, 0.5); }
.card .slot { border-bottom: 1px solid var(--line); }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { border-top: 1px solid var(--ink); padding-top: 20px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--ember); font-weight: 700;
}
.step h3 { margin: 6px 0 8px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Challenges list ---------- */
.challenge { border-top: 1px solid var(--line-strong); }
.challenge:last-child { border-bottom: 1px solid var(--line-strong); }
.challenge summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr 32px; gap: 16px; align-items: center;
  padding: 26px 4px;
}
.challenge summary::-webkit-details-marker { display: none; }
.challenge .num { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--ember); font-weight: 700; }
.challenge h3 { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
.challenge .plus { width: 28px; height: 28px; position: relative; justify-self: end; }
.challenge .plus::before, .challenge .plus::after { content: ""; position: absolute; background: var(--ink); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.challenge .plus::before { width: 18px; height: 2px; }
.challenge .plus::after { width: 2px; height: 18px; transition: transform .2s; }
.challenge[open] .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.challenge-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 0 4px 36px 72px; }
.challenge-body h4 { font-family: var(--font-body); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember); font-weight: 700; margin-bottom: 8px; }
.challenge-body p { color: var(--muted); margin: 0; }

/* ---------- People ---------- */
.person { text-align: left; }
.avatar { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: #EFEFEF; display: grid; place-items: center;
  font-family: var(--font-display); font-size: clamp(2.3rem, 5vw, 3.3rem); font-weight: 600; color: #6B6B6B; margin-bottom: 16px; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin: 0 0 2px; }
.person .role { color: var(--ember); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 8px; }
.person p:last-child { color: var(--muted); margin: 0; }

/* ---------- Values / prose ---------- */
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.prose { max-width: 42em; }
.prose p { color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.value h3 { margin-bottom: 8px; }
.value p { margin: 0; color: var(--muted); }

/* ---------- Blog ---------- */
.feature-post { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; }
.feature-post .slot { aspect-ratio: auto; min-height: 320px; border-bottom: 0; }
.feature-post .card-body { padding: clamp(24px, 4vw, 48px); justify-content: center; gap: 12px; }
.feature-post h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.article { max-width: 44em; margin: 0 auto; }
.article h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); }
.article p { color: #222222; }
.article h2 { font-size: 1.6rem; margin-top: 1.6em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: 10px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: 3px solid rgba(17, 17, 17, 0.25); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: none; border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; font-weight: 500; }
.notice.show { display: block; }
.notice--ok { background: #EDEDED; color: var(--teal-deep); }
.notice--err { background: #EDEDED; color: #111111; }
.detail { padding: 20px 0; border-top: 1px solid var(--line-strong); }
.detail:first-child { border-top: 0; padding-top: 0; }
.detail h3 { font-family: var(--font-body); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember); font-weight: 700; margin-bottom: 4px; }
.detail p { margin: 0; }

/* ---------- CTA band + footer ---------- */
.cta-band { text-align: left; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; max-width: 16em; }

.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 64px 0 32px; font-size: 0.975rem; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .brand, .site-footer .brand-name { color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid #333333; }
.footer-grid h4 { font-family: var(--font-body); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid p { margin: 14px 0 0; max-width: 24em; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 0.875rem; }
.site-footer .ph-note { background: rgba(255, 255, 255, 0.12); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .contact-grid, .feature-post { grid-template-columns: 1fr; gap: 40px; }
  .grid--3, .values { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .challenge-body { grid-template-columns: 1fr; padding-left: 4px; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--ink); border-bottom: 1px solid #333333; padding: 12px var(--gutter) 20px; gap: 2px;
  }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 14px 16px; }
  .js .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .no-js .nav { flex-wrap: wrap; }
  .no-js .site-header .container { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
}
@media (max-width: 620px) {
  :root { --gutter: 16px; }
  .grid--3, .grid--2, .values, .row-2 { grid-template-columns: 1fr; }
  .challenge summary { grid-template-columns: 36px 1fr 28px; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .cta-band .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Additions ---------- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px; }
.skip:focus { left: 16px; }
.section--dark .step { border-top-color: #555555; }
.section--dark .step::before { color: var(--on-dark-muted); }
.section--dark .step p { color: var(--on-dark-muted); }
.section--dark .arrow-link { color: #fff; }
.section--dark.cta-band { padding: clamp(48px, 7vw, 80px) 0; }
.section--dark .ph-note { color: #fff; }
.brand-name { font-weight: 700; }

/* ---------- Blog post additions ---------- */
.article-dek { font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.3rem); line-height: 1.45; color: var(--muted); margin: 0 0 20px; }
.article p { font-size: 1.1875rem; line-height: 1.8; color: #222222; }
.article h2 { margin-top: 2.2em; }
.pullquote {
  margin: 2.4em 0; padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.25; letter-spacing: -0.01em; color: var(--ink);
}

/* ---------- Challenges page ---------- */
.case { padding: 40px 0 56px; border-top: 1px solid var(--ink); }
.case + .case { margin-top: 24px; }
.case > h2 { max-width: 18em; }
.case-row { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--line-strong); }
.case-label { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember); font-weight: 700; margin: 4px 0 0; }
.case-text p { max-width: 44em; font-size: 1.125rem; }
.case-text > p:last-of-type { margin-bottom: 0; }
.case-takeaway { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.3; letter-spacing: -0.01em; margin: 24px 0 0; padding-top: 28px; border-top: 1px solid var(--ink); max-width: 28em; }
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; margin-top: 28px; }
.workflow figure { margin: 0; }
.shot { border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px -22px rgba(17, 17, 17, 0.5); }
.shot img { display: block; width: 100%; height: auto; }
.workflow figcaption { margin-top: 14px; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.fig-num { display: block; font-size: 0.75rem; letter-spacing: 0.2em; font-weight: 700; color: var(--ember); margin-bottom: 4px; }
.hint { font-size: 0.9375rem; color: var(--muted); margin: 8px 0 0; }
.choices { border: 0; padding: 0; margin: 0 0 20px; }
.choices legend { font-weight: 700; padding: 0; margin-bottom: 10px; }
.choice { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; cursor: pointer; line-height: 1.5; }
.choice input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
@media (max-width: 960px) {
  .case-row { grid-template-columns: 1fr; gap: 8px; }
  .workflow { grid-template-columns: 1fr; max-width: 420px; }
}

/* Anchors (#submit, #examples) land below the sticky header */
[id] { scroll-margin-top: 88px; }

/* ---------- Public feedback (thumbs up / down) ---------- */
.feedback { margin-top: 32px; padding: 24px 0 0; }
.feedback-label { font-weight: 700; margin: 0 0 14px; }
.feedback-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.vote {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink);
  font: 700 1rem var(--font-body); cursor: pointer; transition: background .15s, color .15s;
}
.vote:hover:not(:disabled) { background: var(--ink); color: #fff; }
.vote[aria-pressed="true"] { background: var(--ink); color: #fff; }
.vote:disabled { opacity: 0.6; cursor: progress; }
.vote .count { min-width: 1.2em; text-align: left; font-variant-numeric: tabular-nums; }
.feedback-msg { min-height: 1.5em; margin: 12px 0 0; font-size: 0.9375rem; color: var(--muted); }
.no-js .feedback { display: none; }

/* ---------- People page ---------- */
.sequence { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.sequence li { position: relative; padding: 20px 28px 4px 0; }
.sequence li:not(:last-child)::after { content: "\2192"; position: absolute; right: 12px; top: 18px; color: var(--ember); font-size: 1.25rem; }
.sequence a { display: block; text-decoration: none; color: var(--ink); }
.sequence a:hover .seq-word { text-decoration: underline; text-underline-offset: 4px; }
.seq-num { display: block; font-size: 0.75rem; letter-spacing: 0.2em; font-weight: 700; color: var(--ember); }
.seq-word { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.2; margin: 4px 0 2px; }
.seq-name { display: block; color: var(--muted); font-size: 0.9375rem; }

.profile { display: grid; grid-template-columns: 300px 1fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--ink); }
.profile:first-child { border-top: 0; }
.profile .avatar { aspect-ratio: 4 / 5; margin: 0; border-radius: var(--radius); }
.profile h2 { margin: 0 0 6px; font-size: clamp(1.85rem, 3.2vw, 2.5rem); }
.qual { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember); margin: 0 0 22px; }
.headline { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 18px; max-width: 24em; }
.bio { max-width: 40em; margin: 0; font-size: 1.125rem; }
@media (max-width: 960px) {
  .sequence { grid-template-columns: repeat(2, 1fr); }
  .sequence li:nth-child(2)::after { display: none; }
  .sequence li { padding-bottom: 12px; }
  .profile { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .profile-photo { max-width: 280px; }
}
@media (max-width: 620px) {
  .sequence { grid-template-columns: 1fr; }
  .sequence li::after { display: none !important; }
}

/* ---------- About page: two halves of the circle ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ink); }
.duo-half { padding: clamp(28px, 4vw, 48px); background: var(--card); }
.duo-half--dark { background: var(--ink); color: var(--paper); }
.duo-half--dark p { color: var(--on-dark-muted); }
.duo-half--dark h3 { color: #fff; }
.duo-half h3 { margin: 28px 0 10px; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.duo-half .duo-label + h3 { margin-top: 0; }
.duo-half p { margin: 0 0 1em; }
.duo-label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--ember); margin: 0 0 20px !important; }
.duo-half--dark .duo-label { color: var(--on-dark-muted); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
.duo-half:not(.duo-half--dark) { display: flex; flex-direction: column; }
.duo-together { margin: auto 0 0 !important; padding-top: 24px; border-top: 1px solid var(--ink); font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.duo-half:not(.duo-half--dark) > p:nth-last-child(2) { margin-bottom: 40px; }
@media (max-width: 860px) { .duo-together { margin-top: 32px !important; } }
.duo-names { margin-top: 28px !important; padding-top: 20px; border-top: 1px solid #555; font-size: 0.9375rem; line-height: 1.7; color: var(--on-dark-muted); }

/* Projects: figures and function list */
.big-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 7vw, 3.3rem) !important; line-height: 1; letter-spacing: -0.02em; margin: 0 0 16px !important; color: inherit !important; }
.duo-half--dark .big-num { color: #fff !important; }
.case-text .duo-half p { font-size: 1rem; }
.fn-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fn-list li { border: 1px solid #777; padding: 6px 14px; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
.value .tag { margin-bottom: 14px; border-radius: 14px; }

/* Home: teasers for each inside page */
.teasers { border-top: 1px solid var(--ink); }
.teaser { display: grid; grid-template-columns: 240px 1fr 40px; gap: 32px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line-strong); text-decoration: none; color: var(--ink); transition: padding-left 0.2s ease; }
.teaser:hover { padding-left: 12px; color: var(--ink); }
.teaser-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; line-height: 1.15; }
.teaser-text { font-size: 1.125rem; color: var(--muted); max-width: 36em; }
.teaser-arrow { font-size: 1.5rem; text-align: right; }
@media (max-width: 720px) { .teaser { grid-template-columns: 1fr 32px; gap: 8px 16px; } .teaser-text { grid-column: 1 / 2; } .teaser-arrow { grid-column: 2; grid-row: 1; } }

/* Home hero with a picture behind it, darkened so the white text stays readable */
.hero--image { background: linear-gradient(rgba(17,17,17,0.5), rgba(17,17,17,0.5)), #111 url("../images/home-bg.jpg") center 42% / cover no-repeat; }

/* Pictures inside the worked examples */
.case-media { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 32px; align-items: end; margin: 8px 0 28px; }
.case-media--square { grid-template-columns: minmax(0, 240px); }
.case-caption { margin: 0; font-size: 0.9375rem; color: var(--muted); max-width: 30em; line-height: 1.55; }
.case-media .slot--tall { aspect-ratio: 9 / 14; }
@media (max-width: 720px) { .case-media { grid-template-columns: 1fr; } .case-media .slot--tall { max-width: 300px; } }

/* Projects: both layers shown in the same plain style */
.duo-half .fn-list li { border-color: #8A8A8A; color: var(--muted); }
.duo-half + .duo-half { border-left: 1px solid var(--ink); }
@media (max-width: 860px) { .duo-half + .duo-half { border-left: 0; border-top: 1px solid var(--ink); } }

/* About: the two columns share one plain style */
.duo-half .duo-names { border-top: 1px solid var(--line-strong); color: var(--muted); margin-top: 20px !important; }
.duo-half:not(.duo-half--dark) > p:nth-last-child(2) { margin-bottom: 1em; }


/* ---------- Round: clearer Home, About index, Zumbido badge, first-screen form ---------- */
.brand svg { display: none; }
/* Home hero: the sphere sits on the right at full clarity, text on solid black at left */
.hero--image {
  text-align: left; min-height: clamp(460px, 62vh, 620px); display: flex; align-items: center;
  padding: clamp(56px, 8vw, 96px) 0;
  background:
    linear-gradient(90deg, #111 0%, #111 38%, rgba(17,17,17,0.55) 58%, rgba(17,17,17,0) 78%),
    #111 url("../images/home-bg.jpg") right center / auto 100% no-repeat;
}
.hero--image .container { width: 100%; }
.hero--image h1 { font-size: clamp(2.4rem, 5.4vw, 3.3rem); line-height: 1.1; font-weight: 700; max-width: 12em; margin: 0 0 20px; text-shadow: 0 2px 18px rgba(0,0,0,0.6); }
.hero--image p.lede { color: #F2F2F2; font-size: 1.25rem; margin: 0; max-width: 26em; text-shadow: 0 1px 12px rgba(0,0,0,0.7); }
@media (max-width: 720px) {
  .hero--image { background: linear-gradient(180deg, #111 0%, #111 45%, rgba(17,17,17,0.25) 100%), #111 url("../images/home-bg.jpg") center bottom / 100% auto no-repeat; align-items: flex-start; min-height: 560px; }
}
/* Teasers: much smaller than the headline */
.section--teasers { padding: 28px 0 40px; }
.teaser { grid-template-columns: 150px 1fr 28px; gap: 20px; padding: 12px 0; }
.teaser-name { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; font-family: var(--font-body); }
.teaser-text { font-size: 0.9375rem; }
.teaser-arrow { font-size: 1rem; }
@media (max-width: 720px) { .teaser { grid-template-columns: 1fr 24px; gap: 4px 12px; padding: 12px 0; } }

/* About: first-screen index */
.about-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.about-index a { display: block; border-top: 2px solid var(--ink); padding-top: 12px; text-decoration: none; color: var(--ink); }
.about-index a span { display: block; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.about-index a strong { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.about-index a:hover strong { text-decoration: underline; }
@media (max-width: 720px) { .about-index { grid-template-columns: 1fr; gap: 16px; } }

/* Projects: logo on the photo, app screens */
.slot--cover { aspect-ratio: 16 / 8; }
.slot--cover img:first-of-type { object-position: center 45%; }
.slot-badge { position: absolute !important; inset: auto auto 18px 18px !important; width: auto !important; height: 44px !important; object-fit: contain !important; background: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,0.25); box-sizing: content-box; }
.project-shots { margin: 8px 0 20px; }
.project-shots .workflow { margin-top: 0; }

/* Challenges: form on the first screen */
.ch-first { padding: clamp(28px, 4vw, 48px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.ch-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.ch-intro h1 { font-size: clamp(2rem, 3.6vw, 2.6rem); margin: 0 0 16px; }
.ch-intro .lede { font-size: 1.125rem; margin-bottom: 20px; }
.ch-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 20px; }
.ch-steps li { counter-increment: s; position: relative; padding: 10px 0 10px 40px; border-top: 1px solid var(--line-strong); font-size: 0.9375rem; color: var(--muted); }
.ch-steps li::before { content: "0" counter(s); position: absolute; left: 0; top: 11px; font-size: 0.75rem; letter-spacing: 0.15em; font-weight: 700; color: var(--ink); }
.ch-steps li strong { color: var(--ink); }
.form--compact { padding: 22px 24px; }
.form--compact h2 { font-size: 1.4rem; margin: 0 0 12px; }
.form--compact .field { margin-bottom: 10px; }
.form--compact .row-2 { gap: 12px; }
.form--compact .field label { margin-bottom: 3px; font-size: 0.9375rem; }
.form--compact .field input, .form--compact .field select { padding: 8px 12px; }
.form--compact .field textarea { min-height: 84px; padding: 8px 12px; }
.form--compact .hint { font-size: 0.8125rem; margin-top: 4px; }
.form--compact .choices { margin: 0 0 8px; }
.form--compact .choices legend { font-size: 0.9375rem; margin-bottom: 2px; }
.form--compact .choice { font-size: 0.875rem; margin-bottom: 2px; }
.form--compact .choice--consent { margin: 8px 0 14px; }
@media (max-width: 900px) { .ch-grid { grid-template-columns: 1fr; } }
