/* Stefanovski Group — one hub, three companies, three feels.
   Group: architectural and editorial (thin Jost, white, near-black).
   Hospitality: Mediterranean (Cormorant Garamond, indigo #2b205b, gold #c9af7f, warm cream).
   R&D: modern science (Inter Tight, white, one orange-red accent, soft gradient field). */

:root {
  --ink: #1d1d1d;
  --ink-soft: #5c5c5c;
  --line: #e4e4e4;
  --paper: #ffffff;

  --h-indigo: #2b205b;
  --h-gold: #c9af7f;
  --h-gold-deep: #7d6330;
  --h-cream: #f7f3ec;
  --h-text: #4d4a55;

  --r-ink: #161616;
  --r-accent: #c23d14;
  --r-soft: #f4f1ee;

  --f-group: "Jost", system-ui, sans-serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-rnd: "Inter Tight", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --max: 1360px;
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-group);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.screen { min-height: 100vh; min-height: 100svh; position: relative; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  color: var(--ink);
  transition: color .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.nav[data-theme="dark"] { color: #fff; }
.nav[data-theme="dark"].is-scrolled { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; font-family: var(--f-group); letter-spacing: .28em; text-transform: uppercase; min-height: 44px; align-items: center; }
.brand b { font-weight: 500; font-size: 15px; }
.brand span { font-weight: 300; font-size: 15px; }

.nav-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a, .lang a {
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; font-weight: 400;
  display: inline-flex; align-items: center; min-height: 44px; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.lang { display: flex; align-items: center; gap: 4px; }
.lang a { padding: 0 8px; opacity: .64; transition: opacity .2s; }
.lang a[aria-current="page"] { opacity: 1; }
.lang a:hover { opacity: 1; }
.lang span { opacity: .35; }

.menu-btn { display: none; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; width: 44px; height: 44px; padding: 0; position: relative; }
.menu-btn i, .menu-btn i::before { position: absolute; left: 11px; width: 22px; height: 1.5px; background: currentColor; content: ""; transition: transform .3s var(--ease); }
.menu-btn i { top: 19px; }
.menu-btn i::before { left: 0; top: 6px; }
.menu-btn[aria-expanded="true"] i { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(-6px) rotate(-90deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: #fff; color: var(--ink);
  display: flex; flex-direction: column; justify-content: center; padding: var(--nav-h) var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; margin: 0 0 40px; padding: 0; }
.mobile-menu li a { display: block; font-size: 34px; font-weight: 200; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .lang a { font-size: 14px; }
body.menu-open .nav { color: var(--ink); background: transparent; box-shadow: none; backdrop-filter: none; }

/* ---------- Shared bits ---------- */
.eyebrow { font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; }
.arrow { display: inline-block; transition: transform .35s var(--ease); }
a:hover > .arrow, a:hover .arrow { transform: translateX(6px); }
.frame { overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
a.frame:hover img, .frame:hover img { transform: scale(1.025); }

/* ---------- 1. Stefanovski Group (architectural) ---------- */
.group { font-family: var(--f-group); }
.group-hero { display: flex; align-items: stretch; padding: calc(var(--nav-h) + 24px) 0 48px; }
.group-hero .wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: stretch; }
.group-hero .copy { grid-column: 1 / span 6; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 0 0; }
.group-hero h1 { font-weight: 200; font-size: clamp(38px, 4.4vw, 68px); line-height: 1.12; letter-spacing: -.01em; margin-top: 28px; max-width: 13em; }
.group-hero .lede { font-size: 18px; color: var(--ink-soft); margin-top: 28px; max-width: 30em; }
.group-hero .visual { grid-column: 8 / span 5; min-height: 560px; }

.index { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.index li { border-bottom: 1px solid var(--line); }
.index a {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px;
  padding: 20px 0; text-decoration: none; font-size: clamp(20px, 1.8vw, 26px); font-weight: 300;
  transition: padding .35s var(--ease);
}
.index a:hover { padding-left: 10px; }
.index .num { font-size: 13px; letter-spacing: .14em; color: var(--ink-soft); }

.group-about { display: flex; align-items: center; padding: 120px 0; background: var(--paper); border-top: 1px solid var(--line); }
.group-about .wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; align-items: center; }
.group-about .visual { grid-column: 1 / span 6; aspect-ratio: 4 / 5; max-height: 72vh; }
.group-about .copy { grid-column: 8 / span 5; }
.group-about h2 { font-weight: 200; font-size: clamp(34px, 3.6vw, 54px); line-height: 1.12; margin: 20px 0 32px; }
.group-about p { color: var(--ink-soft); margin-bottom: 18px; max-width: 32em; }
.facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.facts li { padding: 18px 16px 0 0; }
.facts b { display: block; font-weight: 400; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.facts span { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- 2. Stefanovski Hospitality (Mediterranean) ---------- */
.hosp { font-family: var(--f-group); color: var(--h-text); }
.hosp-hero { display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden; }
.hosp-hero .bg { position: absolute; inset: 0; }
.hosp-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.hosp-hero .bg::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 50% 52%, rgba(22, 17, 46, .62) 0%, rgba(22, 17, 46, 0) 100%),
    linear-gradient(180deg, rgba(22, 17, 46, .55) 0%, rgba(22, 17, 46, .3) 40%, rgba(22, 17, 46, .66) 100%); }
.hosp-hero .wrap { text-shadow: 0 1px 18px rgba(10, 8, 24, .45); }
.hosp-hero .wrap { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: var(--nav-h); padding-bottom: 40px; }
.hosp-logo { width: min(340px, 72vw); height: auto; }
.hosp-logo .petals { stroke: var(--h-gold); }
.hosp-logo .mono, .hosp-logo .name { fill: #fff; }
.hosp-logo .sub { fill: var(--h-gold); }
.hosp-hero p { font-family: var(--f-serif); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); margin-top: 8px; max-width: 24em; }
.btn-gold {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; min-height: 48px; padding: 0 30px;
  border: 1px solid var(--h-gold); color: #fff; text-decoration: none; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .15s var(--ease);
}
.btn-gold:hover { background: var(--h-gold); color: var(--h-indigo); }
.btn-gold:active { transform: scale(.98); }

.hosp-stay { background: var(--h-cream); display: flex; align-items: center; padding: 120px 0; }
.hosp-stay .wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 56px; }
.hosp-stay .copy { grid-column: 1 / span 5; align-self: center; }
.hosp-stay .eyebrow { color: var(--h-gold-deep); }
.hosp-stay h2 { font-family: var(--f-serif); font-weight: 500; color: var(--h-indigo); font-size: clamp(38px, 4vw, 60px); line-height: 1.08; margin: 18px 0 28px; }
.hosp-stay h2 .w { transition: color .6s var(--ease); }
.hosp-stay h2.is-dim .w { color: var(--h-gold); }
.hosp-stay h2.is-dim.is-lit .w { color: var(--h-indigo); }
.hosp-stay p { margin-bottom: 18px; max-width: 30em; }
.rule { width: 64px; height: 1px; background: var(--h-gold); margin: 32px 0; }
.link-indigo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--h-indigo); text-decoration: none; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; border-bottom: 1px solid var(--h-gold); }
.hosp-stay .photos { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }
.hosp-stay .photos .frame:first-child { aspect-ratio: 3 / 4; }
.hosp-stay .photos .frame:last-child { aspect-ratio: 3 / 4; margin-bottom: 64px; }

/* ---------- 3. Stefanovski R&D (modern science) ---------- */
.rnd { font-family: var(--f-rnd); color: var(--r-ink); background: #fff; }
.rnd-hero { display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 80px; }
.rnd-hero .wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; align-items: center; }
.rnd-hero .copy { grid-column: 1 / span 6; }
.rnd .eyebrow { font-family: var(--f-rnd); font-weight: 500; letter-spacing: .08em; color: var(--r-accent); }
.rnd h2 { font-weight: 400; font-size: clamp(40px, 4.6vw, 72px); line-height: 1.04; letter-spacing: -.025em; margin: 20px 0 28px; }
.rnd h2 strong { font-weight: 700; }
.rnd p { font-size: 18px; line-height: 1.55; color: #3d3d3d; max-width: 30em; }
.btn-dark {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--r-ink); color: #fff; text-decoration: none; font-weight: 500; font-size: 16px;
  transition: background-color .25s var(--ease), transform .15s var(--ease);
}
.btn-dark:hover { background: var(--r-accent); }
.btn-dark:active { transform: scale(.97); }

.field { grid-column: 8 / span 5; aspect-ratio: 4 / 5; max-height: 74vh; position: relative; overflow: hidden; border-radius: 4px;
  background:
    radial-gradient(120% 90% at 85% 10%, #ff7a45 0%, rgba(255, 122, 69, 0) 55%),
    radial-gradient(90% 80% at 10% 95%, #ffd2b5 0%, rgba(255, 210, 181, 0) 60%),
    radial-gradient(80% 70% at 70% 80%, #c9dcf2 0%, rgba(201, 220, 242, 0) 65%),
    linear-gradient(160deg, #e8542a 0%, #f2a27c 45%, #f6efe9 100%);
}
.field .bar { position: absolute; left: 0; top: 0; width: 10px; height: 34%; background: var(--r-accent); }
.field svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.field svg circle { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1; }
.field svg .dot { fill: #fff; stroke: none; }

.rnd-work { background: var(--r-soft); display: flex; align-items: center; padding: 120px 0; }
.rnd-work .head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-bottom: 56px; }
.rnd-work .head h2 { grid-column: 1 / span 7; font-size: clamp(34px, 3.4vw, 52px); margin: 16px 0 0; }
.rnd-work .head p { grid-column: 9 / span 4; align-self: end; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; padding: 36px 32px 40px; border-top: 3px solid var(--r-accent); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .07); }
.card .n { font-size: 14px; font-weight: 500; color: var(--r-accent); }
.card h3 { font-size: 26px; font-weight: 500; letter-spacing: -.01em; margin: 40px 0 14px; }
.card p { font-size: 16.5px; }

/* ---------- Footer ---------- */
.foot { background: #111; color: #d9d9d9; padding: 96px 0 40px; font-family: var(--f-group); }
.foot .top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; padding-bottom: 64px; border-bottom: 1px solid #2a2a2a; }
.foot h2 { grid-column: 1 / span 5; color: #fff; font-weight: 200; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.12; }
.foot .cols { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot h3 { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; color: #fff; margin-bottom: 14px; }
.foot .cols p { font-size: 15.5px; color: #a8a8a8; }
.foot .cols a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; font-size: 15.5px; color: #d9d9d9; }
.foot .cols a:hover { color: #fff; }
.foot .cols ul { list-style: none; margin: 0; padding: 0; }
.foot .bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 20px; font-size: 13px; color: #8a8a8a; }
.foot .bottom a { color: #a8a8a8; }
.foot .lang a { opacity: .6; color: #fff; }
.foot .lang a[aria-current="page"] { opacity: 1; }

/* ---------- Entrance (once, on load) ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-enter] > * { animation: enter 1s var(--ease) both; }
  [data-enter] > *:nth-child(2) { animation-delay: .12s; }
  [data-enter] > *:nth-child(3) { animation-delay: .24s; }
  [data-enter] > *:nth-child(4) { animation-delay: .36s; }
  [data-enter] > *:nth-child(5) { animation-delay: .48s; }
  .group-hero .visual img { animation: settle 1.6s var(--ease) both; }
}
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .hosp-stay h2.is-dim .w { color: var(--h-indigo); }
}

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .nav-links { gap: 22px; }
  .group-hero .copy { grid-column: 1 / span 7; }
  .group-hero .visual { grid-column: 9 / span 4; }
  .hosp-stay .copy { grid-column: 1 / span 6; }
  .hosp-stay .photos { grid-column: 7 / span 6; }
  .rnd-work .head h2 { grid-column: 1 / -1; }
  .rnd-work .head p { grid-column: 1 / span 8; margin-top: 20px; }
}
@media (max-width: 860px) {
  .nav-links, .nav .lang { display: none; }
  .menu-btn { display: block; }
  .group-hero .wrap, .group-about .wrap, .hosp-stay .wrap, .rnd-hero .wrap, .foot .top { grid-template-columns: 1fr; }
  .group-hero .copy, .group-hero .visual, .group-about .visual, .group-about .copy,
  .hosp-stay .copy, .hosp-stay .photos, .rnd-hero .copy, .field, .foot h2, .foot .cols { grid-column: 1 / -1; }
  .group-hero .copy { padding-top: 16px; }
  .group-hero .visual { min-height: 0; aspect-ratio: 4 / 3; margin-top: 40px; }
  .group-about, .hosp-stay, .rnd-work { padding: 88px 0; }
  .group-about .visual { aspect-ratio: 4 / 3; max-height: none; order: 2; }
  .field { aspect-ratio: 4 / 3; max-height: none; }
  .cards { grid-template-columns: 1fr; }
  .rnd-work .head p { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand b, .brand span { font-size: 13px; letter-spacing: .22em; }
  .foot .cols { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .hosp-stay .photos { gap: 12px; }
  .hosp-stay .photos .frame:last-child { margin-bottom: 40px; }
  .btn-gold, .btn-dark { width: 100%; justify-content: center; }
  .index a { grid-template-columns: 40px 1fr auto; }
}
