/* =============================================================================
   Nalbandian & Bilal — site styles
   Design tokens mirror the original Webflow build; motion layer is additive and
   fully disabled for prefers-reduced-motion.
   ========================================================================== */

/* ---------------------------------------------------------------- fonts */
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gambetta"; src: url("../fonts/gambetta-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Gambetta"; src: url("../fonts/gambetta-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Gambetta"; src: url("../fonts/gambetta-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gambetta"; src: url("../fonts/gambetta-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------------------------------------------------------------- tokens */
:root {
  --black: #0e0e0e;
  --gold: #dac5a6;
  --gold-soft: #e1ccab;
  --gold-40: rgba(218, 197, 166, .4);
  --border: #49443e;
  --border-hover: #6e6557;
  --elevation: #252424;
  --elevation-hover: #292827;
  --elevation-two: #393837;
  --panel: #181716;
  --panel-line: #74695a;
  --bottom: #2b2824;

  --sans: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Gambetta", Georgia, "Times New Roman", serif;

  --fs-body: 18px;
  --fs-lead: 20px;
  --fs-sub: clamp(19px, 1.6vw, 24px);
  --fs-h3: clamp(26px, 2.4vw, 38px);
  --fs-h2: clamp(30px, 2.8vw, 38px);
  --fs-h1: clamp(40px, 5vw, 64px);
  --fs-mega: clamp(42px, 6.4vw, 80px);
  --fs-quote: clamp(36px, 5.6vw, 80px);

  --container: 1400px;
  --gutter: 24px;
  --header-h: 88px;
  --radius: 8px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --t-reveal: 1.1s;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--gold);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 700; }
::selection { background: var(--gold); color: var(--black); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--gold); color: var(--black); padding: 10px 16px; border-radius: 40px; transition: top .3s var(--ease-out); }
.skip:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(40px, 5vw, 64px); position: relative; }
.center { text-align: center; }
.narrow-650 { max-width: 650px; margin-inline: auto; }
.narrow-750 { max-width: 750px; margin-inline: auto; }
.narrow-780 { max-width: 780px; margin-inline: auto; }
.mt-16 { margin-top: 16px; } .mt-40 { margin-top: 40px; } .mt-48 { margin-top: 48px; } .mt-80 { margin-top: clamp(48px, 6vw, 80px); }
.mb-40 { margin-bottom: 40px; } .mb-80 { margin-bottom: clamp(48px, 6vw, 80px); }
.my-64 { margin-block: clamp(40px, 5vw, 64px); } .my-80 { margin-block: clamp(48px, 6vw, 80px); }
.row-center { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------------------------------------------------------------- type */
.mega { font-size: var(--fs-mega); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }
.h1 { font-size: var(--fs-h1); font-weight: 400; line-height: 1.1; letter-spacing: -.005em; }
.h2 { font-size: var(--fs-h2); font-weight: 400; line-height: 1.3; }
.h2s { font-size: var(--fs-h2); font-weight: 400; line-height: 1.25; }
.h3 { font-size: var(--fs-h3); font-weight: 400; line-height: 1.25; }
.h3s { font-size: 24px; line-height: 1.4; }
.subtitle { font-size: var(--fs-sub); line-height: 1.4; }
.lead { font-size: var(--fs-lead); line-height: 1.4; }
.lead-sm { font-size: 19px; line-height: 1.45; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 300; }
.lower { text-transform: lowercase; }
em { font-style: italic; }

.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); padding-bottom: 1px; }
.ulink:hover, a:hover > .ulink { background-size: 100% 1px; }

/* ---------------------------------------------------------------- dividers */
.divider { height: 1px; width: 100%; background: var(--gold); transform-origin: 0 50%; }
.divider--light { background: var(--gold-40); }

