/* taste.css: targeted pass after the design-taste-frontend / redesign-existing-projects audit.
   Loads last. Keeps the brand (navy #011E48, Satoshi, globe, photos) and fixes:
   one light theme, real section rhythm, fewer identical cards, open FAQ, calmer type.
   Shape rule: buttons and chips are pills, media and blocks 20px, inputs 12px. */

:root {
  --bg: #F6F6F3;
  --surface-2: #ECEDEA;
  --muted: #56637A;
  --shadow: 0 1px 2px rgba(1, 30, 72, .06), 0 18px 40px -22px rgba(1, 30, 72, .32);
  --section-heading-size: clamp(2rem, 1.4rem + 2vw, 2.875rem);
  --gap-section: clamp(4.5rem, 3rem + 5vw, 8rem);
}

/* ---------- Type: medium-weight display, tighter tracking ---------- */
h1, h2 { font-weight: 500; letter-spacing: -.035em; line-height: 1.04; }
h3 { letter-spacing: -.015em; }
.lead, .section-head p { max-width: 58ch; }
.stat, .band-phone, .contact-list, .site-footer a[href^="tel"] { font-variant-numeric: tabular-nums; }

/* ---------- Header: light, same theme as the page ---------- */
.site-header {
  --bg: #F6F6F3;
  --ink: #0E1B33;
  --text: #22304A;
  --brand-tint: rgba(1, 30, 72, .07);
  --line: rgba(14, 27, 51, .1);
  --line-strong: rgba(14, 27, 51, .28);
  --accent-text: #011E48;
  --cta-bg: #011E48;
  --cta-fg: #FFFFFF;
  background: transparent;
}
.site-header::before { background: rgba(246, 246, 243, .86); }
.site-header .logo--light { display: block; }
.site-header .logo--dark { display: none; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(14, 27, 51, .1); }
.site-nav ul a[aria-current="page"] { background: var(--brand-tint); }

/* ---------- Home hero: full-bleed light, no navy frame ---------- */
.hero { background: var(--bg); min-height: calc(100dvh - var(--header-h)); padding: 0 0 clamp(2rem, 4vw, 3rem); }
.hero > .hero-grid { width: min(100% - 2rem, var(--container)); margin-inline: auto; padding: 0; background: none; border-radius: 0; }
@media (min-width: 768px) { .hero > .hero-grid { width: min(100% - 4rem, var(--container)); } }
@media (min-width: 1024px) {
  .hero-copy { transform: none; padding-inline-start: 0; }
  #main > .hero .hero-copy { margin-block-start: 0; }
  .hero .hero-media[data-globe-3d] { transform: none; }
}
.hero-copy .hero-heading h1 { font-weight: 500; letter-spacing: -.045em; }

