/* ==========================================================================
   Services hub + service / niche landing pages.
   Kept out of main-v2.css on purpose: .htaccess caches CSS for a year with no
   version hash, so a new file is the only way these rules reach returning
   visitors. Uses the brand tokens defined in main-v2.css.
   ========================================================================== */

/* Breadcrumb (sits where other pages put their hero label) */
.crumbs { margin-bottom: 22px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 13px; font-weight: 500; }
.crumbs li { color: var(--bone-white-70); }
.crumbs li + li::before { content: '/'; margin: 0 10px; opacity: .45; }
.crumbs a { color: var(--bone-white-70); border-bottom: 1px solid transparent; transition: color .15s ease, border-color .15s ease; }
.crumbs a:hover { color: var(--bone-white); border-bottom-color: var(--ember-red); }
.crumbs li[aria-current] { color: var(--bone-white); }

.hero .row.wrap { gap: 14px; }

/* Heading on the left, short intro on the right */
.split-head {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 56px);
  align-items: end; margin-bottom: clamp(32px, 5vw, 56px);
}
@media (max-width: 900px) { .split-head { grid-template-columns: 1fr; } }

/* Index list: editorial rows instead of card grids */
.svc-index { border-top: 2px solid var(--iron-black); counter-reset: none; }
.svc-row {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 8px clamp(16px, 3vw, 40px); align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid rgba(20,23,26,.14);
  position: relative;
}
.svc-row--plain { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.svc-num { font-family: var(--font-founder); font-size: 15px; color: var(--ember-red); }
.svc-name { font-family: var(--font-founder); text-transform: uppercase; font-weight: 400; font-size: clamp(18px, 2vw, 24px); line-height: 1.15; }
.svc-name a { transition: color .15s ease; }
.svc-name a::after { content: ''; position: absolute; inset: 0; } /* whole row clickable */
.svc-row:hover .svc-name a { color: var(--ember-red); }
.svc-line { font-size: 16px; line-height: 1.5; opacity: .75; }
@media (max-width: 720px) {
  .svc-row { grid-template-columns: 44px minmax(0, 1fr); }
  .svc-row--plain { grid-template-columns: 1fr; }
  .svc-row .svc-line { grid-column: 2; }
  .svc-row--plain .svc-line { grid-column: 1; }
}
.svc-index--dark { border-top-color: var(--bone-white); }
.svc-index--dark .svc-row { border-bottom-color: var(--bone-white-12); }

/* Two-column sector blocks on the hub */
.sector-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.sector-grid > div:first-child { position: sticky; top: 110px; }
@media (max-width: 900px) {
  .sector-grid { grid-template-columns: 1fr; }
  .sector-grid > div:first-child { position: static; }
}

/* Landing page body: question heading / answer copy / related links */
.prose-split { display: grid; grid-template-columns: .9fr 1.3fr .6fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.prose p + p { margin-top: 22px; }
.prose a, .faq-item a { color: var(--ember-red); border-bottom: 1px solid currentColor; }
.prose a:hover, .faq-item a:hover { color: var(--iron-black); }
.section--black .faq-item a:hover { color: var(--bone-white); }
.related { border-left: 2px solid var(--ember-red); padding-left: 20px; }
.related-title { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; opacity: .6; }
.related li + li { margin-top: 10px; }
.related a { font-weight: 600; font-size: 15px; border-bottom: 1px solid rgba(20,23,26,.25); transition: border-color .15s ease, color .15s ease; }
.related a:hover { color: var(--ember-red); border-bottom-color: var(--ember-red); }
@media (max-width: 1000px) {
  .prose-split { grid-template-columns: 1fr 1fr; }
  .related { grid-column: 1 / -1; }
}
@media (max-width: 720px) { .prose-split { grid-template-columns: 1fr; } }

/* FAQ accordion (same pattern as chapter-license.html, dark variant) */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq-list { border-top: 1px solid var(--bone-white-12); }
.faq-item { border-bottom: 1px solid var(--bone-white-12); padding: 22px 0; }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-family: var(--font-analyst); font-weight: 600; font-size: 18px; line-height: 1.35; }
.faq-item summary::after { content: '+'; font-size: 24px; color: var(--ember-red); flex: none; line-height: 1; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:focus-visible { outline: 2px solid var(--ember-red); outline-offset: 4px; }
.faq-item p { margin-top: 12px; opacity: .8; max-width: 640px; }

/* Closing call-to-action strip */
.end-cta { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.end-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.page-updated { margin: 0; }

/* ==========================================================================
   Round 2: homepage, About, Codex, Our Athletes
   ========================================================================== */
.inline-link { color: var(--ember-red); border-bottom: 1px solid currentColor; }
.inline-link:hover { color: var(--bone-white); }
.section--bone .inline-link:hover { color: var(--iron-black); }
.text-link { display: inline-block; margin-top: 22px; font-weight: 600; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--ember-red); border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--bone-white); }
.section--bone .text-link:hover { color: var(--iron-black); }

/* Who we work with: ruled grid of link cells, no icons */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--iron-black); border-left: 1px solid rgba(20,23,26,.14); }
.aud-cell { position: relative; padding: 28px 26px 30px; border-right: 1px solid rgba(20,23,26,.14); border-bottom: 1px solid rgba(20,23,26,.14); transition: background-color .2s ease; }
.aud-cell:hover { background: rgba(20,23,26,.05); }
.aud-cell h3 { font-family: var(--font-founder); text-transform: uppercase; font-weight: 400; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.15; margin-bottom: 10px; }
.aud-cell h3 a::after { content: ''; position: absolute; inset: 0; }
.aud-cell:hover h3 a { color: var(--ember-red); }
.aud-cell p { opacity: .75; font-size: 15px; }
@media (max-width: 900px) { .aud-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .aud-grid { grid-template-columns: 1fr; } }