/* ---------------------------------------------------------------- buttons */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: var(--h); padding: 0 28px; border: 1px solid var(--gold); border-radius: 60px;
  background: var(--black); color: var(--gold); font-size: 18px; line-height: 1; white-space: nowrap;
  overflow: hidden; isolation: isolate; transform: translateZ(0);
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--gold);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0; transform: translateY(102%);
  transition: transform .6s var(--ease-out), border-radius .6s var(--ease-out);
}
.btn__label { position: relative; display: block; overflow: hidden; padding-block: 2px; }
.btn__label::after { content: attr(data-text); position: absolute; left: 0; top: 100%; width: 100%; padding-block: 2px; }
.btn__label, .btn__label::after { transition: transform .6s var(--ease-out); }
@media (hover: hover) {
  .btn:hover { color: var(--black); }
  .btn:hover::before { transform: translateY(0); border-radius: 0; }
  .btn:hover .btn__label { transform: translateY(-100%); }
}
.btn--sm { --h: 44px; padding: 0 22px; }
.btn--lg { --h: 62px; padding: 0 40px; font-size: 22px; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold::before { background: var(--black); }
@media (hover: hover) { .btn--gold:hover { color: var(--gold); } }

.readmore { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin-top: 16px; }
.readmore svg { width: 20px; height: 20px; opacity: 0; transform: translateX(-10px); transition: transform .5s var(--ease-out), opacity .4s; }
a:hover .readmore svg, .readmore:hover svg { opacity: 1; transform: none; }

.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--elevation-two); border: 1px solid var(--gold-40); transition: background .3s, transform .4s var(--ease-out); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: #45433f; transform: translateY(-2px); }

/* ---------------------------------------------------------------- tiles */
.tile, .tile-static { position: relative; background: var(--elevation); border: 1px solid var(--border); border-radius: var(--radius); }
.tile--link { display: flex; flex-direction: column; transition: border-color .4s, background-color .4s, transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.tile--link::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(218, 197, 166, .09), transparent 60%);
}
@media (hover: hover) {
  .tile--link:hover { background: var(--elevation-hover); border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .9); }
  .tile--link:hover::after { opacity: 1; }
}

/* ---------------------------------------------------------------- header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(14, 14, 14, 0); border-bottom: 1px solid transparent;
  transition: transform .6s var(--ease-out), background-color .4s, border-color .4s, backdrop-filter .4s;
}
.header.is-scrolled { background: rgba(17, 17, 17, .86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: rgba(218, 197, 166, .1); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; max-width: 1512px; margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: .32em; font-size: clamp(24px, 2.2vw, 34px); line-height: 1; letter-spacing: -.005em; white-space: nowrap; flex: none; }
.logo__mark { width: 1em; height: 1em; fill: currentColor; flex: none; transform: translateY(-.04em); }
.logo__text { font-weight: 400; }
.nav { display: flex; align-items: center; margin-left: auto; }
.nav__link { position: relative; padding: 8px 16px; font-size: 18px; }
.nav__link span { position: relative; display: block; overflow: hidden; }
.nav__link span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.nav__link span, .nav__link span::after { transition: transform .5s var(--ease-out); }
.nav__link:hover span { transform: translateY(-100%); }
.nav__link::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav__link[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.header__right { display: flex; align-items: center; gap: 16px; }
.header__divider { width: 1px; height: 16px; background: var(--gold); }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; right: 8px; height: 1.5px; background: var(--gold); border-radius: 2px; transition: transform .5s var(--ease-out), width .5s var(--ease-out), top .5s var(--ease-out); }
.burger span:first-child { top: 17px; width: 28px; }
.burger span:last-child { top: 26px; width: 18px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; width: 26px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; width: 26px; transform: rotate(-45deg); }

/* mobile nav */
.mnav {
  position: fixed; inset: 0; z-index: 90; background: var(--panel); display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); overflow-y: auto;
}
.mnav[hidden] { display: flex; visibility: hidden; }
.mnav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.mnav__links { display: flex; flex-direction: column; }
.mnav__link { display: flex; align-items: baseline; gap: 14px; font-size: clamp(34px, 9vw, 52px); line-height: 1.2; padding: 6px 0; border-bottom: 1px solid rgba(218, 197, 166, .12);
  opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.mnav__num { font-size: 13px; opacity: .55; font-variant-numeric: tabular-nums; }
.mnav__link[aria-current] { font-family: var(--serif); font-style: italic; font-weight: 300; }
.mnav.is-open .mnav__link { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .06s); }
.mnav__foot { display: grid; gap: 18px; margin-top: 40px; opacity: 0; transition: opacity .6s .6s; }
.mnav.is-open .mnav__foot { opacity: 1; }
.mnav__foot .btn { --h: 56px; }
.mnav__foot p { font-size: 16px; opacity: .7; }
body.menu-open { overflow: hidden; }