/* ---------- Section rhythm: real whitespace instead of 2rem gaps ---------- */
main > .section, main > .section-tight,
[aria-labelledby="why-title"],
.inner-page .section-tight { padding-block: calc(var(--gap-section) / 2); }
main > section .section-head { margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
main > section .section-head p { margin-top: .75rem; font-size: 1.0625rem; color: var(--muted); }
.brand-portfolio { padding-block: calc(var(--gap-section) / 2) calc(var(--gap-section) / 4); }

/* ---------- Inner page heads: breathing room under the header ---------- */
.inner-page .page-head,
.about-page .page-head { padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.inner-page .page-head h1 { font-size: clamp(2.375rem, 1.5rem + 3vw, 4rem); max-width: 20ch; }
.inner-page .page-head .lead { margin-top: 1.25rem; font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); }
.inner-page .page-head + .section-tight { padding-top: 0; }

/* ---------- "Why partners": one list, with a desktop feature ---------- */
[aria-labelledby="why-title"] .bento { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
[aria-labelledby="why-title"] .bento-cell {
  min-height: 0; padding: 1.5rem 0; overflow: visible;
  background: none; border-radius: 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 1rem; row-gap: .35rem; align-items: start;
}
[aria-labelledby="why-title"] .bento-cell > .icon { grid-row: span 2; width: 1.5rem; height: 1.5rem; margin: .15rem 0 0; color: var(--accent-text); }
[aria-labelledby="why-title"] .bento-cell h3 { margin: 0; font-size: 1.1875rem; color: var(--ink); }
[aria-labelledby="why-title"] .bento-cell p { color: var(--muted); max-width: 52ch; line-height: 1.5; }
[aria-labelledby="why-title"] .bento-cell:last-child { grid-column: auto; border-bottom: 1px solid var(--line); }
[aria-labelledby="why-title"] .bento-navy, [aria-labelledby="why-title"] .bento-tint { background: none; }
[aria-labelledby="why-title"] .bento-navy > .icon, [aria-labelledby="why-title"] .bento-navy h3 { color: var(--ink); }
[aria-labelledby="why-title"] .bento-navy p { color: var(--muted); }
[aria-labelledby="why-title"] .bento-feature.bento-feature-text { grid-column: 1; }
[aria-labelledby="why-title"] .bento-feature-text .overlay { display: contents; }
[aria-labelledby="why-title"] .bento-feature-text .stat { font-size: inherit; font-weight: inherit; letter-spacing: inherit; color: inherit; }
@media (width < 1024px) {
  [aria-labelledby="why-title"] .bento-feature.bento-feature-text {
    --ink: #FFFFFF; --muted: rgba(255, 255, 255, .78);
    padding: .75rem; background: var(--brand);
    border-top-color: transparent; border-radius: var(--radius-sm);
    justify-items: start; text-align: left;
  }
  [aria-labelledby="why-title"] .bento-feature-text h3,
  [aria-labelledby="why-title"] .bento-feature-text p { text-wrap: balance; }
}
@media (min-width: 1024px) {
  [aria-labelledby="why-title"] .bento { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2.5rem, 4vw, 5rem); }
  [aria-labelledby="why-title"] .bento-feature.bento-feature-text {
    grid-row: 1 / span 5; align-self: center; display: flex; padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
    background: var(--brand); border: 0; border-radius: var(--radius-lg);
  }
  [aria-labelledby="why-title"] .bento-feature-text .overlay {
    display: flex; flex-direction: column; align-items: flex-start; gap: .625rem; padding: 0; margin: 0; background: none;
  }
  [aria-labelledby="why-title"] .bento-feature-text .stat {
    display: block; width: fit-content; margin-bottom: .625rem; font-size: clamp(3rem, 2rem + 4vw, 6rem);
    font-weight: 500; letter-spacing: -.05em; line-height: 1; color: #FFFFFF;
  }
  [aria-labelledby="why-title"] .bento-feature-text h3 { font-size: clamp(1.25rem, 1rem + .5vw, 1.5rem); color: #FFFFFF; }
  [aria-labelledby="why-title"] .bento-feature-text p { color: rgba(255, 255, 255, .78); max-width: 34ch; }
  [aria-labelledby="why-title"] .bento-cell:not(.bento-feature) { grid-column: 2; padding-block: 1.35rem; }
  [aria-labelledby="why-title"] .bento-cell:not(.bento-feature) { grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); column-gap: 2rem; }
}

/* ---------- "Who we work with": light, same theme ---------- */
#main > section[aria-labelledby="who-title"] {
  --ink: #0E1B33; --text: #22304A; --muted: #56637A; --accent-text: #011E48;
  --line: rgba(14, 27, 51, .12); --line-strong: rgba(14, 27, 51, .28);
  background: var(--surface-2); color: var(--text);
}
.duo h3 { font-weight: 500; letter-spacing: -.03em; }

/* ---------- Home "How we work": six columns without number labels ---------- */
.steps li { border-top: 2px solid var(--brand); padding-top: 1.25rem; }
.steps h3 { font-size: 1.1875rem; }