/* Compact numbered services list */
.svc-compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 4vw, 48px); }
.svc-compact li { display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; padding: 18px 0; border-top: 1px solid var(--bone-white-12); position: relative; }
.svc-compact .svc-num { grid-row: span 2; padding-top: 3px; }
.svc-compact h3 { font-family: var(--font-founder); text-transform: uppercase; font-weight: 400; font-size: 17px; line-height: 1.2; }
.svc-compact h3 a::after { content: ''; position: absolute; inset: 0; }
.svc-compact li:hover h3 a { color: var(--ember-red); }
.svc-compact p { font-size: 14px; opacity: .7; }
@media (max-width: 900px) { .svc-compact { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-compact { grid-template-columns: 1fr; } }

/* Two-column text block: heading left, copy right */
.text-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .text-split { grid-template-columns: 1fr; } }
.text-split p + p { margin-top: 18px; }

/* Final CTA */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 820px; margin: 0 auto 28px; }
.final-cta .row { justify-content: center; }

/* About: footprint facts */
.facts { display: grid; grid-template-columns: .6fr .8fr 1.6fr; border-top: 2px solid var(--bone-white); margin-top: clamp(28px, 4vw, 48px); }
.fact { padding: 24px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--bone-white-12); }
.fact-num { font-family: var(--font-founder); font-size: clamp(34px, 4vw, 52px); line-height: 1; color: var(--ember-red); }
.fact-label { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; opacity: .7; margin-top: 10px; }
.fact p { font-size: 16px; line-height: 1.5; opacity: .85; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { padding-left: 0; border-left: none; border-top: 1px solid var(--bone-white-12); margin-top: 24px; }
}

/* About: pull quote with attribution */
.pull-quote cite { display: block; margin-top: 18px; font-family: var(--font-analyst); font-style: normal; font-size: 14px; font-weight: 600; letter-spacing: .04em; opacity: .65; }

/* Codex: declaration */
.declaration { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .declaration { grid-template-columns: 1fr; } }
.declaration-close { color: var(--ember-red); }

/* ==========================================================================
   Round 3: photo slots, 3D gallery, team, athletes, client cases
   ========================================================================== */