/* scroll progress */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding-top: clamp(150px, 18vw, 200px); padding-bottom: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; max-width: 952px; }
.hero__title { font-size: var(--fs-mega); line-height: 1.08; }
.hero__title .serif { font-weight: 300; }
.hero__sub { max-width: 650px; }
.hero__sub em { display: block; }
.hero__cta { margin-top: 16px; }
.hero__glow {
  position: absolute; left: 50%; top: 42%; width: min(1100px, 120vw); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(218, 197, 166, .07), transparent 70%); opacity: 0; animation: glow-in 3s var(--ease-out) forwards; animation-delay: var(--hero-delay, .2s);
}
@keyframes glow-in { to { opacity: 1; } }

/* page heroes */
.page-hero { padding-top: clamp(140px, 15vw, 200px); }
.page-hero .subtitle { margin-top: 24px; }
.about-body { margin-top: 32px; font-size: 16px; line-height: 1.5; }
.split-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.scroll-btn { width: clamp(64px, 7vw, 100px); aspect-ratio: 1; border-radius: 50%; background: var(--gold); color: var(--black); display: grid; place-items: center; flex: none; transition: transform .6s var(--ease-out); }
.scroll-btn svg { width: 44%; height: 44%; animation: bob 2.4s var(--ease-io) infinite; }
.scroll-btn:hover { transform: scale(1.06); }
@keyframes bob { 0%, 100% { transform: translateY(-8%); } 50% { transform: translateY(10%); } }

/* ---------------------------------------------------------------- practice areas */
.pa-halves { display: grid; grid-template-columns: .5fr 1fr; gap: 16px 48px; align-items: start; }
.pa-halves__left { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; position: sticky; top: calc(var(--header-h) + 32px); }
.pa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pa-tile { padding: 32px; gap: 24px; }
.pa-tile .readmore { margin-top: auto; padding-top: 16px; }
.pa-tile__top { display: flex; align-items: center; gap: 10px; }
.pa-icon { width: 32px; height: 32px; flex: none; transition: transform .7s var(--ease-out); }
.pa-icon--lg { width: 44px; height: 44px; }
.pa-icon--xl { width: 80px; height: 80px; margin-inline: auto; }
.tile--link:hover .pa-icon { transform: rotate(-6deg) scale(1.08); }
.pa-big-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pa-big { padding: 40px; gap: 24px; align-items: flex-start; }
.pa-big .pa-tile__top { gap: 14px; }
.pa-big .readmore { margin-top: auto; padding-top: 8px; }
.checks { display: flex; flex-direction: column; gap: 16px; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks svg { width: 22px; height: 22px; flex: none; }
.pa-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* service single */
.svc-hero { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.svc-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(48px, 8vw, 140px); align-items: start; }
.svc-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.svc-card { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.svc-card__block { display: flex; flex-direction: column; gap: 20px; }
.lawyers { display: flex; flex-direction: column; gap: 12px; }
.lawyer { display: inline-flex; align-items: center; gap: 10px; }
.lawyer img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 0; }

/* ---------------------------------------------------------------- rich text */
.rich { font-size: 18px; line-height: 1.6; }
.rich > * + * { margin-top: 20px; }
.rich h2 { font-size: var(--fs-h2); line-height: 1.25; font-weight: 400; margin-top: 8px; }
.rich h3 { font-size: clamp(24px, 2vw, 30px); line-height: 1.3; font-weight: 400; margin-top: 44px; }
.rich h4 { font-size: 21px; font-weight: 500; margin-top: 32px; }
.rich h2 + *, .rich h3 + *, .rich h4 + * { margin-top: 14px; }
.rich ul, .rich ol { display: grid; gap: 10px; }
.rich ul li { position: relative; padding-left: 26px; }
.rich ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 12px; height: 1px; background: var(--gold); }
.rich ol { counter-reset: n; }
.rich ol li { counter-increment: n; position: relative; padding-left: 32px; }
.rich ol li::before { content: counter(n) "."; position: absolute; left: 0; font-family: var(--serif); font-style: italic; }
.rich blockquote { border-left: 1px solid var(--gold); padding: 16px 24px; font-size: 24px; line-height: 1.4; font-family: var(--serif); font-style: italic; font-weight: 300; margin-block: 32px; }
.rich a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--gold-40); transition: text-decoration-color .3s; }
.rich a:hover { text-decoration-color: var(--gold); }
.rich--post { max-width: 780px; margin-inline: auto; }
.rich--post > p:first-child { font-size: 21px; }
.rich--bio h3 { font-size: 26px; margin-top: 36px; }
.rich--legal { margin-top: 48px; font-size: 16px; }
.rich--legal h2 { margin-top: 56px; }
.rich--legal h3 { margin-top: 36px; }
.legal__date { margin-top: 20px; opacity: .8; }

