/* ============================================================
   UROŠ PAVIĆ — WEB PORTFOLIO
   Navy + Gold brand system, Bogdan-style motion
   Colors: navy #0b1728 | gold #c8a86b | cream #f7f4ee
   ============================================================ */

/* Self-hosted fonts — no Google round-trip, no font flash */
@font-face {
  font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/Anton-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('assets/fonts/Caveat-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('assets/fonts/Inter-var.woff2') format('woff2');
}

:root {
  --navy: #0b1728;
  --navy-soft: #152439;
  --gold: #c8a86b;
  --gold-light: #e2c98a;
  --cream: #f7f4ee;
  --text: #1a2333;
  --muted: #6c7689;
  --muted-on-dark: #97a3b6; /* readable muted for navy surfaces (WCAG AA) */
  --border: #dcd6c8;
  --white: #ffffff;
  --font-display: 'Anton', Impact, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
  --font-accent: 'Caveat', cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { scrollbar-gutter: stable; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, .975rem + .125vw, 1.125rem);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; border: 0; background: none; cursor: pointer; }

h1, h2, h3 { margin: 0; }

.container { width: 100%; max-width: 120rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3rem); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.02;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: clamp(.9rem, .85rem + .2vw, 1.05rem);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0;
}

.accent {
  font-family: var(--font-accent);
  color: #ac8c50; /* darker gold for light backgrounds — readable */
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
}
/* On dark sections the lighter gold pops better */
.projects .accent, .reality .accent, .cta .accent, .upkeep .accent, .see-all .accent { color: var(--gold); }

/* Scroll progress: thin gold line down the left screen edge (fills as you scroll) */
.reading-progress {
  position: fixed; top: 0; left: 0; bottom: 0; width: 3px;
  background: var(--gold); z-index: 2000;
  pointer-events: none;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform .08s linear;
}

/* Side rail — page location dots (desktop only) */
.side-rail {
  position: fixed; left: 1.4rem; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1rem;
  z-index: 900;
}
.side-rail__dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--gold); background: transparent;
  position: relative; padding: 0;
  transition: background .25s ease, transform .25s ease;
}
.side-rail__dot.is-active { background: var(--gold); transform: scale(1.25); }
.side-rail__label {
  position: absolute; left: 1.4rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  background: var(--navy); padding: .25rem .5rem; border-radius: .25rem;
}
/* Label shows on hover only — the always-on active label overlapped page text */
.side-rail__dot:hover .side-rail__label { opacity: 1; }
@media (max-width: 1023px) { .side-rail { display: none; } }

/* ============ PRELOADER ============ */
.loading {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  overflow: hidden;
  pointer-events: none;
}
.loading__progress {
  position: absolute; bottom: 0; left: 0;
  width: .9em; height: 100%;
  font-size: calc(8vw + 8vh);
}
.loading__progress-inner {
  position: absolute; inset: 0;
  background: var(--gold);
  transform-origin: bottom;
  transform: scaleY(0);
}
.loading__numbers {
  position: absolute; bottom: .12em; left: .28em;
  display: flex; align-items: flex-start;
  color: var(--cream);
  font-size: calc(10vw + 10vh);
  font-family: var(--font-display);
  line-height: 1;
}
.loading__group { height: 1em; overflow: hidden; position: relative; }
.loading__col { display: flex; flex-direction: column; will-change: transform; }
.loading__digit { line-height: 1; }
.loading__pct {
  font-size: .3em; margin-top: .38em;
  overflow: hidden; height: 1em;
}
.loading__pct span { display: block; }

