/* File: maia-legal/css/home.css */

/* ===== HERO ===== */
.hero { min-height: 88vh; display: flex; align-items: center; padding: 6rem 2.5rem 3rem; background: #0a0f0f; position: relative; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.35; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,15,15,0.7) 0%, rgba(10,15,15,0.45) 40%, rgba(10,15,15,0.75) 100%); }
.hero-video-badge { position: absolute; bottom: 1.2rem; right: 1.5rem; width: 48px; height: auto; z-index: 2; opacity: 0.35; pointer-events: none; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 2; background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 64px 64px; opacity: 0.5; mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%); }
.hero-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 3; }

.hero-tag { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--mono); font-size: 0.86rem; font-weight: 600; color: var(--accent-light); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.8rem; opacity: 0; animation: up .7s ease .1s forwards; }
.hero-tag .tag-diamond { width: 9px; height: 9px; background: var(--accent-mid); border-radius: 2px; transform: rotate(45deg); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(58,168,190,0.18); }

.hero h1 { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 400; line-height: 1.15; color: #fff; letter-spacing: -0.025em; margin-bottom: 1.5rem; opacity: 0; animation: up .7s ease .2s forwards; }
.hero h1 em { font-style: italic; color: #3AA8BE; }

.hero-sub { font-size: 1.05rem; font-weight: 400; color: rgba(255,255,255,0.7); max-width: 560px; line-height: 1.75; margin-bottom: 2.5rem; opacity: 0; animation: up .7s ease .35s forwards; }

.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; opacity: 0; animation: up .7s ease .5s forwards; }
.hero-ctas .btn-ghost { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.2); }
.hero-ctas .btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); }

/* Founder highlight */
.founders-row { display: flex; align-items: center; gap: 1.5rem; margin-top: 3rem; padding: 1.5rem 1.8rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; animation: up .7s ease .6s forwards; }
.founder-avatar { width: 72px; height: 72px; background: rgba(27,122,140,0.15); border: 2px solid rgba(58,168,190,0.25); border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #3AA8BE; overflow: hidden; }
.founder-avatar img { width: 100%; height: 100%; object-fit: cover; }
.founder-text .founder-name { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: .2rem; }
.founder-text p { font-size: .85rem; font-weight: 400; color: rgba(255,255,255,0.65); line-height: 1.65; }

/* Credential strip */
.hero-credentials { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; margin-top: 2rem; opacity: 0; animation: up .7s ease .75s forwards; }
.credential { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .8rem; padding: .75rem 1.1rem; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18); border-radius: 8px; transition: border-color 0.2s, background 0.2s; min-width: 0; }
.credential:hover { border-color: rgba(58,168,190,0.45); background: rgba(255,255,255,0.1); }
.credential-icon { width: 32px; height: 32px; background: rgba(58,168,190,0.18); border: 1px solid rgba(58,168,190,0.32); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #3AA8BE; flex-shrink: 0; align-self: start; }
.credential-icon svg { width: 16px; height: 16px; stroke-width: 2; }
.credential-text { font-family: var(--mono); font-size: .72rem; font-weight: 500; color: rgba(255,255,255,0.78); letter-spacing: .04em; line-height: 1.4; text-transform: uppercase; min-width: 0; word-wrap: break-word; }
.credential-text strong { display: block; font-family: var(--sans); font-size: .92rem; font-weight: 700; color: #fff; letter-spacing: 0.005em; text-transform: none; margin-bottom: 0.15rem; line-height: 1.3; }

/* FIX: No-JS fallback for hero entry animations. */
html:not(.js-ready) .hero-tag,
html:not(.js-ready) .hero h1,
html:not(.js-ready) .hero-sub,
html:not(.js-ready) .hero-ctas,
html:not(.js-ready) .founders-row,
html:not(.js-ready) .hero-credentials {
  opacity: 1 !important;
  animation: none !important;
}

/* ===== ABOUT ===== */
.about { background: var(--surface); border-top: 1px solid var(--border-fine); }
.about-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: start; }
.about-text p { color: var(--ink-3); margin-bottom: 1.2rem; font-size: .95rem; font-weight: 400; line-height: 1.8; }
.about-text p strong { color: var(--ink-2); font-weight: 500; }
.about-aside { display: flex; flex-direction: column; gap: 1.2rem; }
.about-card { background: var(--surface-2); border: 1px solid var(--border-fine); border-radius: var(--radius-lg); padding: 1.8rem; }
.about-card-label { font-family: var(--mono); font-size: .6rem; font-weight: 500; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.about-card-quote { font-family: var(--serif); font-size: 1.05rem; font-style: italic; font-weight: 400; color: var(--ink-2); line-height: 1.6; }
.spec-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem 1.8rem; }
.spec-card-title { font-family: var(--mono); font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--border-fine); }
.spec-row { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 1rem; align-items: baseline; padding: .65rem 0; border-bottom: 1px dotted var(--border); margin: 0; }
.spec-row:last-child { border-bottom: none; }
.spec-key { font-family: var(--mono); font-size: .78rem; color: var(--muted); white-space: nowrap; }
.spec-key::after { content: none; }
.spec-val { font-family: var(--mono); font-size: .78rem; color: var(--ink-2); font-weight: 500; text-align: right; word-break: break-word; }

