/*
 * Sliwinski Website — Experience Layer v1.2
 * Custom visual system, motion design and carousel polish.
 */
:root {
  --bg: #06101c;
  --bg-deep: #020811;
  --bg-soft: #0a1726;
  --panel: rgba(13, 27, 43, .72);
  --panel-strong: rgba(9, 21, 35, .94);
  --cream: #f3eee4;
  --cream-2: #e8dfd1;
  --text: #f7f1e8;
  --muted: #aeb9c5;
  --ink: #0e1a28;
  --gold: #c89558;
  --gold-bright: #e5bb7d;
  --gold-pale: #f0d2a6;
  --line: rgba(219, 176, 111, .26);
  --line-white: rgba(255,255,255,.13);
  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 34px 90px rgba(0,0,0,.42);
  --shadow-soft: 0 26px 65px rgba(3, 11, 20, .16);
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
}

html { scrollbar-color: rgba(229,187,125,.52) #050d17; }
body {
  background:
    radial-gradient(circle at 22% 5%, rgba(53, 91, 125, .11), transparent 28%),
    #020811;
  letter-spacing: .002em;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 12000;
  height: 2px;
  background: rgba(255,255,255,.02);
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #8a5b2b, var(--gold-bright), #fff0ca);
  box-shadow: 0 0 18px rgba(229,187,125,.62);
  transform: scaleX(0);
  transform-origin: left center;
}

h1, h2, h3 { text-wrap: balance; }
h2 { letter-spacing: -.048em; }
.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: .22em;
}
.eyebrow::before {
  content: "";
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width .9s cubic-bezier(.16,1,.3,1) .15s;
}
.reveal.is-visible .eyebrow::before,
.page-shell.is-ready .hero__copy .eyebrow::before { width: 36px; }

/* Header */
.site-header {
  height: 92px;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(2,8,17,.82), rgba(2,8,17,.16));
  backdrop-filter: blur(0);
  transition: height .45s cubic-bezier(.16,1,.3,1), background .45s ease, border-color .45s ease, backdrop-filter .45s ease;
}
.site-header.is-scrolled {
  height: 72px;
  border-color: rgba(229,187,125,.12);
  background: rgba(3,10,19,.82);
  backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
}
.site-header__inner { width: min(1580px, calc(100% - 72px)); }
.brand { min-width: 238px; }
.brand-mark {
  filter: drop-shadow(0 7px 16px rgba(198,149,88,.18));
  transition: transform .45s cubic-bezier(.16,1,.3,1), filter .45s ease;
}
.brand:hover .brand-mark { transform: rotate(-7deg) scale(1.08); filter: drop-shadow(0 10px 20px rgba(229,187,125,.34)); }
.brand__text small { color: #bcc4cd; }
.brand__text strong { font-size: 1.18rem; }
.main-nav { gap: clamp(22px, 2.1vw, 42px); }
.main-nav a {
  position: relative;
  padding: 27px 0;
  color: rgba(245,241,232,.78);
  font-size: .69rem;
  letter-spacing: .13em;
  transition: color .25s ease;
}
.main-nav a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-bright);
  opacity: 0;
  transform: translate(-50%, 6px) scale(.2);
  transition: .3s cubic-bezier(.16,1,.3,1);
}
.main-nav a:hover,
.main-nav a.is-active { color: #fff; }
.main-nav a:hover::before,
.main-nav a.is-active::before { opacity: 1; transform: translate(-50%, 0) scale(1); }
.main-nav a::after { display: none; }
.language-switcher__current {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
}
.header-actions .button { border-radius: 999px; }

/* Language + loader, more cinematic */
.language-gate__panel {
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(18,34,51,.91), rgba(4,12,22,.96)),
    radial-gradient(circle at 20% 10%, rgba(229,187,125,.14), transparent 30%);
}
.language-card { overflow: hidden; }
.language-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x,50%) var(--y,50%), rgba(229,187,125,.2), transparent 44%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.language-card:hover::after { opacity: 1; }
.loader { background: #020811; }
.loader__mesh {
  opacity: .6;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 58px, rgba(229,187,125,.055) 59px 60px),
    linear-gradient(120deg, transparent 44%, rgba(229,187,125,.05) 50%, transparent 56%);
  animation: loaderMesh 12s linear infinite;
}
@keyframes loaderMesh { to { transform: rotate(360deg) scale(1.08); } }
.loader__content { transform: translateY(-4vh); }
.loader__line { height: 2px; border-radius: 999px; overflow: visible; }
.loader__line span { box-shadow: 0 0 18px rgba(229,187,125,.75); }

