/* WAY Equity Partners — site styles.
   Design tokens (colours, type scale, fonts) live in tokens.css, taken from the WAY design system.
   Layout: content is capped at 1240px; section backgrounds run full-bleed. Breakpoints: 1024px, 720px. */

:root {
  --page-max: 1240px;
  --gutter: 56px;
  --fd: var(--font-display);
}
@media (max-width: 1024px) { :root { --gutter: 40px; } }
@media (max-width: 720px)  { :root { --gutter: 20px; } }

html { scroll-behavior: smooth; }
body { background: var(--sandstorm); color: var(--graphite); }
a { border-bottom: 0; color: inherit; }
a:hover { color: var(--alpheratz-blue); }
img { max-width: 100%; }
button { font: inherit; }

/* Japanese: brand Latin faces first, then system Japanese gothic. Break lines between phrases. */
html[lang="ja"] {
  --font-display: "Pilat Wide", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  --font-body: "Sharp Sans", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
}
html[lang="ja"] body, html[lang="ja"] body * { word-break: auto-phrase; line-break: strict; }
html[lang="ja"] h1, html[lang="ja"] h2 { line-height: 1.3 !important; letter-spacing: 0.01em !important; }
html[lang="ja"] p { line-height: 1.85; }
html[lang="ja"] .latin-tight { line-height: 1.02 !important; letter-spacing: -0.01em !important; }
.nb { white-space: nowrap; }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--page-max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sec { padding-top: 72px; padding-bottom: 72px; }
.sec + .sec.bt, .bt { border-top: 1px solid var(--border-subtle); }
.inv { background: var(--graphite); color: var(--sandstorm); }
.brand { background: var(--alpheratz-blue); color: var(--sandstorm); }
.inv h1, .inv h2, .brand h1, .brand h2 { color: var(--sandstorm); }
.display { font-family: var(--fd); font-stretch: var(--font-display-stretch); font-weight: 700; }
.demi { font-family: var(--fd); font-stretch: var(--font-display-stretch); font-weight: 600; }
.muted { color: var(--text-muted); }
.en-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.lead { font-size: 18px; max-width: 1000px; }
html[lang="ja"] .lead { font-size: 17px; }
.more { display: inline-block; margin-top: 24px; font-size: 14px; font-weight: 600; }

/* Numbered two-column rows (home, philosophy) */
.row2 { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
.num { font-family: var(--fd); font-stretch: var(--font-display-stretch); font-weight: 700; font-size: 28px; color: var(--alpheratz-blue); }
.num .lbl { display: block; margin-top: 8px; font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.num .ja { display: block; margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--graphite); letter-spacing: 0; text-transform: none; }
.inv .num { color: var(--alpheratz-light-1); } .inv .num .lbl { color: var(--grey-2); } .inv .num .ja { color: var(--sandstorm); }
.brand .num { color: var(--alpheratz-light-2); } .brand .num .lbl { color: var(--alpheratz-light-1); } .brand .num .ja { color: var(--sandstorm); }
@media (max-width: 1024px) { .row2 { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,240,230,0.92); backdrop-filter: var(--blur-sticky); border-bottom: 1px solid var(--border-subtle); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 20px; padding-bottom: 20px; }
.site-header .logo img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.nav a { color: var(--graphite); padding-bottom: 2px; }
.nav a.active { border-bottom: 1px solid var(--graphite); }
.nav .drop { position: relative; }
.nav .drop-menu { display: none; position: absolute; top: 100%; left: -18px; padding-top: 20px; z-index: 60; }
.nav .drop-menu div { display: grid; gap: 2px; background: var(--sandstorm); padding: 14px 0 18px; min-width: 200px; box-shadow: var(--shadow-raised); }
.nav .drop-menu a { display: block; padding: 8px 18px; }
.nav .drop:hover .drop-menu, .nav .drop:focus-within .drop-menu { display: block; }
.lang { display: flex; gap: 8px; align-items: center; color: var(--text-muted); font-size: 13px; border-left: 1px solid var(--border-subtle); padding-left: 24px; }
.lang a { color: var(--text-muted); }
.lang a.on { color: var(--graphite); border-bottom: 1px solid var(--graphite); }
.nav .pill { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 999px; background: var(--graphite); color: var(--sandstorm) !important; font-size: 13px; }
.pill:hover { background: #000; }
.menu-btn { display: none; background: none; border: 1px solid var(--border-default); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--graphite); }
@media (max-width: 1024px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px var(--gutter) 32px; background: var(--sandstorm); border-bottom: 1px solid var(--border-subtle); }
  .nav.open { display: flex; }
  .nav .drop-menu { display: block; position: static; padding: 8px 0 0; }
  .nav .drop-menu div { box-shadow: none; padding: 0 0 0 12px; background: none; }
  .nav .drop-menu a { padding: 6px 0; font-weight: 500; }
  .lang { border-left: 0; padding-left: 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); color: var(--sandstorm); border-top: 1px solid var(--border-inverse); }
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 56px; flex-wrap: wrap; }
.foot-top img { height: 100px; width: auto; }
.foot-cols { display: flex; gap: 56px; align-items: flex-start; font-size: 14px; font-weight: 500; }
.foot-cols nav, .foot-cols .langs { display: grid; gap: 12px; }
.foot-cols a { color: var(--sandstorm); }
.foot-cols .langs a { color: var(--grey-2); justify-self: start; }
.foot-cols .langs a.on { color: var(--sandstorm); border-bottom: 1px solid var(--sandstorm); }
.foot-bottom { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border-inverse); display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--grey-2); flex-wrap: wrap; }

