:root{
  --ink:#14171b; --ink-soft:#4a4d54;
  --paper:#f1f0ea; --paper-hi:#f7f6f1;
  --charcoal:#0f1114; --charcoal-lift:#191d22;
  --c1:#f2a33c; --c2:#e8437c; --c3:#7b45f0; --c4:#2e9bd6; --c5:#4fbf6d;
  --spectrum:linear-gradient(90deg,var(--c1),var(--c2) 28%,var(--c3) 52%,var(--c4) 76%,var(--c5));
  --spectrum-3:linear-gradient(90deg,var(--c1),var(--c2) 45%,var(--c3));
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0;background:var(--paper);color:var(--ink);
  font-family:'Noto Sans JP','Zen Kaku Gothic New',sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden;}
a{color:var(--ink);text-decoration:none;} a:hover{color:var(--c3);}
::selection{background:var(--ink);color:#fff;}
img{display:block;}
.wrap{max-width:1560px;margin:0 auto;padding:0 clamp(20px,4vw,64px);}
.eyebrow{font-family:'Barlow',sans-serif;font-size:11px;letter-spacing:.3em;color:#9a9ca1;margin-bottom:14px;}
.sec-h2{margin:0;font-family:'Zen Kaku Gothic New',sans-serif;font-weight:900;font-size:clamp(28px,3.4vw,44px);line-height:1.24;letter-spacing:.01em;}
.rule{width:60px;height:5px;background:var(--spectrum-3);border-radius:3px;}
/* Paint the accent bar in from the left when it scrolls into view. */
.js .rule{background-size:0% 100%;background-repeat:no-repeat;}
.rule.in{background-size:100% 100%;transition:background-size .9s cubic-bezier(.22,1,.3,1);}
/* ABOUT eyebrow: the accent bar sits to the LEFT of "01 — ABOUT". */
.ab-eyebrow{display:flex;align-items:center;gap:14px;}
.ab-eyebrow .rule{flex:none;width:44px;height:4px;}

/* Header */
header{position:sticky;top:0;z-index:50;background:rgba(241,240,234,.82);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid rgba(17,18,20,.07);}
.hbar{display:flex;align-items:center;justify-content:space-between;gap:16px 32px;flex-wrap:wrap;min-height:76px;padding-top:12px;padding-bottom:12px;}
header nav{display:flex;align-items:center;gap:10px clamp(18px,3vw,40px);flex-wrap:wrap;}
header nav a{font-size:15px;font-weight:700;letter-spacing:.06em;color:#35373c;}
.brandline{height:2px;background:var(--spectrum);}

/* Hero */
#top{position:relative;height:min(84vh,760px);min-height:520px;background:var(--charcoal);overflow:hidden;}
.hero-slides{position:absolute;inset:0;}
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity 1100ms cubic-bezier(.4,0,.2,1);}
.hero-slide.on{opacity:1;}
.hero-slide img{width:100%;height:100%;object-fit:cover;}
.hero-veil{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(10,11,13,.42) 0%,rgba(10,11,13,.06) 38%,rgba(10,11,13,.66) 100%);}
.hero-inner{position:absolute;inset:0;pointer-events:none;display:flex;align-items:flex-end;}
.hero-inner .wrap{width:100%;padding-bottom:clamp(40px,6vw,72px);}
.hero-kicker{font-family:'Barlow',sans-serif;font-size:11px;letter-spacing:.34em;color:rgba(255,255,255,.7);margin-bottom:18px;}
.hero-h1{margin:0;font-family:'Anton',sans-serif;font-weight:400;font-size:clamp(38px,6.4vw,86px);line-height:.98;letter-spacing:.005em;color:#fff;text-wrap:balance;}
.hero-h1 .grad{background:linear-gradient(92deg,var(--c1),var(--c2) 32%,var(--c3) 58%,var(--c4) 80%,var(--c5));-webkit-background-clip:text;background-clip:text;color:transparent;}
.hero-dots{position:absolute;right:clamp(20px,4vw,48px);bottom:clamp(40px,6vw,72px);display:flex;align-items:center;gap:14px;z-index:2;}
.hero-dots button{appearance:none;border:0;padding:0;cursor:pointer;width:34px;height:3px;background:rgba(255,255,255,.3);position:relative;overflow:hidden;}
.hero-dots button span{position:absolute;inset:0;background:#fff;transform-origin:left;transform:scaleX(0);transition:transform 600ms ease;}
.hero-dots button.on span{transform:scaleX(1);}

/* About — clean edge from hero; the white panel bridges into the dark message below */
#about{position:relative;background:var(--paper);padding:clamp(80px,11vw,150px) 0 0;}
.about-grid{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:clamp(24px,4vw,56px);align-items:start;}
.about-head{padding-top:clamp(8px,2vw,40px);}
.about-head h2{margin:0 0 24px;font-family:'Zen Kaku Gothic New',sans-serif;font-weight:900;font-size:clamp(28px,3.4vw,44px);line-height:1.24;letter-spacing:.01em;white-space:nowrap;}
.about-head h2 span{white-space:nowrap;}
.philosophy{position:relative;z-index:3;background:#fff;border-radius:4px;
  padding:clamp(40px,5vw,72px) clamp(28px,4vw,72px) clamp(44px,5vw,76px);
  margin-bottom:clamp(-210px,-17vw,-90px);
  box-shadow:0 1px 2px rgba(17,18,20,.04),0 18px 40px -24px rgba(17,18,20,.22),0 60px 120px -60px rgba(17,18,20,.30);}
.philosophy::before{content:"";position:absolute;left:0;top:0;height:3px;width:clamp(64px,20%,120px);background:var(--spectrum-3);border-radius:0 0 3px 0;}
.philosophy .lede{position:relative;display:flex;align-items:center;gap:16px;width:fit-content;max-width:100%;margin:0 auto 44px;font-size:clamp(24px,2.9vw,36px);font-weight:800;line-height:1.42;letter-spacing:.02em;color:#16181c;text-align:left;text-wrap:pretty;}
.philosophy .lede::before{content:"";flex:none;width:6px;height:1.1em;border-radius:3px;background:linear-gradient(180deg,var(--c1),var(--c2) 45%,var(--c3));}
.philosophy .body{display:flex;flex-direction:column;align-items:center;}
.philosophy .body p{margin:0 0 clamp(20px,2.4vw,30px);font-size:clamp(15px,1.15vw,17px);line-height:1.85;letter-spacing:.03em;color:var(--ink-soft);text-align:center;text-wrap:pretty;}
.philosophy .body p:last-child{align-self:center;margin-top:clamp(14px,2vw,22px);margin-bottom:0;font-size:clamp(24px,2.9vw,36px);font-weight:800;line-height:1.42;letter-spacing:.02em;color:#16181c;display:inline-block;position:relative;padding-bottom:18px;}

/* Message */
#message{position:relative;background:#2f343c;color:#f4f4f2;overflow:hidden;}
#message::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
  background:radial-gradient(60% 45% at 82% 6%,rgba(123,69,240,.12),transparent 70%),radial-gradient(55% 50% at 10% 92%,rgba(242,163,60,.08),transparent 70%);}
#message .wrap,#message .msg-band,#message .msg-band-wrap{position:relative;z-index:1;}
/* Lower message beat sits on a full-width near-black band (top beat is grey).
   The margin-top keeps that grey extending down before the black begins. */
.msg-band-wrap{background:#0c0e11;margin-top:clamp(56px,8vw,130px);}
.msg-spacer{height:clamp(110px,15vw,210px);}
.msg-eyebrow{display:flex;align-items:center;gap:14px;margin-bottom:clamp(18px,2vw,28px);}
.msg-eyebrow span:first-child{width:44px;height:3px;background:var(--spectrum-3);}
.msg-eyebrow span:last-child{font-family:'Barlow Condensed',sans-serif;font-weight:600;letter-spacing:.32em;text-transform:uppercase;font-size:13px;color:rgba(244,244,242,.44);}
.msg-hero{position:relative;display:grid;grid-template-columns:max-content minmax(320px,1fr);gap:clamp(28px,3vw,56px);align-items:center;}
.msg-hero-text{order:1;grid-column:1;color:#f4f4f2;text-align:center;margin:0;}
.msg-hero .msg-photo{order:2;grid-column:2;position:relative;width:100%;}
.msg-hero-text .msg-lead{justify-content:center;margin:0 0 clamp(20px,2.4vw,32px);}
.msg-hero-text .msg-lead h3{font-size:clamp(24px,2.7vw,38px);}
.msg-hero-text .msg-copy{max-width:none;white-space:nowrap;font-size:clamp(13px,1vw,16px);line-height:2.1;text-align:center;}
.msg-head{margin-bottom:clamp(28px,4vw,52px);text-align:left;}
.msg-head .msg-eyebrow{margin-bottom:14px;justify-content:flex-start;}
.msg-head .mh-title{margin:0;font-family:'Zen Kaku Gothic New',sans-serif;font-weight:900;letter-spacing:.04em;font-size:clamp(24px,3vw,38px);line-height:1.25;color:#f4f4f2;}
.msg-head .sub{font-family:'Barlow Condensed',sans-serif;font-weight:500;letter-spacing:.24em;text-transform:uppercase;color:rgba(244,244,242,.5);font-size:15px;margin-top:8px;}
.msg-photo{position:relative;overflow:hidden;border-radius:4px;background:#0c0e11;cursor:pointer;}
.msg-photo img{display:block;width:100%;height:auto;}
.msg-photo .inset{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 60px 18px rgba(15,17,20,.55);}
.msg-photo .ph{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%;opacity:0;transition:opacity .5s ease;}
.msg-photo .ph.on{position:relative;width:100%;height:auto;object-fit:cover;opacity:1;}
.msg-titlecard{background:#fff;color:#14171b;display:flex;flex-direction:column;justify-content:center;padding:clamp(32px,4vw,56px);border-radius:4px;box-shadow:0 24px 60px -34px rgba(0,0,0,.55);}
.msg-titlecard .bar{width:50px;height:4px;background:var(--spectrum-3);margin-bottom:22px;border-radius:2px;}
.msg-titlecard h2{margin:0;font-family:'Zen Kaku Gothic New',sans-serif;font-weight:900;letter-spacing:.04em;font-size:clamp(26px,3.2vw,40px);line-height:1.25;}
.msg-titlecard .sub{font-family:'Barlow Condensed',sans-serif;font-weight:500;letter-spacing:.24em;text-transform:uppercase;color:#9aa0a6;font-size:15px;margin-top:12px;}
.msg-band{max-width:1480px;margin:0 auto;padding:clamp(56px,7vw,104px) clamp(20px,4vw,52px);display:grid;grid-template-columns:0.92fr 1.08fr;gap:clamp(30px,4vw,68px);align-items:center;}
.msg-photostack{display:flex;flex-direction:column;align-items:flex-start;gap:clamp(16px,2.2vw,34px);}
/* JS wraps each photo in a .snap so it can flutter down and get "pinned". */
.msg-photostack .snap{position:relative;display:block;width:74%;}
.msg-photostack .snap.b{align-self:flex-end;}
.msg-photostack img,.msg-photostack .snap img{display:block;width:100%;height:auto;border-radius:6px;box-shadow:0 26px 64px -32px rgba(0,0,0,.75);}
.msg-photostack>img{width:74%;}
.msg-photostack>img.b{align-self:flex-end;}
.msg-lead{display:flex;gap:20px;align-items:flex-start;margin:0 0 clamp(28px,3vw,44px);}
.msg-lead span{flex:0 0 auto;width:5px;align-self:stretch;min-height:1.2em;background:linear-gradient(180deg,var(--c1),var(--c2) 45%,var(--c3));border-radius:3px;}
.msg-lead h3{margin:0;font-family:'Zen Kaku Gothic New',sans-serif;font-weight:900;font-size:clamp(28px,4.2vw,50px);line-height:1.28;letter-spacing:.02em;}
.msg-copy{max-width:720px;font-size:clamp(14px,1.05vw,16px);line-height:2.3;letter-spacing:.03em;color:rgba(244,244,242,.7);}
.msg-copy p{margin:0 0 2em;}
.msg-split{display:flex;justify-content:flex-end;margin:clamp(24px,4vw,60px) 0 clamp(48px,6vw,80px);}
.msg-split .msg-lead{margin:0;align-items:flex-start;}
.msg-split h3{font-size:clamp(23px,2.9vw,36px);line-height:1.5;color:#fff;text-align:left;}
.msg-band .msg-copy{max-width:900px;margin-left:auto;text-align:center;}
.sign{display:flex;justify-content:flex-end;align-items:center;gap:18px;margin-top:clamp(40px,5vw,64px);}
.sign span{font-size:12px;letter-spacing:.14em;color:rgba(244,244,242,.5);}
.sign img{height:clamp(36px,4.2vw,56px);width:auto;filter:invert(1);}

/* Links — logos on a lightly washed sea. The photo fades to white top and bottom. */
#links{position:relative;overflow:hidden;background:#fff;}
#links .sea{position:absolute;inset:0;}
#links .sea img{width:100%;height:100%;object-fit:cover;object-position:50% 40%;}
#links .sea-veil{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,#fff 0%,rgba(255,255,255,.78) 22%,rgba(255,255,255,.72) 60%,rgba(255,255,255,.85) 88%,#fff 100%);}
#links .wrap{position:relative;z-index:1;max-width:1480px;padding-top:clamp(80px,11vw,150px);padding-bottom:clamp(80px,11vw,150px);}
.links-head{display:flex;align-items:baseline;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-bottom:clamp(24px,4vw,48px);}
.links-head p{margin:0;max-width:none;white-space:nowrap;font-size:13px;line-height:2;letter-spacing:.04em;color:#4f535a;}
/* Three columns: the outer two hold a logo OR a photo and swap each row, the
   center is always the text — so every verb lines up. Outer cells are equal
   width, so all four photos are the same size. */
.brand{--ov:clamp(70px,9vw,180px);
  --maskL:linear-gradient(90deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0) 8%,rgba(0,0,0,.05) 15%,rgba(0,0,0,.14) 22%,rgba(0,0,0,.28) 30%,rgba(0,0,0,.45) 38%,rgba(0,0,0,.62) 46%,rgba(0,0,0,.77) 55%,rgba(0,0,0,.89) 64%,rgba(0,0,0,.96) 74%,#000 85%,#000 100%);
  --maskR:linear-gradient(270deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0) 8%,rgba(0,0,0,.05) 15%,rgba(0,0,0,.14) 22%,rgba(0,0,0,.28) 30%,rgba(0,0,0,.45) 38%,rgba(0,0,0,.62) 46%,rgba(0,0,0,.77) 55%,rgba(0,0,0,.89) 64%,rgba(0,0,0,.96) 74%,#000 85%,#000 100%);
  position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) minmax(0,1fr);
  align-items:center;height:clamp(184px,17vw,224px);overflow:hidden;
  border-bottom:1px solid rgba(17,18,20,.08);
  transition:opacity 1300ms cubic-bezier(.16,1,.3,1),transform 1300ms cubic-bezier(.16,1,.3,1);}
.brand:first-of-type{border-top:1px solid rgba(17,18,20,.08);}
/* Rows slide in from their own side (left, right, left, right), cascading
   top-to-bottom the first time they scroll into view, then stay put. */
.js .brand{opacity:0;}
.js .brand.from-left{transform:translateX(-64px);}
.js .brand.from-right{transform:translateX(64px);}
.js .brand:nth-of-type(2){transition-delay:.24s;}
.js .brand:nth-of-type(3){transition-delay:.48s;}
.js .brand:nth-of-type(4){transition-delay:.72s;}
.brand.in{opacity:1;}
/* Match the direction rules' specificity so .in can cancel the slide offset. */
.js .brand.from-left.in,.js .brand.from-right.in{transform:none;}
/* Faint brand-colour wash over the whole card on hover. */
.brand::before{content:"";position:absolute;inset:0;background:var(--ac);opacity:0;pointer-events:none;z-index:2;transition:opacity .3s ease;}
.brand:hover::before{opacity:.08;}
.brand-logo{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:14px clamp(10px,1.6vw,28px);position:relative;z-index:3;}
/* Logos are trimmed to their artwork, so height sets the optical size.
   Wordmarks (GL/ES/BM) share one height; the CAR-GOBRIDGE badge is squarer,
   so it gets a slightly taller cap to read at the same optical weight. */
.brand-logo img{width:auto;height:auto;max-height:clamp(44px,5vw,64px);max-width:min(96%,312px);object-fit:contain;}
.brand-logo.logo-cb img{max-height:clamp(64px,7.2vw,94px);max-width:min(88%,202px);}
.brand-name{font-family:'Barlow Condensed',sans-serif;font-weight:600;font-size:16px;letter-spacing:.08em;color:#2b2e33;}
.brand-text{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:10px;
  padding:20px 0;text-align:left;position:relative;z-index:3;
  width:fit-content;max-width:clamp(300px,32vw,460px);margin-inline:auto;}
.lc-verb{display:inline-flex;align-items:center;gap:14px;}
.lc-verb span:first-child{width:28px;height:3px;border-radius:2px;background:var(--ac,#f2a33c);}
.lc-verb span:last-child{font-family:'Zen Kaku Gothic New',sans-serif;font-weight:900;font-size:clamp(20px,2.2vw,28px);letter-spacing:.04em;color:#16202b;transition:color .22s ease;}
.brand-text p{margin:0;max-width:40ch;font-size:13px;line-height:1.9;letter-spacing:.03em;color:#3f434a;transition:color .22s ease;}
.lc-links{display:flex;flex-direction:column;align-items:flex-start;gap:24px;margin-top:14px;}
/* Stacked, extra-bold and tinted a deep shade of the brand colour so each
   line reads clearly as a link; brightens to the full colour on hover. */
.lc-links a{position:relative;display:inline-flex;align-items:center;gap:.4em;line-height:1;
  font-family:'Barlow',sans-serif;font-weight:800;font-size:15px;letter-spacing:.12em;
  color:color-mix(in srgb,var(--ac) 82%,#151515);white-space:nowrap;transition:color .2s ease;}
.lc-links a:hover{color:var(--ac,#7b45f0);}
/* A rectangle is drawn around each link by a single travelling line when the
   row scrolls into view: top → right → bottom → left. */
.lc-links a::before,.lc-links a::after{content:"";position:absolute;box-sizing:border-box;width:0;height:0;pointer-events:none;}
.lc-links a::before{top:-7px;left:-12px;border-top:2px solid var(--ac);border-right:2px solid var(--ac);}
.lc-links a::after{bottom:-7px;right:-12px;border-bottom:2px solid var(--ac);border-left:2px solid var(--ac);}
.brand.in .lc-links a::before{width:calc(100% + 24px);height:calc(100% + 14px);transition:width .26s linear .25s,height .26s linear .51s;}
.brand.in .lc-links a::after{width:calc(100% + 24px);height:calc(100% + 14px);transition:width .26s linear .77s,height .26s linear 1.03s;}
/* English label "translates" to Japanese on hover (cross-fade). */
.lc-label{position:relative;display:inline-block;}
.lc-en{display:inline-block;transition:opacity .22s ease;}
.lc-ja{position:absolute;left:0;top:0;white-space:nowrap;opacity:0;transition:opacity .22s ease;
  font-family:'Zen Kaku Gothic New','Noto Sans JP',sans-serif;font-weight:800;letter-spacing:.04em;}
.lc-links a:hover .lc-en{opacity:0;}
.lc-links a:hover .lc-ja{opacity:1;}
/* Hover anywhere on a company's row tints its copy with that brand's colour. */
.brand:hover .lc-verb span:last-child,
.brand:hover .lc-links a{color:var(--ac);}
.brand-photo{position:relative;align-self:stretch;height:100%;overflow:hidden;z-index:1;}
.brand-photo .brand-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;}
.brand-photo .img-slot{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:12px;text-align:center;
  background:linear-gradient(135deg,#e7edf1,#d6dee5);color:#8a9199;
  font-family:'Barlow',sans-serif;font-size:11px;letter-spacing:.14em;text-transform:uppercase;}
.brand-photo .img-slot::after{content:attr(data-label);}
/* Photos bleed OVER the text edge and dissolve toward the text side with an
   eased alpha MASK — a real transparent fade (the pixels go transparent and the
   section background shows through), not a white wash. Text sits in front. */
.brand.from-left .brand-photo{margin-left:calc(-1 * var(--ov));width:calc(100% + var(--ov));
  -webkit-mask-image:var(--maskL);mask-image:var(--maskL);}
.brand.from-right .brand-photo{margin-right:calc(-1 * var(--ov));width:calc(100% + var(--ov));
  -webkit-mask-image:var(--maskR);mask-image:var(--maskR);}
.brand.from-left .brand-logo{order:1;} .brand.from-left .brand-text{order:2;} .brand.from-left .brand-photo{order:3;}
.brand.from-right .brand-photo{order:1;} .brand.from-right .brand-text{order:2;} .brand.from-right .brand-logo{order:3;}

/* Company — the photo emerges from white at the top */
#company{position:relative;overflow:hidden;background:var(--charcoal);}
#company .bg{position:absolute;inset:0;}
#company .bg img{width:100%;height:100%;object-fit:cover;}
#company .veil{position:absolute;inset:0;background:linear-gradient(180deg,#fff 0%,rgba(15,17,20,.70) 22%,rgba(15,17,20,.62) 55%,rgba(15,17,20,.88) 100%);}
#company .wrap{position:relative;z-index:2;padding-top:clamp(110px,14vw,190px);padding-bottom:clamp(80px,11vw,150px);}
.co-inner{max-width:760px;margin:0 auto;}
.co-head{text-align:center;margin-bottom:clamp(40px,5vw,64px);}
.co-head .eyebrow{color:rgba(255,255,255,.55);}
.co-head h2{margin:0 0 20px;color:#fff;}
.co-head .rule{display:inline-block;}
.co-card{background:rgba(255,255,255,.07);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.14);border-radius:8px;padding:clamp(28px,4vw,56px);box-shadow:0 40px 90px -50px rgba(0,0,0,.7);}
.co-card dl{margin:0;display:grid;grid-template-columns:max-content minmax(0,1fr);color:#fff;}
.co-card dt{font-size:12px;letter-spacing:.1em;color:rgba(255,255,255,.6);padding:18px 40px 18px 0;border-top:1px solid rgba(255,255,255,.14);}
.co-card dd{margin:0;font-size:15px;line-height:1.9;letter-spacing:.03em;padding:18px 0;border-top:1px solid rgba(255,255,255,.14);}
.co-card .row-last{border-bottom:1px solid rgba(255,255,255,.14);}

/* Footer */
footer{background:var(--charcoal);color:rgba(244,244,242,.7);}
.foot{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;flex-wrap:wrap;padding-top:clamp(48px,6vw,80px);padding-bottom:clamp(48px,6vw,80px);}
.foot img{height:38px;width:auto;filter:grayscale(1) brightness(0) invert(1);}
.foot p{margin:24px 0 0;font-size:12px;letter-spacing:.06em;color:rgba(244,244,242,.45);}
.foot nav{display:flex;flex-direction:column;gap:12px;align-items:flex-end;}
.foot nav a{font-size:13px;letter-spacing:.06em;color:rgba(244,244,242,.72);}

/* ===== Entrance animations ===== */

/* ABOUT — the whole white card is a sheet of paper that flutters down. */
@keyframes paperCard{
  0%{opacity:0;transform:translateY(-22px) rotate(-.5deg);}
  70%{opacity:1;transform:translateY(2px) rotate(.06deg);}
  100%{opacity:1;transform:translateY(0) rotate(0);}
}
.js .philosophy{opacity:0;}
.philosophy.in{animation:paperCard 1.5s cubic-bezier(.2,.7,.2,1) both;}

/* Last line — drops in one character at a time when scrolled to. */
.js .dropchars{opacity:1;}
.dropchars .ch{display:inline-block;white-space:pre;opacity:0;transform:translateY(-10px);}
.dropchars.in .ch{animation:charDrop .5s cubic-bezier(.2,.7,.2,1) forwards;}
/* Thick gradient underline, drawn in left→right after the text has landed. */
.dropchars::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:7px;border-radius:4px;background:var(--spectrum-3);transform-origin:left center;transition:transform .8s cubic-bezier(.22,1,.3,1);}
.js .dropchars::after{transform:scaleX(0);}
.js .dropchars.line-in::after{transform:scaleX(1);}
@keyframes charDrop{to{opacity:1;transform:translateY(0);}}

/* MESSAGE photos — rise up gently, one after another from the top. */
@keyframes riseUp{
  0%{opacity:0;transform:translateY(48px);}
  100%{opacity:1;transform:translateY(0);}
}
.js .msg-photostack .snap{opacity:0;}
.msg-photostack.in .snap{animation:riseUp 1.7s cubic-bezier(.2,.7,.2,1) both;}
.msg-photostack.in .snap:nth-child(1){animation-delay:0s;}
.msg-photostack.in .snap:nth-child(2){animation-delay:.55s;}
.msg-photostack.in .snap:nth-child(3){animation-delay:1.1s;}

/* MESSAGE headlines — romaji typed, then "converted" segment by segment (IME
   style). Only the romaji currently being composed carries the dotted underline
   and caret; already-converted text is plain. */
.typeconv{white-space:normal;}
.typeconv .compose{text-decoration:underline;text-decoration-style:dotted;text-decoration-thickness:2px;text-underline-offset:6px;}
.typeconv .compose::after{content:"";display:inline-block;width:2px;height:1.02em;margin-left:.08em;vertical-align:-.14em;background:currentColor;animation:caretBlink 1s steps(1) infinite;}
@keyframes caretBlink{50%{opacity:0;}}
.typeconv .compose.converting{background:rgba(255,255,255,.18);border-radius:4px;box-shadow:0 0 0 .16em rgba(255,255,255,.18);}
/* The body copy under each headline appears only after the title is typed. */
.js .msg-hero-text .msg-copy,.js .msg-bandtext .msg-copy{opacity:0;transform:translateY(8px);transition:opacity .8s ease,transform .8s ease;}
.js .msg-hero-text .msg-copy.copy-in,.js .msg-bandtext .msg-copy.copy-in{opacity:1;transform:none;}

/* COMPANY card — a gentle rise as it scrolls in. */
.js .co-card{opacity:0;transform:translateY(30px);transition:opacity .8s cubic-bezier(.22,1,.3,1),transform .8s cubic-bezier(.22,1,.3,1);}
.co-card.in{opacity:1;transform:none;}

@media (prefers-reduced-motion:reduce){
  .js .rule{background-size:100% 100%!important;}
  .js .philosophy{opacity:1!important;animation:none!important;}
  .dropchars .ch{opacity:1!important;transform:none!important;animation:none!important;}
  .js .dropchars::after{transform:none!important;}
  .js .msg-photostack .snap{opacity:1!important;animation:none!important;}
  .js .msg-hero-text .msg-copy,.js .msg-bandtext .msg-copy{opacity:1!important;transform:none!important;}
  .js .co-card{opacity:1!important;transform:none!important;}
  .js .brand{opacity:1!important;transform:none!important;}
  .brand.in .lc-links a::before,.brand.in .lc-links a::after{transition:none!important;}
  .typeconv .compose{text-decoration:none!important;}
  .typeconv .compose::after{display:none!important;}
}

@media (max-width:860px){
  .links-head p{white-space:normal;}
  /* Let body copy flow naturally on small screens instead of breaking at the
     desktop-designed <br> points (which orphan words on a phone). */
  .philosophy .body p br,.msg-copy br,.brand-text p br,.links-head p br{display:none;}
  .about-grid{grid-template-columns:1fr;}
  .philosophy{margin-bottom:clamp(-160px,-24vw,-80px);}
  .msg-hero{grid-template-columns:1fr;}
  .msg-hero-text,.msg-hero .msg-photo{grid-column:auto;}
  .msg-hero .msg-photo{order:-1;width:100%;max-width:560px;margin:0 auto;}
  .msg-hero-text .msg-copy{white-space:normal;}
  .msg-split{grid-template-columns:1fr;}
  .msg-band{grid-template-columns:1fr;gap:32px;}
  .msg-photostack{flex-direction:row;flex-wrap:wrap;}
  .msg-photostack .snap,.msg-photostack>img{width:46%;}
  .msg-photostack .snap.b,.msg-photostack>img.b{align-self:auto;}
  .msg-split .msg-photo{order:-1;}
  .brand,.brand.from-left,.brand.from-right{grid-template-columns:1fr;height:auto;min-height:0;}
  /* photo returns to normal flow (stacked) on mobile */
  .brand-photo,.brand.from-left .brand-photo,.brand.from-right .brand-photo{position:relative;inset:auto;width:auto;height:auto;min-height:200px;margin:0;z-index:1;}
  .brand.from-left .brand-logo,.brand.from-right .brand-logo{order:1;}
  .brand.from-left .brand-text,.brand.from-right .brand-text{order:2;}
  .brand.from-left .brand-photo,.brand.from-right .brand-photo{order:3;}
  .brand.from-left .brand-photo,.brand.from-right .brand-photo{-webkit-mask-image:linear-gradient(0deg,#000 0%,#000 50%,rgba(0,0,0,.6) 74%,rgba(0,0,0,.25) 88%,rgba(0,0,0,0) 100%);mask-image:linear-gradient(0deg,#000 0%,#000 50%,rgba(0,0,0,.6) 74%,rgba(0,0,0,.25) 88%,rgba(0,0,0,0) 100%);}
  .brand-text{width:auto;max-width:none;margin-inline:0;padding-inline:clamp(4px,4vw,20px);}
  .brand-logo img{max-height:50px;max-width:min(76%,242px);}
  .brand-logo.logo-cb img{max-height:72px;max-width:min(54%,146px);}
  .co-card dl{grid-template-columns:1fr;}
  .co-card dt{padding-bottom:4px;}
  .co-card dd{padding-top:2px;border-top:0;}
}
@media (prefers-reduced-motion:reduce){
  *{scroll-behavior:auto;}
  .hero-slide,.brand{transition:none;}
  .brand{opacity:1;transform:none;}
}

/* ===== Phones ===== */
@media (max-width:560px){
  /* Header: logo centered over a centered, wrapping nav */
  .hbar{flex-direction:column;gap:9px;min-height:0;}
  header nav{width:100%;justify-content:center;gap:7px 14px;}
  header nav a{font-size:13px;letter-spacing:.04em;}

  /* Hero: smaller so the two headline lines clear the edges */
  #top{min-height:460px;}
  .hero-h1{font-size:clamp(27px,7.4vw,86px);}
  .hero-kicker{margin-bottom:12px;}

  /* About: trim the card's side padding so the copy isn't pinched */
  #about{padding-top:clamp(56px,14vw,150px);}
  .philosophy{padding:clamp(30px,7vw,44px) clamp(18px,5vw,26px) clamp(34px,7vw,48px);}
  .philosophy .lede{gap:12px;font-size:clamp(22px,6vw,36px);}
  .philosophy .body p:last-child{font-size:clamp(22px,6vw,36px);}

  /* Message: keep the three photos as one tidy, centered strip */
  .msg-photostack{justify-content:center;gap:12px;}
  .msg-photostack .snap,.msg-photostack>img{width:31%;}
  .msg-hero-text .msg-lead h3,.msg-split h3{font-size:clamp(21px,5.6vw,38px);}

  /* Links: comfortable stacked cards */
  .brand-photo,.brand.from-left .brand-photo,.brand.from-right .brand-photo{min-height:172px;}
  .lc-links a{font-size:14px;}

  /* Company: a little tighter */
  #company .wrap{padding-top:clamp(90px,20vw,190px);}
}