/* Hero */
.hero {
  min-height: max(900px, 100svh);
  padding-top: 92px;
  background:
    radial-gradient(circle at 68% 23%, rgba(62,99,130,.16), transparent 28%),
    linear-gradient(110deg, #030b15 0 37%, rgba(3,11,21,.85) 53%, rgba(3,10,18,.96) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.017) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.017) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to right, #000, transparent 66%);
}
.hero::after { background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .55; }
.hero__lines {
  opacity: .55;
  background:
    radial-gradient(circle at 28% 43%, transparent 0 18%, rgba(229,187,125,.12) 18.08% 18.15%, transparent 18.23% 31%, rgba(229,187,125,.07) 31.08% 31.14%, transparent 31.2%),
    linear-gradient(117deg, transparent 0 45%, rgba(229,187,125,.06) 45.05% 45.12%, transparent 45.17%);
  animation: heroLines 18s ease-in-out infinite alternate;
}
@keyframes heroLines { to { transform: scale(1.06) translate3d(1.5%,-1%,0); opacity: .72; } }
.hero__ambient--one { animation: ambientFloat 10s ease-in-out infinite alternate; }
.hero__ambient--two { animation: ambientFloat 13s ease-in-out infinite alternate-reverse; }
@keyframes ambientFloat { to { transform: translate3d(40px,-28px,0) scale(1.12); } }
.hero__inner {
  width: min(1580px, calc(100% - 76px));
  min-height: calc(max(900px, 100svh) - 92px);
  grid-template-columns: minmax(430px, .8fr) minmax(620px, 1.35fr);
  grid-template-rows: 1fr auto;
  gap: 28px;
}
.hero__copy {
  padding-left: 72px;
  padding-bottom: 30px;
  max-width: 660px;
}
.hero__copy::before {
  content: "";
  position: absolute;
  left: 28px;
  top: -42px;
  bottom: -34px;
  width: 1px;
  background: linear-gradient(transparent, var(--gold-bright) 14%, rgba(229,187,125,.2) 80%, transparent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.25s cubic-bezier(.16,1,.3,1) .25s;
}
.page-shell.is-ready .hero__copy::before { transform: scaleY(1); }
.hero__copy h1 {
  max-width: 700px;
  margin-bottom: 26px;
  font-size: clamp(5rem, 7vw, 8.25rem);
  line-height: .87;
  letter-spacing: -.065em;
}
.hero__copy h1 span,
.hero__copy h1 em {
  clip-path: inset(0 0 100% 0);
  transform: translateY(34px);
  opacity: 0;
  transition: clip-path 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1), opacity .6s ease;
}
.page-shell.is-ready .hero__copy h1 span {
  clip-path: inset(0);
  transform: none;
  opacity: 1;
  transition-delay: .18s;
}
.page-shell.is-ready .hero__copy h1 em {
  clip-path: inset(0);
  transform: none;
  opacity: 1;
  transition-delay: .34s;
}
.hero__lead {
  max-width: 540px;
  color: rgba(235,239,243,.78);
  font-size: 1.03rem;
  line-height: 1.75;
}
.hero__actions { margin-top: 36px; }
.hero__actions .button { border-radius: 12px; }
.hero__scroll-rail { left: 7px; top: 11%; bottom: 29%; }
.hero__scroll-rail span { box-shadow: 0 0 16px rgba(229,187,125,.26); }

.hero-visual {
  inset: 0 -5vw 16% 42%;
  border-radius: 0 0 0 110px;
  overflow: hidden;
  transform: translate3d(calc(var(--hero-x, 0) * 1px), calc(var(--hero-y, 0) * 1px), 0) scale(1.015);
  transition: transform .18s ease-out;
  perspective: none;
  box-shadow: inset 45px 0 80px rgba(3,10,18,.84);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, #030b15 0%, rgba(3,11,21,.88) 10%, rgba(3,11,21,.34) 35%, transparent 58%),
    linear-gradient(0deg, rgba(3,10,18,.72), transparent 35% 72%, rgba(3,10,18,.4));
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.075) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: heroShine 8s cubic-bezier(.16,1,.3,1) 2.5s infinite;
}
@keyframes heroShine { 0%,72% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.hero-visual__image {
  position: absolute;
  inset: -8% -4% -6% -4%;
  width: 108%;
  height: 114%;
  object-fit: cover;
  object-position: 50% 48%;
  filter: saturate(.88) contrast(1.08) brightness(.82);
  transform: scale(1.04);
  animation: cinematicPush 18s ease-in-out infinite alternate;
}
@keyframes cinematicPush { to { transform: scale(1.12) translate3d(-1.8%,1%,0); } }
.hero-visual__veil { position: absolute; inset: 0; z-index: 4; border-left: 1px solid rgba(229,187,125,.12); }
.hero-visual > :not(.hero-visual__image):not(.hero-visual__veil) { display: none; }

.contact-float {
  top: 24%;
  right: 1.8%;
  width: 326px;
  padding: 28px;
  border-color: rgba(229,187,125,.25);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(13,29,46,.78), rgba(5,14,25,.89));
  box-shadow: 0 30px 80px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.07);
  animation: contactFloat 6s ease-in-out infinite;
}
@keyframes contactFloat { 50% { transform: translate3d(0,-8px,0); } }
.contact-float::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(229,187,125,.36), transparent 32%, transparent 68%, rgba(255,255,255,.12));
  opacity: .55;
}
.contact-float a { transition: color .25s ease, transform .25s ease; }
.contact-float a:hover { color: #fff; transform: translateX(4px); }

.hero-cards {
  padding-left: 72px;
  padding-right: 17%;
  transform: translateY(1px);
}
.hero-card {
  min-height: 218px;
  padding: 30px;
  border-color: rgba(255,255,255,.11);
  background:
    radial-gradient(circle at var(--spot-x,50%) var(--spot-y,50%), rgba(229,187,125,.14), transparent 34%),
    linear-gradient(155deg, rgba(18,35,52,.72), rgba(5,15,27,.82));
  overflow: hidden;
  transition: transform .45s cubic-bezier(.16,1,.3,1), border-color .35s ease, background .35s ease, box-shadow .35s ease;
}
.hero-card::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-bright), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.hero-card:hover {
  border-color: rgba(229,187,125,.42);
  background:
    radial-gradient(circle at var(--spot-x,50%) var(--spot-y,50%), rgba(229,187,125,.2), transparent 40%),
    linear-gradient(155deg, rgba(25,46,68,.88), rgba(7,18,31,.92));
  box-shadow: 0 26px 60px rgba(0,0,0,.35);
}
.hero-card:hover::after { transform: scaleX(1); }
.hero-card > b::after { content: "  ↗"; color: var(--gold-bright); }