/* ===== VIDEO ===== */
.video-section { background: var(--bg); padding: 4rem 2.5rem; }
.video-wrap { max-width: 840px; margin: 0 auto; text-align: center; }
.video-frame { width: 100%; aspect-ratio: 16/9; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; margin-top: 1.5rem; position: relative; overflow: hidden; }
.video-frame::before, .video-frame::after { content: ''; position: absolute; width: 20px; height: 20px; border-color: var(--accent); border-style: solid; opacity: 0.5; }
.video-frame::before { top: 14px; left: 14px; border-width: 1.5px 0 0 1.5px; }
.video-frame::after { bottom: 14px; right: 14px; border-width: 0 1.5px 1.5px 0; }
.play-btn { width: 60px; height: 60px; border: 1.5px solid var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all .3s; cursor: pointer; }
.play-btn:hover { background: var(--accent-wash); transform: scale(1.06); }
.play-btn svg { margin-left: 2px; }
.video-label { font-family: var(--mono); font-size: .65rem; color: var(--muted); letter-spacing: .06em; }

/* ===== SERVICES ===== */
.services { background: var(--surface); border-top: 1px solid var(--border-fine); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 1.5rem; background: var(--border-fine); border: 1px solid var(--border-fine); border-radius: var(--radius-lg); overflow: hidden; }
/* Service card expand/reveal system */
.service-flip { background: var(--surface); }
.service-flip.span-full { grid-column: 1 / -1; }
.service-front { background: var(--surface); padding: 2.2rem; transition: max-height .45s cubic-bezier(.4,0,.2,1), padding .45s cubic-bezier(.4,0,.2,1), opacity .3s; opacity: 1; }
.service-front:hover { background: var(--surface-2); }
.service-back { background: var(--surface-2); padding: 0 2rem; max-height: 0; overflow: hidden; transition: max-height .5s cubic-bezier(.4,0,.2,1), padding .5s cubic-bezier(.4,0,.2,1), opacity .3s; opacity: 0; }
.service-flip.flipped .service-front { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden; }
.service-flip.flipped .service-back { max-height: 2000px; padding: 1.8rem 2rem; opacity: 1; }
.service-arrow { cursor: pointer; }
.service-flip.flipped .service-arrow { background: var(--accent-wash); border-color: var(--accent); color: var(--accent); }
.service-back-label { font-family: var(--mono); font-size: .58rem; font-weight: 500; color: var(--accent); letter-spacing: .08em; margin-bottom: .7rem; display: flex; align-items: center; gap: .5rem; }
.service-back-label::after { content: ''; flex: 1; height: 1px; background: var(--border-fine); }
.service-back h4 { font-family: var(--serif); font-size: .95rem; font-weight: 400; color: var(--ink); margin-bottom: .5rem; }
.service-back ul { list-style: none; padding: 0; margin: 0; }
.service-back li { font-size: .78rem; font-weight: 400; color: var(--ink-3); line-height: 1.6; padding: .35rem 0; padding-left: 1.1rem; position: relative; }
.service-back li::before { content: '›'; position: absolute; left: 0; color: var(--accent); font-weight: 500; font-size: .9rem; }
.service-back .back-note { font-size: .72rem; font-weight: 400; color: var(--muted); line-height: 1.55; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--border-fine); font-style: italic; }
.service-cta-crosslink { margin-top: 1.75rem; padding: 1.1rem 0 .25rem; border-top: 1px solid var(--border-fine); font-size: .9rem; line-height: 1.65; font-weight: 500; color: var(--ink-3); }
.service-cta-crosslink a { color: var(--accent); text-decoration: none; font-weight: 600; }
.service-cta-crosslink a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 0.18em; }
.service-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.service-num { font-family: var(--mono); font-size: .62rem; font-weight: 500; color: var(--accent-deep); letter-spacing: .06em; padding: .2rem .5rem; background: var(--accent-wash); border-radius: 4px; }
.service-arrow { width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .3s; }
.service-front:hover .service-arrow { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }
.service-front h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; color: var(--ink); margin-bottom: .6rem; }
.service-front p { color: var(--ink-2); font-size: .88rem; font-weight: 400; line-height: 1.7; }

