/* ------------------------------------------------------------------
   CityGrupp — fonts (self-hosted, latin subset, variable)
------------------------------------------------------------------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/fonts/cormorant.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("/fonts/cormorant-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/manrope.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallbacks: keep layout stable before the webfont swaps in */
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Times New Roman"), local("Times");
  size-adjust: 96%; ascent-override: 92%; descent-override: 28%;
}
@font-face {
  font-family: "Cormorant Fallback";
  font-style: italic;
  src: local("Times New Roman Italic"), local("Times Italic");
  size-adjust: 88%; ascent-override: 92%; descent-override: 28%;
}

/* ------------------------------------------------------------------
   Tokens
------------------------------------------------------------------- */
:root {
  --bg: #0A0D16;
  --bg-elev: #0E1220;
  --ink: #ECE7DD;
  --ink-soft: #B3B8C6;
  --ink-mute: #8A91A4;
  --line: rgba(236, 231, 221, 0.10);
  --line-strong: rgba(236, 231, 221, 0.18);
  --orange: #F58220;
  --orange-2: #FF9D4D;
  --serif: "Cormorant Garamond", "Cormorant Fallback", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(20px, 6vw, 112px);
  --max: 1320px;
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;

  /* 8px spacing scale */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px;
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  position: relative;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
b { font-weight: inherit; }
.ac { font-style: italic; color: var(--orange); }
svg.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 4px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: var(--orange); color: #0A0D16; }
[id] { scroll-margin-top: calc(var(--header-h) + var(--s2)); }

.skip {
  position: absolute; left: var(--s2); top: -100px; z-index: 100;
  background: var(--orange); color: #0A0D16; padding: 10px 14px; border-radius: 8px;
  font-weight: 600; font-size: 14px; transition: top .2s;
}
.skip:focus { top: var(--s2); }

/* Ambient light (decorative, clipped, no filter = cheap to paint) */
.bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glow { position: absolute; border-radius: 50%; }
.glow-a { width: 900px; height: 900px; right: -320px; top: -380px; background: radial-gradient(closest-side, rgba(245,130,32,.16), rgba(245,130,32,.05) 45%, transparent 100%); }
.glow-b { width: 820px; height: 820px; left: -360px; top: 420px; background: radial-gradient(closest-side, rgba(40,56,120,.28), rgba(40,56,120,.08) 50%, transparent 100%); }

main, header, footer { position: relative; z-index: 1; }

/* Shared text */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 var(--s2);
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange-2);
}
.dash { display: inline-block; width: 28px; height: 1px; background: var(--orange-2); }

/* Reveal — only when JS is present, so a failed script never hides content */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .06s; }
.js .reveal:nth-child(3) { transition-delay: .12s; }
.js .reveal:nth-child(4) { transition-delay: .18s; }
.js .reveal:nth-child(5) { transition-delay: .24s; }

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.top.is-scrolled {
  background: rgba(10, 13, 22, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.top-inner {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
}
.brand, .foot-brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.22em;
  line-height: 1;
  white-space: nowrap;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand-city { color: var(--ink); }
.brand-grupp { color: var(--orange); }
.nav { display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 14px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: rgba(236,231,221,.06); }

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 9vh, 120px) var(--pad) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  grid-template-areas: "copy index" "strip strip";
  column-gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.hero-copy { grid-area: copy; }
.hero-index { grid-area: index; }
.band { grid-area: strip; }

.hero h1 {
  margin: 0 0 var(--s3);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(52px, 8.6vw, 124px);
  line-height: .96;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero h1 .line { display: block; }
.lead {
  margin: 0 0 var(--s4);
  max-width: 34em;
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn .ico { transition: transform .3s var(--ease); }
.btn-primary {
  background: var(--orange); color: #0A0D16; border: 1px solid var(--orange);
  box-shadow: 0 8px 24px -14px rgba(245,130,32,.45);
}
.btn-primary:hover { background: var(--orange-2); border-color: var(--orange-2); }
.btn-primary:hover .ico { transform: translateY(2px); }
.btn-ghost { color: var(--ink-soft); border: 1px solid var(--line-strong); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-soft); }

/* Hero quick index (desktop) */
.qi-label { margin: 0 0 10px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); }
.hero-index ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hero-index li { border-bottom: 1px solid var(--line); }
.hero-index a {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 16px;
  padding: 12px 4px;
  transition: padding-left .3s var(--ease), color .2s;
}
.qi-mark { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); transition: transform .35s var(--ease); }
.hero-index a:hover .qi-mark { transform: scale(1.08); }
.hero-index .nm { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: .02em; line-height: 1; }
.hero-index .nm b { color: var(--orange); }
.hero-index .svc { font-size: 12px; letter-spacing: .06em; color: var(--ink-mute); white-space: nowrap; transition: color .2s; }
.hero-index a:hover { padding-left: 12px; }
.hero-index a:hover .svc { color: var(--ink-soft); }