/* Trust / metrics */
.trust-strip {
  position: relative;
  z-index: 3;
  grid-template-columns: 1.55fr repeat(4, 1fr);
  background:
    linear-gradient(105deg, var(--cream) 0 63%, #091522 63.1% 100%);
  overflow: hidden;
}
.trust-strip::before {
  content: "";
  position: absolute;
  left: 61.5%;
  top: -15%;
  width: 3px;
  height: 135%;
  background: linear-gradient(transparent, var(--gold), transparent);
  transform: rotate(7deg);
  opacity: .55;
}
.trust-strip__intro,
.stat { min-height: 330px; padding-top: 72px; padding-bottom: 72px; }
.stat { position: relative; overflow: hidden; }
.stat::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.stat:hover::before { transform: scaleX(1); }
.stat span { letter-spacing: -.06em; }
.stat strong { letter-spacing: .16em; }

/* Sections */
.section { padding-top: clamp(100px, 10vw, 170px); padding-bottom: clamp(100px, 10vw, 170px); }
.section__head { margin-bottom: 62px; }
.section__head h2 { max-width: 1040px; }
.round-button {
  width: 58px;
  height: 58px;
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.round-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gold);
  transform: scale(0);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  z-index: -1;
}
.round-button:hover { color: #111; }
.round-button:hover::after { transform: scale(1); }

/* Premium services carousel */
.services {
  min-height: 850px;
  background:
    radial-gradient(circle at 86% 7%, rgba(55,93,126,.16), transparent 28%),
    linear-gradient(180deg, #06111e, #071421 72%, #05101b);
}
.services::before {
  width: 720px;
  height: 720px;
  right: -230px;
  top: -290px;
  border-color: rgba(229,187,125,.12);
  box-shadow: 0 0 0 90px rgba(229,187,125,.025), 0 0 0 180px rgba(229,187,125,.014);
  animation: ringDrift 18s ease-in-out infinite alternate;
}
@keyframes ringDrift { to { transform: translate3d(-45px,35px,0) scale(1.06); } }
.service-carousel { position: relative; }
.service-carousel::before,
.service-carousel::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 70px;
  width: 100px;
  pointer-events: none;
}
.service-carousel::before { left: -2px; background: linear-gradient(90deg, #071421, transparent); }
.service-carousel::after { right: -2px; background: linear-gradient(-90deg, #071421, transparent); }
.service-slider {
  display: flex;
  gap: 18px;
  margin-inline: -3vw;
  padding: 18px 8vw 46px;
  overflow-x: auto;
  overflow-y: visible;
  cursor: grab;
  scroll-padding-inline: 8vw;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.service-slider.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.service-slider::-webkit-scrollbar { display: none; }
.service-card {
  flex: 0 0 clamp(320px, 24vw, 390px);
  min-height: 455px;
  padding: 34px;
  border-radius: 24px;
  border-color: rgba(255,255,255,.12);
  background:
    radial-gradient(circle at var(--spot-x,50%) var(--spot-y,50%), rgba(229,187,125,.16), transparent 36%),
    linear-gradient(155deg, rgba(19,38,58,.9), rgba(6,17,30,.94));
  scroll-snap-align: center;
  opacity: .52;
  transform: scale(.91) translateY(14px);
  filter: saturate(.72);
  transition: opacity .55s ease, transform .55s cubic-bezier(.16,1,.3,1), filter .55s ease, border-color .4s ease, box-shadow .4s ease;
}
.service-card::before {
  background: linear-gradient(120deg, transparent 20%, rgba(229,187,125,.1) 50%, transparent 80%);
}
.service-card::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  top: 112px;
  height: 1px;
  background: linear-gradient(90deg, rgba(229,187,125,.55), transparent);
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}
.service-card.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: none;
  border-color: rgba(229,187,125,.48);
  box-shadow: 0 34px 80px rgba(0,0,0,.38), 0 0 0 1px rgba(229,187,125,.08) inset;
}
.service-card.is-active::after { transform: scaleX(1); }
.service-card:hover { transform: scale(.985) translateY(-6px); }
.service-card.is-active:hover { transform: scale(1.018) translateY(-8px); }
.service-card__number {
  top: 26px;
  right: 30px;
  font-size: 4.2rem;
  letter-spacing: -.08em;
  color: rgba(255,255,255,.08);
}
.service-card .icon-chip {
  width: 48px;
  height: 48px;
  margin-bottom: 78px;
  background: rgba(229,187,125,.035);
  box-shadow: 0 0 0 8px rgba(229,187,125,.018);
}
.service-card h3 { max-width: 280px; font-size: clamp(1.75rem, 2.2vw, 2.35rem); }
.service-card p { max-width: 285px; font-size: .94rem; line-height: 1.7; }
.service-card button {
  left: 34px;
  right: 34px;
  bottom: 31px;
  padding-top: 17px;
  transition: color .25s ease;
}
.service-card button:hover { color: #fff; }
.service-carousel__footer {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
  padding-inline: 2px;
}
.service-carousel__status {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 88px;
  color: rgba(255,255,255,.42);
  font-family: var(--serif);
}
.service-carousel__status strong { color: var(--gold-bright); font-size: 2rem; font-weight: 500; }
.service-carousel__progress {
  height: 2px;
  background: rgba(255,255,255,.09);
  overflow: hidden;
}
.service-carousel__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-pale));
  transform: scaleX(calc(1 / 13));
  transform-origin: left;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 0 14px rgba(229,187,125,.5);
}
.service-carousel__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.38);
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.drag-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: var(--gold-bright);
  animation: dragHint 2.4s ease-in-out infinite;
}
@keyframes dragHint { 50% { transform: translateX(5px); } }