/* ---------- Buttons & forms (WAY design system) ---------- */
.btn { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.02em; border-radius: 999px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; white-space: nowrap; font-size: 14px; padding: 12px 28px; min-height: 44px; background: var(--graphite); color: var(--sandstorm); transition: var(--transition-control), transform var(--duration-fast) var(--ease-standard); }
.btn:hover { background: #000; color: var(--sandstorm); }
.btn:active { transform: scale(var(--press-scale)); }
.btn.inverse { background: var(--sandstorm); color: var(--graphite); }
.btn.inverse:hover { background: var(--white); color: var(--graphite); }
.btn.full { width: 100%; }
.field { display: block; }
.field span { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.field input, .field textarea { width: 100%; min-height: 44px; background: var(--white); border: 1px solid var(--border-default); border-radius: 4px; padding: 11px 14px; font-family: var(--font-body); font-weight: 500; font-size: 16px; color: var(--graphite); outline: none; transition: var(--transition-control), box-shadow var(--duration-fast) var(--ease-standard); }
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { border-color: var(--alpheratz-blue); box-shadow: 0 0 0 3px var(--alpheratz-light-2); }
.check { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; font-weight: 500; position: relative; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 2px; border: 1px solid var(--border-default); background: var(--white); display: grid; place-items: center; transition: var(--transition-control); }
.check .box::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--sandstorm); border-bottom: 2px solid var(--sandstorm); transform: rotate(-45deg) translate(1px,-1px); opacity: 0; }
.check input:checked + .box { background: var(--alpheratz-blue); border-color: var(--alpheratz-blue); }
.check input:checked + .box::after { opacity: 1; }
.check input:focus-visible + .box { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---------- Heroes ---------- */
.hero-home { position: relative; padding: 120px 0; background-color: var(--graphite); background-size: cover; background-position: center; }
.hero-home h1 { margin: 0; color: var(--sandstorm); font-size: clamp(44px, 7vw, 68px); line-height: 1.0; letter-spacing: -0.01em; max-width: 560px; }
.hero-home .tag { margin-top: 32px; display: grid; gap: 6px; font-size: 18px; font-weight: 600; color: var(--sandstorm); }
.hero-photo { position: relative; height: 520px; overflow: hidden; background: var(--graphite); }
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo .over { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,20,20,0.10), rgba(25,20,20,0.70)); }
.hero-photo .over .wrap { height: 100%; display: grid; align-content: end; gap: 24px; padding-bottom: 56px; }
.hero-photo .kicker { font-size: 24px; letter-spacing: -0.01em; color: var(--sandstorm); padding-bottom: 20px; border-bottom: 1px solid var(--sandstorm); }
.hero-photo h1 { margin: 0; font-size: clamp(36px, 5.5vw, 56px); line-height: 1.02; letter-spacing: -0.02em; color: var(--sandstorm); max-width: 16ch; }
html[lang="ja"] .hero-photo h1 { max-width: none; font-size: clamp(30px, 5vw, 52px); }
.hero-photo.rotated > img { inset: auto; left: 50%; top: 50%; width: 520px; height: 100vw; min-height: 1240px; max-width: none; transform: translate(-50%,-50%) rotate(90deg); object-position: 44% 50%; opacity: 0.85; }
.hero-photo.rotated .over { background: linear-gradient(180deg, rgba(25,20,20,0.25), rgba(25,20,20,0.75)); }
@media (max-width: 720px) { .hero-photo { height: 420px; } .hero-home { padding: 88px 0; } }