/* Empty photo/video slot: a frame waiting for a real image, not a fake one */
.photo-slot {
  position: relative; width: 100%; aspect-ratio: var(--ar, 4/5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 1.5px dashed rgba(20,23,26,.28); border-radius: var(--radius);
  background: rgba(20,23,26,.04); color: rgba(20,23,26,.5);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: 16px;
}
.photo-slot svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.section--black .photo-slot, .section--steel .photo-slot, .team-card .photo-slot {
  border-color: var(--bone-white-40); background: rgba(244,241,234,.04); color: var(--bone-white-40);
}
.photo-fill { width: 100%; height: auto; aspect-ratio: var(--ar, 4/5); object-fit: cover; border-radius: var(--radius); display: block; }

/* Founder photo in the About origin block */
.founder-figure { margin: 0 0 32px; }
.founder-figure img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; object-position: 40% 30%; border-radius: var(--radius); }

/* 3D gallery (reference: Aduok Code "Responsive 3D Photo Gallery") */
.g3d {
  background: #E9E4D8; color: var(--iron-black); border-radius: 18px;
  padding: clamp(18px, 3vw, 32px) clamp(16px, 3vw, 36px) clamp(22px, 3vw, 32px);
  outline: none;
}
.g3d:focus-visible { box-shadow: 0 0 0 2px var(--ember-red); }
.g3d-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem;
  font-family: ui-monospace, Consolas, monospace; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #8a826f; }
.g3d-stage { position: relative; height: clamp(230px, 34vw, 400px); perspective: 1100px; cursor: grab; touch-action: pan-y; user-select: none; }
.g3d-stage.is-grabbing { cursor: grabbing; }
.g3d-item {
  position: absolute; left: 50%; top: 50%; margin: 0;
  width: clamp(200px, 40%, 460px); aspect-ratio: 4/3;
  transform: translate(-50%, -50%);
  transition: transform .7s cubic-bezier(.2,.75,.2,1), opacity .5s ease;
  box-shadow: 0 18px 40px rgba(20,23,26,.28); border-radius: 6px; overflow: hidden; background: #000;
  cursor: pointer;
}
.g3d-item.is-current { cursor: default; }
.g3d-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.g3d--still .g3d-item { transition: none; }
.g3d-caption { text-align: center; margin-top: 18px; min-height: 42px; }
.g3d-caption-title { display: block; font-weight: 600; font-size: 15px; }
.g3d-caption-sub { display: block; font-size: 12px; color: #8a826f; margin-top: 2px; }
.g3d-nav {
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: 100%; margin: 16px auto 0;
  background: #F6F3EC; border-radius: 999px; padding: 8px 12px; box-shadow: 0 2px 10px rgba(20,23,26,.08);
}
.g3d-nav button { background: none; border: none; color: var(--iron-black); }
.g3d-prev, .g3d-next { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.g3d-prev:hover, .g3d-next:hover { background: rgba(20,23,26,.07); }
.g3d-prev:disabled, .g3d-next:disabled { opacity: .3; cursor: default; background: none; }
.g3d-prev svg, .g3d-next svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.g3d-dots { display: flex; gap: 7px; align-items: center; }
.g3d-nav .g3d-dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(20,23,26,.25); padding: 0; transition: width .3s ease, background-color .3s ease; }
.g3d-nav .g3d-dot.is-active { width: 26px; background: var(--iron-black); }
/* No JS: plain horizontal scroll row */
.g3d:not(.is-ready) .g3d-stage { display: flex; gap: 12px; overflow-x: auto; height: auto; perspective: none; }
.g3d:not(.is-ready) .g3d-item { position: static; transform: none; flex: 0 0 70%; }
.g3d:not(.is-ready) .g3d-nav, .g3d:not(.is-ready) .g3d-caption { display: none; }
@media (max-width: 640px) { .g3d-item { width: 62%; } }

/* Video slots under the gallery */
.video-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(28px, 4vw, 44px); }
.video-slots .photo-slot { --ar: 3/4; }
@media (max-width: 900px) { .video-slots { grid-template-columns: repeat(2, 1fr); } }