/* ---------- FAQ: topics and native disclosure rows ---------- */
.faq { max-width: none; }
.faq .faq-item summary {
  min-height: 2.75rem; gap: 1rem; padding-block: 1rem;
  font-size: 1.0625rem; line-height: 1.4; letter-spacing: -.015em;
}
.faq .faq-item summary:hover { color: var(--brand); }
.faq .faq-item summary .icon { color: var(--brand); transform: none; }
.faq-minus, .faq-item[open] .faq-plus { display: none; }
.faq-item[open] .faq-minus { display: inline; }
.faq .faq-body { max-width: 62ch; padding: 0 2rem 1rem 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.faq-body a { text-decoration: underline; text-underline-offset: 3px; }
.faq-topics { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.faq-topics a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.faq-topics a:hover { background: var(--brand-tint); }
@media (max-width: 599px) {
  .faq-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-topics a { justify-content: center; padding-inline: .5rem; text-align: center; }
}
.faq-page .faq-groups { grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 2rem + 2vw, 4rem); margin-bottom: clamp(1rem, 2vw, 2rem); }
.faq-page .faq-group { scroll-margin-block-start: calc(var(--header-h) + 1rem); }
.faq-page #main .faq-group h2 { min-height: 0; margin-bottom: 1rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
@media (min-width: 900px) {
  .faq-page .faq-group { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .faq-page #main .faq-group h2 { margin: .75rem 0 0; }
}

/* ---------- About photos: three equal, compact (20.11, owner: smaller, harmonious) ---------- */
@media (min-width: 768px) {
  .about-page .about-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
  .about-page .about-photos > figure:first-child { grid-row: auto; }
  .about-page .about-photos img, .about-page .about-photos > figure:first-child img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
}

/* ---------- Pillars (About, How we work): divided list, not white cards ---------- */
.inner-page .pillars { gap: 0 clamp(2rem, 4vw, 4rem); }
.inner-page .pillar { padding: 1.75rem 0; background: none; border-radius: 0; border-top: 1px solid var(--line); }
.inner-page .pillar h3 { font-size: 1.25rem; }

/* ---------- How we work page: numbered timeline rows instead of six cards ---------- */
.process-page .steps-detailed { gap: 0 clamp(2rem, 4vw, 4rem); counter-reset: none; }
.process-page .step-card {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: .75rem; row-gap: .4rem; align-items: start;
  padding: 1.75rem 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none;
}
.process-page .step-card .step-num {
  grid-row: 1; align-self: center; display: grid; place-items: center;
  inline-size: 1.75rem; aspect-ratio: 1; border-radius: .5rem;
  background: var(--brand); color: var(--surface);
  font-size: .875rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}
.process-page .step-card h3 { align-self: center; font-size: 1.25rem; }
.process-page .step-card p { grid-column: 2; color: var(--muted); }
@media (min-width: 1024px) { .process-page .steps-detailed { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(3, auto); } }

/* ---------- Brands page: logo tiles without lift-and-shadow ---------- */
.logo-grid .logo-tile:hover { transform: none; box-shadow: none; opacity: .8; }

/* ---------- Contact ---------- */
.contact-grid form, .contact-form { box-shadow: none; border: 1px solid var(--line); }
#quote-form { scroll-margin-block-start: calc(var(--header-h) + 1rem); }
@media (min-width: 1024px) {
  #quote-form > .field:has(input[autocomplete="organization"]) { grid-column: 1 / -1; }
}
.quote-dialog {
  width: min(100% - 2rem, 32rem);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--brand); overscroll-behavior: contain;
}
.quote-dialog::backdrop { background: var(--surface, #fff); }
html:has(.quote-dialog[open]) { overflow: hidden; }
.quote-dialog .form { padding: clamp(1rem, 4vw, 1.5rem); gap: .875rem; }
.quote-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.quote-dialog-logo, .quote-form-logo { display: block; width: 6.5rem; height: auto; }
.quote-dialog-close {
  display: grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--surface); cursor: pointer;
}
.quote-dialog-close:hover { background: var(--brand-tint); }
.quote-dialog :focus-visible { outline-color: var(--surface); }

/* ---------- CTA band: compact, with the brand's navy surface ---------- */
#main .band { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4rem); }
#main .band-inner {
  --cta-bg: var(--surface);
  --cta-fg: var(--brand);
  gap: 1rem 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--brand);
  border-radius: var(--radius);
}
#main .band-inner h2 { color: var(--surface); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; }
.band-inner p { max-width: 48ch; margin-top: .5rem; color: var(--brand-tint); font-size: 1rem; line-height: 1.5; }
#main .band-actions { flex-direction: row; align-items: center; gap: .5rem 1rem; }
.band-actions .btn { min-height: 2.75rem; padding-inline: 1.125rem; }
.band-actions .btn:hover { background: var(--brand-tint); }
.band-actions :focus-visible { outline-color: var(--surface); }
.band-phone {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  color: var(--surface); font-size: .9375rem; font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px;
}
.band-phone:hover { text-decoration-thickness: 2px; }
@media (min-width: 900px) {
  .band-inner { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ---------- FAQ question form ---------- */
#question-form:not(:target) { display: none; }
#question-form {
  grid-column: 1 / -1; width: min(100%, 34rem); min-width: 0;
  padding: 1.25rem 0 0; gap: 1rem; border-top: 1px solid var(--line-strong); border-radius: 0;
  scroll-margin-block-start: calc(var(--header-h) + 1rem);
}
#question-form h3 { font-size: 1.25rem; }
#question-form p { margin: 0; color: inherit; }
#question-form .form-note { max-width: 54ch; font-size: .875rem; color: var(--muted); }
#question-form :focus-visible, #question-form:focus-visible { outline-color: var(--surface); }
@media (min-width: 900px) {
  .faq-page #main .band-inner:has(#question-form:target) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    grid-template-rows: auto 1fr; align-items: start;
  }
  .band-inner:has(#question-form:target) .band-actions { grid-column: 1; grid-row: 2; justify-self: start; }
  #question-form {
    grid-column: 2; grid-row: 1 / span 2; width: min(100%, 40rem);
    padding: 0 0 0 clamp(1.5rem, 4vw, 3rem); border-top: 0; border-inline-start: 1px solid var(--line-strong);
  }
}