/* ---------------------------------------------------------------- testimonials */
.tst { position: relative; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; padding-block: clamp(64px, 8vw, 120px); }
.tst__track { display: grid; grid-column: 2; justify-items: center; touch-action: pan-y; }
.tst__slide { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; width: 80%; max-width: 760px; visibility: hidden; }
.tst__slide.is-active { visibility: visible; }
.tst__stars { display: flex; gap: 4px; }
.tst__stars svg { width: 24px; height: 24px; }
.tst__quote { font-size: clamp(21px, 2.2vw, 32px); line-height: 1.4; }
.tst__slide figcaption { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tst__name { font-size: 20px; }
.tst__loc { font-size: 16px; margin-top: 30px; }
.tst__arrow { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; transition: background-color .3s, transform .5s var(--ease-out); }
.tst__arrow svg { width: 52px; height: 52px; }
.tst__arrow:hover { background: rgba(37, 36, 36, .5); }
.tst__arrow--prev:hover { transform: translateX(-4px); }
.tst__arrow--next:hover { transform: translateX(4px); }
.tst__dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.tst__dot { width: 28px; height: 18px; position: relative; }
.tst__dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--gold-40); }
.tst__dot::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.tst__dot.is-active::after { transform: scaleX(1); transition: transform var(--autoplay, 7s) linear; }
.tst.is-paused .tst__dot.is-active::after { transition: none; }
.tst__slide > * { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .5s var(--ease-out); }
.tst__slide.is-active > * { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.tst__slide.is-active > :nth-child(2) { transition-delay: .08s; }
.tst__slide.is-active > :nth-child(3) { transition-delay: .16s; }

/* ---------------------------------------------------------------- team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.team-card { padding: 24px; gap: 24px; }
.team-card__img { border-radius: 6px; overflow: hidden; aspect-ratio: 1; }
.team-card__img img, .big-team__img img, .member__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform 1.4s var(--ease-out); }
.team-card:hover .team-card__img img { transform: scale(1.05); }
.team-card__meta { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }

.big-team-list { display: flex; flex-direction: column; gap: 40px; max-width: 1100px; margin-inline: auto; }
.big-team { display: flex; align-items: center; gap: 44px; padding: 40px; }
.big-team__left { display: flex; flex-direction: column; align-items: center; gap: 24px; flex: none; }
.big-team__img { display: block; width: 300px; height: 300px; border-radius: 50%; overflow: hidden; }
.big-team__img:hover img { transform: scale(1.05); }
.big-team__right { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.big-team__right .lead { margin-top: 6px; font-size: 24px; }
.big-team .readmore { margin-top: 0; }
.big-team .readmore svg { opacity: 1; transform: none; }
.big-team .readmore:hover svg { transform: translateX(4px); }

.member { display: flex; align-items: center; gap: clamp(40px, 6vw, 80px); max-width: 1196px; margin-inline: auto; }
.member__img { width: min(480px, 45%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; flex: none; align-self: flex-start; position: sticky; top: calc(var(--header-h) + 32px); }
.member__right { display: flex; flex-direction: column; gap: 32px; flex: 1; min-width: 0; }
.member__name { display: flex; flex-direction: column; gap: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: var(--radius); background: var(--elevation-two); border: 1px solid rgba(218, 197, 166, .3); transition: background-color .3s, border-color .3s, transform .5s var(--ease-out); }
.pill:hover { background: #424140; border-color: #796e5d; transform: translateY(-2px); }
.pill__icon { width: 24px; height: 24px; }
.member__email { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; }
.member__email svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- about split */
.about-split { overflow: hidden; padding-block: clamp(56px, 7vw, 100px); }
.about-split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-split__media { position: relative; max-width: 480px; margin-left: 20px; }
.about-split__img { position: relative; z-index: 1; overflow: hidden; aspect-ratio: 1500 / 998; }
.about-split__img img { width: 100%; height: 100%; object-fit: cover; }
.about-split__block { position: absolute; z-index: 0; left: -20px; bottom: -20px; width: 40%; height: 90%; background: var(--gold); transform-origin: 0 100%; }
.about-split__content { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; max-width: 508px; justify-self: center; }

/* ---------------------------------------------------------------- marquee */
.marquee { overflow: hidden; padding-block: 16px; user-select: none; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: 80px; padding-right: 80px; flex: none; }
.marquee__item { text-transform: uppercase; font-size: clamp(54px, 7vw, 90px); font-weight: 300; line-height: 1.4; white-space: nowrap; }
.marquee__item--serif { font-family: var(--serif); font-weight: 300; }
html:not(.js) .marquee__track { animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- process */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.process__sticky { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 435px; margin-left: 40px; padding-bottom: 40px; position: sticky; top: calc(var(--header-h) + 40px); }
.process__steps { display: flex; flex-direction: column; gap: 16px; padding-top: 22px; }
.step { display: flex; gap: 40px; align-items: stretch; }
.step__rail { width: 48px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.step__num { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: var(--elevation); border: 1px solid var(--border); transition: background-color .6s var(--ease-out), color .6s var(--ease-out), border-color .6s, transform .6s var(--ease-out); }
.step.is-active .step__num { background: var(--gold); color: var(--black); border-color: var(--gold); transform: scale(1.06); }
.step__line { flex: 1; width: 1px; background: rgba(218, 197, 166, .18); position: relative; }
.step__line span { position: absolute; inset: 0; background: var(--gold); transform-origin: 50% 0; transform: scaleY(var(--p, 1)); }
.step__tile { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 32px; margin-top: -22px; margin-bottom: 32px; transition: border-color .6s, background-color .6s; }
.step.is-active .step__tile { border-color: var(--border-hover); }

/* ---------------------------------------------------------------- quote */
.quote-wrap { display: flex; justify-content: flex-end; }
.quote { max-width: 1123px; width: 100%; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; padding-block: clamp(24px, 4vw, 48px); }
.quote__icon svg { width: 53px; height: 38px; }
.quote__text { font-size: var(--fs-quote); line-height: 1.4; }
.quote__text .serif { font-weight: 300; }
.quote__by { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; font-size: 16px; }
.quote__by .lead { margin-bottom: 30px; }

/* ---------------------------------------------------------------- blog */
.head-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { padding: 24px; gap: 24px; }
.post-card__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { display: flex; flex-direction: column; gap: 16px; }
.post-card .h3 { font-size: clamp(24px, 2.1vw, 34px); }
.post-card .readmore { margin-top: auto; }
.post-hero { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 1120px; margin-inline: auto; }
.post-hero time { font-size: 16px; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.post-hero__img { margin-block: clamp(48px, 6vw, 80px) clamp(56px, 7vw, 100px); overflow: hidden; border-radius: var(--radius); max-height: 600px; aspect-ratio: 16 / 7; }
.post-hero__img > div, .post-hero__img picture { height: 100%; }
.post-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.post-share { max-width: 780px; margin: 64px auto 0; padding: 28px 32px; border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 20px; }

/* ---------------------------------------------------------------- contact */
.contact { background: var(--panel); border-top: 1px solid var(--panel-line); padding-block: clamp(80px, 9vw, 120px) 80px; margin-top: clamp(40px, 5vw, 64px); }
.contact--page { border-top: 0; margin-top: 0; padding-top: clamp(140px, 14vw, 180px); }
.contact__head { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; max-width: 925px; margin-inline: auto; }
.contact__head .subtitle { max-width: 650px; }
.contact__form { max-width: 500px; margin: 72px auto 0; padding: 32px; background: #232222; border: 2px solid #343332; border-radius: 14px; }
.contact__grids { display: flex; flex-direction: column; gap: 24px; margin-top: clamp(64px, 8vw, 112px); }
.ctile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ctile { align-items: center; text-align: center; gap: 12px; padding: 39px; }
.ctile__icon { width: 64px; height: 64px; margin-bottom: 12px; }
.ctile__icon svg { width: 100%; height: 100%; }
.ctile__h { font-size: 24px; }
.stile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stile { flex-direction: row; justify-content: space-between; align-items: center; height: 68px; padding: 0 20px; }
.stile__l { display: flex; align-items: center; gap: 12px; }
.stile__l svg { width: 30px; height: 30px; }
.stile__arrow svg { width: 24px; height: 24px; transition: transform .5s var(--ease-out); }
.stile:hover .stile__arrow svg { transform: translateX(5px); }

/* form */
.cform { position: relative; }
.cform__fields { display: flex; flex-direction: column; gap: 22px; }
.cform__fields[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; letter-spacing: .01em; }
.field input, .field textarea, .country {
  width: 100%; min-height: 46px; background: #3a3938; border: 1px solid transparent; border-radius: 4px; color: var(--gold);
  font: 15px/1.4 var(--sans); padding: 12px 18px; outline: none; transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field textarea { resize: none; overflow: hidden; min-height: 46px; display: block; }
.field input::placeholder, .field textarea::placeholder { color: rgba(218, 197, 166, .78); }
.field input:hover, .field textarea:hover { background: #403f3d; }
.field input:focus, .field textarea:focus { border-color: rgba(218, 197, 166, .6); box-shadow: 0 0 0 3px rgba(218, 197, 166, .08); }
.field.has-error input, .field.has-error textarea { border-color: #d88a7a; }
.field__err { font-size: 13px; color: #e7a596; }
.field__err:empty { display: none; }
.field__icon { position: relative; }
.field__icon svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); pointer-events: none; }
.field__icon input { padding-left: 40px; }
.field__phone { display: flex; position: relative; background: #3a3938; border-radius: 4px; }
.field__phone input { background: transparent; padding-left: 8px; }
.field__phone:focus-within { box-shadow: 0 0 0 1px rgba(218, 197, 166, .6), 0 0 0 4px rgba(218, 197, 166, .08); }
.field__phone input:focus { border-color: transparent; box-shadow: none; }
.field.has-error .field__phone { box-shadow: 0 0 0 1px #d88a7a; }
.country { position: relative; width: auto; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 6px 0 12px; background: transparent; }
.country__flag { width: 22px; height: auto; border-radius: 2px; }
.country__caret { width: 9px; height: 6px; opacity: .7; }
.country select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; font-size: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__submit {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%;
  min-height: 82px; margin-top: 10px; border-radius: 40px; background: var(--gold-soft); color: #141414; isolation: isolate; transition: transform .5s var(--ease-out), box-shadow .5s;
}
.cform__submit::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-100%); }
.cform__submit:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(225, 204, 171, .55); }
.cform__submit:hover::before { transform: translateX(100%); transition: transform 1s var(--ease-out); }
.cform__submit-main { font-size: 20px; font-weight: 500; }
.cform__submit-sub { font-size: 14px; }
.cform__spinner { position: absolute; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(20, 20, 20, .25); border-top-color: #141414; opacity: 0; animation: spin .8s linear infinite; }
.cform.is-sending .cform__submit > span:not(.cform__spinner) { opacity: 0; }
.cform.is-sending .cform__spinner { opacity: 1; }
.cform.is-sending .cform__submit { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.cform__status { font-size: 14px; text-align: center; color: #e7a596; }
.cform__status:empty { display: none; }
.cform__status a { text-decoration: underline; }
.cform__note { font-size: 12.5px; line-height: 1.5; opacity: .6; text-align: center; }
.cform__success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px 8px; outline: none; }
.cform__success[hidden] { display: none; }
.cform__success a { text-decoration: underline; }
.cform__check { width: 72px; height: 72px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cform__check circle, .cform__check path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.cform.is-done .cform__check circle { animation: draw .9s var(--ease-out) forwards; }
.cform.is-done .cform__check path { animation: draw .6s .55s var(--ease-out) forwards; }
.cform.is-done .cform__success > :not(svg) { animation: fade-up .9s .3s var(--ease-out) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--panel); border-top: 1px solid var(--panel-line); padding-top: 80px; }
main:has(> .contact:last-child) + .footer { border-top-color: rgba(116, 105, 90, .5); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 64px; }
.footer__brand { display: flex; flex-direction: column; gap: 32px; max-width: 320px; }
.footer__brand p { font-size: 20px; line-height: 1.4; }
.logo--footer { font-size: 28px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, auto); gap: 24px clamp(40px, 6vw, 100px); }
.footer__h { font-size: 16px; font-weight: 700; margin-bottom: 24px; }
.footer__col ul { display: flex; flex-direction: column; gap: 16px; font-size: 16px; }
.footer__bottom { background: var(--bottom); margin-top: 100px; padding-block: 32px calc(32px + env(safe-area-inset-bottom)); text-align: center; font-size: 14px; line-height: 1.5; }
.footer__bottom a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------- 404 */
.notfound { min-height: 80vh; display: grid; align-items: center; }
.notfound__code { font-size: clamp(120px, 22vw, 260px); line-height: 1; }
.notfound .h1 { margin-top: 12px; }

/* =============================================================================
   Motion layer (only when JS is running and the user allows motion)
   ========================================================================== */

/* intro screen — first visit per session; pure CSS so it can never get stuck */
.intro-screen, .curtain { display: none; }
html.intro .intro-screen {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--black);
  animation: intro-out 1s var(--ease-io) 1.55s forwards; pointer-events: none;
}
.intro-screen__inner { display: flex; align-items: center; gap: .4em; font-size: clamp(26px, 4vw, 44px); }
.intro-screen svg { width: 1em; height: 1em; fill: var(--gold); clip-path: inset(100% 0 0 0); animation: intro-mark .9s var(--ease-out) .15s forwards; }
.intro-screen__name { overflow: hidden; display: block; }
.intro-screen__name span { display: block; transform: translateY(110%); animation: intro-name 1s var(--ease-out) .45s forwards; }
html.intro .intro-screen__inner { animation: intro-inner .9s var(--ease-io) 1.5s forwards; }
@keyframes intro-mark { to { clip-path: inset(0 0 0 0); } }
@keyframes intro-name { to { transform: none; } }
@keyframes intro-inner { to { opacity: 0; transform: translateY(-30px); } }
@keyframes intro-out { to { transform: translateY(-100%); visibility: hidden; } }
html.intro { --hero-delay: 1.75s; }
html.arrive { --hero-delay: .5s; }

/* page transition curtain */
.js .curtain { display: block; position: fixed; inset: 0; z-index: 150; background: var(--panel); pointer-events: none; transform: translateY(100%); }
.js .curtain::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--panel-line); }
html.arrive .curtain { transform: translateY(0); animation: curtain-up .9s var(--ease-io) .05s forwards; }
html.leaving .curtain { animation: curtain-in .55s var(--ease-io) forwards; }
@keyframes curtain-up { to { transform: translateY(-100%); } }
@keyframes curtain-in { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* hero load-in */
.js .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .w__i { display: inline-block; }
.js [data-hero] .w__i { transform: translateY(105%); animation: word-up 1.2s var(--ease-out) forwards; animation-delay: calc(var(--hero-delay, .25s) + var(--i) * .06s); }
.js [data-hero] .serif { display: inline-block; }
.js [data-hero-fade] { opacity: 0; transform: translateY(20px); animation: fade-in-up 1.2s var(--ease-out) forwards; animation-delay: calc(var(--hero-delay, .25s) + .55s + var(--i) * .12s); }
@keyframes word-up { to { transform: none; } }
@keyframes fade-in-up { to { opacity: 1; transform: none; } }

/* scroll reveals */
.js [data-reveal]:not([data-reveal="clip"]) { opacity: 0; transform: translateY(32px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io); }
.js [data-reveal="clip"] img { transform: scale(1.18); transition: transform 1.8s var(--ease-out); }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="clip"].is-in img { transform: scale(1); }
.js .about-split__media[data-reveal="clip"] { clip-path: none; }
.js .about-split__media .about-split__img { clip-path: inset(0 0 0 100%); transition: clip-path 1.4s var(--ease-io); }
.js .about-split__media .about-split__block { transform: scale(0, .6); transition: transform 1.2s var(--ease-io) .35s; }
.js .about-split__media.is-in .about-split__img { clip-path: inset(0 0 0 0); }
.js .about-split__media.is-in .about-split__block { transform: none; }

.js [data-stagger] > * { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), border-color .4s, background-color .4s, box-shadow .6s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms), calc(var(--d, 0) * 110ms), 0s, 0s, 0s; }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }
@media (hover: hover) { .js [data-stagger].is-in > .tile--link:hover { transform: translateY(-4px); transition-delay: 0s; } }

.js [data-split] .w__i { transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
.js [data-split].is-in .w__i { transform: none; }

.js [data-line] { transform: scaleX(0); transition: transform 1.6s var(--ease-io); }
.js [data-line].is-in { transform: scaleX(1); }

.js [data-clip] { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-io); transition-delay: calc(var(--d, 0) * 110ms + .1s); }
.js [data-clip] img { transform: scale(1.15); }
.js .is-in [data-clip], .js [data-clip].is-in { clip-path: inset(0 0 0 0); }
.js .is-in [data-clip] img, .js [data-clip].is-in img { transform: scale(1); }

.js [data-draw] path[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out) .3s; }
.js .is-in [data-draw] path[pathLength] { stroke-dashoffset: 0; }