/* ===== PRICING ===== */
.pricing { background: var(--bg); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.price-card { background: var(--surface); border: 1px solid var(--border-fine); border-radius: var(--radius-lg); padding: 2.2rem; display: flex; flex-direction: column; transition: all .35s cubic-bezier(.4,0,.2,1); }
.price-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-wash), var(--shadow-sm); }
.price-badge { font-family: var(--mono); font-size: .58rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: white; background: var(--accent); padding: .2rem .6rem; border-radius: 4px; display: inline-block; margin-bottom: 1rem; width: fit-content; }
.price-name { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: .3rem; }
.price-amount { font-family: var(--serif); font-size: 2.2rem; font-weight: 400; color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; }
.price-amount span { font-size: .85rem; color: var(--muted); font-family: var(--sans); font-weight: 400; }
.price-desc { color: var(--ink-3); font-size: .82rem; font-weight: 400; margin: .8rem 0 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-fine); line-height: 1.6; }
.price-features { list-style: none; flex: 1; margin-bottom: 1.5rem; }
.price-features li { padding: .35rem 0 .35rem 1.4rem; font-size: .82rem; font-weight: 400; color: var(--ink-2); position: relative; line-height: 1.5; }
.price-features li::before { content: ''; position: absolute; left: 0; top: .65rem; width: 8px; height: 8px; border: 1.5px solid var(--accent); border-radius: 2px; }
.price-cta { display: block; text-align: center; padding: .75rem; font-family: var(--sans); font-weight: 500; font-size: .82rem; text-decoration: none; border-radius: 7px; transition: all .3s cubic-bezier(.4,0,.2,1); cursor: pointer; }
.price-cta-fill { background: var(--accent); color: white; border: none; }
.price-cta-fill:hover { background: var(--accent-soft); box-shadow: 0 4px 14px rgba(27,122,140,0.18); }
.price-cta-outline { background: transparent; color: var(--ink-2); border: 1px solid var(--border); }
.price-cta-outline:hover { border-color: var(--accent); color: var(--accent); }

/* One-off pricing table */
.oneoff-table { margin-top: 1.5rem; background: var(--surface); border: 1px solid var(--border-fine); border-radius: var(--radius-lg); overflow: hidden; }
.oneoff-header { font-family: var(--mono); font-size: .65rem; font-weight: 500; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; padding: 1.2rem 1.8rem .8rem; }
.oneoff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--border-fine); }
.oneoff-item { background: var(--surface); padding: 1.1rem 1.8rem; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; min-width: 0; }
.oneoff-item:hover { background: var(--surface-2); }
.oneoff-service { font-size: .85rem; font-weight: 400; color: var(--ink-2); min-width: 0; }
.oneoff-price { font-family: var(--mono); font-size: .82rem; font-weight: 500; color: var(--accent); white-space: nowrap; flex-shrink: 0; }

