
:root {
    --paper:  #F4EEE4;
    --ink:    #241F1A;
    --navy:   #2D1411;   /* brand espresso */
    --black:  #000000;   /* pure black — loader curtain + footer, per client */
    --gold:   #B08D4C;
    --gold-lt:#D6B266;
    --spec-bg:#EDE8E2;   /* secondary-page canvas */
    --rule:   rgba(150,120,72,.34);   /* fine warm ledger hairline (near-neutral gold tint, not ornament) */
    --hdr-h:  58px;
    --ease-reveal: cubic-bezier(.22, 1, .36, 1);
    --serif: 'Google Sans', 'Figtree', 'Noto Sans Georgian', 'Inter', Helvetica, Arial, sans-serif;
    --sans:  'Google Sans', 'Figtree', 'Noto Sans Georgian', 'Inter', Helvetica, Arial, sans-serif;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { overflow-x: hidden; scroll-behavior: smooth; }
  body { font-family: var(--sans); background: var(--spec-bg); color: var(--navy); -webkit-font-smoothing: antialiased; }

  /* ---------------- Header (centred logo, light — same as about-project) ---------------- */
  header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 40;
    display: flex; align-items: center;
    padding: clamp(16px, 2.6vh, 26px) clamp(20px, 4vw, 56px);
    color: var(--navy); --hline: rgba(45,20,17,.28);
    transition: padding .5s var(--ease-reveal), background-color .5s ease,
      -webkit-backdrop-filter .5s ease, backdrop-filter .5s ease, box-shadow .5s ease;
  }
  .hdr-left  { display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); }
  .logo      { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; text-decoration: none; }
  .hdr-right { display: flex; align-items: center; gap: clamp(12px, 1.3vw, 20px); margin-left: auto; }
  .logo-img { height: 52px; width: auto; display: block; transition: height .5s var(--ease-reveal); }
  .hdr-left a { position: relative; color: currentColor; text-decoration: none; font-size: 16px; font-weight: 400; opacity: .9; transition: opacity .3s ease; }
  .hdr-left a.is-current { opacity: 1; }
  .hdr-left a::after { content: ''; display: block; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-reveal); margin-top: 2px; }
  .hdr-left a:hover::after, .hdr-left a:focus-visible::after, .hdr-left a.is-current::after { transform: scaleX(1); }
  .hdr-left a:hover, .hdr-left a:focus-visible { opacity: 1; }
  .lang { font-size: 13.5px; white-space: nowrap; color: currentColor; }
  .lang a { color: currentColor; text-decoration: none; opacity: .5; }
  .lang a.on { opacity: 1; }
  .lang i { opacity: .4; margin: 0 5px; font-style: normal; }
  .btn-find, .request { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 400;
    border-radius: 999px; padding: 8px 20px; cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background .35s var(--ease-reveal), color .35s var(--ease-reveal), border-color .35s ease; }
  .btn-find svg, .request svg { width: 13px; height: 13px; transition: transform .35s var(--ease-reveal); }
  .btn-find { color: var(--paper); background: var(--navy); border: 1px solid var(--navy); }
  .btn-find:hover, .btn-find:focus-visible { background: var(--gold); color: var(--navy); border-color: var(--gold); }
  .btn-find:hover svg, .btn-find:focus-visible svg { transform: translate(2px,-2px); }
  .request { color: currentColor; background: transparent; border: 1px solid var(--hline); }
  .request:hover, .request:focus-visible { background: var(--navy); color: var(--paper); border-color: var(--navy); }
  .request:hover svg, .request:focus-visible svg { transform: translate(2px,-2px); }
  header.is-stuck { padding: 9px clamp(20px, 4vw, 56px);
    background: rgba(237,232,226,.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(45,20,17,.08); }
  header.is-stuck .logo-img { height: 38px; }
  @media (max-width: 940px) { .hdr-left { display: none; } .logo { position: static; transform: none; } }

  /* ---------------- reveal ---------------- */
  [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-reveal), transform .9s var(--ease-reveal); }
  [data-reveal].in { opacity: 1; transform: none; }

  /* ============================================================
     THE INDEX — the journal read as a monograph's table of contents
     ============================================================ */
  .mast { max-width: 1400px; margin: 0 auto; padding: clamp(122px, 19vh, 200px) clamp(20px, 3vw, 56px) 0; }
  .mast-label { font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: .01em; color: rgba(36,31,26,.6); }
  .mast-band { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-top: clamp(12px, 2vh, 20px); }
  .mast-title { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.6vw, 88px); line-height: .98; letter-spacing: -.008em; color: var(--navy); }
  .mast-prov { font-family: var(--sans); text-align: right; padding-bottom: 8px; }
  .mast-prov .p1 { font-size: 12.5px; color: rgba(36,31,26,.55); }
  .mast-prov .p2 { font-size: 13px; color: rgba(36,31,26,.78); font-variant-numeric: tabular-nums; margin-top: 4px; }
  .mast-rule { max-width: 1400px; margin: clamp(22px, 3.4vh, 40px) auto 0; padding: 0 clamp(20px, 3vw, 56px); }
  .mast-rule i { display: block; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-reveal); }
  body.ready .mast-rule i { transform: scaleX(1); }

  /* filter spine */
  .filter { position: sticky; top: calc(var(--hdr-h) - 1px); z-index: 20; background: var(--spec-bg); }
  .filter-inner { max-width: 1400px; margin: 0 auto; padding: 15px clamp(20px, 3vw, 56px);
    display: flex; gap: clamp(16px, 2.2vw, 34px); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--rule); }
  .filter-inner::-webkit-scrollbar { display: none; }
  .f-tab { position: relative; flex: 0 0 auto; font-family: var(--sans); font-size: 12.5px; letter-spacing: .04em;
    color: rgba(36,31,26,.55); background: none; border: none; padding: 6px 1px; cursor: pointer; white-space: nowrap; transition: color .25s ease; }
  .f-tab .c { font-variant-numeric: tabular-nums; opacity: .55; margin-left: 5px; }
  .f-tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-reveal); }
  .f-tab:hover, .f-tab:focus-visible { color: var(--navy); }
  .f-tab:hover::after, .f-tab:focus-visible::after { background: var(--gold); transform: scaleX(1); }
  .f-tab[aria-selected="true"] { color: var(--navy); }
  .f-tab[aria-selected="true"]::after { background: var(--ink); transform: scaleX(1); }
  .f-tab:focus-visible { outline: none; }

  /* ============================================================
     CARDS — one featured lead, then a two-column grid
     ============================================================ */
  .journal { max-width: 1400px; margin: 0 auto; padding: clamp(30px, 5vh, 58px) clamp(20px, 3vw, 56px) clamp(70px, 11vh, 130px); }
  .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(26px, 3vw, 46px); row-gap: clamp(32px, 3.6vw, 56px); }

  .card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: var(--navy); }
  .card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 5px; background: rgba(45,20,17,.06); }
  .card-media::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--gold); z-index: 2;
    opacity: 0; transition: opacity .45s var(--ease-reveal); }
  .card:hover .card-media::before, .card:focus-visible .card-media::before { opacity: 1; }
  .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.1s var(--ease-reveal); will-change: transform; }
  .card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.045); }

  .card-text { padding-top: clamp(14px, 1.2vw, 20px); display: flex; flex-direction: column; min-width: 0; }
  .card-meta { display: flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 11.5px; font-weight: 500;
    letter-spacing: .07em; text-transform: uppercase; color: rgba(36,31,26,.5); }
  .card-cat { color: var(--gold); }
  .card-meta .dot { flex: 0 0 auto; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
  .card-rt { margin-left: auto; font-variant-numeric: tabular-nums; letter-spacing: .03em; color: rgba(36,31,26,.42); }

  .card-title { display: block; margin-top: clamp(10px, .9vw, 14px);
    font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 1.55vw, 26px); line-height: 1.12; color: var(--navy); text-wrap: balance;
    transition: color .3s var(--ease-reveal); }
  .card:hover .card-title, .card:focus-visible .card-title { color: var(--gold); }
  .card-dek { margin-top: 10px; font-family: var(--sans); font-weight: 300; font-size: 14.5px; line-height: 1.5; color: rgba(36,31,26,.66);
    max-width: 56ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card-more { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; font-family: var(--sans); font-size: 13px; letter-spacing: .02em; color: var(--navy); }
  .card-more .u { position: relative; }
  .card-more .u::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(1); transform-origin: left; }
  .card-more .arw { width: 12px; height: 12px; transition: transform .35s var(--ease-reveal); }
  .card:hover .card-more .arw, .card:focus-visible .card-more .arw { transform: translate(2px,-2px); }
  .card:focus-visible { outline: 2px solid var(--navy); outline-offset: 6px; border-radius: 2px; }
  .card:not(.featured) .card-more { display: none; }   /* grid cards: whole card is the link */

  /* featured lead — full-width, larger type; goes side-by-side on desktop (below) */
  .card.featured { grid-column: 1 / -1; }
  .card.featured .card-media { aspect-ratio: 16 / 10; border-radius: 6px; }
  .card.featured .card-title { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.04; margin-top: 16px; }
  .card.featured .card-dek { -webkit-line-clamp: 3; font-size: 16px; margin-top: 14px; max-width: 48ch; }

  /* pager / end-mark */
  .pager { margin-top: clamp(26px, 4vh, 42px); padding-top: 24px; border-top: 1px solid var(--rule); }
  .pager-btn { display: inline-flex; align-items: center; gap: 11px; font-family: var(--sans); font-size: 14px; color: var(--navy); background: none; border: none; cursor: pointer; padding: 0; }
  .pager-btn .chev { transition: transform .3s ease; }
  .pager-btn:hover .chev { transform: translateY(3px); }
  .pager-btn .rem { font-variant-numeric: tabular-nums; color: rgba(36,31,26,.5); }
  .pager-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
  .pager-end { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 19px; color: rgba(36,31,26,.58); }
  .empty { display: none; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 21px; color: rgba(36,31,26,.6); padding: clamp(28px,5vh,50px) 0; }
  .is-hidden, .is-paged { display: none !important; }

  /* desktop: the featured lead becomes image + text side by side */
  @media (min-width: 861px) {
    .card.featured { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; column-gap: clamp(34px, 4vw, 66px); }
    .card.featured .card-media { grid-column: 1; }
    .card.featured .card-text { grid-column: 2; padding-top: 0; }
  }
  @media (max-width: 860px) {
    .cards { grid-template-columns: 1fr; row-gap: clamp(30px, 6vw, 44px); }
    .card.featured .card-dek { -webkit-line-clamp: 3; }
  }
  @media (max-width: 620px) {
    .hdr-right .lang, .btn-find { display: none; }   /* leave only Request Call — matches about-project */
    .logo-img { height: 46px; } header.is-stuck .logo-img { height: 36px; }
    .mast-prov { text-align: left; padding-bottom: 0; }
    .mast-band { align-items: flex-start; }
    .card-title { font-size: 22px; }
    .card.featured .card-title { font-size: clamp(27px, 8vw, 38px); }
  }
  @media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .mast-rule i { transform: scaleX(1); transition: none; }
    .card-media img { transition: none; }
    * { scroll-behavior: auto; }
  }