/* ---------- States ---------- */
.btn { transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; }
.btn:hover { box-shadow: 0 10px 24px -14px rgba(1, 30, 72, .55); }
.btn:active { transform: scale(.98); }
.chip { transition: border-color .2s, background-color .2s, color .2s; }
.chip:active { transform: scale(.98); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
:focus-visible { outline: 2px solid #011E48; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Brand grid heading follows the same display weight as other sections */
.brand-portfolio h2 { font-weight: 500; letter-spacing: -.035em; }

/* ---------- No decorative icons: lists carry hairlines instead ---------- */
.split ul, .about-page .about-quality ul { gap: 0; }
.split li, .about-page .about-quality li { padding-block: .7rem; border-top: 1px solid var(--line); }
.split li:last-child, .about-page .about-quality li:last-child { border-bottom: 1px solid var(--line); }
.inner-page .pillar { display: block; }
.inner-page .pillar p { margin-top: .5rem; color: var(--muted); }

/* ---------- Brands: no subtitle, higher, wider, bigger logos (20.11, owner) ---------- */
.brands-page .page-head { padding-block: clamp(2rem, 1.25rem + 2.5vw, 3.5rem) 0; }
.brands-page .page-head + .section { padding-top: clamp(1.25rem, 1rem + 1vw, 2rem); }
.brands-page .filters { margin-bottom: clamp(1rem, .5rem + 1.5vw, 2rem); }
.brands-page .logo-grid { gap: clamp(.75rem, .5rem + 1vw, 2rem) clamp(1rem, .5rem + 1vw, 1.5rem); }
.brands-page .logo-grid .logo-tile { aspect-ratio: 2.08 / 1; overflow: visible; }
.brands-page .logo-grid .logo-tile img { transform: scale(1.18); }
@media (width < 1024px) {
  .brands-page .logo-grid .logo-tile img { transform: none; }
}
@media (width < 640px) {
  .brands-page .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
}
/* First screen shows only the brands, title + filters + logos centred as one block (20.11, owner) */
.brands-page .brands-hero { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - var(--header-h, 72px)); padding-bottom: clamp(1rem, .5rem + 4vw, 6rem); }