/* ===== METHODOLOGY ===== */
.methodology { background: var(--surface); border-top: 1px solid var(--border-fine); }
.method-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 1.5rem; position: relative; }
.method-track::before { display: none; }
.method-step { text-align: center; padding: 0 1rem; position: relative; }
.method-dot { width: auto; height: auto; border: 0; border-radius: 0; display: block; font-family: var(--serif); font-size: 3.4rem; font-weight: 400; font-style: italic; color: var(--accent); line-height: 1; margin: 0 auto .8rem; background: transparent; position: relative; z-index: 1; transition: color 0.3s; letter-spacing: -0.02em; }
.method-step:hover .method-dot { color: var(--accent-deep); }
.method-step h3 { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; text-align: center; }
.method-step p { font-size: .92rem; font-weight: 450; color: var(--ink-2); line-height: 1.7; text-align: center; max-width: 28ch; margin: 0 auto; }

/* ===== PORTFOLIO ===== */
.portfolio { background: var(--bg); }
.portfolio-intro { color: var(--ink-3); font-size: .95rem; font-weight: 400; max-width: 56ch; margin-bottom: 1.5rem; line-height: 1.75; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-fine); border: 1px solid var(--border-fine); border-radius: var(--radius-lg); overflow: hidden; }
.portfolio-item { background: var(--surface); padding: 1.8rem; display: flex; align-items: center; gap: 1.1rem; transition: all .3s; }
.portfolio-item:hover { background: var(--surface-2); }
.portfolio-icon-wrap { width: 56px; height: 56px; background: var(--accent-glow); border: 1px solid rgba(27,122,140,0.28); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); }
.portfolio-icon-wrap svg { width: 26px; height: 26px; }
.portfolio-icon-wrap svg path,
.portfolio-icon-wrap svg circle,
.portfolio-icon-wrap svg rect,
.portfolio-icon-wrap svg polygon { stroke-width: 2; }
.portfolio-item h3 { font-size: .96rem; font-weight: 600; color: var(--ink); margin-bottom: .15rem; }
.portfolio-item h3 a { color: inherit; text-decoration: none; }
.portfolio-item h3 a:hover { color: var(--accent); }

/* FIX: Portfolio card type/description text contrast.
   Original --ink-3 (#475467) on white (#FFFFFF) gives ~5.9:1 — passes AA.
   However the .portfolio-type mono label was using the same var and rendering
   very small (0.6rem) which compounds perceived low contrast. We darken it to
   --ink-2 (#1D2939) which gives ~12:1, ensuring it passes AAA at any size.
   The .portfolio-intro paragraph text is also nudged to full --ink-2 weight. */
.portfolio-type {
  font-family: var(--mono);
  font-size: .6rem;
  /* Changed from var(--ink-3) #475467 to var(--ink-2) #1D2939 for WCAG AA+ */
  color: var(--ink-2);
  letter-spacing: .06em;
}

.team-email {
  margin-bottom: .6rem;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 400;
}
.team-email a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s;
}
.team-email a:hover {
  color: var(--accent-soft);
  text-decoration: underline;
}

/* ===== ADVISORY ===== */
.advisory { background: var(--surface); border-top: 1px solid var(--border-fine); }
.advisory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 1.5rem; background: var(--border-fine); border: 1px solid var(--border-fine); border-radius: var(--radius-lg); overflow: hidden; }
.advisory-item { background: var(--surface); padding: 2rem 2rem; transition: all .3s; }
.advisory-item:hover { background: var(--surface-2); }
.advisory-name { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: .25rem; letter-spacing: -0.01em; }
.advisory-scope { font-family: var(--mono); font-size: .58rem; font-weight: 500; color: var(--accent); letter-spacing: .06em; margin-bottom: .8rem; }
.advisory-detail { font-size: .85rem; font-weight: 400; color: var(--ink-3); line-height: 1.65; }
.advisory-logo-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.advisory-logo-link { font-family: var(--mono); font-size: .58rem; color: var(--muted); text-decoration: none; padding: .15rem .4rem; border: 1px solid var(--border-fine); border-radius: 3px; transition: all .2s; }
.advisory-logo-link:hover { border-color: var(--accent); color: var(--accent); }

