/* EnDriven — light, mobile-first styles */

@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Thin.woff2") format("woff2"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #ffffff;
  --mist: #f1f3f5;
  --line: #dde1e5;
  --ink: #14171a;
  --ink-soft: #55606b;
  --magenta: #e40862;
  --magenta-deep: #c90657;
  --gutter: 1.25rem;
  --max: 76rem;
  --head-h: 4rem;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 1rem); }
body {
  margin: 0;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(228, 8, 98, .15);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
strong, b { font-weight: 500; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.name { color: var(--magenta-deep); font-weight: 500; }
.rule { display: block; width: 3.5rem; height: 4px; background: var(--magenta); margin-bottom: 1.25rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--head-h); }
.brand { display: flex; align-items: center; height: 100%; position: relative; z-index: 42; }
.brand img { height: 1.75rem; width: auto; }
.menu-btn { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: .36rem; width: 3rem; height: 3rem; margin-right: -.6rem; background: none; border: 0; color: var(--ink); cursor: pointer; position: relative; z-index: 42; }
.menu-btn span { display: block; width: 1.5rem; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(.48rem) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-.48rem) rotate(-45deg); }
.menu-open { overflow: hidden; }

.nav { position: fixed; inset: 0; z-index: 40; background: var(--paper); padding: calc(var(--head-h) + .5rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom)); overflow-y: auto; display: none; }
.nav.open { display: block; }
.nav > a { display: flex; align-items: center; min-height: 3.75rem; text-decoration: none; font-size: 1.6rem; font-weight: 300; letter-spacing: -.01em; border-bottom: 1px solid var(--line); }
.nav > a[aria-current="page"] { color: var(--magenta-deep); font-weight: 400; }
.nav .nav-companies { display: none; }
.nav-cos { margin-top: 1.75rem; }
.nav-cos p { font-weight: 500; font-size: .95rem; }
.nav-cos p span { color: var(--magenta-deep); }
.nav-cos ul { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .9rem; }
.nav-cos li a { display: flex; align-items: center; justify-content: center; min-height: 5.25rem; padding: .9rem 1rem; background: var(--mist); border-radius: var(--radius); }
.nav-cos img { max-height: 3rem; max-width: min(100%, 9.5rem); width: auto; height: auto; }
.companies-panel { display: none; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 3.25rem; padding: .8rem 1.5rem; border-radius: var(--radius); text-decoration: none; font-weight: 500; font-size: 1rem; background: var(--magenta-deep); color: #fff; border: 1px solid var(--magenta-deep); transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); border-color: #aeb5bd; }
.btn--line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn svg { width: .9rem; height: .9rem; flex: none; }
.btn--block { display: flex; width: 100%; }

/* ---------- Home hero ---------- */
.hero { position: relative; }
.hero-photo { width: 100%; height: 54vh; height: 54svh; min-height: 17rem; max-height: 34rem; object-fit: cover; object-position: 62% 50%; }
.plate { background: var(--magenta-deep); color: #fff; padding: 2rem var(--gutter) 2.25rem; }
.plate h1 { font-weight: 300; font-size: clamp(2.35rem, 10.5vw, 3.4rem); line-height: 1.03; letter-spacing: -.028em; }
.plate h1 em { font-style: normal; font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .plate { animation: rise .7s cubic-bezier(.2,.7,.2,1) .1s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }
}

/* ---------- Page head (inner pages) ---------- */
.page-head { padding-top: 2.25rem; }
.page-head h1 { font-weight: 300; font-size: clamp(2.5rem, 11vw, 3.5rem); line-height: 1.04; letter-spacing: -.028em; }
.page-head .lede { margin-top: 1rem; font-size: 1.2rem; line-height: 1.45; font-weight: 300; color: #2a2f35; }
.page-head .photo { margin: 1.75rem calc(-1 * var(--gutter)) 0; }
.page-head .photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.page-head .co-logo { height: 4.5rem; width: auto; max-width: 80%; object-fit: contain; object-position: left center; margin-bottom: 1.25rem; }
.page-head .btn { margin-top: 1.5rem; }

/* ---------- Bands ---------- */
.band { padding-block: 3.25rem; }
.band--mist { background: var(--mist); }
.band-title { font-weight: 300; font-size: clamp(1.75rem, 7vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em; }
.band-title + * { margin-top: 1.25rem; }
.statement { font-weight: 300; font-size: clamp(1.4rem, 5.6vw, 2.15rem); line-height: 1.3; letter-spacing: -.012em; }
.statement + .btn { margin-top: 1.75rem; }
.split { display: grid; gap: 1.25rem; }
.split--lead { gap: 2rem; }

.prose { border-top: 4px solid var(--magenta); padding-top: 1.5rem; }
.prose p { font-size: 1.1rem; line-height: 1.6; }
.prose p + p { margin-top: 1.4em; padding-top: 1.4em; border-top: 1px solid var(--line); }

/* Business lines */
.lines { display: grid; gap: 1rem; margin-top: 1.75rem; }
.line { background: var(--paper); border-top: 4px solid var(--magenta); border-radius: 0 0 var(--radius) var(--radius); padding: 1.25rem 1.25rem .5rem; }
.band:not(.band--mist) .line { background: var(--mist); }
.line h3 { font-weight: 500; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; }
.line ul { margin-top: .9rem; }
.line li { padding: .85rem 0; border-top: 1px solid var(--line); line-height: 1.45; }
a.line { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; padding: 1.1rem 1.25rem; text-decoration: none; }
a.line svg { width: .8rem; height: .8rem; flex: none; color: var(--magenta-deep); transform: rotate(-90deg); }
a.line:hover h3 { color: var(--magenta-deep); }

/* Companies — swipe row on phones, grid on larger screens */
.region { color: var(--magenta-deep); font-weight: 500; font-size: .95rem; margin-top: .5rem; }
.cos { display: flex; gap: .75rem; margin: 1.5rem calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) .5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cos::-webkit-scrollbar { display: none; }
.co { flex: 0 0 68%; max-width: 17rem; scroll-snap-align: start; display: flex; flex-direction: column; gap: 1.25rem; padding: 1.25rem; min-height: 13.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.co:hover { border-color: #aeb5bd; }
.co[aria-current="page"] { border-color: var(--magenta); box-shadow: inset 0 4px 0 var(--magenta); }
.co .logo { height: 4.75rem; display: flex; align-items: center; }
.co .logo img { max-height: 100%; max-width: min(100%, 11rem); width: auto; height: auto; }
.co .what { font-size: .92rem; line-height: 1.4; color: var(--ink-soft); }
.co .who { display: block; font-weight: 500; color: var(--ink); font-size: 1.05rem; margin-bottom: .15rem; }

/* Company page */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.facts > div { background: var(--mist); border-radius: var(--radius); padding: 1.1rem 1.25rem 1.25rem; }
.facts > div:first-child { grid-column: 1 / -1; }
.facts dt { color: var(--magenta-deep); font-weight: 500; font-size: .92rem; }
.facts dd { margin-top: .25rem; font-weight: 300; font-size: 2.4rem; line-height: 1.1; letter-spacing: -.02em; }
.facts > div:first-child dd { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.012em; }
.points { margin-top: 2rem; }
.points li { position: relative; break-inside: avoid; padding: 1rem 0 1rem 1.5rem; border-top: 1px solid var(--line); font-size: 1.08rem; line-height: 1.5; }
.points li::before { content: ""; position: absolute; left: 0; top: 1.72rem; width: .6rem; height: 2px; background: var(--magenta); }
.after-points { margin-top: 1.5rem; }

/* Team */
.leaders { display: grid; gap: 2.25rem; margin-top: 1.5rem; }
.leader { border-top: 4px solid var(--magenta); padding-top: 1.25rem; }
.role { color: var(--magenta-deep); font-weight: 500; font-size: .92rem; }
.leader h3 { font-weight: 300; font-size: clamp(1.9rem, 8vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; margin-top: .2rem; }
.leader details { margin-top: 1rem; }
.leader summary { display: flex; align-items: center; justify-content: space-between; min-height: 3.25rem; padding: 0 1.1rem; background: var(--mist); border-radius: var(--radius); font-weight: 500; cursor: pointer; list-style: none; }
.leader summary::-webkit-details-marker { display: none; }
.leader summary::after { content: "+"; font-weight: 300; font-size: 1.7rem; line-height: 1; color: var(--magenta-deep); }
.leader details[open] summary::after { content: "–"; }
.leader .bio { padding-top: 1.1rem; }
.leader .bio p { color: #2a2f35; }
.leader .bio p + p { margin-top: 1em; }
.crews { display: grid; gap: .75rem; margin-top: 1.5rem; }
.crew { background: var(--paper); border-radius: var(--radius); padding: 1.25rem; display: grid; grid-template-columns: 6.25rem 1fr; gap: .5rem 1.25rem; align-items: start; }
.crew .crew-logo { display: flex; align-items: center; min-height: 3rem; }
.crew .crew-logo img { max-height: 3rem; max-width: min(100%, 9.5rem); width: auto; height: auto; }
.crew li + li { margin-top: .85rem; }
.crew .person { display: block; font-size: 1.08rem; line-height: 1.3; }
.crew .role { display: block; font-size: .86rem; }

/* Contact */
.actions { display: grid; gap: .6rem; }
.contact address { font-style: normal; font-weight: 300; font-size: 1.5rem; line-height: 1.3; letter-spacing: -.012em; }
.contact .lines-dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; margin: 1.5rem 0 1.75rem; font-size: 1.08rem; }
.contact dt { color: var(--magenta-deep); font-weight: 500; }
.contact dd a { text-decoration: none; border-bottom: 1px solid #aeb5bd; }
.map { position: relative; margin-top: 2rem; min-height: 20rem; background: var(--mist); border-radius: var(--radius); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mist); color: var(--ink-soft); font-size: .95rem; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 2.75rem calc(1.75rem + env(safe-area-inset-bottom)); }
.foot { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
.foot > :first-child { grid-column: 1 / -1; }
.foot img { height: 1.7rem; width: auto; margin-bottom: 1.25rem; }
.foot h2 { color: var(--ink); font-size: .95rem; font-weight: 500; margin-bottom: .6rem; }
.foot a { text-decoration: none; display: inline-block; padding: .3rem 0; }
.foot a:hover { color: var(--magenta-deep); }
.foot address { font-style: normal; line-height: 1.7; }
.legal { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .85rem; }

/* ---------- 404 ---------- */
.plain { min-height: 100vh; display: flex; align-items: center; }
.plain h1 { font-weight: 300; font-size: clamp(2.2rem, 9vw, 3.5rem); line-height: 1.1; letter-spacing: -.02em; }
.plain p { margin-top: 1rem; color: var(--ink-soft); }
.plain .btn { margin-top: 2rem; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 2rem; }
  .cos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding: 0; }
  .co { grid-column: span 2; max-width: none; }
  .actions { grid-template-columns: repeat(3, 1fr); }
  .crews { grid-template-columns: 1fr 1fr; }
  .lines { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  a.line { align-items: flex-start; }
  .facts { grid-template-columns: 2fr 1fr 1fr; }
  .facts > div:first-child { grid-column: auto; }
  .points { columns: 2; column-gap: 3rem; }
  .btn--block { display: inline-flex; width: auto; }
  .plate { padding: 2.5rem var(--gutter) 2.75rem; }
  .plate h1 { font-size: clamp(3rem, 8vw, 4.25rem); }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --gutter: 3rem; --head-h: 4.75rem; }
  .menu-btn { display: none; }
  .brand img { height: 2rem; }
  .nav { position: static; display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.25rem); padding: 0; overflow: visible; background: none; }
  .nav > a { min-height: 0; font-size: .97rem; font-weight: 400; letter-spacing: 0; border: 0; padding: .5rem 0; position: relative; }
  .nav > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: .1rem; height: 2px; background: var(--magenta); transition: right .25s ease; }
  .nav > a:hover::after, .nav > a[aria-current="page"]::after { right: 0; }
  .nav > a[aria-current="page"] { color: var(--ink); }
  .nav .nav-companies { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid #aeb5bd; border-radius: var(--radius); padding: .6rem 1rem; }
  .nav .nav-companies::after { display: none; }
  .nav .nav-companies:hover, .nav .nav-companies[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
  .nav .nav-companies svg { width: .7rem; height: .7rem; transition: transform .2s; }
  .nav .nav-companies[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav-cos { display: none; }
  .companies-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(20,23,26,.25); }
  .companies-panel.open { display: block; }
  .companies-panel .wrap { padding-block: 1.75rem 2rem; }
  .companies-panel p { color: var(--magenta-deep); font-weight: 500; font-size: .92rem; margin-bottom: .9rem; }
  .companies-panel ul { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; }
  .companies-panel li a { display: flex; align-items: center; justify-content: center; min-height: 6.5rem; padding: 1rem; background: var(--mist); border-radius: var(--radius); transition: background .2s; }
  .companies-panel li a:hover { background: #e4e8ec; }
  .companies-panel img { max-height: 3.5rem; max-width: min(100%, 10rem); width: auto; height: auto; }

  .hero { padding-bottom: 4rem; }
  .hero-photo { height: 72vh; min-height: 30rem; max-height: 46rem; object-position: 50% 55%; }
  .plate { position: absolute; left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); bottom: 0; width: min(38rem, 52vw); padding: 3rem 3rem 3.25rem; border-radius: var(--radius); }
  .plate h1 { font-size: clamp(3.2rem, 5vw, 4.5rem); }

  .page-head { padding-top: 4rem; }
  .page-head .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 4rem; align-items: center; }
  .page-head h1 { font-size: clamp(3.5rem, 6vw, 5rem); }
  .page-head .lede { font-size: 1.4rem; max-width: 34rem; }
  .page-head .photo { margin: 0; }
  .page-head .photo img { aspect-ratio: 4 / 3; border-radius: var(--radius); }
  .page-head .co-logo { height: 6rem; margin-bottom: 1.75rem; }
  .page-head--plain .wrap { display: block; }

  .band { padding-block: 6rem; }
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4rem; }
  .split--lead { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .band-title + .split, .band-title + .lines { margin-top: 2.5rem; }
  .statement { max-width: 46rem; }
  .lines { gap: 1.5rem; margin-top: 2.5rem; }
  .line { padding: 1.5rem 1.5rem .75rem; }
  a.line { padding: 1.5rem; min-height: 7rem; }
  .cos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
  .co { grid-column: auto; min-height: 13rem; }
  .facts { gap: 1rem; }
  .facts > div { padding: 1.5rem 1.75rem 1.75rem; }
  .facts dd { font-size: 3.25rem; }
  .facts > div:first-child dd { font-size: 1.9rem; }
  .points { margin-top: 3rem; column-gap: 4.5rem; }
  .leaders { grid-template-columns: 1fr 1fr; gap: 4.5rem; margin-top: 2.5rem; }
  .leader summary { display: none; }
  .crews { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
  .crew { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem; }
  .crew .crew-logo { min-height: 3.5rem; }
  .contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: stretch; }
  .contact address { font-size: 2rem; }
  .actions { grid-template-columns: 1fr; max-width: 20rem; }
  .map { margin-top: 0; min-height: 30rem; }
  .foot { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 3rem; }
  .foot > :first-child { grid-column: auto; }
  .site-footer .wrap { padding-block: 4rem 2rem; }
}