/* Story: turn the abstract block into a real cinematic photo treatment */
.story {
  position: relative;
  grid-template-columns: 1fr 1.05fr;
  background:
    radial-gradient(circle at 18% 20%, rgba(198,149,88,.1), transparent 32%),
    var(--cream);
}
.story::before {
  content: "2008";
  position: absolute;
  left: 2%;
  bottom: -4%;
  color: rgba(14,26,40,.035);
  font-family: var(--serif);
  font-size: clamp(10rem, 22vw, 30rem);
  letter-spacing: -.09em;
  pointer-events: none;
}
.story__visual { min-height: 680px; }
.architecture-card {
  inset: 0 5% 0 0;
  border-radius: 36px 120px 36px 36px;
  background:
    linear-gradient(180deg, rgba(4,12,22,.06), rgba(4,12,22,.38)),
    url('../img/office-writing.webp') center / cover no-repeat;
  box-shadow: 0 40px 100px rgba(12,25,37,.22);
}
.architecture-card::before {
  inset: 24px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 26px 100px 26px 26px;
  box-shadow: none;
}
.architecture-card::after {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: auto;
  background:
    linear-gradient(115deg, transparent 28%, rgba(255,255,255,.16) 45%, transparent 62%);
  transform: translateX(-120%);
  animation: storyShine 9s ease-in-out infinite;
}
@keyframes storyShine { 0%,72% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.architecture-card span,
.architecture-card i,
.architecture-card b { display: none; }
.story__badge {
  right: -1%;
  bottom: 10%;
  width: 152px;
  height: 152px;
  border: 1px solid rgba(229,187,125,.28);
  box-shadow: 0 26px 60px rgba(0,0,0,.28);
  animation: badgeFloat 5s ease-in-out infinite;
}
@keyframes badgeFloat { 50% { transform: translateY(-8px) rotate(2deg); } }
.story__copy > p:not(.eyebrow) { font-size: 1.05rem; line-height: 1.85; }
.timeline div {
  position: relative;
  transition: padding-left .35s ease, background .35s ease;
}
.timeline div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .35s ease;
}
.timeline div:hover { padding-left: 22px; background: rgba(198,149,88,.035); }
.timeline div:hover::before { width: 14px; }