/* ===== TEAM ===== */
.team { background: var(--surface); border-top: 1px solid var(--border-fine); }
.team-photo-frame { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 3rem; border: 1px solid var(--border-fine); }
.team-photo-frame img { width: 100%; height: auto; display: block; }
/* Team roster — two-level structure:
   Row 1: Andrew & Luz centered alone (banner photo on top, text-align center)
   Row 2: Roiser + Emanuel in 2 parallel columns (banner photos, text left)
   Photos are full-card-width banners (object-fit: cover), pixel-identical
   within each row because both lead cards share grid 1fr/1fr. */
.team-founders-row { display: flex; justify-content: center; margin-bottom: 3rem; }
.team-leads-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; margin-bottom: 2rem; align-items: stretch; }

.team-block { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: .4rem; padding: 1.8rem 1.8rem 2rem; background: var(--surface); border: 1px solid var(--border-fine); border-radius: var(--radius-lg); min-width: 0; box-sizing: border-box; }
.team-block-founder { width: 100%; max-width: 540px; margin: 0 auto; align-items: center; text-align: center; }

.team-photo { width: 100%; height: 280px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-fine); background: var(--surface-2); margin: 0 0 1.5rem; }
.team-photo-large { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.team-info { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: .3rem; min-width: 0; width: 100%; }
.team-block-founder .team-info { align-items: center; text-align: center; }

.team-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; color: var(--ink); margin: 0; line-height: 1.3; letter-spacing: -0.01em; }
.team-block-founder .team-name { font-size: 1.5rem; }

.team-block .team-role { font-family: var(--mono); font-size: .78rem; color: var(--accent); letter-spacing: .03em; margin: 0; line-height: 1.4; font-weight: 500; }
.team-block .team-email { font-family: var(--mono); font-size: .82rem; margin: .35rem 0 .15rem; }
.team-block .team-email a { color: var(--accent); text-decoration: none; transition: color .2s; }
.team-block .team-email a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 0.18em; }

