/* =========================================================
   MRGB Construction: site styles
   ========================================================= */
@view-transition { navigation: auto; }

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --accent: #ff671f;        /* MRGB orange (decorative / on dark) */
  --accent-ink: #c2410c;    /* orange that passes contrast on white */
  --radius: 22px;
  --radius-sm: 12px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 56px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--font); letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0 0 .5em; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 103, 31, .25); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }

/* ---------- Type scale ---------- */
.display { font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.headline { font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.06; }
.title { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.4; color: var(--ink-2); font-weight: 500; letter-spacing: -0.015em; max-width: 40ch; }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 1rem; }
.muted { color: var(--ink-2); }
.accent-line { display: block; width: 48px; height: 4px; border-radius: 4px; background: var(--accent); margin: 0 0 1.5rem; }
.section--center .accent-line { margin-inline: auto; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.5rem; border-radius: 999px; border: 0;
  background: var(--ink); color: #fff; font: 600 1rem/1 var(--font); letter-spacing: -0.01em;
  cursor: pointer; transition: transform .3s var(--ease-out), background-color .2s, box-shadow .3s;
  text-decoration: none !important;
}
.btn:hover { background: #000; transform: translateY(-1px); box-shadow: 0 8px 24px -10px rgba(0,0,0,.45); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--accent { background: var(--accent); color: #111; }
.btn--accent:hover { background: #ff7a3a; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f0f0f2; }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: rgba(127,127,127,.12); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--sm { min-height: 34px; padding: 0 1rem; font-size: .875rem; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .35em; }
.link-arrow::after { content: "›"; font-size: 1.35em; line-height: 0; transform: translateY(-1px); transition: transform .3s var(--ease-out); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translate(4px, -1px); }
.on-dark .link-arrow, .link-arrow--light { color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.section--center .actions { justify-content: center; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.nav.is-scrolled { border-bottom-color: rgba(0,0,0,.08); }
.home .nav { position: fixed; inset-inline: 0; }
.nav__inner { height: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 2rem; }
.nav__logo img { height: 28px; width: auto; }
.nav__links { margin-left: auto; }
.nav__links > ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__item > a { display: block; padding: .5rem .9rem; font-size: .9rem; font-weight: 500; color: var(--ink); border-radius: 999px; transition: background-color .2s, color .2s; }
.nav__item > a:hover { text-decoration: none; background: rgba(0,0,0,.05); }
.nav__item > a[aria-current] { color: var(--accent-ink); }
.nav__item--menu { position: relative; }
.nav__flyout {
  position: absolute; top: 100%; left: 50%; translate: -50% 0; padding-top: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s var(--ease), transform .3s var(--ease-out), visibility .25s;
}
.nav__item--menu:hover .nav__flyout, .nav__item--menu:focus-within .nav__flyout { opacity: 1; visibility: visible; transform: none; }
.nav__flyout-inner { min-width: 240px; padding: 1.1rem; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 18px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.3), 0 0 0 1px rgba(0,0,0,.05); }
.nav__flyout-label { font-size: .75rem; color: var(--ink-3); margin: 0 0 .5rem .6rem; }
.nav__flyout ul { list-style: none; margin: 0; padding: 0; }
.nav__flyout a { display: block; padding: .55rem .6rem; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; }
.nav__flyout a:hover { background: var(--bg-alt); text-decoration: none; }
.nav__cta { flex: none; }
.nav__toggle { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 13px; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }
.nav__mobile { position: fixed; inset: var(--nav-h) 0 0; z-index: 99; height: calc(100dvh - var(--nav-h)); overscroll-behavior: contain; background: rgba(255,255,255,.98);
  opacity: 0; transition: opacity .3s var(--ease); }
.nav__mobile.is-open { opacity: 1; }
.nav__mobile { -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 1.5rem var(--gutter) 3rem; overflow-y: auto; }
.nav__mobile ul { list-style: none; margin: 0; padding: 0; }
.nav__mobile li { opacity: 0; transform: translateY(-8px); transition: opacity .4s var(--ease), transform .5s var(--ease-out); }
.nav__mobile.is-open li { opacity: 1; transform: none; }
.nav__mobile li:nth-child(2) { transition-delay: .03s } .nav__mobile li:nth-child(3) { transition-delay: .06s } .nav__mobile li:nth-child(4) { transition-delay: .09s }
.nav__mobile li:nth-child(5) { transition-delay: .12s } .nav__mobile li:nth-child(6) { transition-delay: .15s } .nav__mobile li:nth-child(7) { transition-delay: .18s }
.nav__mobile ul a { display: block; padding: .5rem 0; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.nav__mobile .sub a { font-size: 1.15rem; font-weight: 500; color: var(--ink-2); padding: .3rem 0 .3rem 1rem; }
.nav__mobile-contact { margin-top: 2rem; color: var(--ink-2); }
.nav__mobile-contact a { color: var(--ink-2); font-size: 1.05rem; font-weight: 500; line-height: 2; }
.nav__mobile .btn { width: 100%; }
body.menu-open { overflow: hidden; }

@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; margin-left: auto; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #f5f5f7; }
.section--dark .lead, .section--dark .muted { color: #a1a1a6; }
.section--dark .eyebrow { color: var(--accent); }
.section--center { text-align: center; }
.section--center .lead { margin-inline: auto; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head .headline { margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; max-height: 1100px; overflow: hidden; background: #111; color: #fff; isolation: isolate; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero__slide.is-active img { animation: kenburns 9s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 70%),
    linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 45%, rgba(0,0,0,.75) 100%); }
.hero__content { position: absolute; z-index: 3; inset: auto 0 0; padding-bottom: clamp(5rem, 11vh, 8rem); }
.hero__text { position: relative; min-height: 10.5em; }
.hero__copy { position: absolute; inset: auto 0 0 0; opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform 1s var(--ease-out); pointer-events: none; }
.hero__copy.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: .35s; }
.hero__copy h1, .hero__copy h2 { font-size: clamp(2.8rem, 7.5vw, 6.5rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin: 0 0 1rem; text-wrap: balance; }
.hero__copy p { font-size: clamp(1.1rem, 1.8vw, 1.45rem); color: rgba(255,255,255,.88); max-width: 34ch; font-weight: 500; margin-bottom: 1.75rem; }
.hero__bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 2rem; }
.hero__bar .wrap { display: flex; align-items: center; gap: 12px; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { width: 36px; height: 4px; border: 0; padding: 0; border-radius: 4px; background: rgba(255,255,255,.35); overflow: hidden; cursor: pointer; position: relative; }
.hero__dot::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active::after { animation: progress var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero__dot.is-active::after { animation-play-state: paused; }
.hero__dot.is-done::after { transform: scaleX(1); }
@keyframes progress { to { transform: scaleX(1); } }
.hero__pause { margin-left: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; display: grid; place-items: center; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero__pause svg { width: 12px; height: 12px; fill: currentColor; }
.hero__scroll { margin-left: auto; color: rgba(255,255,255,.8); font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Intro statement ---------- */
.statement { font-size: clamp(1.75rem, 4.2vw, 3.4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.12; max-width: 22ch; margin-inline: auto; text-wrap: balance; }
.statement em { font-style: normal; color: var(--ink-3); }

/* ---------- Category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: #222; color: #fff; aspect-ratio: 4 / 5; isolation: isolate; }
.tile--wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.7) 100%); z-index: 1; }
.tile__body { position: absolute; z-index: 2; left: clamp(1.25rem, 3vw, 2.5rem); right: clamp(1.25rem, 3vw, 2.5rem); bottom: clamp(1.25rem, 3vw, 2.25rem); }
.tile__title { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.04em; margin: 0 0 .25rem; }
.tile__meta { color: rgba(255,255,255,.8); margin: 0 0 .75rem; font-weight: 500; }
.tile:hover { text-decoration: none; }
.tile:hover img { transform: scale(1.045); }
.tile .link-arrow { color: #fff; }
@media (max-width: 700px) {
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile--wide { aspect-ratio: 4 / 4.2; }
}

/* ---------- Featured carousel ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 420px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 24px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-wrap { position: relative; }
.rail-nav { display: flex; gap: 10px; }
.rail-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.06); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, opacity .2s; }
.rail-btn:hover { background: rgba(0,0,0,.12); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail-btn svg { width: 16px; height: 16px; }
.section--dark .rail-btn { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Project cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.card { display: block; color: inherit; }
.card:hover { text-decoration: none; }
.card__media { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; color: #fff; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.card__body { padding: 1rem .25rem 0; }
.card__title { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 .2rem; }
.card__meta { color: var(--ink-2); font-size: .95rem; margin: 0; }
.card--feature .card__media { aspect-ratio: 4 / 5; }
.section--dark .card__meta { color: #a1a1a6; }

/* ---------- Page header ---------- */
.page-head { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2rem, 4vw, 3rem); }
.page-head .display { margin-bottom: .35em; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .875rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.crumbs a { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2rem; }
.chip { padding: .5rem 1rem; border-radius: 999px; background: var(--bg-alt); color: var(--ink); font-size: .9rem; font-weight: 600; }
.chip:hover { text-decoration: none; background: #e8e8ed; }
.chip[aria-current] { background: var(--ink); color: #fff; }

/* ---------- Project detail ---------- */
.project-hero { margin-inline: auto; max-width: 1600px; padding-inline: var(--gutter); }
.project-hero__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-alt); cursor: zoom-in; }
.project-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .project-hero__media { aspect-ratio: 4 / 3.4; } }
.facts { display: flex; flex-wrap: wrap; gap: 2rem 3.5rem; margin: 2rem 0 0; padding: 0; }
.facts div { min-width: 120px; }
.facts dt { font-size: .8rem; color: var(--ink-3); margin-bottom: .2rem; }
.facts dd { margin: 0; font-weight: 600; }
.prose { max-width: 68ch; font-size: 1.125rem; line-height: 1.65; color: #333336; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose b, .prose strong { color: var(--ink); }

.gallery { columns: 3 300px; column-gap: 16px; }
.gallery__item { display: block; break-inside: avoid; margin: 0 0 16px; border-radius: 14px; overflow: hidden; background: var(--bg-alt); cursor: zoom-in; position: relative; border: 0; padding: 0; width: 100%; }
.gallery__item img { width: 100%; transition: transform .9s var(--ease-out), opacity .6s; }
.gallery__item:hover img { transform: scale(1.03); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: flex; flex-direction: column; gap: .25rem; padding: 1.5rem 1.75rem; border-radius: 18px; background: var(--bg-alt); color: var(--ink); transition: background-color .2s; }
.pager a:hover { text-decoration: none; background: #ebebef; }
.pager span { font-size: .8rem; color: var(--ink-3); }
.pager strong { font-size: 1.25rem; letter-spacing: -0.02em; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: auto; } }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 500; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10,10,12,.96); color: #fff; overscroll-behavior: contain; }
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lbIn .35s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: .9rem; color: rgba(255,255,255,.7); }
.lb__stage { position: relative; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; padding: 0 clamp(0px, 5vw, 80px); }
.lb__img { max-width: 100%; max-height: calc(100svh - 140px); object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; transition: opacity .3s var(--ease), transform .45s var(--ease-out); }
.lb__img.is-loading { opacity: 0; transform: scale(.985); }
.lb__btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.lb__btn:hover { background: rgba(255,255,255,.24); }
.lb__btn svg { width: 18px; height: 18px; }
.lb__prev, .lb__next { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; }
.lb__prev { left: 18px; } .lb__next { right: 18px; }
.lb__caption { text-align: center; padding: 14px 18px 22px; font-size: .9rem; color: rgba(255,255,255,.7); min-height: 1.5em; }
@media (hover: none) { .lb__prev, .lb__next { display: none; } }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split__media { border-radius: var(--radius); overflow: hidden; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.stat__num { display: block; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.stat__label { color: var(--ink-2); font-weight: 500; }
.section--dark .stat__label { color: #a1a1a6; }
.section--dark .stat__num { background: linear-gradient(180deg, #fff, #a1a1a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; gap: 1.5rem; } }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.value { padding: 2rem; border-radius: var(--radius); background: var(--bg); }
.section--dark .value { background: #161617; }
.value__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,103,31,.12); color: var(--accent-ink); margin-bottom: 1.25rem; }
.section--dark .value__icon { color: var(--accent); }
.value__icon svg { width: 22px; height: 22px; }
.value h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.value p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.section--dark .value p { color: #a1a1a6; }

.pillars { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.5rem; font-size: clamp(1.5rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.04em; margin-top: 2rem; }
.pillars span:nth-child(odd) { color: var(--accent); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-cards { display: grid; gap: 14px; }
.info-card { display: flex; gap: 1rem; padding: 1.5rem; border-radius: 18px; background: var(--bg-alt); color: var(--ink); }
.info-card:hover { text-decoration: none; }
a.info-card { transition: background-color .2s, transform .3s var(--ease-out); }
a.info-card:hover { background: #ebebef; transform: translateY(-2px); }
.info-card .value__icon { margin: 0; flex: none; }
.info-card h3 { font-size: 1rem; margin: 0 0 .15rem; }
.info-card p { margin: 0; color: var(--ink-2); }

.form { display: grid; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius); background: var(--bg); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 30px 60px -30px rgba(0,0,0,.18); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .875rem; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: .85rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,103,31,.18); }
.field small { color: var(--ink-3); font-size: .8rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-weight: 500; }
.notice--ok { background: #e8f6ec; color: #135c2b; }
.notice--err { background: #fdecea; color: #8a1c13; }

.map { position: relative; margin-top: 14px; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: #e9e9ee; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load { position: absolute; inset: 0; display: grid; place-content: center; gap: .75rem; text-align: center; background: linear-gradient(135deg, #f1f1f4, #e2e2e8); color: var(--ink-2); border: 0; width: 100%; cursor: pointer; font: inherit; }
.map__load strong { color: var(--ink); font-size: 1.05rem; }

/* ---------- CTA band ---------- */
.cta { border-radius: calc(var(--radius) + 8px); padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem); background: radial-gradient(120% 120% at 100% 0%, #3a1a08 0%, #111 55%); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,103,31,.55), rgba(255,103,31,0) 70%); filter: blur(10px); }
.cta > * { position: relative; }
.cta .lead { color: rgba(255,255,255,.75); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); color: var(--ink-2); font-size: .875rem; padding: 4rem 0 2rem; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { height: 30px; width: auto; margin-bottom: 1rem; }
.footer__h { font-size: .8rem; font-weight: 600; color: var(--ink); letter-spacing: 0; margin-bottom: .9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.footer__badges { display: flex; gap: 10px; margin-top: 1.25rem; }
.footer__badges img { height: 56px; width: auto; border-radius: 8px; background: #fff; padding: 4px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: .8rem; }
.footer__base p { margin: 0; }
.footer__base ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal="scale"].is-in { transform: none; }

.notfound { min-height: 60vh; display: grid; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__slide img { transform: none; }
}
