/* ==========================================================
   Baagisane Civils — v2
   Light editorial system · serif display · signal orange
   ========================================================== */

:root {
  --white: #ffffff;
  --stone: #f4f4f2;
  --stone-2: #ebebe7;
  --stone-3: #dededa;
  --text: #131518;
  --text-2: #484d55;
  --text-3: #858a91;
  --line: #e3e3df;

  --signal: #e86a2c;        /* logo orange, deepened for UI */
  --signal-deep: #c9541b;
  --signal-soft: #fbe6da;
  --sun: #f4c45a;           /* logo yellow */
  --rose: #c75b9b;          /* logo pink */
  --night: #121519;
  --char: #383838;          /* logo charcoal */
  --char-deep: #2b2b2b;
  --logo-orange: #f0935a;
  --logo-yellow: #fdd460;

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;

  --pad: clamp(16px, 4.2vw, 64px);
  --max: 1440px;
  --sec: clamp(96px, 11vw, 176px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hdr: 84px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--text-2);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p, dl, dd, fieldset { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--signal); color: #fff; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 300; background: var(--text); color: #fff; padding: 10px 16px; border-radius: 99px; }
.skip:focus { left: 10px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- light grey background patterns ---------- */
.bg-grid { position: relative; background-color: var(--stone); }
.bg-grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(#e4e4df 1px, transparent 1px), linear-gradient(90deg, #e4e4df 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 20% 30%, #000 0%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 20% 30%, #000 0%, transparent 80%);
}
.bg-grid > * { position: relative; }

.bg-iso { position: relative; background-color: var(--white); }
.bg-iso::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M0 0l56 97M56 0L0 97M0 48.5h56' stroke='%23ececE8' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 85% 10%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 85% 10%, #000 10%, transparent 75%);
}
.bg-iso > * { position: relative; }

.bg-rings { position: relative; background-color: var(--stone); overflow: hidden; }
.bg-rings::before {
  content: ""; position: absolute; width: 1600px; height: 1600px; right: -520px; top: 50%; transform: translateY(-50%); pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 39px, #dcdcd6 39px 40px);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%);
          mask-image: radial-gradient(circle, #000 20%, transparent 68%);
}
.bg-rings > * { position: relative; }

/* ---------- type ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--text); margin-bottom: 26px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.kicker--ink::before { background: var(--text); }
.kicker--light { color: #fff; }

.display, .hero__title {
  font-family: var(--serif); font-weight: 400; color: var(--text);
  letter-spacing: -.015em; line-height: .98;
}
.display { font-size: clamp(2.6rem, 5.2vw, 5rem); }
.display em, .hero__title em, .statement em { font-style: italic; color: var(--signal); }
.display--ink em { color: var(--text); }
.display--light { color: #fff; }
.display--light em { color: var(--sun); }
[data-anim="lines"] > span { display: block; }

.link-u { position: relative; font-weight: 600; color: var(--text); padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease); }
.link-u:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .35s var(--ease), color .35s, transform .35s var(--ease), box-shadow .35s;
}
.pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.pill:hover svg { transform: translateX(3px); }
.pill--signal { background: var(--signal); color: #fff; }
.pill--signal:hover { background: var(--text); }
.pill--dark { background: var(--text); color: #fff; }
.pill--dark:hover { background: var(--signal); }
.pill--lg { height: 56px; padding: 0 28px; font-size: 16px; }

.round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--stone-3); display: grid; place-items: center; background: var(--white); transition: background .3s, border-color .3s, color .3s; }
.round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.round:hover { background: var(--text); border-color: var(--text); color: #fff; }
.round:disabled { opacity: .35; pointer-events: none; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.hdr.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(19, 21, 24, .4); }
.hdr__bar { height: var(--hdr); display: flex; align-items: center; gap: 32px; }
.hdr__logo { width: 196px; flex: none; }
.hdr__nav { margin: 0 auto; }
.hdr__nav ul { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--stone); }
.hdr__nav a { display: block; padding: 9px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: background .3s, color .3s; }
.hdr__nav a:hover { color: var(--text); }
.hdr__nav a.is-on { background: var(--white); color: var(--text); box-shadow: 0 1px 3px rgba(19, 21, 24, .08); }
.hdr__nav-mobile { display: none; }
.hdr__end { display: flex; align-items: center; gap: 20px; }
.hdr__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.hdr__phone svg { width: 17px; height: 17px; fill: none; stroke: var(--signal); stroke-width: 1.5; }
.hdr__burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--stone); position: relative; }
.hdr__burger span { position: absolute; left: 14px; right: 14px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.hdr__burger span:nth-child(1) { top: 17px; }
.hdr__burger span:nth-child(2) { top: 22.5px; }
.hdr__burger span:nth-child(3) { top: 28px; }
.hdr__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.hdr__progress span { display: block; height: 100%; width: 100%; background: var(--signal); transform-origin: left; transform: scaleX(var(--sp, 0)); }

/* ---------- hero ---------- */
.hero { background: var(--white); }
.hero__frame { position: relative; min-height: calc(100vh - var(--hdr)); min-height: calc(100svh - var(--hdr)); display: flex; overflow: hidden; background: #0d0f12; color: #fff; isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; overflow: hidden; visibility: hidden; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }
.hero__slide.is-prev { visibility: visible; z-index: 1; }
.hero__slide.is-active { visibility: visible; z-index: 2; animation: heroWipe 1.15s cubic-bezier(.77, 0, .18, 1) both; }
.hero__slide.is-active img { animation: heroDrift var(--slide, 5200ms) linear both, heroZoomIn 1.4s cubic-bezier(.16, 1, .3, 1) both; }
.hero__slide.is-first { animation: none; }
@keyframes heroWipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes heroDrift { from { transform: scale(1.06) translateX(0); } to { transform: scale(1.16) translateX(var(--dx, 2%)); } }
@keyframes heroZoomIn { from { translate: 6% 0; } to { translate: 0 0; } }
.hero__veil { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(10, 12, 15, .86) 0%, rgba(10, 12, 15, .6) 50%, rgba(10, 12, 15, .38) 100%),
  linear-gradient(0deg, rgba(10, 12, 15, .78) 0%, rgba(10, 12, 15, 0) 42%); }
.hero__inner { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 56px; padding-top: clamp(56px, 8vh, 110px); padding-bottom: 32px; }
.hero__top { display: grid; grid-template-columns: 1fr minmax(280px, 380px); grid-template-areas: "badge badge" "title aside"; column-gap: 64px; align-items: end; }
.badge { grid-area: badge; justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); font-size: 13.5px; font-weight: 500; color: #fff; margin-bottom: 34px; }
.badge i { font-style: normal; color: rgba(255, 255, 255, .5); }
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(232, 106, 44, .3); }
.hero .hero__title { grid-area: title; color: #fff; font-size: clamp(3.4rem, min(8.4vw, 13vh), 8.6rem); line-height: .92; letter-spacing: -.025em; }
.hero__title > span { display: block; }
.hero__aside { grid-area: aside; padding-bottom: 14px; }
.hero__aside p { font-size: 17px; color: rgba(255, 255, 255, .82); margin-bottom: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.link-u--light { color: #fff; }
.pill--signal:hover { background: #fff; color: var(--text); }

.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero__nav { flex: 1; max-width: 560px; }
.hero__now { display: flex; align-items: flex-end; gap: 22px; margin-bottom: 18px; }
.hero__count { font-size: 14px; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.hero__count b { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: .8; color: #fff; }
.hero__cap { display: flex; flex-direction: column; line-height: 1.3; }
.hero__cap strong { font-size: 16px; color: #fff; }
.hero__cap span { font-size: 14px; color: rgba(255, 255, 255, .65); }
.hero__cap.swap { animation: swap .6s var(--ease); }
.hero__bars { display: flex; gap: 8px; }
.hero__bars button { flex: 1; height: 22px; position: relative; }
.hero__bars button::before, .hero__bars i { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.hero__bars i { background: var(--signal); transform: scaleX(0); transform-origin: left; }
.hero__bars button.is-done i { transform: scaleX(1); background: #fff; }
.hero__bars button[aria-selected="true"] i { animation: bar var(--slide, 5200ms) linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }

.hero__card { width: 360px; flex: none; background: var(--white); color: var(--text-2); border-radius: var(--r-lg); padding: 22px 22px 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.hero__card-k { font-size: 13px; font-weight: 600; color: var(--text-3); margin-bottom: 12px; }
.hero__flow { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.hero__flow li { font-size: 13.5px; font-weight: 600; color: var(--text); padding: 6px 12px; border-radius: 999px; background: var(--stone); }
.hero__flow li:last-child { background: var(--signal-soft); color: var(--signal-deep); }
.hero__card-foot { display: flex; align-items: center; gap: 12px; padding-top: 14px; }
.hero__card-foot img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.hero__card-foot p { font-size: 13px; color: var(--text-3); line-height: 1.35; }
.hero__card-foot strong { display: block; color: var(--text); font-size: 14px; }

.ticker { background: var(--white); border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; }
.ticker__row { display: flex; align-items: center; gap: 34px; width: max-content; animation: tick 46s linear infinite; }
.ticker span { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); color: var(--text); white-space: nowrap; }
.ticker b { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); flex: none; }
.ticker b:nth-of-type(3n+2) { background: var(--sun); }
.ticker b:nth-of-type(3n) { background: var(--rose); }
@keyframes tick { to { transform: translateX(calc(-50% - 17px)); } }

/* ---------- company ---------- */
.company { padding: var(--sec) 0 calc(var(--sec) * .7); background: var(--white); }
.company__grid { display: grid; grid-template-columns: 1fr 2.1fr; gap: clamp(40px, 6vw, 110px); }
.company__img { margin-top: 10px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; max-width: 360px; }
.company__img img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.statement { font-family: var(--serif); font-size: clamp(1.9rem, 3.3vw, 3.25rem); line-height: 1.12; letter-spacing: -.01em; color: var(--text); }
.statement .w { transition: color .2s linear; }
.js .statement .w { color: #c9c9c4; }
.js .statement .w.on { color: var(--text); }
.js .statement em .w.on { color: var(--signal); }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.mv__h { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(72px, 8vw, 120px); }
.figure { padding: 30px 28px 26px; border-radius: var(--r-lg); background: var(--stone); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 210px; }
.figure__n { font-family: var(--serif); font-size: clamp(3.2rem, 5vw, 4.8rem); line-height: .9; color: var(--text); font-variant-numeric: tabular-nums; }
.figure__n sup { font-size: .5em; vertical-align: top; position: relative; top: .25em; }
.figure__l { font-size: 15px; font-weight: 500; color: var(--text-2); }
.figure--signal { background: var(--signal); }
.figure--signal .figure__n, .figure--signal .figure__l { color: #fff; }

/* ---------- head ---------- */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: clamp(44px, 5vw, 72px); }
.head__side { max-width: 380px; display: flex; flex-direction: column; gap: 26px; }
.head--center { flex-direction: column; align-items: center; text-align: center; }

/* ---------- services carousel ---------- */
.services { padding: var(--sec) 0; }
.carousel__ctrl { display: flex; gap: 10px; }
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--pad); scroll-padding-left: var(--pad);
  padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  scroll-padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.carousel__track.is-drag * { pointer-events: none; }
.carousel__track::after { content: ""; flex: 0 0 calc(var(--pad) - 18px); }
.svc { position: relative; flex: 0 0 clamp(280px, 30vw, 420px); aspect-ratio: 3 / 4.1; border-radius: var(--r-xl); overflow: hidden; scroll-snap-align: start; background: var(--night); color: #fff; isolation: isolate; }
.svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); user-select: none; -webkit-user-drag: none; }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 14, .05) 30%, rgba(10, 12, 14, .82) 100%); transition: background .5s var(--ease); }
.svc:hover img { transform: scale(1.06); }
.svc:hover::before { background: linear-gradient(180deg, rgba(10, 12, 14, .25) 0%, rgba(10, 12, 14, .9) 100%); }
.svc__body { position: absolute; inset: auto 0 0; padding: 26px; }
.svc__n { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); margin-bottom: 14px; }
.svc--sub .svc__n { background: var(--signal); }
.svc__t { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 2.2vw, 2.2rem); line-height: 1.02; margin-bottom: 0; }
.svc__d { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .82); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s, margin .4s; }
.svc__d a { color: var(--sun); font-weight: 600; pointer-events: auto; }
.svc:hover .svc__d, .svc:focus-within .svc__d { max-height: 220px; opacity: 1; margin-top: 12px; }
.carousel__bar { margin-top: 34px; height: 2px; background: var(--stone-3); border-radius: 2px; overflow: hidden; }
.carousel__bar span { display: block; height: 100%; width: 30%; background: var(--text); border-radius: 2px; transform: translateX(var(--cx, 0)); transition: transform .15s linear; }

/* ---------- rail (signal field) ---------- */
.rail { position: relative; background: var(--char); color: rgba(255, 255, 255, .74); padding: var(--sec) 0; overflow: hidden; }
.rail::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24'%3E%3Cpath d='M0 6h120M0 18h120' stroke='%23ffffff' stroke-opacity='.35'/%3E%3Cpath d='M10 2v20M40 2v20M70 2v20M100 2v20' stroke='%23ffffff' stroke-opacity='.25' stroke-width='3'/%3E%3C/svg%3E");
  background-size: 120px 24px; background-repeat: repeat-x; background-position: 0 calc(100% - 40px);
  height: 100%;
}
.rail .display { color: #fff; }
.rail .display em { color: var(--logo-orange); }
.rail .kicker { color: #fff; }
.rail .kicker::before { background: var(--logo-orange); }
.rail__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.rail__lede { font-size: 18px; color: rgba(255, 255, 255, .74); max-width: 520px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chips li { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); font-size: 14px; font-weight: 600; color: #fff; }
.acc { border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 8px; }
.acc__item { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.acc__btn { width: 100%; display: flex; align-items: center; gap: 18px; padding: 26px 0; text-align: left; font-family: var(--serif); font-size: clamp(1.6rem, 2.3vw, 2.25rem); line-height: 1.05; color: #fff; }
.acc__n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--sans); font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .1); transition: background .3s, color .3s; }
.acc__btn i { margin-left: auto; position: relative; width: 18px; height: 18px; flex: none; }
.acc__btn i::before, .acc__btn i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.6px; background: currentColor; transition: transform .4s var(--ease); }
.acc__btn i::after { transform: rotate(90deg); }
.acc__item.is-open .acc__btn i::after { transform: rotate(0); }
.acc__item.is-open .acc__n { background: var(--logo-orange); color: var(--char-deep); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc__panel > p { overflow: hidden; padding-left: 52px; font-size: 17px; color: rgba(255, 255, 255, .72); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__item.is-open .acc__panel > p { padding-bottom: 26px; }

.rail__photos { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; gap: 16px; margin-top: clamp(64px, 7vw, 110px); }
.rail__ph { border-radius: var(--r-xl); overflow: hidden; background: var(--char-deep); }
.rail__ph img { width: 100%; height: 100%; object-fit: cover; }
.rail__ph--a { grid-row: span 2; aspect-ratio: 16 / 10; }
.rail__ph--b { aspect-ratio: 4 / 3; }
.rail__quote { background: var(--logo-orange); color: var(--char-deep); border-radius: var(--r-xl); padding: 28px 30px; display: flex; align-items: flex-end; }
.rail__quote p { font-family: var(--serif); font-size: clamp(1.35rem, 1.8vw, 1.75rem); line-height: 1.18; }

/* ---------- approach ring ---------- */
.approach { padding: var(--sec) 0; }
.approach__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.approach__lede { margin-top: 26px; max-width: 460px; font-size: 18px; }
.stage { margin-top: 44px; padding: 28px 30px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); max-width: 480px; }
.stage__k { font-size: 13px; font-weight: 600; color: var(--text-3); }
.stage__k span { color: var(--signal); }
.stage__t { font-family: var(--serif); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--text); margin: 8px 0 16px; }
.stage__list { display: flex; flex-wrap: wrap; gap: 8px; }
.stage__list li { padding: 7px 14px; border-radius: 999px; background: var(--stone); font-size: 14px; font-weight: 500; color: var(--text); }
.stage.swap .stage__t, .stage.swap .stage__list { animation: swap .55s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.approach__result { margin-top: 30px; max-width: 480px; font-size: 15.5px; }
.approach__result strong { color: var(--text); }

.ring { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; justify-self: center; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring__ticks line { stroke: #cfcfc9; stroke-width: 1; }
.ring__ticks line.major { stroke: var(--text-3); }
.ring__seg { fill: var(--white); stroke: var(--stone); stroke-width: 6; cursor: pointer; transition: fill .4s var(--ease); }
.ring__seg:hover { fill: var(--signal-soft); }
.ring__seg.is-on { fill: var(--signal); }
.ring__lbl { font-family: var(--sans); font-size: 12.5px; font-weight: 700; fill: var(--text); pointer-events: none; letter-spacing: .06em; }
.ring__seg.is-on + .ring__lbl { fill: #fff; }
.ring__inner { fill: var(--stone); stroke: var(--stone-3); stroke-dasharray: 3 6; }
.ring__center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; pointer-events: none; }
.ring__center p { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1; color: var(--text); }
.ring__btns { position: absolute; inset: 0; pointer-events: none; }
.ring__btns button { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ring__btns button:focus-visible { width: auto; height: auto; clip: auto; left: 50%; bottom: -36px; transform: translateX(-50%); padding: 4px 10px; background: var(--text); color: #fff; border-radius: 99px; font-size: 13px; }

/* ---------- projects ---------- */
.projects { padding: var(--sec) 0; background: var(--white); position: relative; }
.plist { border-top: 1px solid var(--text); counter-reset: p; }
.prow { position: relative; display: grid; grid-template-columns: 70px 1.5fr 1fr 1fr; gap: 28px; align-items: baseline; padding: 34px 0; border-bottom: 1px solid var(--line); cursor: default; transition: padding .5s var(--ease); }
.prow::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); background: var(--stone); opacity: 0; transition: opacity .4s; z-index: -1; }
.prow:hover::before { opacity: 1; }
.prow__n { font-size: 14px; font-weight: 700; color: var(--signal); }
.prow__t { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.6rem); line-height: 1.02; color: var(--text); transition: transform .5s var(--ease); }
.prow:hover .prow__t { transform: translateX(10px); }
.prow__d { margin-top: 12px; font-size: 15.5px; max-width: 560px; }
.prow__c { font-weight: 600; color: var(--text); font-size: 15px; }
.prow__s { font-size: 14.5px; color: var(--text-3); text-align: right; }
.prow__img { display: none; }
.cursor-img { position: fixed; left: 0; top: 0; width: 340px; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; pointer-events: none; z-index: 60; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .35s var(--ease), transform .45s var(--ease); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .5); }
.cursor-img.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor-img img { width: 100%; height: 100%; object-fit: cover; }

.logos { margin-top: clamp(80px, 9vw, 130px); display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.logos__k { font-family: var(--serif); font-size: 1.9rem; line-height: 1.05; color: var(--text); }
.logos__grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.logos__grid li { display: grid; place-items: center; height: 130px; padding: 22px; border-right: 1px solid var(--line); transition: background .3s; }
.logos__grid li:last-child { border-right: 0; }
.logos__grid li:hover { background: var(--stone); }
.logos__grid img { max-height: 64px; max-width: 150px; width: auto; object-fit: contain; }

/* ---------- people ---------- */
.people { padding: var(--sec) 0; }
.people__grid { display: grid; grid-template-columns: .9fr 1.2fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.ceo { position: sticky; top: calc(var(--hdr) + 32px); }
.ceo__photo { border-radius: 280px 280px var(--r-xl) var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone-2); }
.ceo__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.ceo__plate { position: relative; margin: -70px 24px 0; background: var(--white); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: 0 30px 60px -36px rgba(19, 21, 24, .45); }
.ceo__name { font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: var(--text); }
.ceo__role { font-weight: 600; color: var(--signal); margin-top: 6px; font-size: 15px; }
.ceo__q { margin-top: 10px; font-size: 14px; color: var(--text-3); }
.people__lede { margin-top: 28px; font-size: 18px; max-width: 600px; }
.model { margin-top: 44px; padding: 30px; border-radius: var(--r-lg); background: var(--text); color: rgba(255, 255, 255, .78); }
.model__k { font-weight: 700; color: #fff; margin-bottom: 8px; }
.model__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.model__chips li { padding: 8px 15px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 14px; font-weight: 600; }
.model__chips li:first-child { background: var(--signal); }
.crew { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.crew figure { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone-2); }
.crew img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.crew figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 13px; font-weight: 600; color: var(--text); }
.leads { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 44px; }
.leads li { padding: 24px 0; border-top: 1px solid var(--stone-3); }
.leads h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.leads p { font-size: 15.5px; }

/* ---------- why bento ---------- */
.why { padding: var(--sec) 0; background: var(--white); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(300px, auto); gap: 16px; }
.tile { border-radius: var(--r-xl); background: var(--stone); padding: 104px 28px 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; position: relative; overflow: hidden; transition: transform .5s var(--ease); }
.tile:hover { transform: translateY(-4px); }
.tile h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.04; color: var(--text); }
.tile p { font-size: 15.5px; }
.tile__ic { position: absolute; top: 28px; left: 28px; width: 52px; height: 52px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.tile__ic svg { width: 26px; height: 26px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tile--photo { grid-column: span 2; grid-row: span 2; color: #fff; justify-content: flex-end; padding: 34px; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.tile--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 35%, rgba(10, 12, 14, .85)); }
.tile--photo div { position: relative; z-index: 2; max-width: 460px; }
.tile--photo h3 { color: #fff; font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 10px; }
.tile--photo p { color: rgba(255, 255, 255, .82); }
.tile--signal { background: var(--signal); }
.tile--signal h3, .tile--signal p { color: #fff; }
.tile .tile__big { position: absolute; top: 18px; right: 26px; font-family: var(--serif); font-size: clamp(4rem, 7vw, 6.5rem); line-height: 1; color: rgba(255, 255, 255, .28); }

/* ---------- contact ---------- */
.contact { position: relative; padding: var(--sec) 0; background: var(--night); color: rgba(255, 255, 255, .72); overflow: hidden; }
.contact__media { position: absolute; inset: 0; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(18, 21, 25, .97) 30%, rgba(18, 21, 25, .7) 100%); }
.contact > .container { position: relative; z-index: 2; }
.contact__grid { display: grid; grid-template-columns: 1fr minmax(0, 580px); gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact__lede { margin-top: 28px; font-size: 18px; max-width: 520px; }
.cinfo { margin-top: 48px; display: grid; gap: 0; }
.cinfo div { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.cinfo dt { font-weight: 700; color: var(--sun); }
.cinfo dd { color: #fff; }
.cinfo a { border-bottom: 1px solid rgba(255, 255, 255, .25); transition: border-color .3s; }
.cinfo a:hover { border-color: var(--signal); }

.enquiry { background: var(--white); color: var(--text-2); border-radius: var(--r-xl); padding: clamp(26px, 3.4vw, 44px); }
.enquiry__t { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--text); margin-bottom: 26px; }
.enquiry__topics { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.enquiry__topics legend { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 12px; padding: 0; }
.enquiry__topics label { cursor: pointer; }
.enquiry__topics input { position: absolute; opacity: 0; pointer-events: none; }
.enquiry__topics span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--stone-3); font-size: 14px; font-weight: 500; transition: all .25s; }
.enquiry__topics input:checked + span { background: var(--text); border-color: var(--text); color: #fff; }
.enquiry__topics input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { position: relative; display: block; margin-bottom: 14px; }
.fld input, .fld textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--stone); border: 1px solid transparent; border-radius: var(--r-md); padding: 26px 16px 10px; transition: border-color .25s, background .25s; resize: vertical; }
.fld textarea { min-height: 128px; }
.fld span { position: absolute; left: 17px; top: 18px; font-size: 15px; color: var(--text-3); pointer-events: none; transition: transform .25s var(--ease), font-size .25s, top .25s; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--text); background: var(--white); }
.fld input:focus + span, .fld input:not(:placeholder-shown) + span,
.fld textarea:focus + span, .fld textarea:not(:placeholder-shown) + span { top: 9px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.fld.bad input, .fld.bad textarea { border-color: #c2412d; background: #fdf1ee; }
.enquiry .pill { margin-top: 10px; width: 100%; justify-content: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry .pill:disabled { opacity: .7; cursor: progress; }
.enquiry__msg { margin-top: 14px; font-size: 14.5px; min-height: 1.4em; }
.enquiry__msg.ok { color: #2f7a46; }
.enquiry__msg.err { color: #c2412d; }

/* ---------- footer ---------- */
.ftr { background: var(--stone); color: var(--text-2); overflow: hidden; }
.ftr__bar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; height: 6px; }
.ftr__bar i:nth-child(1) { background: var(--signal); }
.ftr__bar i:nth-child(2) { background: var(--sun); }
.ftr__bar i:nth-child(3) { background: var(--rose); }
.ftr__top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; padding: 88px 0 40px; }
.ftr__brand img { width: 230px; margin-bottom: 22px; }
.ftr__brand p { max-width: 380px; font-size: 15.5px; }
.ftr__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ftr__cols div { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.ftr__cols a { width: fit-content; transition: color .25s; }
.ftr__cols a:hover { color: var(--signal); }
.ftr__k { font-weight: 700; color: var(--text); margin-bottom: 6px; }
.ftr__word { font-family: var(--serif); font-size: clamp(4rem, 15.2vw, 17.6rem); line-height: .82; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px #c9c9c3; white-space: nowrap; margin: 20px 0 0; user-select: none; }
.ftr__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 28px 0 34px; border-top: 1px solid var(--stone-3); font-size: 14px; }

/* ---------- animation initial states ---------- */
.js [data-anim="fade"], .js [data-anim="rise"] { opacity: 0; transform: translateY(24px); }
.js [data-anim="grow"] { clip-path: inset(8% 8% 8% 8% round var(--r-xl)); }
.js [data-anim="grow"] img { transform: scale(1.15); }
.js [data-anim="lines"] > span { overflow: hidden; }
.js [data-anim="lines"] > span > i { display: inline-block; font-style: inherit; transform: translateY(102%); }
.js .hero__title > span > i { padding-bottom: .06em; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .hdr__phone { display: none; }
  .hdr__nav a { padding: 9px 12px; }
}
@media (max-width: 1040px) {
  :root { --hdr: 72px; }
  .hdr__logo { width: 168px; }
  .hdr__burger { display: block; z-index: 3; }
  .hdr__end .pill { display: none; }
  .hdr__nav { position: fixed; inset: var(--hdr) 0 0; background: var(--white); padding: 24px var(--pad); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; overflow-y: auto; }
  .hdr__nav ul { flex-direction: column; background: none; padding: 0; gap: 0; border-radius: 0; }
  .hdr__nav li { border-bottom: 1px solid var(--line); }
  .hdr__nav a, .hdr__nav a.is-on { padding: 18px 0; font-family: var(--serif); font-size: 34px; line-height: 1.1; color: var(--text); background: none; box-shadow: none; border-radius: 0; }
  .hdr__nav-mobile { display: block; }
  .hdr__nav-mobile a { color: var(--signal) !important; }
  .menu-open .hdr__nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open .hdr__burger span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
  .menu-open .hdr__burger span:nth-child(2) { opacity: 0; }
  .menu-open .hdr__burger span:nth-child(3) { top: 22.5px; transform: rotate(-45deg); }

  .hero__top { grid-template-columns: 1fr; grid-template-areas: "badge" "title" "aside"; }
  .hero__aside { margin-top: 28px; max-width: 560px; }
  .hero__bottom { flex-direction: column; align-items: stretch; }
  .hero__nav { max-width: none; }
  .hero__card { width: 100%; max-width: 420px; }
  .company__grid, .rail__grid, .approach__grid, .people__grid, .contact__grid { grid-template-columns: 1fr; }
  .company__img { max-width: 100%; aspect-ratio: 16 / 9; }
  .figures { grid-template-columns: 1fr 1fr; }
  .head { flex-direction: column; align-items: flex-start; }
  .head--center { align-items: center; }
  .ring { max-width: 480px; }
  .prow { grid-template-columns: 50px 1fr; }
  .prow__c, .prow__s { grid-column: 2; text-align: left; }
  .prow__c { margin-top: -10px; }
  .prow__s { margin-top: -22px; }
  .prow__img { display: block; grid-column: 2; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; }
  .prow__img img { width: 100%; height: 100%; object-fit: cover; }
  .cursor-img { display: none; }
  .logos { grid-template-columns: 1fr; }
  .logos__grid { grid-template-columns: repeat(3, 1fr); }
  .logos__grid li { border-bottom: 1px solid var(--line); }
  .ceo { position: relative; top: 0; max-width: 480px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--photo { grid-column: span 2; grid-row: auto; min-height: 420px; }
  .ftr__top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .badge { font-size: 12.5px; }
  .hero__card { display: none; }
  .hero__veil { background: linear-gradient(0deg, rgba(10, 12, 15, .88) 0%, rgba(10, 12, 15, .55) 55%, rgba(10, 12, 15, .45) 100%); }
  .hero__cta .pill { width: 100%; justify-content: center; }
  .mv { grid-template-columns: 1fr; gap: 28px; }
  .figures { gap: 10px; }
  .figure { padding: 22px 18px; min-height: 160px; gap: 24px; }
  .svc { flex-basis: 82vw; }
  .svc__d { max-height: 220px; opacity: 1; margin-top: 12px; }
  .rail__photos { grid-template-columns: 1fr; }
  .rail__ph--a { grid-row: auto; }
  .acc__panel > p { padding-left: 0; }
  .leads { grid-template-columns: 1fr; }
  .logos__grid { grid-template-columns: 1fr 1fr; }
  .logos__grid li { height: 110px; }
  .bento { grid-template-columns: 1fr; }
  .tile--photo, .tile--signal { grid-column: auto; }
  .tile { min-height: 240px; }
  .tile--photo { min-height: 440px; }
  .f2 { grid-template-columns: 1fr; gap: 0; }
  .cinfo div { grid-template-columns: 1fr; gap: 4px; }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
  .ftr__bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-anim] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-anim] img, .js [data-anim="lines"] > span > i { transform: none !important; }
  .js .statement .w { color: inherit; }
}