/* ============ PAGE TRANSITION ============ */
.transition {
  position: fixed; inset: 0; z-index: 1500;
  background: var(--navy);
  clip-path: inset(100% 0 0 0);
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.transition__logo { width: clamp(60px, 8vw, 110px); opacity: 0; }

/* ============ NAV (top bar) ============ */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1000;
  padding-block: 1rem;
}
.nav__grid {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; column-gap: 1rem;
}
.nav__brand {
  display: inline-flex; align-items: center; justify-self: start;
  background: var(--navy); padding: .45rem .6rem; border-radius: 6px;
  transition: background .3s ease;
}
.nav__brand:hover { background: var(--navy-soft); }
.nav__brand img { height: 2.1rem; width: auto; }
.nav__menu { display: flex; gap: .25rem; justify-self: center; white-space: nowrap; }
.nav__link {
  padding: .9rem .85rem;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .95rem; letter-spacing: .04em;
  color: var(--text);
  position: relative;
}
.nav__link::after {
  content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .55rem;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.65,.05,0,1);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  justify-self: end;
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--navy); color: var(--cream);
  padding: .8rem 1.1rem; border-radius: .25em;
  text-decoration: none; text-transform: uppercase;
  font-size: .95rem; letter-spacing: .04em;
  transition: background .3s ease, color .3s ease;
}
.nav__cta:hover { background: var(--gold); color: var(--navy); }
.nav__cta img { height: 1.6rem; width: 1.6rem; object-fit: cover; border-radius: .15em; filter: grayscale(1); }
.nav__hamburger-wrap { display: none; }

/* Floating pill nav — solid bar so page text never shows through */
.nav-float {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  padding-block: .8rem;
  transform: translateY(-110%);
  visibility: hidden;
  background: var(--navy);
  box-shadow: 0 6px 24px rgba(11,23,40,.25);
}
.nav-float .nav-float__toggle, .nav-float .nav__cta { background: var(--navy-soft); }
.nav-float .nav-float__toggle:hover, .nav-float .nav__cta:hover { background: var(--gold); color: var(--navy); }
.nav-float__pill { background: var(--navy-soft) !important; }
.nav-float__grid {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-float__pill {
  justify-self: start;
  background: var(--navy); border-radius: 6px;
  padding: .5rem .6rem; line-height: 0;
  display: inline-flex;
}
.nav-float__pill img { height: 2.2rem; width: auto; }
.nav-float__toggle, .nav__toggle {
  justify-self: center;
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--navy); color: var(--cream);
  padding: .7rem 1rem; border-radius: .25em;
  text-transform: uppercase; font-size: .95rem; letter-spacing: .04em;
}
.nav-float__toggle:hover { background: var(--navy-soft); }
.hamburger { display: inline-flex; flex-direction: column; gap: .32em; width: 1.5em; }
.hamburger span { height: 2px; background: currentColor; display: block; transition: transform .35s cubic-bezier(.65,.05,0,1), opacity .25s ease; transform-origin: center; }
/* Morph to X when menu open */
.hamburger.is-open span:nth-child(1) { transform: translateY(calc(.32em + 2px)) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.hamburger.is-open span:nth-child(3) { transform: translateY(calc(-.32em - 2px)) rotate(-45deg); }

/* Confetti canvas */
.confetti-canvas { position: fixed; inset: 0; z-index: 4000; pointer-events: none; }
.accent[data-confetti] { cursor: pointer; }
.nav-float__cta { justify-self: end; }

/* Fullscreen menu */
.menu-full {
  position: fixed; inset: 0; z-index: 998;
  pointer-events: none;
}
.menu-full__tile {
  position: absolute; inset: 0;
  background: var(--gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}
.menu-full__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; }
.menu-full__item { overflow: hidden; }
.menu-full__link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  transform: translateY(110%) rotate(4deg);
  transition: color .3s ease;
}
.menu-full__link:hover { color: var(--cream); }
.menu-full__footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  color: var(--navy); font-size: .95rem;
}
.menu-full__footer a { color: var(--navy); }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100svh; overflow: clip; }
.hero__content {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 100svh;
  padding-top: 6.5rem; padding-bottom: 2rem;
  gap: 2rem;
}
.hero__title {
  position: relative; z-index: 15;
  font-size: clamp(2.6rem, 9.5vw, 10.5rem);
  color: var(--navy);
  display: flex; flex-direction: column;
  width: 100%;
}
.hero__line { display: flex; justify-content: space-between; width: 100%; gap: .25em; }
.hero__title .accent { font-size: 1.02em; line-height: .9; position: relative; top: .04em; }
/* Hand-drawn double stroke under "Big!" — draws itself in after the preloader */
.hero__underline {
  position: absolute; left: -2%; bottom: -.18em;
  width: 104%; height: .18em; overflow: visible;
  color: var(--gold);
}
.hero__underline path {
  stroke-dasharray: 480; stroke-dashoffset: 480;
  animation: underline-draw 1s cubic-bezier(.5, 0, .1, 1) 1.6s forwards;
}
@keyframes underline-draw { to { stroke-dashoffset: 0; } }
.hero__meta {
  position: relative; z-index: 30;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem;
}
.hero__text { max-width: 24rem; margin: 0; }
.hero__scroll { font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin: 0; }
.hero__image {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-52%);
  height: 82%; width: auto;
  object-fit: contain; object-position: bottom;
  z-index: 16; /* above the headline (15): the portrait fronts the text like a magazine cover */
  filter: grayscale(1) contrast(1.05) drop-shadow(0 18px 40px rgba(11, 23, 40, .28));
}
.hero__gradient {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 45%; z-index: 12;
  background: linear-gradient(0deg, var(--gold), rgba(200,168,107,0));
}