/* ===== FOOTER ===== */
.foot { position: relative; background: var(--black); color: var(--paper); overflow: hidden;
  padding: clamp(72px,9vh,104px) 0 calc(clamp(40px,6vh,72px) + env(safe-area-inset-bottom)); }
.foot[data-reveal] { opacity: 1; transform: none; transition: none; }   /* container stays put; inner zones animate */
.foot-inner { max-width: calc(1440px + 2 * clamp(20px, 3vw, 56px)); margin: 0 auto; padding: 0 clamp(20px, 3vw, 56px); }
/* inner zones reveal — keyed off .foot.in */
.foot-brand, .foot-grid, .foot-legal { opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease-reveal), transform .8s var(--ease-reveal); }
.foot.in .foot-brand { opacity: 1; transform: none; transition-delay: 0.05s; }
.foot.in .foot-grid  { opacity: 1; transform: none; transition-delay: 0.15s; }
.foot.in .foot-legal { opacity: 1; transform: none; transition-delay: 0.25s; }
/* ZONE 2 — brand + positioning */
.foot-brand { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: clamp(24px,4vw,56px); }
.foot-wordmark { width: clamp(120px,14vw,152px); height: auto; display: block; filter: brightness(0) invert(1); }
.foot-lines { max-width: 46ch; }
.foot-emotional { font-family: var(--sans); font-weight: 400; font-size: clamp(16px,1.5vw,19px); line-height: 1.35; color: rgba(244,238,228,.92); margin: 0; }
.foot-positioning { font-family: var(--sans); font-weight: 300; font-size: clamp(14px,1.15vw,16px); line-height: 1.5; color: rgba(244,238,228,.6); margin: 6px 0 0; }
/* ZONE 3 — main grid */
.foot-grid { margin-top: clamp(48px,8vh,88px); display: grid; grid-template-columns: repeat(12,1fr); column-gap: clamp(20px,2.4vw,34px); row-gap: 40px; }
.foot-col-cta { grid-column: span 4; }
.foot-col-nav { grid-column: span 3; }
.foot-col-contact { grid-column: span 5; }
.foot-label { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(176,141,76,.92); margin: 0 0 16px; }
.foot-cta { display: inline-block; font-family: var(--sans); font-weight: 400; font-size: clamp(26px,3vw,40px); line-height: 1.06; letter-spacing: -.01em;
  color: var(--paper); background: none; border: none; padding: 0; cursor: pointer; position: relative; text-align: left; }