/* News */
.news {
  background:
    radial-gradient(circle at 12% 115%, rgba(198,149,88,.13), transparent 35%),
    #071421;
}
.news-grid { gap: 20px; }
.news-feature,
.news-card {
  position: relative;
  border-radius: 26px;
  background:
    radial-gradient(circle at var(--spot-x,50%) var(--spot-y,50%), rgba(229,187,125,.12), transparent 36%),
    linear-gradient(150deg, rgba(22,42,62,.8), rgba(6,16,28,.9));
  transition: transform .45s cubic-bezier(.16,1,.3,1), border-color .35s ease, box-shadow .35s ease;
}
.news-feature:hover,
.news-card:hover { transform: translateY(-10px); border-color: rgba(229,187,125,.42); box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.news-feature__visual {
  background:
    linear-gradient(150deg, rgba(3,11,19,.18), rgba(3,11,19,.74)),
    url('../img/papers-detail.webp') center / cover no-repeat;
}
.news-feature__visual::before { backdrop-filter: blur(7px); background: rgba(5,14,25,.42); }
.news-feature__visual span { position: relative; z-index: 2; text-shadow: 0 18px 40px rgba(0,0,0,.5); }
.news-feature__visual i { z-index: 2; }
.news-card__date { transition: transform .4s cubic-bezier(.16,1,.3,1), background .35s ease; }
.news-card:hover .news-card__date { transform: rotate(-4deg) scale(1.06); background: rgba(198,149,88,.12); }

/* Career */
.career {
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(4,12,22,.96), rgba(7,20,34,.86)),
    url('../img/office-writing.webp') center 35% / cover no-repeat;
}
.career::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -60%;
  width: 700px;
  height: 700px;
  border: 1px solid rgba(229,187,125,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 85px rgba(229,187,125,.025), 0 0 0 170px rgba(229,187,125,.014);
  animation: ringDrift 15s ease-in-out infinite alternate-reverse;
}
.career__job {
  position: relative;
  border-color: rgba(229,187,125,.22);
  background: rgba(7,18,31,.7);
  backdrop-filter: blur(20px) saturate(1.25);
  box-shadow: 0 35px 90px rgba(0,0,0,.32);
}
.career__job::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(229,187,125,.08), transparent 36%);
  pointer-events: none;
}