/* ============ INTRO ============ */
.intro { background: var(--cream); position: relative; z-index: 2; }
.intro__content { padding-block: clamp(6rem, 14vw, 14rem); display: flex; flex-direction: column; align-items: center; gap: 3rem; }
.intro__title {
  font-size: clamp(2rem, 5.2vw, 6rem);
  text-align: center; color: var(--navy);
  max-width: 22ch;
}
.intro__title .accent { font-size: 1.05em; }

/* ============ FEATURED PROJECTS ============ */
.projects { background: var(--navy); color: var(--cream); position: relative; z-index: 2; }
.projects__content { padding-block: clamp(5rem, 10vw, 10rem); }
.projects__eyebrow { text-align: center; color: var(--cream); margin-bottom: 4rem; }
.project-feature {
  padding-block: clamp(3rem, 7vw, 7rem);
  text-align: center;
  position: relative;
}
.project-feature__num { color: var(--gold); font-family: var(--font-accent); font-size: clamp(1.4rem, 2.4vw, 2.2rem); }
.project-feature__title {
  font-size: clamp(3rem, 9vw, 9rem);
  color: var(--cream);
  margin: .1em 0 .2em;
}
.project-feature__desc { color: var(--gold-light); max-width: 34rem; margin: 0 auto 1.8rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--cream); color: var(--navy);
  padding: .95rem 1.5rem; border-radius: .25em;
  text-decoration: none; text-transform: uppercase;
  font-size: .95rem; letter-spacing: .05em; font-weight: 500;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.btn:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.btn--gold { background: var(--gold); }
.btn--gold:hover { background: var(--gold-light); }
.btn--dark { background: var(--navy); color: var(--cream); }
.btn--dark:hover { background: var(--navy-soft); color: var(--cream); }
.project-feature__gallery {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 1rem; margin-top: 3.5rem; align-items: start;
}
.project-feature__media { border: 1px solid rgba(200,168,107,.35); overflow: hidden; will-change: transform; }
.project-feature__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pf-a { grid-column: 1 / 5; aspect-ratio: 4 / 3; }
.pf-b { grid-column: 5 / 9; aspect-ratio: 16 / 10; margin-top: 4rem; }
.pf-c { grid-column: 9 / 13; aspect-ratio: 4 / 3; margin-top: 1.5rem; }