/* Logo band — hairline footer of the hero */
.band {
  margin: clamp(40px, 6vh, 64px) 0 0;
  padding: var(--s3) 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4);
}
.band-label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; }
.band-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) clamp(20px, 3vw, 44px); flex: 1; }
.band-logos img { height: 34px; width: auto; display: block; opacity: .78; transition: opacity .3s, transform .3s var(--ease); }
.band-logos li:hover img { opacity: 1; transform: translateY(-1px); }

/* ------------------------------------------------------------------
   Sections
------------------------------------------------------------------- */
.sec-head { margin: 0 0 clamp(32px, 4vh, 48px); max-width: 720px; }
.sec-head h2 {
  margin: 0;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.01em;
  text-wrap: balance;
}
.sec-lead { margin: var(--s2) 0 0; color: var(--ink-soft); max-width: 36em; text-wrap: pretty; }

/* ------------------------------------------------------------------
   Companies
------------------------------------------------------------------- */
.companies {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(64px, 9vh, 112px) var(--pad) 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s2);
}
.card {
  grid-column: span 2;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  padding: 28px 28px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)), var(--bg-elev);
  border: 1px solid var(--line);
  transition: border-color .3s, background .3s;
}
.card:nth-child(4), .card:nth-child(5) { grid-column: span 3; }
.card:hover {
  border-color: rgba(245,130,32,.45);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)), var(--bg-elev);
}
.card:focus-visible { outline-offset: 2px; border-radius: var(--radius); }
.card:target { border-color: rgba(245,130,32,.45); }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--s3); }
.mark { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); transition: transform .5s var(--ease); }
.card:hover .mark { transform: translateY(-2px) scale(1.04); }
.wm {
  position: absolute; z-index: -1; right: -8%; bottom: -14%;
  width: 62%; max-width: 300px; height: auto;
  opacity: .055; filter: grayscale(1) brightness(1.6);
  transform: rotate(-6deg);
  transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s;
  pointer-events: none;
}
.card:hover .wm { opacity: .14; filter: grayscale(0) brightness(1.1); transform: rotate(-3deg) scale(1.04); }
.num {
  font-family: var(--serif); font-size: 28px; font-weight: 300; line-height: 1;
  color: var(--ink-mute); font-variant-numeric: tabular-nums; padding-top: 2px;
}
.card-title { margin-bottom: var(--s2); }
.card h3 {
  margin: 0 0 6px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 2.6vw, 38px); line-height: 1; letter-spacing: .02em;
}
.card h3 b { color: var(--orange); }
.tag { margin: 0; font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.desc { margin: 0 0 var(--s3); color: var(--ink-soft); font-size: 15px; line-height: 1.6; text-wrap: pretty; max-width: 40ch; }
.card-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: var(--s2); border-top: 1px solid var(--line);
}
.area { font-size: 12.5px; color: var(--ink-mute); letter-spacing: .03em; }
.go {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  transition: color .25s;
}
.go .ico { font-size: 15px; transition: transform .35s var(--ease); }
.card:hover .go { color: var(--orange-2); }
.card:hover .go .ico { transform: translate(2px, -2px); }

