/* Charigan Group — site styles
   Swiss-editorial system: tight uppercase grotesk, italic serif accents,
   hairline rules, black notched panels, type-on motion. */

:root {
  --paper: #f3f2ee;
  --white: #ffffff;
  --ink: #111111;
  --ink-2: #3b3b38;
  --mute: #7d7d77;
  --line: rgba(17, 17, 17, .14);
  --dark: #121212;
  --dark-2: #1c1c1b;
  --line-d: rgba(255, 255, 255, .16);
  --mute-d: #9b9b94;
  --green: #1f4a35;
  --accent: #1f5a3d;
  --accent-2: #63c08e; /* accent on dark backgrounds */
  --accent-ink: #ffffff;

  --f-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --gut: clamp(16px, 3.2vw, 44px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --bar: 60px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--f-body); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
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(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3, .wm {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  margin: 0; letter-spacing: -.045em; line-height: .88;
}
.display { font-size: clamp(54px, 12.5vw, 210px); }
.h1 { font-size: clamp(44px, 8.6vw, 140px); }
.h2 { font-size: clamp(34px, 5.6vw, 88px); line-height: .92; letter-spacing: -.04em; }
.h3 { font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.03em; line-height: 1; }
.serif { font-family: var(--f-serif); font-style: italic; text-transform: none; letter-spacing: -.01em; font-weight: 400; }
.micro { font: 500 11px/1.45 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.lede { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 46ch; letter-spacing: -.01em; }
.body-copy p { margin: 0 0 1em; color: var(--ink-2); max-width: 62ch; }
.mute { color: var(--mute); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sec { position: relative; padding: clamp(72px, 10vw, 150px) 0; background: var(--paper); z-index: 2; }
.sec--white { background: var(--white); }
.sec--dark { background: var(--dark); color: #f1f1ee; }
.sec--dark .lede, .sec--dark .body-copy p { color: #c9c9c3; }
.sec--dark .mute { color: var(--mute-d); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.sec--dark .rule { background: var(--line-d); }

/* section index — "01 ———— About" */
.idx { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-bottom: clamp(36px, 5vw, 72px); }
.idx b { font: 400 clamp(28px, 3vw, 44px)/1 var(--f-display); letter-spacing: -.04em; }
.idx i { height: 1px; background: currentColor; opacity: .25; }
.idx span { font: 500 11px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; }

.grid-2 { display: grid; gap: 32px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 5fr 7fr; gap: 64px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px;
  font: 500 13px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; transition: background .3s, color .3s, transform .3s var(--ease); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #17442e; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--green); }
.btn--line { border: 1px solid currentColor; }
.btn--white { background: #fff; color: var(--ink); }
.tlink { display: inline-flex; gap: 10px; align-items: center; font: 500 13px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid currentColor; }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background .4s, color .4s, transform .45s var(--ease-io); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.hdr .logo { height: 34px; width: auto; }
.hdr .logo--d { display: none; }
.hdr.solid { background: rgba(243, 242, 238, .94); backdrop-filter: blur(12px); color: var(--ink); border-bottom: 1px solid var(--line); }
.hdr.solid .logo--w { display: none; }
.hdr.solid .logo--d { display: block; }
.hdr.hide { transform: translateY(-100%); }
.nav { display: none; gap: 30px; }
.nav a { font: 500 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.hdr__cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; height: 44px; }
.menu-btn i { display: grid; gap: 5px; width: 22px; }
.menu-btn i::before, .menu-btn i::after { content: ""; height: 1.5px; background: currentColor; }
@media (min-width: 1000px) {
  .nav, .hdr__cta { display: flex; }
  .menu-btn { display: none; }
}

/* Mobile menu */
.mnav { position: fixed; inset: 0; z-index: 60; background: var(--dark); color: #fff; display: flex; flex-direction: column; padding: 20px var(--gut) 32px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); visibility: hidden; }
.mnav.open { clip-path: inset(0 0 0 0); visibility: visible; }
.mnav__top { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.mnav__top img { height: 30px; }
.mnav ol { list-style: none; margin: auto 0 0; padding: 0; counter-reset: m; }
.mnav li { border-top: 1px solid var(--line-d); }
.mnav li a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; font: 400 clamp(34px, 9vw, 64px)/1 var(--f-display); letter-spacing: -.045em; text-transform: uppercase; }
.mnav li a::before { counter-increment: m; content: "0" counter(m); font: 500 11px var(--f-body); letter-spacing: .1em; color: var(--mute-d); }
.mnav__foot { margin-top: 28px; display: grid; gap: 6px; color: var(--mute-d); font-size: 14px; }
.mnav__foot a { color: #fff; }

/* ---------- Preloader ---------- */
.pre { position: fixed; inset: 0; z-index: 90; background: var(--white); display: grid; place-items: center; transition: transform .9s var(--ease-io) .1s; }
.pre .wm { font-size: clamp(48px, 13vw, 180px); }
.pre.done { transform: translateY(-100%); }
.pre__bar { position: absolute; left: var(--gut); right: var(--gut); bottom: 28px; display: flex; justify-content: space-between; }
html.no-pre .pre { display: none; }

/* ---------- Type-on & reveals ---------- */
.ch { display: inline-block; opacity: 0; transform: translate(.18em, .22em); transition: opacity .35s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--i) * 34ms + var(--d, 0ms)); white-space: pre; }
.typed .ch { opacity: 1; transform: none; }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
[data-wipe] > * { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-io); transition-delay: var(--d, 0ms); }
[data-wipe].in > * { clip-path: inset(0 0 0 0); }
[data-wipe] img { transform: scale(1.12); transition: transform 1.8s var(--ease); }
[data-wipe].in img { transform: scale(1); }


/* ---------- Hero (home) ---------- */
.pin { position: sticky; top: 0; z-index: 1; }
.hero { position: relative; height: 100svh; min-height: 620px; background: var(--white); padding: 76px var(--gut) var(--gut); display: flex; }
.hero__frame { position: relative; flex: 1; overflow: hidden; background: #2b2b28; }
.hero__frame > img, .hero__frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kb 18s var(--ease) both; }
@keyframes kb { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 45%, rgba(0,0,0,.62) 100%); pointer-events: none; }
.hero .hdr-space { display: none; }
.tab { position: absolute; top: 0; right: 0; z-index: 2; background: var(--white); color: var(--ink); padding: 14px 16px 16px 22px; }
.tab::before { /* inverted corner to blend the tab into the frame */
  content: ""; position: absolute; left: -16px; top: 0; width: 16px; height: 16px;
  background: radial-gradient(circle at 0 100%, transparent 15.5px, var(--white) 16px); }
.tab .wm { font-size: clamp(38px, 8.4vw, 132px); line-height: .82; }
.hero__note { position: absolute; z-index: 2; color: #fff; max-width: 250px; }
.hero__note--a { top: clamp(110px, 16vw, 210px); right: var(--gut); text-align: left; display: flex; gap: 10px; }
.hero__note--a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; flex: none; margin-top: 4px; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
.hero__foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: var(--gut); display: grid; gap: 20px; align-items: end; color: #fff; }
.hero__head { font-size: clamp(46px, 9.4vw, 150px); }
.hero__head .serif { font-size: 1.04em; letter-spacing: -.03em; }
.hero__side { display: grid; gap: 10px; }
.statcard { display: grid; grid-template-columns: 1fr 112px; gap: 14px; background: #f1ecd9; color: var(--ink); padding: 14px; min-height: 140px; }
.statcard b { font: 400 clamp(46px, 5vw, 64px)/.9 var(--f-display); letter-spacing: -.05em; display: block; }
.statcard span { align-self: end; }
.statcard img { width: 112px; height: 100%; object-fit: cover; }
.hero__meta { display: flex; gap: 18px; justify-content: space-between; color: rgba(255,255,255,.82); }
@media (min-width: 900px) {
  .hero__foot { grid-template-columns: 1fr 360px; }
  .tab { padding: 18px 22px 22px 30px; }
}
@media (max-width: 899px) {
  .hero__note--a { display: none; }
  .hero__side .statcard { display: none; }
  .tab { left: 0; right: auto; padding: 10px 14px 12px 0; }
  .tab::before { left: auto; right: -16px; background: radial-gradient(circle at 100% 100%, transparent 15.5px, var(--white) 16px); }
}

/* Marquee */
.marq { position: relative; z-index: 2; background: var(--dark); color: #fff; overflow: hidden; border-block: 1px solid #000; }
.marq__t { display: flex; width: max-content; animation: marq 40s linear infinite; }
.marq__t span { display: inline-flex; align-items: center; gap: 28px; padding: 18px 14px; font: 400 clamp(18px, 2vw, 26px)/1 var(--f-display); text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; }
.marq__t span::after { content: ""; width: 8px; height: 8px; background: var(--accent-2); transform: rotate(45deg); }
@keyframes marq { to { transform: translateX(-50%); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; margin-top: clamp(48px, 7vw, 96px); }
.stat { border-top: 1px solid var(--line); padding: 14px 0 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 140px; }
.stat b { font: 400 clamp(46px, 6.4vw, 96px)/.9 var(--f-display); letter-spacing: -.05em; text-align: right; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Projects list ---------- */
.plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.prow { border-bottom: 1px solid var(--line); position: relative; }
.prow a { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px 16px; align-items: center; padding: 22px 0; transition: padding .45s var(--ease), background .45s; }
.prow__n { font: 500 11px var(--f-body); letter-spacing: .1em; color: var(--mute); align-self: start; padding-top: 8px; }
.prow__name { font: 400 clamp(30px, 5.2vw, 76px)/.92 var(--f-display); letter-spacing: -.045em; text-transform: uppercase; }
.prow__meta { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); font-size: 14px; }
.prow__go { width: 46px; height: 46px; border: 1px solid var(--line); display: grid; place-items: center; transition: background .35s, color .35s, border-color .35s; }
.prow__go svg { width: 18px; height: 18px; transform: rotate(-45deg); transition: transform .4s var(--ease); }
.prow a:hover .prow__go { background: var(--ink); color: #fff; border-color: var(--ink); }
.prow a:hover .prow__go svg { transform: rotate(0); }
.prow__thumb { grid-column: 2 / -1; aspect-ratio: 16/10; overflow: hidden; }
.prow__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .prow a { grid-template-columns: 70px minmax(0, 1.5fr) minmax(0, 1fr) auto; padding: 30px 0; }
  .prow a:hover { padding-left: 16px; }
  .prow__meta { grid-column: auto; flex-direction: column; gap: 4px; }
  .prow__thumb { display: none; }
}
.cursor-img { position: fixed; left: 0; top: 0; z-index: 40; width: 340px; aspect-ratio: 4/3; pointer-events: none; overflow: hidden; opacity: 0;
  transform: translate(-50%, -50%) scale(.8); transition: opacity .35s, transform .45s var(--ease); }
.cursor-img.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Notched black panel (from the reference) ---------- */
.notch { position: relative; color: #fff; }
.notch__tab { display: inline-block; background: var(--dark); padding: 16px 22px 6px; }
.notch__tab .h3 { font-size: clamp(22px, 2.6vw, 34px); }
.notch__body { background: var(--dark); padding: 18px 22px 22px; display: grid; gap: 16px; }
.notch__body p { margin: 0; color: #cfcfc9; font-size: 14px; max-width: 52ch; }
.notch__dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #fff; display: grid; place-items: center; font: 500 10px var(--f-body); }
.notch--light { color: var(--ink); }
.notch--light .notch__tab, .notch--light .notch__body { background: var(--white); }
.notch--light .notch__body p { color: var(--ink-2); }
.notch--light .notch__dot { border-color: var(--ink); }

.over { position: relative; overflow: hidden; }
.over > img { width: 100%; height: clamp(420px, 60vw, 760px); object-fit: cover; }
.over .notch { position: absolute; left: var(--gut); right: var(--gut); bottom: var(--gut); }
@media (min-width: 900px) { .over .notch { right: auto; width: min(620px, 60%); } }

/* ---------- Map (dark linework) ---------- */
.map { position: relative; border: 1px solid var(--line-d); background: #151514; overflow: hidden; }
.map svg { width: 100%; height: auto; }
.map .road { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1; }
.map .road--major { stroke: rgba(255,255,255,.42); stroke-width: 1.4; }
.map .route { fill: none; stroke: var(--accent-2); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease-io) .3s; }
.map.in .route { stroke-dashoffset: 0; }
.map .grid line { stroke: rgba(255,255,255,.05); }
.map text { fill: #d8d8d2; font: 500 11px var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.map .city { fill: #fff; font-size: 13px; }
.map .pin { fill: var(--accent-2); }
.map .pin-ring { fill: none; stroke: var(--accent-2); opacity: .5; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.6); opacity: .8; } to { transform: scale(2.6); opacity: 0; } }
.map .hub { fill: #fff; }
.map__key { position: absolute; left: 0; bottom: 0; }
.corridors { display: grid; gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); margin-top: 1px; }
.corr { background: var(--dark); padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.corr b { font: 400 clamp(48px, 6vw, 84px)/.85 var(--f-display); letter-spacing: -.05em; grid-row: span 3; color: #fff; }
.corr h3 { margin: 0; font: 500 13px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.corr p { margin: 0; color: var(--mute-d); font-size: 14px; }
.corr ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.corr li a { display: inline-block; font-size: 12px; padding: 6px 10px; border: 1px solid var(--line-d); transition: background .3s, color .3s; }
.corr li a:hover { background: #fff; color: var(--ink); }
@media (min-width: 900px) { .corridors { grid-template-columns: 1fr 1fr; } }

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: grid; grid-template-columns: 44px 1fr 28px; gap: 12px; align-items: center; padding: 22px 0; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .micro { color: var(--mute); }
.acc summary h3 { margin: 0; font: 400 clamp(20px, 2.2vw, 30px)/1.05 var(--f-display); letter-spacing: -.03em; text-transform: uppercase; }
.acc summary i { width: 28px; height: 28px; position: relative; }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; left: 6px; right: 6px; top: 13px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.acc summary i::after { transform: rotate(90deg); }
.acc details[open] summary i::after { transform: rotate(0); }
.acc details > div { padding: 0 0 26px 56px; max-width: 70ch; color: var(--ink-2); }
.acc details[open] > div { animation: accIn .6s var(--ease); }
@keyframes accIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Chairman ---------- */
.chm { display: grid; gap: 28px; }
.chm__photo { position: relative; overflow: hidden; background: #d9d6cd; }
.chm__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.chm__photo .notch { position: absolute; left: 0; bottom: 0; }
.quote { font: 400 clamp(30px, 3.8vw, 58px)/1.05 var(--f-serif); font-style: italic; letter-spacing: -.02em; margin: 0; }
.chm__more { margin-top: 18px; }
.chm__more summary { list-style: none; cursor: pointer; display: inline-flex; }
.chm__more summary::-webkit-details-marker { display: none; }
.chm__more[open] summary .lbl::after { content: " — close"; }
.chm__more .body-copy { margin-top: 22px; }
.sig { font: 400 30px/1 var(--f-serif); font-style: italic; }
@media (min-width: 900px) { .chm { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } .chm__photo { position: sticky; top: 100px; } }

/* Values */
.vals { display: grid; gap: 0 24px; }
.val { border-top: 1px solid var(--line); padding: 16px 0 30px; }
.val .micro { color: var(--mute); }
.val h3 { margin: 26px 0 10px; font: 400 clamp(22px, 2vw, 28px)/1 var(--f-display); letter-spacing: -.03em; text-transform: uppercase; }
.val p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (min-width: 700px) { .vals { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .vals { grid-template-columns: repeat(5, 1fr); } }

/* Testimonials */
.tests { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.test { background: var(--white); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 28px; justify-content: space-between; }
.test blockquote { margin: 0; font: 400 clamp(19px, 1.7vw, 24px)/1.3 var(--f-display); letter-spacing: -.02em; }
.test blockquote::before { content: "“"; display: block; font: 400 64px/.6 var(--f-serif); color: var(--accent); margin-bottom: 14px; }
.test footer { display: flex; justify-content: space-between; gap: 12px; }
@media (min-width: 900px) { .tests { grid-template-columns: repeat(3, 1fr); } }

/* Horizontal strip gallery */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 30%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.strip > * { scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
@media (max-width: 700px) { .strip { grid-auto-columns: 74%; } }

/* CTA */
.cta { text-align: left; }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Footer ---------- */
.ftr { position: relative; z-index: 2; background: var(--white); padding: clamp(56px, 7vw, 96px) 0 0; overflow: hidden; }
.ftr__top { display: grid; gap: 36px; padding-bottom: 40px; }
.ftr h2 { margin: 0; font: 400 clamp(30px, 3.4vw, 48px)/1 var(--f-display); letter-spacing: -.04em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 8px; }
.ftr__col { display: grid; gap: 8px; align-content: start; font-size: 15px; }
.ftr__col .micro { color: var(--mute); margin-bottom: 6px; }
.ftr__col a:hover { text-decoration: underline; }
.soc { display: flex; gap: 8px; }
.soc a { width: 40px; height: 40px; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, color .3s; }
.soc a:hover { background: var(--ink); color: #fff; }
.soc svg { width: 17px; height: 17px; }
.ftr__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; border-top: 1px solid var(--line); padding: 16px 0; color: var(--mute); }
.ftr .wm { font-size: 17.4vw; line-height: .78; letter-spacing: -.06em; margin: 0 0 -1.6vw -.6vw; white-space: nowrap; }
@media (min-width: 900px) { .ftr__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Project page ---------- */
.phero .hero__head { font-size: clamp(44px, 9.2vw, 150px); }
.phero .tab .wm { font-size: clamp(26px, 4.4vw, 64px); }
.crumbs { display: flex; gap: 8px; color: rgba(255,255,255,.8); margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
.fact { border-top: 1px solid var(--line); padding: 14px 0 24px; display: flex; flex-direction: column; gap: 18px; justify-content: space-between; min-height: 128px; }
.fact b { font: 400 clamp(24px, 2.6vw, 38px)/1 var(--f-display); letter-spacing: -.035em; text-transform: uppercase; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border: 1px solid var(--line); background: var(--white); font-size: 14px; border-radius: 999px; }
.chips li::before { content: ""; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.checks li { background: var(--white); padding: 18px 20px; display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; }
.checks svg { width: 22px; height: 22px; color: var(--green); }
.lms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lm { position: relative; overflow: hidden; background: #ddd; aspect-ratio: 4/5; }
.lm img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.lm:hover img { transform: scale(1.06); }
.lm span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); font: 500 12px/1.3 var(--f-body); letter-spacing: .04em; text-transform: uppercase; }
.lm--txt { display: flex; align-items: end; padding: 12px; background: var(--white); border: 1px solid var(--line); aspect-ratio: auto; min-height: 90px; }
.lm--txt span { position: static; padding: 0; color: var(--ink); background: none; }
@media (min-width: 700px) { .lms { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .lms { grid-template-columns: repeat(5, 1fr); } }
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gal button { overflow: hidden; background: #ddd; aspect-ratio: 1; cursor: zoom-in; position: relative; }
.gal button img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gal button:hover img { transform: scale(1.05); }
.gal .w2 { grid-column: span 2; aspect-ratio: 2/1; }
@media (min-width: 900px) { .gal { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.vid { position: relative; background: #000; aspect-ratio: 16/9; overflow: hidden; }
.vid video { width: 100%; height: 100%; object-fit: cover; }
.next { display: block; background: var(--dark); color: #fff; padding: clamp(48px, 8vw, 120px) 0; position: relative; z-index: 2; overflow: hidden; }
.next .h1 { transition: transform .8s var(--ease); }
.next:hover .h1 { transform: translateX(18px); }
.next__img { position: absolute; inset: 0; opacity: .28; transition: opacity .6s; }
.next__img img { width: 100%; height: 100%; object-fit: cover; }
.next:hover .next__img { opacity: .45; }
.next .wrap { position: relative; }
.price-tag { display: inline-block; margin-top: 14px; background: var(--accent); color: #fff; padding: 8px 12px; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 80; background: #0c0c0c; color: #fff; display: none; flex-direction: column; }
.lb.open { display: flex; }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gut); }
.lb__stage { flex: 1; display: grid; place-items: center; padding: 0 var(--gut); min-height: 0; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb__nav { display: flex; justify-content: center; gap: 10px; padding: 14px 0 calc(18px + env(safe-area-inset-bottom)); }
.lb button.sq { width: 48px; height: 48px; border: 1px solid var(--line-d); display: grid; place-items: center; }
.lb button.sq svg { width: 18px; height: 18px; }

/* Mobile action bar */
.abar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr; background: var(--dark); color: #fff; padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%); transition: transform .5s var(--ease); }
.abar.show { transform: none; }
.abar a { height: var(--bar); display: flex; align-items: center; justify-content: center; gap: 10px; font: 500 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
.abar a + a { background: var(--accent); }
.abar svg { width: 18px; height: 18px; }
@media (min-width: 1000px) { .abar { display: none; } }
@media (max-width: 999px) { body { padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom)); } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ch, [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-wipe] > * { clip-path: none !important; }
  [data-wipe] img { transform: none !important; }
  .map .route { stroke-dashoffset: 0 !important; }
  .pre { display: none; }
}

/* Check mode (?reveal): everything visible, fixed hero height for tall screenshots */
.dbg .hero { height: 860px; }
.dbg .pin { position: relative; }

/* ---- Refinements ---- */
/* Header sits on the white band above the hero frame, so it is always ink-coloured */
.hdr { color: var(--ink); }
.hdr .logo--w { display: none; }
.hdr .logo--d { display: block; }
.hdr__cta.btn--white { background: var(--ink); color: #fff; }
.hdr__cta.btn--white:hover { background: var(--accent); }
.hero { padding-top: 84px; }
/* Hero note as a small black panel so it reads over bright footage */
.hero__note--a { background: var(--dark); padding: 14px 16px; max-width: 290px; right: var(--gut); }
.hero__note--a::before { background: var(--accent); box-shadow: none; border-radius: 0; transform: rotate(45deg); }
/* Project rows: arrow always top-right */
.prow__go { grid-column: 3; grid-row: 1; }
@media (min-width: 900px) { .prow__go { grid-column: 4; } }
.vals--3 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .vals--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .ftr__top { grid-template-columns: 1.5fr 1fr 1.1fr .8fr .8fr; } }

/* ---- Round 2 ---- */
/* Full "Charigan Group" wordmark */
.pre .wm { font-size: clamp(34px, 9.6vw, 150px); white-space: nowrap; }
.tab .wm { font-size: clamp(26px, 5.7vw, 92px); white-space: nowrap; }
.ftr .wm { font-size: 11.9vw; margin: 0 0 -1vw -.4vw; }
.ftr { overflow: clip; }
.hero__note--a::before { background: var(--accent-2); }
.abar a + a { background: var(--accent); }
.test blockquote::before { color: var(--accent); }

/* Map */
.map { overflow-x: auto; }
.map__in { min-width: 760px; }
.map .road { stroke-linejoin: round; }
.map .road--major { stroke-width: 2; stroke: rgba(255,255,255,.5); }
.map text { font-size: 12px; fill: #b9b9b2; }
.map .dim { fill: #7d7d77; font-size: 11px; }
.map .place { fill: #fff; font-size: 12px; }
.map .proj { fill: var(--accent-2); font-size: 14px; letter-spacing: .06em; font-weight: 500; }
.map a:hover .proj { fill: #fff; text-decoration: underline; }
.map .city { font-size: 15px; }
.map .peak { fill: none; stroke: #b9b9b2; stroke-width: 1.4; }
.map .office { fill: none; stroke: #fff; stroke-width: 1.6; }
.map .shield rect { fill: #151514; stroke: rgba(255,255,255,.55); }
.map .shield text { fill: #fff; font-size: 10px; letter-spacing: .06em; }

/* 3D layout model */
.l3d { position: relative; height: clamp(380px, 56vw, 720px); background: linear-gradient(180deg, #eef0ea 0%, #e6e2d6 100%); overflow: hidden; }
.l3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.l3d .spot { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; white-space: nowrap; transition: opacity .6s;
  font: 500 11px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--dark); padding: 8px 10px; margin: -34px 0 0 10px; }
.l3d .spot i { position: absolute; left: -14px; top: 30px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(31,90,61,.25); }
.l3d__note { position: absolute; left: 14px; bottom: 12px; margin: 0; color: var(--ink-2); }
.l3d.no-gl { background: url(img/aerial.jpg) center/cover; }
.l3d.no-gl .spot { display: none; }
@media (max-width: 700px) { .l3d .spot { font-size: 9px; padding: 6px 7px; } }

/* Values with icons, mission cards with photos */
.val__top { display: flex; justify-content: space-between; align-items: start; }
.val__ic { width: 44px; height: 44px; color: var(--accent); }
.val--img { border-top: 0; padding-top: 0; }
.val__img { overflow: hidden; margin-bottom: 18px; }
.val__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 1.2s var(--ease); }
.val--img:hover .val__img img { transform: scale(1.05); }

/* Two-up image pair */
.duo { display: grid; gap: 12px; }
.duo button { position: relative; overflow: hidden; cursor: zoom-in; background: #222; }
.duo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.duo span { position: absolute; left: 0; bottom: 0; background: var(--dark); color: #fff; padding: 10px 12px; }
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; } }

/* Stop any sideways scroll on phones */
html, body { max-width: 100%; overflow-x: clip; }

/* ---- Round 3 ---- */
.hdr .logo { height: 44px; width: auto; display: block; }
.mnav__top img { height: 40px; width: auto; }
.map .pin--off { fill: #6c6c66; }
.map .proj--off { fill: #8a8a84; font-size: 12px; font-weight: 400; }
.finder { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.find { background: var(--white); padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 12px; min-height: 190px; transition: background .35s, color .35s; }
.find h3 { margin: 0; font: 400 clamp(20px, 1.9vw, 26px)/1.08 var(--f-display); letter-spacing: -.03em; text-transform: uppercase; }
.find p { margin: 0; color: var(--ink-2); font-size: 15px; transition: color .35s; }
.find .micro { margin-top: auto; color: var(--accent); transition: color .35s; }
.find:hover { background: var(--accent); color: #fff; }
.find:hover p, .find:hover .micro { color: #fff; }
@media (min-width: 700px) { .finder { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .finder { grid-template-columns: repeat(3, 1fr); } }

/* Amenity boxes: gapless repeater with an icon per amenity */
.amen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.amen li { background: var(--white); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; min-height: 148px; font-size: 15px; line-height: 1.3; transition: background .35s, color .35s; }
.amen svg { width: 40px; height: 40px; color: var(--accent); transition: color .35s; }
.amen li:hover { background: var(--accent); color: #fff; }
.amen li:hover svg { color: #fff; }
@media (min-width: 1100px) { .amen { grid-template-columns: repeat(3, 1fr); } }