/* See-all huge button */
.see-all { background: var(--navy); padding-block: clamp(4rem, 8vw, 8rem); }
.see-all__btn {
  display: flex; align-items: baseline; justify-content: center; gap: 1.5rem;
  background: var(--navy-soft);
  border: 1px solid rgba(200,168,107,.35);
  border-radius: .5rem;
  padding: clamp(2rem, 5vw, 4rem);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  text-transform: uppercase; color: var(--cream);
  transition: background .35s ease, color .35s ease;
}
.see-all__btn:hover { background: var(--gold); color: var(--navy); }
.see-all__btn .accent { font-size: .4em; }

/* ============ PRICING ============ */
.pricing { background: var(--cream); }
.pricing__content { padding-block: clamp(5rem, 10vw, 10rem); }
.pricing__title { font-size: clamp(2.5rem, 6vw, 5.5rem); color: var(--navy); text-align: center; margin-bottom: 1rem; }
.pricing__lede { text-align: center; color: var(--muted); max-width: 38rem; margin: 0 auto 4rem; }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 2.2rem 1.8rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.price-card--featured { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.price-card__name { text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; color: var(--gold); font-weight: 600; margin: 0; }
.price-card__price { font-family: var(--font-display); font-size: clamp(2.4rem, 3.5vw, 3.4rem); line-height: 1; }
.price-card__price small { font-family: var(--font-body); font-size: .95rem; color: var(--muted); text-transform: none; letter-spacing: 0; }
.price-card--featured .price-card__price small { color: var(--gold-light); }
.price-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; font-size: .98rem; }
.price-card__list li { padding-left: 1.4rem; position: relative; }
.price-card__list li::before { content: ''; position: absolute; left: 0; top: .5em; width: .55em; height: .55em; background: var(--gold); border-radius: 50%; }
.price-card .btn { margin-top: auto; justify-content: center; }
.pricing__note { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 2.5rem; }