.js [data-scrub-words] .w__i { opacity: .16; transition: opacity .35s linear; }
.js [data-scrub-words] .w__i.on { opacity: 1; }

[data-parallax] { will-change: transform; }
.js [data-parallax] img { scale: 1.12; }

/* safety net: if the script fails, show everything */
html.no-anim [data-reveal], html.no-anim [data-stagger] > *, html.no-anim .w__i, html.no-anim [data-line], html.no-anim [data-clip],
html.no-anim [data-reveal="clip"], html.no-anim .about-split__img, html.no-anim .about-split__block, html.no-anim [data-hero-fade] {
  opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important;
}
html.no-anim [data-scrub-words] .w__i { opacity: 1 !important; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .nav__link { padding-inline: 11px; font-size: 17px; }
  .nav__link::after { left: 11px; right: 11px; }
  .footer__top { flex-direction: column; }
}
@media (max-width: 991px) {
  :root { --header-h: 76px; }
  .nav, .header__divider { display: none; }
  .burger { display: block; }
  .header__phone { --h: 40px; padding: 0 16px; font-size: 16px; }
  .pa-halves { grid-template-columns: 1fr; gap: 40px; }
  .pa-halves__left { position: static; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .pa-more { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; gap: 48px; }
  .process__sticky { position: static; margin-left: 0; padding-bottom: 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
  .ctile-grid { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .ctile { padding: 28px 16px; }
  .ctile .lead { font-size: 17px; }
  .stile-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .big-team { flex-direction: column; align-items: flex-start; }
  .big-team__left { align-self: center; }
  .member { flex-direction: column; align-items: flex-start; }
  .member__img { width: min(360px, 80%); position: static; align-self: center; }
  .about-split__grid { gap: 56px; }
  .footer__cols { grid-template-columns: repeat(2, auto); justify-content: start; }
}
@media (max-width: 767px) {
  .pa-grid, .pa-big-grid, .pa-more, .post-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .about-split__grid { grid-template-columns: 1fr; }
  .about-split__media { max-width: 100%; margin-right: 0; }
  .about-split__content { justify-self: start; }
  .ctile-grid { grid-template-columns: 1fr; }
  .tst { grid-template-columns: 1fr; }
  .tst__track { grid-column: 1; }
  .tst__slide { width: 100%; }
  .tst__arrow { display: none; }
  .tst__dots { margin-top: 32px; }
  .tst__dot { width: 36px; height: 28px; }
  .tst__loc { margin-top: 14px; }
  .step { gap: 20px; }
  .step__tile { padding: 24px; }
  .pa-big, .svc-card, .big-team { padding: 28px 24px; }
  .big-team__img { width: 220px; height: 220px; }
  .split-head { align-items: flex-end; }
  .head-cta { flex-direction: column; align-items: flex-start; }
  .post-hero__img { aspect-ratio: 4 / 3; }
  .contact__form { padding: 24px 20px; margin-top: 48px; }
  .footer__brand p { font-size: 18px; }
  .footer__bottom { margin-top: 64px; }
}
@media (max-width: 479px) {
  :root { --gutter: 16px; --fs-body: 17px; }
  .logo { font-size: 21px; }
  .header__phone { display: none; }
  .hero__cta .btn--lg { --h: 56px; padding: 0 30px; font-size: 19px; }
  .stile-grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .marquee__group { gap: 44px; padding-right: 44px; }
  .post-share { padding: 22px 20px; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html.intro .intro-screen, .js .curtain { display: none !important; }
  .js [data-reveal], .js [data-stagger] > *, .js .w__i, .js [data-line], .js [data-clip], .js [data-reveal="clip"], .js .about-split__img, .js .about-split__block, .js [data-hero-fade] {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
  .js [data-reveal="clip"] img, .js [data-clip] img, .js [data-parallax] img { transform: none !important; scale: 1 !important; }
  .js [data-scrub-words] .w__i { opacity: 1 !important; }
  .js [data-draw] path[pathLength] { stroke-dashoffset: 0 !important; }
}

@media print {
  .header, .mnav, .progress, .curtain, .intro-screen, .contact__form, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
}