.foot-cta::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-reveal); }
.foot-cta:hover::after, .foot-cta:focus-visible::after { transform: scaleX(1); }
.foot-cta-sub { font-family: var(--sans); font-weight: 300; font-size: 14px; line-height: 1.5; color: rgba(244,238,228,.6); margin: 18px 0 0; max-width: 34ch; }
.foot-mail { display: inline-block; font-family: var(--sans); font-size: 14px; color: rgba(244,238,228,.85); background: none; border: none; padding: 0 0 2px; cursor: pointer; position: relative; text-align: left; transition: color .25s ease; }
.foot-mail::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: transparent; transition: background .3s ease; }
.foot-mail:hover, .foot-mail:focus-visible { color: var(--gold); }
.foot-mail:hover::after, .foot-mail:focus-visible::after { background: var(--gold); }
.foot-cta-mail { margin-top: 16px; font-size: 15px; }
.foot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.foot-list a, .foot-contact a { font-family: var(--sans); font-weight: 300; color: rgba(244,238,228,.85); text-decoration: none; position: relative; width: fit-content; transition: color .25s ease; }
.foot-list a { font-size: 15px; }
.foot-list a::after, .foot-contact a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-reveal); }
.foot-list a:hover, .foot-list a:focus-visible, .foot-contact a:hover, .foot-contact a:focus-visible { color: var(--gold); }
.foot-list a:hover::after, .foot-list a:focus-visible::after, .foot-contact a:hover::after, .foot-contact a:focus-visible::after { transform: scaleX(1); }
.foot-contact { font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.55; color: rgba(244,238,228,.85); }
.foot-contact .addr { margin: 0; }
.foot-contact .indic { display: block; margin-top: 4px; font-size: 11.5px; letter-spacing: .06em; color: rgba(244,238,228,.5); }
.foot-contact .row { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.foot-contact a.tel { font-variant-numeric: tabular-nums; }
.foot-social { margin-top: 8px; display: flex; gap: 22px; }
/* ZONE 4 — legal baseline */
.foot-legal { margin-top: clamp(56px,9vh,96px); padding-top: 22px; border-top: 1px solid rgba(244,238,228,.12); display: flex; justify-content: space-between; align-items: center; gap: 20px 28px; flex-wrap: wrap; }
.foot-legal-left { font-family: var(--sans); font-size: 12px; font-weight: 300; color: rgba(244,238,228,.55); display: flex; flex-wrap: wrap; align-items: center; }
.foot-legal-left a { color: rgba(244,238,228,.55); text-decoration: none; transition: color .25s ease; }
.foot-legal-left a:hover, .foot-legal-left a:focus-visible { color: rgba(244,238,228,.9); }
.foot-legal-left .sep { margin: 0 10px; color: rgba(244,238,228,.3); }
.foot-legal-right { display: flex; align-items: center; gap: 24px; }
.foot-dev { font-family: var(--sans); font-size: 12px; font-weight: 300; color: rgba(244,238,228,.45); }
.foot a:focus-visible, .foot button:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; border-radius: 1px; }
@media (max-width: 860px) {
  .foot { padding-top: clamp(56px,8vh,84px); }
  .foot-brand { grid-template-columns: 1fr; align-items: start; row-gap: 18px; }
  .foot-grid { grid-template-columns: 1fr; row-gap: 34px; }
  .foot-col-cta, .foot-col-nav, .foot-col-contact { grid-column: 1 / -1; }
  .foot-cta { font-size: clamp(26px,7.5vw,34px); }
  .foot-legal { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot-legal-right { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .foot-brand, .foot-grid, .foot-legal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