/* Monthly upkeep plans */
.upkeep {
  margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--navy); color: var(--cream);
  border-radius: 1rem;
  padding: clamp(2rem, 5vw, 4rem);
}
.upkeep__head { max-width: 44rem; margin-bottom: 2.5rem; }
.upkeep__title { font-size: clamp(1.8rem, 3.6vw, 3.2rem); color: var(--cream); margin-bottom: 1rem; }
.upkeep__lede { color: var(--gold-light); margin: 0; }
.upkeep__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.upkeep-card {
  background: var(--navy-soft);
  border: 1px solid rgba(200,168,107,.3);
  border-radius: .75rem;
  padding: 1.8rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.upkeep-card--plus { border-color: var(--gold); }
.upkeep-card__price { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1; }
.upkeep-card__price small { font-family: var(--font-body); font-size: .95rem; color: var(--gold-light); }
.upkeep-card__note { color: var(--gold-light); font-size: .92rem; margin: -.35rem 0 0; }
@media (max-width: 767px) { .upkeep__grid { grid-template-columns: 1fr; } }

/* ============ BENEFITS (What you get) ============ */
.benefits { background: var(--cream); }
.benefits__content { padding-block: clamp(5rem, 10vw, 9rem); }
.benefits__title { font-size: clamp(2.5rem, 6vw, 5.5rem); color: var(--navy); margin-bottom: 3rem; max-width: 16ch; }
.benefits__title .accent { font-size: 1.02em; }

/* ============ REALITY CHECK ============ */
.reality { background: var(--navy); color: var(--cream); }
.reality__content { padding-block: clamp(5rem, 10vw, 9rem); }
.reality__title { font-size: clamp(2.5rem, 6vw, 5.5rem); color: var(--cream); margin-bottom: .6rem; }
.reality__sub { font-family: var(--font-accent); color: var(--gold); font-size: clamp(1.2rem, 2vw, 1.7rem); margin: 0 0 3rem; }
.process-step--dark { border-top-color: rgba(200,168,107,.3); }
.process-step--dark .process-step__title { color: var(--cream); }
.process-step--dark .process-step__body { color: var(--gold-light); }

/* ============ ABOUT TEASER ============ */
.about { background: var(--cream); }
.about__content { padding-block: clamp(5rem, 10vw, 10rem); }
.about__title { font-size: clamp(4rem, 14vw, 13rem); color: var(--navy); }
.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; margin-top: 3rem; align-items: end; }
.about__copy { grid-column: 1 / 5; font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
.about__media { grid-column: 5 / 9; }
.about__media-inner {
  background: var(--white); padding: 1rem 1rem 3.5rem;
  box-shadow: 0 20px 60px rgba(11,23,40,.18);
  transform: rotate(-2deg);
  transition: transform .5s cubic-bezier(.65,.05,0,1);
}
.about__media-inner:hover { transform: rotate(0deg) scale(1.02); }
.about__media img { filter: grayscale(1); aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.about__cta { grid-column: 10 / 13; display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }

/* ============ TESTIMONIALS ============ */
.testimonials { background: var(--cream); }
.testimonials__content { padding-block: clamp(5rem, 10vw, 9rem); }
.testimonials__title { font-size: clamp(2.5rem, 6vw, 5.5rem); color: var(--navy); margin-bottom: 3.5rem; }
.testimonials__title .accent { font-size: .5em; vertical-align: middle; }
.testimonials__cards { display: flex; flex-direction: column; gap: 1.5rem; }
.testimonial-card {
  background: var(--navy); color: var(--cream);
  border-radius: .75rem;
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid; grid-template-columns: 2fr 1fr; gap: 2rem;
  position: sticky; top: 10vh;
}
.testimonial-card blockquote { margin: 0; }
.testimonial-card h3 { font-size: clamp(1.3rem, 2.4vw, 2rem); margin-bottom: 1rem; color: var(--gold-light); }
.testimonial-card cite { font-style: normal; font-weight: 600; color: var(--gold); display: block; }
.testimonial-card__who { align-self: end; text-align: right; }
.testimonial-card__who p { margin: .2rem 0 0; color: var(--muted-on-dark); }

/* ============ FAQ ============ */
.faq { background: var(--cream); }
.faq__content { padding-block: clamp(5rem, 10vw, 9rem); }
.faq__title { font-size: clamp(2.5rem, 6vw, 5.5rem); color: var(--navy); margin-bottom: 3rem; }
.faq__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.4rem 0; text-align: left;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 500; color: var(--navy);
}
.faq__q-num { color: var(--gold); font-family: var(--font-accent); font-size: 1.2em; margin-right: .6rem; }
.faq__icon { flex: none; width: 1.4rem; transition: transform .4s cubic-bezier(.65,.05,0,1); color: var(--gold); }
.faq__item.is-open .faq__icon { transform: rotate(180deg); }
.faq__panel { overflow: hidden; height: 0; }
.faq__body { padding: 0 0 1.6rem; color: var(--muted); max-width: 46rem; }

/* ============ CTA ============ */
.cta { background: var(--navy); color: var(--cream); }
.cta__content { padding-block: clamp(6rem, 12vw, 12rem); display: flex; flex-direction: column; gap: 2.5rem; }
.cta__eyebrow { color: var(--gold); }
.cta__main { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta__title { font-size: clamp(3rem, 9vw, 8.5rem); color: var(--cream); }
.cta__title .accent { font-size: 1.02em; }
.cta__btn {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  background: var(--gold); color: var(--navy);
  padding: 1rem 2.2rem; border-radius: .3rem;
  text-decoration: none; text-transform: uppercase;
  transition: background .3s ease, transform .3s ease;
  display: inline-block;
}
.cta__btn:hover { background: var(--gold-light); transform: translateY(-3px); }
.cta__email { color: var(--gold-light); text-decoration: none; font-size: 1.1rem; }
.cta__email:hover { color: var(--gold); }

/* ============ FOOTER ============ */
.footer { background: var(--navy); color: var(--cream); overflow: clip; }
.footer__content { padding-block: 4rem 2rem; }
.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 4rem; }
.footer__group-title { color: var(--gold); margin-bottom: 1rem; font-size: .95rem; }
.footer__group { display: flex; flex-direction: column; gap: .15rem; }
.footer__group a { color: var(--cream); text-decoration: none; width: fit-content; padding-block: .75rem; }
.footer__group a:hover { color: var(--gold); }
.footer__big {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12.5vw, 13.5rem);
  /* Title case, not uppercase: Anton's uppercase Ć pushes the accent sideways */
  text-transform: none;
  line-height: .95;
  color: var(--gold);
  text-align: center;
  white-space: nowrap;
  margin-top: 2rem;
}
.footer__credits { display: flex; justify-content: space-between; color: var(--muted-on-dark); font-size: .9rem; padding-top: 2rem; flex-wrap: wrap; gap: 1rem; }
/* Empty socials column hidden until real profile links exist (2nd column) */
.footer__links > div:nth-child(2) { display: none; }