/* Contact map */
.contact { background: var(--cream); }
.contact-list a,
.contact-list > div { position: relative; transition: padding-left .35s ease, background .35s ease; }
.contact-list a::before,
.contact-list > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform .35s ease;
}
.contact-list a:hover { padding-left: 15px; background: rgba(198,149,88,.04); }
.contact-list a:hover::before { transform: scaleY(1); }
.map-card {
  border-radius: 38px;
  background: linear-gradient(145deg, #d8d5ce, #f1eee7);
  box-shadow: 0 42px 100px rgba(14,27,38,.2);
}
.map-card__grid { animation: mapDrift 22s linear infinite alternate; }
@keyframes mapDrift { to { transform: rotate(-8deg) scale(1.3) translate3d(-4%,3%,0); } }
.map-card__river { animation: riverDrift 10s ease-in-out infinite alternate; }
@keyframes riverDrift { to { transform: rotate(-10deg) translateX(3%); } }
.map-card__pin { animation: pinPulse 2.8s ease-in-out infinite; }
.map-card__pin::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(198,149,88,.4);
  border-radius: 50%;
  animation: pinRing 2.8s ease-out infinite;
}
@keyframes pinPulse { 50% { transform: rotate(-45deg) translate(4px,-4px); } }
@keyframes pinRing { from { transform: scale(.5); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }
.map-card__panel { border-radius: 24px; background: rgba(6,16,29,.88); }

/* Footer */
.site-footer { position: relative; overflow: hidden; }
.site-footer::before {
  content: "SLIWINSKI";
  position: absolute;
  right: -2%;
  top: -45px;
  color: rgba(255,255,255,.018);
  font-family: var(--serif);
  font-size: 11vw;
  letter-spacing: .08em;
  pointer-events: none;
}

/* Dialogs and toast */
.service-dialog,
.legal-dialog {
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 0, rgba(198,149,88,.12), transparent 30%),
    linear-gradient(145deg, #12253a, #050e1a);
}
.service-dialog[open],
.legal-dialog[open] { animation: dialogIn .45s cubic-bezier(.16,1,.3,1); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.site-toast {
  position: fixed;
  z-index: 15000;
  left: 50%;
  bottom: 28px;
  min-width: min(380px, calc(100% - 32px));
  padding: 15px 20px;
  border: 1px solid rgba(229,187,125,.25);
  border-radius: 999px;
  color: #f7f1e8;
  background: rgba(6,17,29,.88);
  box-shadow: 0 22px 55px rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px) scale(.96);
  transition: .4s cubic-bezier(.16,1,.3,1);
}
.site-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%,0) scale(1); }

/* Richer reveal variants. JS adds data-reveal automatically. */
.reveal {
  opacity: 0;
  transform: translateY(44px) scale(.985);
  filter: blur(9px);
  transition:
    opacity .9s cubic-bezier(.16,1,.3,1),
    transform .9s cubic-bezier(.16,1,.3,1),
    filter .8s ease;
}
.reveal[data-reveal="left"] { transform: translateX(-55px); }
.reveal[data-reveal="right"] { transform: translateX(55px); }
.reveal[data-reveal="scale"] { transform: scale(.92); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* cursor */
.cursor-glow {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(229,187,125,.09), rgba(76,121,158,.035) 30%, transparent 68%);
}

@media (max-width: 1380px) {
  .hero__inner { grid-template-columns: minmax(390px,.85fr) minmax(560px,1.25fr); }
  .hero__copy h1 { font-size: clamp(4.7rem, 7vw, 7rem); }
  .hero-cards { padding-right: 12%; }
  .contact-float { width: 300px; }
}