.team-bio { font-size: .92rem; color: var(--ink-2); line-height: 1.7; margin: .65rem 0 0; max-width: 60ch; font-weight: 425; }
.team-block-founder .team-bio { max-width: none; }
.team-juniors { background: var(--surface-2); border: 1px solid var(--border-fine); border-radius: var(--radius-lg); padding: 2rem; }
.team-juniors-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.team-junior-card { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding: 1rem; background: var(--surface); border: 1px solid var(--border-fine); border-radius: var(--radius); min-width: 0; gap: .15rem; }
.team-junior-initials { width: 44px; height: 44px; background: var(--accent-wash); border: 1px solid rgba(27,122,140,0.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: .82rem; font-weight: 600; color: var(--accent-deep); margin: 0 0 .55rem; flex-shrink: 0; }
.team-junior-role { font-size: .88rem; font-weight: 500; color: var(--ink-2); margin: 0; line-height: 1.4; word-wrap: break-word; max-width: 100%; }
.team-junior-dept { font-family: var(--mono); font-size: .68rem; color: var(--muted); margin: 0; line-height: 1.4; word-wrap: break-word; max-width: 100%; }
.team-juniors-note { font-size: .82rem; font-weight: 400; color: var(--ink-3); line-height: 1.65; text-align: center; }

/* ===== CONTACT ===== */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3.5rem; align-items: start; margin-top: 2rem; }
.contact-info p { font-size: .92rem; font-weight: 400; color: var(--ink-3); line-height: 1.75; margin-bottom: 1.8rem; }
.contact-row { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1.1rem; }
.contact-icon { width: 30px; height: 30px; background: var(--accent-wash); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); margin-top: .05rem; }
.contact-text { font-size: .85rem; }
.contact-text strong { display: block; font-weight: 600; color: var(--ink-2); font-size: .78rem; margin-bottom: .1rem; }
.contact-text a,
.contact-row .contact-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; font-weight: 500; }
.contact-text a:hover,
.contact-row .contact-text a:hover { color: var(--accent-soft); text-decoration: underline; }
.contact-form { background: var(--surface); border: 1px solid var(--border-fine); border-radius: var(--radius-lg); padding: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.form-group:last-child { margin-bottom: 0; }
.form-group label { font-family: var(--mono); font-size: .6rem; font-weight: 500; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea { padding: .65rem .9rem; border: 1px solid var(--border); border-radius: 6px; font-family: var(--sans); font-size: .88rem; font-weight: 400; color: var(--ink); background: var(--bg); outline: none; transition: border-color .2s; width: 100%; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
.consent-label { display: flex; align-items: flex-start; gap: .6rem; font-size: .78rem; font-weight: 400; color: var(--ink-3); line-height: 1.5; margin-bottom: 1.2rem; cursor: pointer; }
.consent-label input { margin-top: .15rem; flex-shrink: 0; accent-color: var(--accent); }
.consent-label a { color: var(--accent); text-decoration: none; }
.consent-label a:hover { text-decoration: underline; }

/* ===== PRIVACY ===== */
.privacy { background: var(--surface); border-top: 1px solid var(--border-fine); }
.privacy a { color: var(--accent); text-decoration: none; }
.privacy a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; gap: .75rem; }
  .method-track { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .method-track::before { display: none; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .advisory-grid { grid-template-columns: 1fr; }
  .team-leads-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===== MOBILE LAYOUT FIXES (768px) =====
   Fills the 640–900px gap where method-track, portfolio-grid, and form-row
   were still multi-column. Also locks all key grids to single column on any
   phone viewport so Explorer/Navigator/pricing, services, about, advisory,
   and contact all stack properly.
   ===== */
@media (max-width: 768px) {
  /* Fix 1: Pricing cards — single column (Explorer, Navigator, Captain full-width) */
  .pricing-grid { grid-template-columns: 1fr; gap: .75rem; }

  /* Fix 2: Services grid — single column */
  .services-grid { grid-template-columns: 1fr; }

  /* Fix 3a: About layout / Technical Stack — stack vertically */
  .about-layout { grid-template-columns: 1fr; gap: 2rem; }

  /* Fix 4: How It Works — single column, hide horizontal dashed line */
  .method-track { grid-template-columns: 1fr; gap: 1.5rem; }
  .method-track::before { display: none; }

  /* Fix 5: Advisory (client case studies) — single column, guard overflow */
  .advisory-grid { grid-template-columns: 1fr; }
  .advisory-item { word-break: break-word; overflow-wrap: break-word; overflow: hidden; }

  /* Fix 6: Group companies grid — single column, prevent right-column clip */
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item { min-width: 0; }
  .portfolio-item > div:last-child { min-width: 0; overflow: hidden; }

  /* Fix 7: Contact — stack info + form, single-column form rows */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  /* Override shared.css !important for ES-language form rows on mobile */
  body.es .form-row[data-lang="es"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
  .hero { min-height: auto; align-items: flex-start; padding: 6.5rem 1rem 3rem; }
  .hero-inner { width: 100%; max-width: 100%; }
  .hero h1 { font-size: clamp(2rem, 11vw, 2.65rem); line-height: 1.08; letter-spacing: 0; overflow-wrap: anywhere; }
  .hero h1 span { display: block; max-width: 100%; }
  .hero-sub { max-width: 100%; font-size: 0.95rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas a { justify-content: center; }
  .founders-row { flex-direction: column; text-align: center; }
  .hero-credentials { justify-content: center; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .team-founders-row { margin-bottom: 2rem; }
  .team-leads-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .team-photo { height: 220px; }
  .team-photo-large { aspect-ratio: 4 / 3; }
  .team-juniors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-track { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* ===== MOBILE FONT-SIZE FLOOR (home.css) — minimum 14px for body copy ===== */
  /* Service flip back — detail list items */
  .service-back li { font-size: 0.875rem; }
  .service-back .back-note { font-size: 0.82rem; }

  /* Pricing feature list */
  .price-features li { font-size: 0.875rem; }
  .price-desc { font-size: 0.875rem; }

  /* Method / How It Works steps */
  .method-step p { font-size: 0.875rem; }

  /* Advisory */
  .advisory-detail { font-size: 0.875rem; }

  /* Team bios */
  .team-bio { font-size: 0.875rem; }
  .team-juniors-note { font-size: 0.875rem; }

  /* About text */
  .about-text p { font-size: 0.95rem; }

  /* One-off pricing table */
  .oneoff-service { font-size: 0.875rem; }
}