/* ============ CONTACT MODAL ============ */
.contact-modal {
  position: fixed; inset: 0; z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}
.contact-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.contact-modal__backdrop { position: absolute; inset: 0; background: rgba(11,23,40,.6); }
.contact-modal__dialog {
  position: relative; z-index: 1;
  background: var(--white); color: var(--text);
  border-radius: 1rem;
  width: min(100%, 46rem);
  max-height: calc(100dvh - 4rem);
  overflow: hidden auto;
  padding: 2.5rem 2rem;
  transform: translateY(30px);
  transition: transform .4s cubic-bezier(.65,.05,0,1);
}
.contact-modal.is-open .contact-modal__dialog { transform: translateY(0); }
.contact-modal__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--cream); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.contact-modal__title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--navy); }
.contact-modal__sub { color: var(--muted); margin: .6rem 0 2rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.form-field { display: flex; flex-direction: column; gap: .45rem; }
.form-field--full { grid-column: 1 / -1; }
.form-label { font-size: .9rem; font-weight: 600; }
.form-label .req { color: var(--gold); }
.form-input, .form-select, .form-textarea {
  background: #efeeec; border: 1px solid #efeeec; border-radius: .5em;
  padding: .9em 1em; font: inherit; width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: 2px solid var(--gold); }
.form-textarea { min-height: 7.5em; resize: vertical; }
.form-submit {
  grid-column: 1 / -1;
  background: var(--navy); color: var(--cream);
  padding: 1.05em; border-radius: .4rem;
  font-weight: 600; font-size: 1.05rem;
  transition: background .3s ease;
}
.form-submit:hover { background: var(--gold); color: var(--navy); }
.form-note { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: .9rem; margin: 0; }

.footer__privacy { color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; opacity: .8; }
.footer__privacy:hover { opacity: 1; }

/* ============ LEGAL (privacy policy) ============ */
.legal { padding-bottom: clamp(5rem, 10vw, 9rem); }
.legal__content { max-width: 42rem; }
.legal__updated { color: var(--muted); font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2.5rem; }
.legal__content h2 {
  font-family: var(--font-display); color: var(--navy);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  margin: 2.5rem 0 .75rem;
}
.legal__content p { margin: 0 0 1rem; }
.legal__content a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ============ PORTFOLIO PAGE ============ */
.page-hero { padding-top: 9rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-hero__title { font-size: clamp(3.5rem, 11vw, 11rem); color: var(--navy); }
.page-hero__lede { max-width: 36rem; color: var(--muted); margin-top: 1.5rem; font-size: 1.15rem; }
.work-list { padding-bottom: clamp(5rem, 10vw, 9rem); display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 6rem); }
.work-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.work-row:nth-child(even) .work-row__media { order: -1; }
.work-row__media { overflow: hidden; border: 1px solid var(--border); border-radius: .5rem; }
.work-row__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.65,.05,0,1); }
.work-row:hover .work-row__media img { transform: scale(1.04); }
.work-row__eyebrow { color: var(--gold); font-weight: 600; }
.work-row__title { font-size: clamp(2.2rem, 5vw, 4.5rem); color: var(--navy); margin: .3rem 0 1rem; }
.work-row__desc { color: var(--muted); max-width: 32rem; margin-bottom: 1.5rem; }