@media (max-width: 1220px) {
  .site-header { height: 80px; }
  .hero { padding-top: 80px; }
  .hero__inner { width: min(100% - 42px, 1180px); min-height: 920px; }
  .hero-visual { inset: 2% -12% 21% 43%; }
  .hero-cards { padding-right: 0; }
  .trust-strip { grid-template-columns: 1.2fr repeat(2,1fr); background: var(--cream); }
  .trust-strip::before { display: none; }
  .stat:last-child { color: var(--ink); }
  .stat:last-child p { color: #6d747d; }
  .service-slider { margin-inline: -5vw; padding-inline: 8vw; }
}

@media (max-width: 980px) {
  .site-header { height: 72px; }
  .main-nav a { padding: 15px; }
  .hero { min-height: auto; padding-top: 72px; }
  .hero__inner { min-height: auto; grid-template-columns: 1fr; padding-bottom: 0; }
  .hero__copy { max-width: 700px; padding: 70px 20px 30px 48px; }
  .hero__copy h1 { font-size: clamp(4.3rem, 11vw, 6.8rem); }
  .hero-visual { position: relative; inset: auto; height: 520px; margin: -80px -80px 0 24%; border-radius: 70px 0 0 70px; }
  .contact-float { top: 48%; right: 1%; }
  .hero-cards { padding: 0 12px 0 48px; }
  .service-card { flex-basis: min(390px, 70vw); }
  .story { grid-template-columns: 1fr; }
  .story__visual { min-height: 560px; }
  .architecture-card { right: 0; }
}

@media (max-width: 720px) {
  body::before { opacity: .03; }
  .site-header__inner { width: calc(100% - 28px); }
  .hero__inner { width: calc(100% - 22px); }
  .hero__copy { padding: 58px 10px 20px 14px; }
  .hero__copy::before { display: none; }
  .hero__copy h1 { font-size: clamp(3.7rem, 17vw, 5.2rem); line-height: .89; }
  .hero-visual { height: 360px; margin: 0 -85px -12px 5%; border-radius: 46px 0 0 46px; }
  .hero-visual::before { background: linear-gradient(90deg, #030b15 0%, rgba(3,11,21,.48) 35%, transparent 70%), linear-gradient(0deg, rgba(3,10,18,.68), transparent 50%); }
  .contact-float { position: relative; top: auto; right: auto; width: 100%; margin-top: 0; animation: none; }
  .hero-cards { padding: 0; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .service-slider { margin-inline: -22px; padding: 12px 9vw 42px; }
  .service-card { flex-basis: 82vw; min-height: 430px; }
  .service-carousel::before,
  .service-carousel::after { width: 30px; }
  .service-carousel__footer { grid-template-columns: auto 1fr; }
  .service-carousel__hint { display: none; }
  .story__visual { min-height: 430px; }
  .architecture-card { border-radius: 28px 70px 28px 28px; }
  .story__badge { width: 116px; height: 116px; }
  .news-feature { grid-template-columns: 1fr; }
  .news-feature__visual { min-height: 320px; }
  .site-toast { bottom: 16px; }
}

@media (max-width: 460px) {
  .hero__copy h1 { font-size: 3.55rem; }
  .hero__lead { font-size: .92rem; }
  .hero-visual { height: 300px; margin-right: -110px; }
  .trust-strip { grid-template-columns: 1fr; }
  .service-card { flex-basis: 88vw; padding: 28px; }
  .service-card button { left: 28px; right: 28px; }
  .service-card::after { left: 28px; right: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__lines,
  .hero__ambient,
  .hero-visual__image,
  .hero-visual::after,
  .contact-float,
  .services::before,
  .story__badge,
  .architecture-card::after,
  .career::after,
  .map-card__grid,
  .map-card__river,
  .map-card__pin,
  .drag-icon { animation: none !important; }
  .hero__copy h1 span,
  .hero__copy h1 em { clip-path: none; opacity: 1; transform: none; }
}

.ui-ripple {
  position: absolute;
  z-index: 5;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,.48);
  pointer-events: none;
  transform: translate(-50%,-50%) scale(0);
  animation: uiRipple .65s ease-out forwards;
}
@keyframes uiRipple { to { opacity: 0; transform: translate(-50%,-50%) scale(12); } }

@media (max-width: 720px) {
  .site-header__inner { gap: 8px; }
  .site-header .brand { flex: 1 1 auto; min-width: 0; }
  .site-header .brand__text { min-width: 0; }
  .site-header .brand__text small { letter-spacing: .19em; }
  .site-header .brand__text strong { font-size: 1rem; letter-spacing: .1em; }
  .site-header .header-actions { flex: 0 0 auto; margin-left: 0; }
  .site-header .menu-toggle { flex: 0 0 44px; }
}