.page-head { padding-top: 80px; padding-bottom: 48px; }
.page-head h1 { margin: 20px 0 0; font-size: clamp(38px, 6vw, 56px); line-height: 1.02; max-width: 16ch; }
html[lang="ja"] .page-head h1 { max-width: none; }
.page-head p { margin: 28px 0 0; font-size: 18px; color: var(--text-muted); max-width: 56ch; }

/* ---------- Home ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mission { margin: 0; font-family: var(--fd); font-stretch: var(--font-display-stretch); font-weight: 600; font-size: clamp(22px, 3vw, 30px); line-height: 1.35; max-width: 860px; min-height: 5.4em; }
html[lang="ja"] .mission { font-size: clamp(20px, 2.8vw, 28px); line-height: 1.6; min-height: 6.6em; }
.caret { display: inline-block; width: 3px; height: 1em; background: var(--alpheratz-blue); vertical-align: -0.12em; margin-left: 2px; }
.what { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; max-width: 800px; }
.what > div { display: grid; gap: 14px; grid-template-rows: auto auto 1fr auto; }
.what img { width: 40px; height: 40px; }
.what .t { font-family: var(--fd); font-stretch: var(--font-display-stretch); font-weight: 600; font-size: 18px; }
.what .t small { display: block; margin-top: 6px; font-size: 15px; font-weight: 700; }
.what p { font-size: 14px; color: var(--text-muted); align-self: start; }
.what .more { margin-top: 14px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--border-subtle); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.card .ph { width: 100%; height: 180px; object-fit: cover; object-position: 50% 0%; }
.card .ph2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; height: 180px; }
.card .ph2 div { background-color: var(--grey-1); background-repeat: no-repeat; }
.card .ph-logo { height: 180px; display: flex; align-items: center; justify-content: center; }
.card .ph-logo.renga { background: #9E5040; }
.card .ph-logo.sora { background: #706D50; }
.card .ph-logo.sora img { width: 66%; }
.card .ph-logo img { width: 56%; height: auto; }
.ph-logo.neo { background: #16264A; }
.ph-logo.haven { background: #5067BA; }
.card .ph-logo.haven img { width: 64%; }
.co-logo { display: flex; align-items: center; justify-content: center; height: 320px; }
.co-logo img { width: 52%; height: auto; }
.co-logo.haven img { width: 60%; }
.co-logo.renga { background: #9E5040; } .co-logo.sora { background: #706D50; }
.card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card .name { font-family: var(--fd); font-stretch: var(--font-display-stretch); font-weight: 600; font-size: 20px; }
.card .name small { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.card p { margin-top: 10px; font-size: 14px; color: var(--text-muted); min-height: 66px; }
.card .led { margin-top: 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
html[lang="ja"] .card .led { font-size: 12px; letter-spacing: 0; text-transform: none; }
.card .led div { color: var(--text-muted); margin-bottom: 4px; }
.card .see { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 600; }
.li { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.team-teaser { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.team-teaser h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; }
html[lang="ja"] .team-teaser h2 { font-size: clamp(22px, 2.6vw, 30px); }
.team-teaser img { width: 100%; height: 240px; object-fit: cover; }
.careers-cta { display: grid; gap: 24px; justify-items: start; }
.careers-cta h2 { font-size: 44px; line-height: 1.05; }
.careers-cta p { font-size: 16px; max-width: 560px; color: var(--alpheratz-light-2); }
@media (max-width: 1024px) { .team-teaser { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .what, .cards { grid-template-columns: 1fr; }
}

/* ---------- Philosophy ---------- */
.vision { font-family: var(--fd); font-stretch: var(--font-display-stretch); font-weight: 700; font-size: clamp(32px, 4.5vw, 44px); line-height: 1.06; letter-spacing: -0.01em; max-width: 24ch; }
html[lang="ja"] .vision { font-size: clamp(28px, 4vw, 40px); line-height: 1.4; max-width: none; }
.statement { font-family: var(--fd); font-stretch: var(--font-display-stretch); font-weight: 600; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.28; max-width: 44ch; }
html[lang="ja"] .statement { font-size: clamp(18px, 2.2vw, 24px); line-height: 1.6; max-width: 40em; }
.aims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.way-aim { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 14px; align-content: start; padding: 20px 18px 22px; border-top: 1px solid var(--border-inverse); }
.way-aim::before { content: ""; position: absolute; inset: 0; background: var(--alpheratz-blue); transform: scaleY(0); transform-origin: top; transition: transform 420ms var(--ease-out); z-index: -1; }
.way-aim:hover::before { transform: scaleY(1); }
.way-aim .n { font-family: var(--fd); font-weight: 700; font-size: 14px; color: var(--alpheratz-light-1); }
.way-aim p { font-size: 15px; line-height: 1.6; color: var(--sandstorm); transition: color 220ms ease; }
.way-aim:hover p { color: var(--graphite); } .way-aim:hover .n { color: #fff; }
.values { display: grid; }
.val { display: grid; grid-template-columns: 64px 300px 1fr; gap: 32px; align-items: start; padding: 26px 0; border-top: 1px solid var(--border-subtle); }
html[lang="ja"] .val { grid-template-columns: 64px 320px 1fr; }
.val:last-child { border-bottom: 1px solid var(--border-subtle); }
.val .n { font-family: var(--fd); font-weight: 700; font-size: 14px; color: var(--alpheratz-blue); padding-top: 3px; }
.val .t { font-family: var(--fd); font-stretch: var(--font-display-stretch); font-weight: 600; font-size: 21px; line-height: 1.15; }
html[lang="ja"] .val .t { font-weight: 700; font-size: 19px; line-height: 1.45; }
.val .icons { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.val .icons img { width: 30px; height: 30px; opacity: 0.4; }
.val .icons img.on { width: 40px; height: 40px; opacity: 1; }
.val .txt { display: grid; gap: 10px; max-width: 56ch; }
.val .txt p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.story > img { width: 100%; height: 420px; object-fit: cover; object-position: 50% 22%; background: var(--grey-3); }
.story .txt { display: grid; gap: 22px; }
.story .txt p { font-size: clamp(19px, 2vw, 24px); line-height: 1.3; }
html[lang="ja"] .story .txt p { font-size: 19px; line-height: 1.85; }
.story .by { font-weight: 600; font-size: 19px; }
@media (max-width: 1024px) { .aims { grid-template-columns: repeat(2, 1fr); } .val, html[lang="ja"] .val { grid-template-columns: 48px 1fr; } .val .txt { grid-column: 2; } .story { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .aims { grid-template-columns: 1fr; } .val .icons img { width: 24px; height: 24px; } .val .icons img.on { width: 32px; height: 32px; } }

/* ---------- Approach ---------- */
.intro h2 { margin: 0 0 20px; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.05; letter-spacing: -0.01em; }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.way-pick { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 10px; padding: 24px 18px 26px; color: var(--graphite); border-top: 1px solid var(--graphite); }
.way-pick::before { content: ""; position: absolute; inset: 0; background: var(--alpheratz-blue); transform: scaleY(0); transform-origin: top; transition: transform 420ms var(--ease-out); z-index: -1; }
.way-pick:hover::before { transform: scaleY(1); }
.way-pick span { transition: color 220ms ease; }
.way-pick:hover, .way-pick:hover span { color: #fff !important; }
.way-pick .n, .engine .n { font-family: var(--fd); font-weight: 700; font-size: 14px; color: var(--alpheratz-blue); }
.way-pick .t { font-family: var(--fd); font-stretch: var(--font-display-stretch); font-weight: 700; font-size: clamp(30px, 4vw, 40px); line-height: 1.02; letter-spacing: -0.01em; }
.way-pick .s, .engine h2 small { font-size: 15px; font-weight: 600; }
.engine { display: grid; gap: 16px; scroll-margin-top: 96px; }
.engine h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.02; letter-spacing: -0.01em; }
.engine h2 small { display: block; margin-top: 10px; font-size: 20px; }
.engine > p { margin-top: 12px; }
.engine.sep { padding-top: 48px; border-top: 1px solid var(--grey-2); }
.steps { margin-top: 48px; display: grid; }
.step { display: grid; grid-template-columns: 284px 1fr; gap: 28px; align-items: center; padding: 28px 0; border-top: 1px solid var(--border-subtle); }
.step:last-child { border-bottom: 1px solid var(--border-subtle); }
.step .k { display: flex; align-items: center; gap: 28px; }
.step img { width: 48px; height: 48px; filter: brightness(0) saturate(100%) invert(27%) sepia(83%) saturate(2400%) hue-rotate(203deg) brightness(93%) contrast(95%) drop-shadow(0.35px 0 0 #1469D2) drop-shadow(0 0.35px 0 #1469D2); }
.step .t { font-family: var(--fd); font-stretch: var(--font-display-stretch); font-weight: 700; font-size: 22px; line-height: 1.1; }
.step .t small { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.step p { font-size: 15px; line-height: 1.6; color: var(--text-muted); max-width: 70ch; }
html[lang="en"] .step p { text-align: justify; }
@media (max-width: 720px) { .picks { grid-template-columns: 1fr; gap: 0; } .step { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Group companies ---------- */
.band-build { background: var(--alpheratz-light-2); border-top: 3px solid var(--graphite); }
.band-buy { background: var(--alpheratz-dark-2); color: var(--sandstorm-light); border-top: 3px solid var(--sandstorm-light); }
.band-buy h2 { color: var(--sandstorm-light); }
.band-head { display: grid; gap: 10px; padding: 48px 0 8px; }
.band-head h2 { font-size: 28px; }
.band-head p { font-size: 16px; max-width: calc((100% - 48px) / 2); }
.co { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px 0; }
.band-buy .co + .co { border-top: 1px solid rgba(250,250,250,0.28); }
.band-buy .co:last-child { border-bottom: 1px solid rgba(250,250,250,0.28); }
.co h2 { font-size: 36px; }
.co h2 small { display: block; margin-top: 8px; font-size: 16px; font-weight: 600; }
.co p { margin-top: 16px; font-size: 16px; max-width: 44ch; }
.co dl { margin: 24px 0 0; display: grid; gap: 10px; font-size: 14px; }
.co dl div { display: flex; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(5,50,100,0.28); }
.band-buy .co dl div { border-bottom-color: rgba(250,250,250,0.28); }
.co dt { width: 140px; flex: none; } .co dd { margin: 0; font-weight: 600; }
.co .visit { display: inline-block; margin-top: 24px; font-size: 14px; font-weight: 600; }
.co > img { width: 100%; height: 320px; object-fit: cover; background: var(--grey-3); }
.band-build .wrap { padding-bottom: 32px; } .band-buy .wrap { padding-bottom: 72px; }
.way-bw { filter: grayscale(1); transition: filter 450ms var(--ease-out); }
.way-bw:hover { filter: grayscale(0); }
@media (max-width: 1024px) { .band-head p { max-width: none; } .co { grid-template-columns: 1fr; gap: 24px; } .co > img, .co > .co-logo { order: -1; } .co-logo { height: 240px; } }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
.tm .ph { display: block; width: 100%; aspect-ratio: 264 / 330; height: auto; object-fit: cover; object-position: 50% 30%; background: var(--grey-1); }
.tm .ph.empty { display: grid; place-items: center; }
.tm h2 { margin: 16px 0 0; font-size: 19px; }
.tm .r { margin-top: 6px; font-size: 13px; color: var(--text-muted); }
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } .tm h2 { font-size: 16px; } }

/* ---------- Careers ---------- */
.careers-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 64px; }
.careers-hero h1 { margin: 20px 0 0; font-size: clamp(40px, 6vw, 60px); line-height: 1.02; }
.careers-hero p { margin: 28px 0 0; font-size: 18px; color: var(--text-muted); max-width: 44ch; }
.careers-hero img { width: 100%; height: 360px; object-fit: cover; object-position: 50% 55%; }
.spin-cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.spin-cta h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.1; max-width: 24ch; }
html[lang="ja"] .spin-cta h2 { font-size: clamp(22px, 2.6vw, 30px); max-width: 24em; }
@media (max-width: 1024px) { .careers-hero { grid-template-columns: 1fr; } }
.roles-title { margin: 0 0 20px; color: var(--graphite); }
.roles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--graphite); border-bottom: 1px solid var(--graphite); }
.roles li + li { border-top: 1px solid var(--border-subtle); }
.roles a { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr auto; gap: 32px; align-items: baseline; padding: 24px 0; color: inherit; text-decoration: none; }
.roles h3 { margin: 0; font-size: 20px; }
.roles p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.roles span { font-size: 14px; font-weight: 600; white-space: nowrap; }
.roles a:hover h3, .roles a:focus-visible h3 { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 720px) { .roles a { grid-template-columns: 1fr; gap: 8px; } }
@media (max-width: 720px) { .spin-cta .wrap { flex-direction: column; align-items: flex-start; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 80px; padding-bottom: 96px; }
.contact h1 { font-size: clamp(34px, 4.5vw, 44px); line-height: 1.05; max-width: 14ch; }
.contact .rule { margin-top: 20px; width: 148px; height: 1px; background: var(--graphite); }
.contact-method { display: grid; gap: 20px; background: var(--white); padding: 36px; border-radius: 8px; border: 1px solid var(--border-subtle); align-self: start; }
.contact-method fieldset { display: grid; gap: 20px; min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-method :disabled, .contact-method fieldset:disabled .check { cursor: not-allowed; }
.contact-method .btn:disabled { opacity: 0.65; }
.contact-method #contact-status { margin: 0; font-size: 14px; }
@media (max-width: 1024px) { .contact { grid-template-columns: 1fr; gap: 32px; } .contact-method { padding: 24px; } }

/* ---------- "Build the future with us" CTA bands + spaceship effects ---------- */
.fx { position: relative; overflow: hidden; }
.fx .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.cta h2 { font-size: clamp(32px, 4.5vw, 44px); line-height: 1.05; letter-spacing: -0.02em; max-width: 22ch; }
html[lang="ja"] .cta h2 { font-size: clamp(28px, 4vw, 40px); max-width: none; }
.cta .en-label { color: var(--alpheratz-light-1); margin-bottom: 14px; }
.cta .btn { margin-top: 32px; }
.fx-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; }
.fx-layer.under { z-index: 0; }

.way-hand, .way-hand *, .way-hand *:hover { cursor: url("../ship.svg") 15 0, pointer !important; }
.way-hand-dark, .way-hand-dark *, .way-hand-dark *:hover { cursor: url("../ship-black.svg") 15 0, pointer !important; }
.way-hand-off, .way-hand-off *, .way-hand-off *:hover { cursor: none !important; }
@media (hover: hover) and (pointer: fine) { .way-ship-zone, .way-ship-zone * { cursor: none !important; } }
.pix { image-rendering: pixelated; max-width: none; }

@keyframes way-launch { 0% { transform: translate(0,4px) scale(1.1) } 14% { transform: translate(0,-20px) scale(1.1) } 100% { transform: translate(0,-380px) scale(.45); opacity: 0 } }
@keyframes way-exhaust { 0% { opacity: 0; transform: translate(0,0) scaleY(.4) } 15% { opacity: 1; transform: translate(0,-10px) scaleY(1) } 60% { opacity: .9; transform: translate(0,-150px) scaleY(2.2) } 100% { opacity: 0; transform: translate(0,-300px) scaleY(2.6) } }
@keyframes way-puff { 0% { opacity: .95; transform: scale(1) } 100% { opacity: 0; transform: scale(.15) } }
@keyframes way-hyper-ship { 0% { transform: translate(0,0) rotate(45deg) scale(1.1) } 16% { transform: translate(-12px,12px) rotate(45deg) scale(1.2) } 100% { transform: translate(1100px,-1100px) rotate(45deg) scale(.55); opacity: 0 } }
@keyframes way-hyper-burst { 0% { opacity: .95; transform: scale(.2) } 100% { opacity: 0; transform: scale(3.2) } }
@keyframes way-hyper-streak { 0% { opacity: 0; transform: translateX(0) scaleX(0) } 25% { opacity: 1 } 100% { opacity: 0; transform: translateX(900px) scaleX(1) } }
@keyframes way-warp-line { 0% { transform: translateX(0) } 100% { transform: translateX(-1800px) } }
@keyframes way-laser { 0% { opacity: 1; transform: translateX(0) } 99% { opacity: 1 } 100% { opacity: 0; transform: translateX(1400px) } }
@keyframes way-laser-flash { 0% { opacity: 1; transform: scale(1.4) } 100% { opacity: 0; transform: scale(.4) } }
@keyframes way-flicker { from { transform: scaleY(.75) scaleX(.85) } to { transform: scaleY(1.15) scaleX(1.1) } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fx-layer { display: none; }
}

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.pillars > div { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 1px solid var(--graphite); }
.pillars .n { font-family: var(--font-display); font-stretch: var(--font-display-stretch); font-weight: 700; font-size: 14px; color: var(--alpheratz-blue); }
.pillars h3 { margin: 0; font-size: 20px; line-height: 1.5; }
.pillars p { margin: 0; font-size: 15px; line-height: 1.75; }
@media (max-width: 1024px) { .pillars { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Job description pages ---------- */
.job-head { border-bottom: 1px solid var(--border-subtle); }
.job-head .wrap { padding-top: 48px; padding-bottom: 56px; }
.job-back { font-size: 14px; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.job-back:hover { color: var(--alpheratz-blue); }
.job-head h1 { margin: 16px 0 0; font-size: clamp(38px, 6vw, 60px); line-height: 1.04; }
.job-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.job-details { display: flex; gap: 48px; margin: 0; flex-wrap: wrap; }
.job-details dt { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
html[lang="ja"] .job-details dt { letter-spacing: 0.04em; }
.job-details dd { margin: 6px 0 0; font-size: 16px; font-weight: 600; }
.job-sec .wrap, .job-traits .wrap { padding-top: 72px; padding-bottom: 72px; }
.job-grid { display: grid; grid-template-columns: 200px 1fr; gap: 48px; }
.job-k { font-family: var(--fd); font-stretch: var(--font-display-stretch); font-weight: 700; font-size: 28px; color: var(--alpheratz-blue); }
.inv .job-k { color: var(--alpheratz-light-1); }
.job-grid h2 { margin: 0 0 24px; font-size: clamp(26px, 3vw, 34px); }
.job-grid .lead { margin: 0 0 18px; max-width: 60ch; line-height: 1.65; }
html[lang="ja"] .job-grid .lead { max-width: 44em; line-height: 1.9; }
.job-traits .lead { color: var(--grey-2); }
.job-values { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 24px; margin-top: 32px; }
.job-values h3 { margin: 0; font-size: 18px; line-height: 1.3; color: var(--sandstorm); transition: color 220ms ease; }
html[lang="ja"] .job-values h3 { font-size: 16px; line-height: 1.6; }
.job-values .way-aim:hover h3 { color: #fff; }
.job-main h3 { margin: 48px 0 16px; font-size: 20px; }
.job-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--graphite); max-width: 860px; }
.job-list li { padding: 16px 0 16px 36px; border-bottom: 1px solid var(--border-subtle); position: relative; font-size: 16px; line-height: 1.6; }
.job-list li::before { content: "→"; position: absolute; left: 0; top: 16px; color: var(--alpheratz-blue); font-weight: 700; }
.job-ai { margin-top: 56px; padding: 32px; background: var(--alpheratz-light-2); border-top: 3px solid var(--graphite); max-width: 860px; }
.job-ai h3 { margin: 0 0 12px !important; }
.job-ai > p { margin: 0 0 16px; }
.job-ai .job-list { border-top-color: var(--alpheratz-blue); }
.job-ai .job-list li { border-bottom-color: rgba(20,105,210,0.25); }
.job-req { margin-top: 72px !important; }
.job-cta-text { margin: 12px 0 0; color: var(--alpheratz-light-2); font-size: 16px; }
@media (max-width: 1024px) { .job-grid { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 720px) { .job-head-row { flex-direction: column; align-items: flex-start; } .job-details { gap: 20px 32px; } .job-ai { padding: 24px 20px; } }

/* Contact form */
.contact-method .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-method .contact-alt { margin: 0; font-size: 14px; color: var(--text-muted); }
.form-status { margin: 0; font-size: 14px; min-height: 1.5em; }
.form-status.is-sent { color: var(--graphite); font-weight: 600; }
.form-status.is-invalid, .form-status.is-failed { color: #B3261E; }