/* ============ PROCESS PAGE ============ */
.process-list { padding-bottom: clamp(5rem, 10vw, 9rem); }
.process-step {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--border);
  align-items: start;
}
.process-step__num { font-family: var(--font-accent); color: var(--gold); font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1; min-width: 3.2ch; }
.process-step__title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.6rem); color: var(--navy); margin-bottom: .8rem; }
.process-step__body { color: var(--muted); max-width: 44rem; }

/* ============ ABOUT PAGE ============ */
.about-page__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5rem); padding-bottom: clamp(5rem, 10vw, 9rem); align-items: start; }
.about-page__body p { margin: 0 0 1.3rem; }
.about-page__body strong { color: var(--navy); }

/* ============ CHAR-FLIP HOVER (Bogdan-style buttons) ============ */
.ca-char {
  display: inline-block; position: relative; overflow: hidden;
  vertical-align: top;
}
.ca-char > span {
  display: block;
  transition: transform .45s cubic-bezier(.76, 0, .24, 1);
  transition-delay: calc(var(--ci) * 22ms);
}
.ca-char > span:nth-child(2) {
  position: absolute; left: 0; top: 100%; width: 100%;
}
a:hover .ca-char > span, button:hover .ca-char > span {
  transform: translateY(-100%);
}

/* ============ BROWSER FRAME (project screenshots look designed) ============ */
.bframe { display: flex; flex-direction: column; width: 100%; height: 100%; }
.bframe__bar {
  flex: none;
  display: flex; align-items: center; gap: .45rem;
  padding: .55rem .8rem;
  background: var(--navy-soft);
  border-bottom: 1px solid rgba(200,168,107,.25);
}
.work-row__media .bframe__bar { background: var(--navy); }
.bframe__dot { width: .55rem; height: .55rem; border-radius: 50%; background: rgba(200,168,107,.55); }
.bframe__url {
  margin-left: .6rem;
  font-size: .7rem; letter-spacing: .05em; color: var(--gold-light);
  background: rgba(255,255,255,.07);
  padding: .2rem .7rem; border-radius: 1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bframe__body { flex: 1; overflow: hidden; position: relative; }
.bframe__body img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ============ IMAGE REVEAL MASK ============ */
.reveal-mask { will-change: clip-path; }

/* ============ ANIMATION DEFAULTS (safe without JS) ============ */
/* Split-line wrappers clip overflowing glyphs (Caveat descenders, accents).
   Padding expands the clip region; negative margin cancels the layout shift. */
.split-line { padding: .22em .15em .18em; margin: -.22em -.15em -.18em; }
.split-lines, .fade-up { visibility: visible; }
html.js-ready .pre-hide { visibility: hidden; }

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__hamburger-wrap { display: block; justify-self: end; }
  .nav__grid { grid-template-columns: 1fr auto; }
  .nav-float__cta { display: none; }
  .nav-float__grid { display: flex; justify-content: space-between; }
  .pricing__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__copy { grid-column: 1 / -1; }
  .about__media { grid-column: 1 / 2; }
  .about__cta { grid-column: 2 / 3; }
  .testimonial-card { grid-template-columns: 1fr; }
  .testimonial-card__who { text-align: left; }
  .work-row { grid-template-columns: 1fr; }
  .work-row:nth-child(even) .work-row__media { order: 0; }
  .about-page__grid { grid-template-columns: 1fr; }
  .footer__links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero__title { font-size: clamp(3.4rem, 15vw, 6rem); }
  .hero__line { flex-direction: column; align-items: flex-start; }
  /* Stacked mobile layout: portrait back behind the text so "Big!" and the
     intro paragraph stay readable; the front-of-text 3D effect is desktop-only */
  .hero__image { height: 55%; transform: translateX(-40%); z-index: 10; }
  .hero__meta { flex-direction: column; align-items: flex-start; }
  .project-feature__gallery { grid-template-columns: 1fr 1fr; }
  .pf-a { grid-column: 1 / 3; }
  .pf-b { grid-column: 1 / 2; margin-top: 0; }
  .pf-c { grid-column: 2 / 3; margin-top: 0; }
  /* Project images go full width on phone (overrides per-project inline columns) */
  .project-feature__gallery .project-feature__media { grid-column: 1 / -1 !important; margin-top: 0; }
  /* About teaser stacks: text, photo, then button */
  .about__grid { grid-template-columns: 1fr; }
  .about__copy, .about__media, .about__cta { grid-column: 1 / -1; }
  .about__media-inner { max-width: 320px; margin-inline: auto; }
  .form { grid-template-columns: 1fr; }
  .form-note { font-size: .95rem; }
  .footer__links { grid-template-columns: 1fr; }
  .footer__big { font-size: 14vw; }
}