/* Team cards */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(28px, 4vw, 44px); }
.team-card { background: #1B1F23; border: 1px solid var(--bone-white-12); border-radius: 14px; padding: 14px 14px 22px; display: flex; flex-direction: column; }
.team-card .photo-fill, .team-card .photo-slot { --ar: 4/5; margin-bottom: 18px; }
.team-card h3 { font-family: var(--font-analyst); font-weight: 700; font-size: 18px; line-height: 1.25; padding: 0 6px; }
.team-role { color: var(--ember-red); font-weight: 600; font-size: 14px; margin-top: 4px; padding: 0 6px; }
.team-card p.team-line { opacity: .7; font-size: 15px; margin-top: 12px; padding: 0 6px; }
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

/* Our Athletes */
.ath-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.ath-card { display: flex; flex-direction: column; }
.ath-card .photo-slot, .ath-card .photo-fill { --ar: 4/5; }
.ath-card-body { padding-top: 20px; }
.ath-sport { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ember-red); }
.ath-card h2 { font-family: var(--font-founder); text-transform: uppercase; font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; margin-top: 6px; }
.ath-card .athlete-quote { font-size: 19px; margin: 16px 0 0; }
.ath-card p.ath-bio { margin-top: 14px; font-size: 16px; line-height: 1.55; opacity: .85; }
.ath-card p.ath-soon { margin-top: 12px; font-size: 14px; opacity: .55; }
.ath-card--feature { grid-column: span 3; display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.ath-card--feature .ath-card-body { padding-top: 0; }
@media (max-width: 900px) {
  .ath-grid { grid-template-columns: 1fr 1fr; }
  .ath-card--feature { grid-column: span 2; }
}
@media (max-width: 600px) {
  .ath-grid { grid-template-columns: 1fr; }
  .ath-card--feature { grid-column: span 1; grid-template-columns: 1fr; }
}

/* Client cases */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.case-card { background: #fff; border: 1px solid rgba(20,23,26,.1); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.case-card .photo-slot { --ar: 4/3; border-radius: 0; border-width: 0 0 1.5px 0; }
.case-body { padding: 20px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.case-cat { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ember-red); }
.case-body h3 { font-family: var(--font-founder); text-transform: uppercase; font-weight: 400; font-size: 20px; line-height: 1.15; margin-top: 8px; }
.case-rows { margin: 16px 0 0; border-top: 1px solid rgba(20,23,26,.1); }
.case-rows div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(20,23,26,.08); font-size: 14px; }
.case-rows dt { font-weight: 600; opacity: .55; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.case-rows dd { margin: 0; opacity: .45; font-style: italic; }
@media (max-width: 1000px) { .case-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .case-grid { grid-template-columns: 1fr; } }
.ath-features { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.ath-features .ath-card--feature { grid-column: auto; }
.ath-features .ath-card--feature:nth-child(even) { grid-template-columns: 1.3fr .7fr; }
.ath-features .ath-card--feature:nth-child(even) > .photo-slot, .ath-features .ath-card--feature:nth-child(even) > .photo-fill { order: 2; }
.ath-more-title { margin: clamp(56px, 8vw, 96px) 0 clamp(24px, 3vw, 36px); padding-top: clamp(32px, 4vw, 48px); border-top: 2px solid var(--iron-black); }
.ath-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .ath-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .ath-features .ath-card--feature, .ath-features .ath-card--feature:nth-child(even) { grid-template-columns: 1fr; }
  .ath-features .ath-card--feature:nth-child(even) > .photo-slot { order: 0; }
}
.case-body p.ath-soon { margin-top: 10px; font-size: 14px; opacity: .55; }
.case-img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; border-bottom: 1px solid rgba(20,23,26,.1); }
.hero-split .media-ph.media-ph--landscape { aspect-ratio: 4/3; }