/* Wide cards (4 and 5) use their width: title left, description right */
@media (min-width: 1101px) {
  .card:nth-child(n+4) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-areas: "top top" "title desc" "foot foot";
    column-gap: var(--s4);
    align-items: end;
  }
  .card:nth-child(n+4) .card-top { grid-area: top; }
  .card:nth-child(n+4) .card-title { grid-area: title; margin-bottom: 0; }
  .card:nth-child(n+4) .desc { grid-area: desc; max-width: 48ch; margin-bottom: 2px; }
  .card:nth-child(n+4) .card-foot { grid-area: foot; margin-top: var(--s3); }
}

/* ------------------------------------------------------------------
   Contact
------------------------------------------------------------------- */
.contact {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(64px, 9vh, 112px) var(--pad) clamp(56px, 8vh, 96px);
}
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 1.2fr .9fr 1.1fr 1.3fr;
  gap: var(--s2) var(--s3); align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: background .25s;
}
.row:hover { background: linear-gradient(90deg, rgba(236,231,221,.03), transparent 70%); }
.row-name { display: flex; align-items: center; gap: 14px; white-space: nowrap; font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: .02em; line-height: 1; }
.row-mark { width: 36px; height: 36px; object-fit: contain; flex: none; }
.row-name b { color: var(--orange); }
.row-tel, .row-mail {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; width: max-content; max-width: 100%;
  font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums;
  transition: color .2s;
}
.row-tel::after, .row-mail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px;
  background: var(--orange-2); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.row-tel:hover, .row-mail:hover { color: var(--orange-2); }
.row-tel:hover::after, .row-mail:hover::after { transform: scaleX(1); }
.row-area { font-size: 13px; color: var(--ink-mute); letter-spacing: .02em; }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); }
.foot-inner {
  max-width: var(--max); margin: 0 auto; padding: var(--s6) var(--pad) var(--s2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3) var(--s5); align-items: flex-start;
}
.foot-brand { margin: 0 0 var(--s1); font-size: 22px; }
.foot-note { margin: 0; font-size: 14px; color: var(--ink-mute); }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s3); font-size: 14px; color: var(--ink-soft); }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; transition: color .2s; }
.foot-links a:hover { color: var(--orange-2); }
.foot-bottom {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) var(--s3);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
  font-size: 12.5px; color: var(--ink-mute); letter-spacing: .05em;
}
.copy { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; transition: color .2s; }
.to-top:hover { color: var(--ink); }

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: span 1; }
  .card:last-child { grid-column: 1 / -1; }
  .card:last-child .desc { max-width: 60ch; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "strip"; }
  .band-logos img { height: 30px; }
  .hero-index { display: none; }
  .row { grid-template-columns: 1fr 1fr; gap: 0 var(--s3); padding: 12px 0; }
  .row-name { grid-column: 1 / -1; margin: 6px 0 2px; }
  .row-area { grid-column: 1 / -1; margin-bottom: 6px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; --radius: 16px; }
  .brand { font-size: 20px; letter-spacing: .16em; }
  .nav a { padding: 0 10px; font-size: 11px; letter-spacing: .1em; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card:last-child .desc { max-width: 40ch; }
  .card { padding: 22px 20px 18px; }
  .card-top { margin-bottom: var(--s2); }
  .num { font-size: 26px; }
  .band { margin-top: var(--s5); gap: var(--s2); }
  .band-logos { gap: 12px 14px; justify-content: flex-end; }
  .band-logos img { height: 34px; width: 34px; opacity: .9; }
  .mark { width: 52px; height: 52px; }
  .row-mark { width: 30px; height: 30px; }
  .row { grid-template-columns: 1fr; gap: 0; padding: 10px 0; }
  .row-name { font-size: 24px; margin: 8px 0 0; }
  .row-area { margin: 0 0 8px; }
  .foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s3); }
  .foot-bottom { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ------------------------------------------------------------------
   Motion preferences
------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .go .ico, .btn, .btn .ico, .hero-index a, .row, .row-tel::after, .row-mail::after, .top, .nav a, .skip, .mark, .wm, .qi-mark, .band-logos img { transition: none; }
  .card:hover .mark, .card:hover .wm, .hero-index a:hover .qi-mark { transform: none; }
}