@media (prefers-reduced-motion: reduce) {
  .loading { display: none !important; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============ REVIEW-PASS ADDITIONS (19 Aug 2026) ============ */
/* Keyboard focus visibility to match form inputs */
.btn:focus-visible, .nav__link:focus-visible, .nav__toggle:focus-visible,
.faq__trigger:focus-visible, .nav__cta:focus-visible, .form-submit:focus-visible,
.footer__privacy:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
/* Privacy link: compliant touch target without visual change */
.footer__privacy { display: inline-block; padding: .6rem .25rem; margin: -.6rem -.25rem; }

/* Form success confirmation (replaces form fields after send) */
.form-success { grid-column: 1 / -1; text-align: center; padding: 1.5rem 0; }
.form-success h3 { font-family: var(--font-display); font-size: 2.2rem; color: var(--navy); margin: 0 0 .6rem; }
.form-success p { margin: 0 0 1.5rem; color: var(--text); }

/* ============ BEYOND WEBSITES (apps section) ============ */
.beyond { background: var(--navy); color: var(--cream); padding: clamp(4rem, 8vw, 7rem) 0; overflow: clip; }
.beyond__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.beyond__tag { display: inline-block; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin-bottom: 1.2rem; }
.beyond__title { font-family: var(--font-display); font-size: clamp(2.6rem, 5.5vw, 5rem); line-height: .95; color: var(--cream); margin: 0 0 1.5rem; }
.beyond__title .accent { color: var(--gold); }
.beyond__lede { color: var(--gold-light); max-width: 30rem; margin: 0 0 2.2rem; font-size: 1.08rem; }
.beyond__list { list-style: none; margin: 0; padding: 0; max-width: 30rem; }
.beyond__list li { padding: 1rem 0; border-top: 1px solid rgba(200,168,107,.25); display: flex; gap: 1rem; align-items: baseline; }
.beyond__list li:last-child { border-bottom: 1px solid rgba(200,168,107,.25); }
.beyond__list strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .02em; color: var(--cream); white-space: nowrap; }
.beyond__list span { color: var(--gold-light); font-size: .98rem; }
.beyond__phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.beyond__phone {
  width: clamp(210px, 20vw, 280px); border-radius: 2.4rem;
  border: 10px solid #16233a;
  box-shadow: 0 50px 90px rgba(0,0,0,.6);
  transform: rotate(4deg); overflow: hidden;
}
.beyond__phone img { width: 100%; display: block; filter: saturate(.85) brightness(.96); }
.beyond__caption { color: var(--gold); font-size: .92rem; letter-spacing: .04em; text-align: center; margin: 0; }
@media (max-width: 767px) {
  .beyond__grid { grid-template-columns: 1fr; }
  .beyond__phone { transform: rotate(0); width: min(260px, 70vw); }
}

/* Mobile: hero paragraph gets a scrim so it never fights the portrait */
@media (max-width: 640px) {
  .hero__text {
    background: rgba(247, 244, 238, .82);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    padding: .75rem 1rem; border-radius: .5rem;
  }
  .footer__credits { flex-direction: column; align-items: center; gap: .35rem; text-align: center; }
}
