/* ==========================================================
   ivt.studio — main stylesheet
   ----------------------------------------------------------
   Change the brand colours / fonts in :root below.
   ========================================================== */

:root {
  /* surfaces */
  --bg: #0c0908;
  --bg-2: #161110;
  --line: rgba(255, 228, 210, 0.13);
  --text: #f8f1ea;
  --muted: #a8988c;

  /* cool ice palette (used by the moving gradient + accents) */
  /* sunset palette (variable names kept from the first version) */
  --ice-1: #ff6b4a;   /* coral */
  --ice-2: #ffb347;   /* amber */
  --ice-3: #e5378f;   /* magenta */
  --ice-4: #f3e2d6;   /* warm cream (soft text) */
  --ice-5: #8a1f5c;   /* deep plum (depth) */
  --accent: #ff8a5c;

  --display: "Syne", "Montserrat", system-ui, sans-serif;
  --serif: "Gloock", "Georgia", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-px: 0.045em;          /* corner of the square "pixel" dots */
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1440px;
  --ease: cubic-bezier(.2,.7,.1,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ice-2); color: var(--bg); }

/* ---------- language switching ---------- */
html[lang="ro"] [data-lang="en"],
html[lang="en"] [data-lang="ro"] { display: none !important; }

/* ---------- film grain over everything ---------- */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); }
  40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); }
  80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); }
}

/* ---------- the square "pixel" dot from the logo ---------- */
.px {
  display: inline-block;
  width: .2em; height: .2em;
  border-radius: var(--radius-px);
  background: currentColor;
  vertical-align: baseline;
  margin-left: .04em;
}
.px--ice { background: linear-gradient(135deg, var(--ice-1), var(--ice-3)); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.site-header.is-scrolled {
  background: rgba(12, 9, 8,  .6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: .7rem; padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}
.logo img { height: 23px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: .82rem; letter-spacing: .08em; text-transform: lowercase;
  position: relative; padding: .3rem 0; color: var(--muted);
  transition: color .3s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 6px; height: 6px; border-radius: 1.5px;
  background: var(--accent);
  transform: scale(0); transition: transform .3s var(--ease);
}
.nav a[aria-current="page"]::after, .nav a:hover::after { transform: scale(1); }

.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; gap: 2px;
}
.lang-switch button {
  background: none; border: 0; color: var(--muted);
  font: 600 .7rem/1 var(--sans); letter-spacing: .1em;
  padding: .45rem .7rem; border-radius: 999px; cursor: pointer;
  transition: background .3s, color .3s;
}
.lang-switch button.is-active { background: var(--text); color: var(--bg); }

.menu-toggle { display: none; }

/* ---------- buttons: liquid glass in the gradient colours ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 1rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 .9rem/1 var(--sans); letter-spacing: .02em;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 107, 74,  .24), rgba(229, 55, 143,  .16) 50%, rgba(138, 31, 92,  .24));
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  backdrop-filter: blur(16px) saturate(1.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 -1px 1px rgba(255, 255, 255, .12),
    inset 0 0 18px rgba(255, 138, 92,  .18),
    0 12px 32px -12px rgba(138, 31, 92,  .6);
  text-shadow: 0 1px 8px rgba(12, 9, 8,  .35);
  cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s;
  will-change: transform;
}
/* iridescent glass edge */
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, var(--ice-1), var(--ice-3), var(--ice-5), var(--ice-2), var(--ice-1));
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: sheen 6s linear infinite;
  opacity: .9; pointer-events: none;
}
/* light reflection that follows the mouse inside the button */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background:
    radial-gradient(120px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, .45), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 55%);
  opacity: .55; transition: opacity .4s; pointer-events: none;
}
.btn:hover {
  background: linear-gradient(135deg, rgba(255, 107, 74,  .34), rgba(229, 55, 143,  .26) 50%, rgba(138, 31, 92,  .34));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .6),
    inset 0 -1px 1px rgba(255, 255, 255, .15),
    inset 0 0 24px rgba(255, 138, 92,  .28),
    0 16px 40px -10px rgba(255, 107, 74,  .55);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(.97); }
.btn--ghost {
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 14px rgba(255, 138, 92,  .08);
}
.btn--ghost::before { opacity: .45; }
.btn--ghost:hover { background: rgba(255, 138, 92,  .12); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- moving gradient (aurora) ---------- */
.aurora {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
  pointer-events: none;
}
.aurora__blob {
  position: absolute;
  width: 55vmax; height: 55vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  mix-blend-mode: screen;
  will-change: transform;
  transition: transform 1.6s var(--ease);
}

.aurora__blob:nth-child(1) { background: radial-gradient(circle, var(--ice-1) 0%, transparent 65%); top: -20%; left: -10%; }
.aurora__blob:nth-child(2) { background: radial-gradient(circle, var(--ice-3) 0%, transparent 65%); top: 10%; right: -20%; }
.aurora__blob:nth-child(3) { background: radial-gradient(circle, var(--ice-5) 0%, transparent 65%); bottom: -35%; left: 15%; opacity: .7; }
.aurora__blob:nth-child(4) { background: radial-gradient(circle, var(--ice-4) 0%, transparent 60%); top: 30%; left: 35%; width: 35vmax; height: 35vmax; opacity: .3; }
@keyframes drift1 { to { transform: translate(25vw, 20vh) scale(1.2); } }
@keyframes drift2 { to { transform: translate(-30vw, 15vh) scale(.85); } }
@keyframes drift3 { to { transform: translate(20vw, -25vh) scale(1.15); } }
@keyframes drift4 { to { transform: translate(-20vw, -10vh) scale(1.3); } }
.aurora::after { /* fade bottom into page */
  content: ""; position: absolute; inset: auto 0 0 0; height: 35%;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.aurora__blob { display: none; }
/* homepage: one trail behind the whole page */
.aurora--page { position: fixed; inset: 0; z-index: 0; }
.aurora--page::after { display: none; }
.trail-page main > section, .trail-page main > .marquee { position: relative; z-index: 1; background: transparent !important; }
.trail-page .site-footer { background: transparent; }

/* the gradient: a soft ice-coloured trail painted where the mouse moves */
.trail {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  filter: blur(26px) saturate(1.6);
  mix-blend-mode: screen;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7rem var(--pad) 3rem;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; max-width: var(--max); width: 100%; margin: 0 auto; }
.hero__eyebrow {
  font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--ice-4);
  display: flex; align-items: center; gap: .8rem; margin-bottom: 1.5rem;
}
.hero__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.mega {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4.2rem, 15.5vw, 17rem);
  line-height: .86;
  letter-spacing: -.035em;
  margin: 0;
}
.mega .line { display: block; overflow: hidden; padding-bottom: .22em; margin-bottom: -.16em; }
.mega .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.2s var(--ease) forwards; }
.mega .line:nth-child(2) > span { animation-delay: .12s; }
.mega .line:nth-child(3) > span { animation-delay: .24s; }
.mega .line:nth-child(2) { padding-left: clamp(1rem, 12vw, 14rem); }
.mega .line:nth-child(3) { padding-left: clamp(2rem, 24vw, 28rem); }
@keyframes rise { to { transform: translateY(0); } }

.mega--hero { font-size: min(9vw, 9.5rem); }
.mega--hero .line { white-space: nowrap; }
.mega.mega--hero .line:nth-child(2) { padding-left: 0; }
html[lang="ro"] .mega--hero { font-size: min(10vw, 10.5rem); }
.mega--hero .px { margin-right: .05em; }

/* blinking text cursor at the end of the tagline */
.caret {
  display: inline-block;
  width: .055em; height: .78em;
  margin-left: .06em;
  vertical-align: -.02em;
  background: var(--accent);
  border-radius: .01em;
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* initials I V T get the moving gradient fill */
.initial {
  background: linear-gradient(110deg, var(--ice-1), var(--ice-3), var(--ice-2), var(--ice-4), var(--ice-1));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: sheen 8s linear infinite;
}
@keyframes sheen { to { background-position: 300% 0; } }

.hero__bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin-top: 3rem; flex-wrap: wrap;
}
.hero__lead { max-width: 30rem; color: var(--ice-4); font-size: clamp(1rem, 1.2vw, 1.15rem); margin: 0; }
.scroll-cue {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: .7rem;
}
.scroll-cue span { width: 1px; height: 46px; background: linear-gradient(var(--text), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* page hero (inner pages) */
.page-hero { position: relative; padding: 11rem var(--pad) 5rem; overflow: hidden; }
.page-hero .aurora__blob { opacity: .35; }
.page-hero__inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; }
.page-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3.5rem, 11vw, 11rem); line-height: .9; letter-spacing: -.03em; margin: 0;
}
.page-hero p { max-width: 36rem; color: var(--ice-4); font-size: 1.1rem; margin-top: 2rem; }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 1.6rem 0; white-space: nowrap;
  position: relative; z-index: 2; background: var(--bg);
}
.marquee__track { display: inline-flex; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1;
  padding: 0 1.8rem; display: inline-flex; align-items: center; gap: 3.6rem;
}
.marquee__item:nth-child(even) { color: var(--muted); }
.marquee__item .px { width: .22em; height: .22em; border-radius: .05em; background: var(--accent); margin: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(5rem, 11vw, 10rem) var(--pad); position: relative; }
.wrap { max-width: var(--max); margin: 0 auto; }
.label {
  font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 2rem;
}
.label::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 6rem); line-height: .95; letter-spacing: -.025em; margin: 0 0 2rem;
}
.h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.05; margin: 0 0 .8rem; }
.statement {
  font-size: clamp(1.6rem, 3.6vw, 3.2rem); line-height: 1.25; font-weight: 300; letter-spacing: -.01em;
  max-width: 62rem; margin: 0;
}
.statement em { font-family: var(--display); font-style: normal; font-weight: 700; color: var(--accent); }
.statement .word { opacity: .15; transition: opacity .5s; }
.statement .word.on { opacity: 1; }
.muted { color: var(--muted); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.section-head .h2 { margin: 0; }

/* ---------- work cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 2rem); }
.work-card { grid-column: span 6; position: relative; display: block; }
.work-card:nth-child(3n+1) { grid-column: span 7; }
.work-card:nth-child(3n+2) { grid-column: span 5; margin-top: 6rem; }
.work-card:nth-child(3n) { grid-column: 3 / span 8; }
.work-grid--even .work-card { grid-column: span 6 !important; margin-top: 0 !important; }
.work-card__media {
  position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background: var(--bg-2);
}
.work-card__media .ph {
  position: absolute; inset: 0;
  transition: transform 1s var(--ease);
  display: grid; place-items: center;
}
.work-card:hover .work-card__media .ph { transform: scale(1.06); }
.ph__mark {
  font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 6vw, 5.5rem);
  color: rgba(12, 9, 8, .82); letter-spacing: -.03em; mix-blend-mode: multiply;
}
.ph--1 { background: radial-gradient(circle at 30% 30%, var(--ice-1), transparent 55%), radial-gradient(circle at 80% 70%, var(--ice-3), transparent 60%), #b9d5f2; }
.ph--2 { background: radial-gradient(circle at 70% 20%, var(--ice-3), transparent 55%), linear-gradient(160deg, #dbe7f5, #8fa9d9); }
.ph--3 { background: radial-gradient(circle at 20% 80%, var(--ice-5), transparent 55%), radial-gradient(circle at 80% 20%, var(--ice-1), transparent 60%), #a6bde0; }
.ph--4 { background: conic-gradient(from 200deg at 60% 40%, var(--ice-2), var(--ice-3), var(--ice-4), var(--ice-2)); }
.ph--5 { background: radial-gradient(circle at 50% 120%, var(--ice-1), transparent 60%), linear-gradient(200deg, #c9b9ff, #e7eef7); }
.ph--6 { background: radial-gradient(circle at 10% 10%, #ffffff, transparent 50%), linear-gradient(120deg, #7fe3ff, #3f5cff); }
.work-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1.1rem; }
.work-card__title { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; margin: 0; }
.work-card__tags { font-size: .78rem; color: var(--muted); letter-spacing: .06em; }
.work-card__view {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  background: var(--text); color: var(--bg);
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .55rem .9rem; border-radius: 999px;
  opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .4s var(--ease);
}
.work-card:hover .work-card__view { opacity: 1; transform: none; }

.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 3rem; }
.filters button {
  background: none; border: 1px solid var(--line); color: var(--muted);
  font: 500 .85rem/1 var(--sans); padding: .75rem 1.2rem; border-radius: 999px; cursor: pointer;
  transition: all .3s;
}
.filters button:hover { color: var(--text); border-color: var(--text); }
.filters button.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.work-card.is-hidden { display: none; }

/* ---------- services ---------- */
.services-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 5rem 1fr 1.2fr; gap: 2rem; align-items: start;
  padding: 2.4rem 0; border-bottom: 1px solid var(--line);
  position: relative; transition: padding .5s var(--ease);
}
.service-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255, 107, 74, .08), rgba(229, 55, 143, .06), transparent);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.service-row:hover::before { transform: scaleY(1); }
.service-row:hover { padding-left: 1rem; }
.service-row__num { font-size: .8rem; color: var(--muted); letter-spacing: .1em; padding-top: .6rem; }
.service-row p { margin: .4rem 0 0; color: var(--muted); }
.service-row ul { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.service-row li { font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .8rem; color: var(--ice-4); }

.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.package {
  position: relative; border: 1px solid var(--line); border-radius: 20px; padding: 2.2rem;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
  display: flex; flex-direction: column; gap: 1rem; overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s;
}
.package:hover { transform: translateY(-6px); border-color: rgba(255, 138, 92, .4); }
.package--featured { border-color: rgba(255, 138, 92, .45); }
.package--featured::before {
  content: ""; position: absolute; inset: -40% -40% auto auto; width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(255, 107, 74, .25), transparent 60%); filter: blur(30px);
  animation: drift4 12s ease-in-out infinite alternate;
}
.package__badge { align-self: flex-start; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; background: var(--accent); color: var(--bg); padding: .35rem .7rem; border-radius: 999px; font-weight: 600; }
.package__price { font-family: var(--display); font-weight: 700; font-size: 2.8rem; line-height: 1; }
.package__price small { font-family: var(--sans); font-weight: 400; font-size: .85rem; color: var(--muted); display: block; margin-bottom: .4rem; }
.package ul { list-style: none; padding: 0; margin: .5rem 0 1.5rem; display: grid; gap: .7rem; flex: 1; }
.package li { display: flex; gap: .7rem; font-size: .93rem; color: var(--ice-4); }
.package li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .55em; border-radius: 2px; background: var(--accent); }
.package .btn { justify-content: center; position: relative; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.mini-card { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.mini-card p { color: var(--muted); margin: 0; }
.mini-card__num { font-family: var(--display); font-weight: 700; font-size: 3.5rem; line-height: 1; color: var(--ice-2); margin-bottom: 1rem; }

/* process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; position: relative; overflow: hidden; }
.step::before { counter-increment: step; content: "0" counter(step); font-size: .78rem; color: var(--muted); letter-spacing: .1em; }
.step h3 { font-family: var(--display); font-weight: 700; font-size: 1.7rem; margin: 2.5rem 0 .6rem; }
.step p { color: var(--muted); margin: 0; font-size: .93rem; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; position: relative;
  background: radial-gradient(circle at 30% 20%, var(--ice-3), transparent 55%), radial-gradient(circle at 80% 90%, var(--ice-1), transparent 55%), #2a1a17;
  display: grid; place-items: center; position: sticky; top: 7rem;
}
.portrait span { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(12, 9, 8, .75); font-weight: 600; }
.about-copy p { font-size: 1.12rem; color: var(--ice-4); }
.about-copy p.big { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.35; color: var(--text); font-weight: 300; }
.ivt-explain { display: grid; gap: 0; margin: 3rem 0; border-top: 1px solid var(--line); }
.ivt-explain div { display: grid; grid-template-columns: 4rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ivt-explain b { font-family: var(--display); font-size: 3rem; line-height: 1; }
.ivt-explain p { margin: 0; font-size: 1rem !important; }
.ivt-explain strong { display: block; color: var(--text); font-weight: 600; }
.tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.tools span { border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-size: .85rem; color: var(--ice-4); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 6vw, 6rem); }
.form { display: grid; gap: 1.6rem; }
.field { display: grid; gap: .5rem; }
.field label { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--text); font: 300 1.3rem/1.4 var(--sans); padding: .7rem 0;
  transition: border-color .3s; border-radius: 0;
}
.field select option { background: var(--bg-2); }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--ice-4);
  border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1.1rem; cursor: pointer; transition: all .3s;
}
.chips input:checked + label { background: var(--text); color: var(--bg); border-color: var(--text); }
.chips input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: .9rem; color: var(--accent); min-height: 1.4em; margin: 0; }
.contact-info { display: grid; gap: 2.2rem; align-content: start; }
.contact-info .big-link { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 1.9vw, 1.7rem); line-height: 1.1; display: inline-block; border-bottom: 1px solid var(--line); transition: border-color .3s, color .3s; word-break: break-word; }
.contact-info .big-link:hover { border-color: var(--accent); color: var(--accent); }
.contact-info dt { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.contact-info dd { margin: 0; color: var(--ice-4); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(7rem, 14vw, 13rem) var(--pad); border-top: 1px solid var(--line); }
.cta .aurora__blob { opacity: .4; }
.cta .wrap { position: relative; z-index: 2; }
.cta .mega { font-size: clamp(3rem, 10vw, 10rem); margin-bottom: 2.5rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 4rem var(--pad) 2rem; position: relative; z-index: 2; background: var(--bg); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; max-width: var(--max); margin: 0 auto; }
.footer-top img { width: min(340px, 80%); height: auto; }
.footer-top h4 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 1rem; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-top a { color: var(--ice-4); transition: color .3s; }
.footer-top a:hover { color: var(--accent); }
.legal {
  max-width: var(--max); margin: 3.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  font-size: .76rem; color: var(--muted); line-height: 1.7;
}
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none;
  width: 10px; height: 10px; border-radius: 2.5px; background: var(--accent);
  box-shadow: 0 0 0 1px rgba(12, 9, 8,  .35);
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), border-radius .3s;
  display: none; opacity: 0;
}
.cursor.is-on { opacity: 1; }
.cursor.is-big { width: 54px; height: 54px; border-radius: 12px; background: transparent; box-shadow: inset 0 0 0 1px var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .packages, .cards-3 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .portrait { position: relative; top: 0; max-width: 420px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .service-row { grid-template-columns: 3rem 1fr; }
  .service-row > div:last-child { grid-column: 2; }
}
@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 50%;
    align-items: center; cursor: pointer;
  }
  .menu-toggle span { width: 16px; height: 1.5px; background: var(--text); transition: transform .3s; }
  .nav-open .menu-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-open .menu-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    background: rgba(12, 9, 8, .96); backdrop-filter: blur(10px);
    flex-direction: column; justify-content: center; gap: 1.4rem;
    opacity: 0; pointer-events: none; transition: opacity .4s;
  }
  .nav a { font-family: var(--display); font-weight: 700; font-size: 2.6rem; letter-spacing: -.02em; color: var(--text); }
  .nav-open .nav { opacity: 1; pointer-events: auto; }
  .header-right { display: flex; align-items: center; gap: .7rem; }
  .work-card, .work-card:nth-child(n) { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .process { grid-template-columns: 1fr; }
  .mega .line:nth-child(2), .mega .line:nth-child(3) { padding-left: 0; }
  .mega .line:nth-child(2) { padding-left: 8vw; }
  .mega .line:nth-child(3) { padding-left: 16vw; }
  .logo img { height: 19px; }
}
.header-right { display: flex; align-items: center; gap: 1.6rem; }
@media (max-width: 760px) { .header-right { gap: .7rem; } }
/* a blurred header would trap the fixed mobile menu inside it */
.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .mega .line > span { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .statement .word { opacity: 1; }
}

/* Romanian headline is longer ("Tehnologie"), so it runs a bit smaller */


/* ---------- interactive contact form (one question at a time) ---------- */
.convo { position: relative; display: flex; flex-direction: column; gap: 2rem; min-height: 30rem; }
.convo__progress { display: flex; gap: .45rem; }
.convo__progress i {
  width: 34px; height: 7px; border-radius: 2px; background: var(--line);
  transition: background .5s var(--ease), width .5s var(--ease);
}
.convo__progress i.is-done { background: var(--ice-2); }
.convo__progress i.is-current { width: 56px; background: linear-gradient(90deg, var(--ice-1), var(--ice-3)); }
.convo__step { display: none; }
.convo__step.is-active { display: grid; gap: 2rem; align-content: start; animation: stepIn .7s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.convo__q {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.06; letter-spacing: -.02em;
  margin: 0; min-height: 2.15em;
}
.convo__q .caret { height: .8em; }
.convo__input {
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  color: var(--text); font: 300 clamp(1.4rem, 2.4vw, 2rem)/1.35 var(--sans);
  padding: .6rem 0; width: 100%; resize: none; transition: border-color .3s;
}
.convo__input::placeholder { color: rgba(168, 152, 140,  .55); }
.convo__input:focus { outline: none; border-color: var(--accent); }
textarea.convo__input { min-height: 6.5rem; }
.chips--big { gap: .7rem; }
.chips--big label { font-size: 1.05rem; padding: .95rem 1.5rem; }
.chips--big label:hover { border-color: var(--ice-2); color: var(--text); }
.chips--big input:checked + label {
  background: linear-gradient(135deg, rgba(255, 107, 74,  .3), rgba(229, 55, 143,  .25), rgba(138, 31, 92,  .3));
  color: #fff; border-color: rgba(255, 138, 92,  .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}
.consent { display: flex; gap: .8rem; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; text-transform: none; letter-spacing: 0; }
.consent input {
  appearance: none; -webkit-appearance: none; flex: none; margin: .15em 0 0;
  width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--ice-2); cursor: pointer;
  display: grid; place-items: center; transition: background .3s;
}
.consent input::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--bg); transform: scale(0); transition: transform .2s; }
.consent input:checked { background: var(--accent); }
.consent input:checked::after { transform: scale(1); }
.consent input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.convo__error { color: #ffb8c6; font-size: .92rem; min-height: 1.4em; margin: -1rem 0 0; }
.convo__nav { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: auto; }
.convo__back { background: none; border: 0; color: var(--muted); font: 500 .9rem var(--sans); cursor: pointer; padding: .5rem 0; transition: color .3s; }
.convo__back:hover { color: var(--text); }
.convo__back[hidden] { display: none; }
.convo__hint { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.convo__label--send { display: none; }
.convo.is-last .convo__label { display: none; }
.convo.is-last .convo__label--send { display: inline; }
.convo.is-finished .convo__nav, .convo.is-finished .convo__progress { display: none; }
.convo.is-sending .convo__next { opacity: .6; pointer-events: none; }
.convo__dot {
  width: 64px; height: 64px; border-radius: 14px;
  background: linear-gradient(135deg, var(--ice-1), var(--ice-3), var(--ice-5));
  background-size: 200% 200%;
  animation: sheen 4s linear infinite, pop .9s var(--ease);
  box-shadow: 0 20px 60px -15px rgba(255, 107, 74,  .7);
}
@keyframes pop { from { transform: scale(0) rotate(-45deg); } to { transform: none; } }
@media (max-width: 760px) { .convo__hint { display: none; } }

/* ---------- liquid glass card around the form ---------- */
.glass-card {
  position: relative; isolation: isolate;
  border-radius: 32px;
  padding: clamp(1.6rem, 4vw, 3.5rem);
  background: linear-gradient(145deg, rgba(255, 107, 74,  .08), rgba(229, 55, 143,  .05) 45%, rgba(138, 31, 92,  .08));
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -1px 0 rgba(255, 255, 255, .06),
    inset 0 0 60px rgba(255, 138, 92,  .06),
    0 40px 100px -40px rgba(138, 31, 92,  .45);
}
.glass-card::before {           /* iridescent glass frame */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: linear-gradient(120deg, rgba(255, 107, 74,  .9), rgba(229, 55, 143,  .5), rgba(138, 31, 92,  .8), rgba(255, 228, 210,  .4), rgba(255, 107, 74,  .9));
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: sheen 9s linear infinite; pointer-events: none;
}
.glass-card::after {            /* soft top reflection */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 60% at 20% -10%, rgba(255, 255, 255, .12), transparent 55%);
}
.glass-card .convo { min-height: 27rem; }
.convo__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.convo__count { font-size: .78rem; letter-spacing: .15em; color: var(--muted); }
.convo__sub { margin: -1.2rem 0 0; color: var(--muted); font-size: .95rem; }
.convo__input--small { font-size: clamp(1.05rem, 1.6vw, 1.3rem); }

/* budget: amount + currency */
.budget { display: flex; align-items: flex-end; gap: 1rem; max-width: 34rem; }
.budget__amount { flex: 1; -moz-appearance: textfield; }
.budget__amount::-webkit-outer-spin-button, .budget__amount::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.budget.is-off { opacity: .35; pointer-events: none; }
.select-glass { position: relative; flex: none; }
.select-glass select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  font: 500 1.05rem/1 var(--sans); letter-spacing: .06em; color: #fff;
  padding: .95rem 2.8rem .95rem 1.3rem; border-radius: 999px;
  border: 1px solid rgba(255, 138, 92,  .45);
  background: linear-gradient(135deg, rgba(255, 107, 74,  .2), rgba(229, 55, 143,  .14), rgba(138, 31, 92,  .2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.select-glass select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.select-glass select option { background: var(--bg-2); color: var(--text); }
.select-glass::after {
  content: ""; position: absolute; right: 1.2rem; top: 50%; width: 7px; height: 7px;
  border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.consent--soft { font-size: 1rem; color: var(--ice-4); align-items: center; }
.consent--soft input { margin: 0; }

/* contact details in a row under the form */
.contact-info--row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
@media (max-width: 980px) { .contact-info--row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .contact-info--row { grid-template-columns: 1fr; } }

/* package banner on the short form */
.convo__package { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.convo__package[hidden] { display: none; }
.convo__package-pill {
  display: inline-block;
  padding: .6rem 1.1rem; border-radius: 999px; font-size: .9rem; color: var(--ice-4);
  background: linear-gradient(135deg, rgba(255, 107, 74,  .2), rgba(229, 55, 143,  .14), rgba(138, 31, 92,  .2));
  border: 1px solid rgba(255, 138, 92,  .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.convo__package-pill strong { color: #fff; font-weight: 600; margin-left: .2rem; }
.convo__switch { background: none; border: 0; color: var(--muted); font: 500 .85rem var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.convo__switch:hover { color: var(--text); }

/* ---------- project (case study) pages ---------- */
.work-card__media img.ph { width: 100%; height: 100%; object-fit: cover; }
.case-hero { position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; }
.case-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: heroZoom 2.4s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.case-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 9, 8,  .35) 0%, rgba(12, 9, 8,  0) 35%, rgba(12, 9, 8,  .85) 100%); }
.case-hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 4rem; }
.case-back { display: inline-block; font-size: .85rem; color: var(--ice-4); margin-bottom: 1.5rem; transition: color .3s; }
.case-back:hover { color: var(--accent); }
.case-tagline { font-size: clamp(1rem, 1.4vw, 1.25rem); color: var(--ice-4); margin: 1rem 0 0; letter-spacing: .04em; }
.case-intro { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.case-intro .statement { font-size: clamp(1.4rem, 2.6vw, 2.3rem); }
.case-meta { display: grid; gap: 1.6rem; margin: 0; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.case-meta dt { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.case-meta dd { margin: 0; color: var(--ice-4); }
.case-block { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.case-head { display: flex; align-items: baseline; gap: 1.2rem; margin-bottom: 2rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.case-head .h3 { margin: 0; }
.case-num { font-size: .8rem; letter-spacing: .12em; color: var(--accent); }
.case-text { color: var(--ice-4); max-width: 38rem; margin: -0.5rem 0 2rem; font-size: 1.05rem; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.8rem, 1.6vw, 1.5rem); }
.gallery figure, .case-video { margin: 0; border-radius: 16px; overflow: hidden; background: var(--bg-2); }
.gallery .g-full, .case-video { grid-column: 1 / -1; }
.gallery img, .case-video video { width: 100%; height: auto; display: block; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.025); }
.case-next { margin-top: 4rem; display: flex; justify-content: center; }
@media (max-width: 760px) {
  .case-intro { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .case-hero { min-height: 75svh; }
}
.case-hero__shade { background: linear-gradient(180deg, rgba(12, 9, 8,  .45) 0%, rgba(12, 9, 8,  0) 25%, rgba(12, 9, 8,  0) 70%, rgba(12, 9, 8,  .9) 100%); }
.case-hero__inner { padding-bottom: 2rem; }
.case-title { margin-bottom: 3.5rem; }
.case-title .case-tagline { margin-top: 1.2rem; }

/* project parts, swatches, browser frames */
.case-part { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: 1rem; }
.case-part__label { font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.case-part__title { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 9vw, 8rem); line-height: .9; letter-spacing: -.03em; margin: 0; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.swatch { display: grid; gap: .35rem; }
.swatch__chip { aspect-ratio: 1 / 1.1; border-radius: 16px; background: var(--c); border: 1px solid var(--line); margin-bottom: .6rem; }
.swatch b { font-family: var(--display); font-size: 1.4rem; }
.swatch code { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.browser, .scroll-frame { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #1a1412; }
.browser__bar { display: flex; align-items: center; gap: .45rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.browser__bar span { margin-left: .8rem; flex: 1; max-width: 22rem; font-size: .75rem; color: var(--muted); background: rgba(255,255,255,.05); border-radius: 999px; padding: .3rem .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser__view { max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 138, 92, .4) transparent; }
.browser--tall .browser__view, .scroll-frame .browser__view { max-height: 82vh; }
.browser__view img { width: 100%; height: auto; display: block; }
.browser__view:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 760px) { .swatches { grid-template-columns: 1fr 1fr; } .browser__view { max-height: 60vh; } }
.case-next { gap: 1rem; flex-wrap: wrap; }
.stack { display: grid; gap: clamp(1rem, 2vw, 1.8rem); }

/* more gallery layouts: 3/4 columns, videos, horizontal rail */
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery--4 { grid-template-columns: repeat(4, 1fr); }
.vid { margin: 0; border-radius: 16px; overflow: hidden; background: var(--bg-2); }
.vid video { width: 100%; height: auto; display: block; }
.rail {
  display: flex; gap: clamp(.8rem, 1.4vw, 1.2rem);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0 var(--pad) 1.2rem;
  scroll-padding-left: var(--pad);
  scrollbar-width: thin; scrollbar-color: rgba(255, 138, 92, .4) transparent;
  cursor: grab;
}
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging img { pointer-events: none; }
.rail figure { flex: 0 0 clamp(220px, 23vw, 330px); margin: 0; scroll-snap-align: start; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.rail img { width: 100%; height: auto; display: block; user-select: none; }
.rail:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 760px) {
  .gallery--3 { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
  .gallery--4 { grid-template-columns: 1fr 1fr; }
  .rail figure { flex-basis: 68vw; }
}
.work-grid--even .work-card:last-child:nth-child(odd) { grid-column: 4 / span 6 !important; }
@media (max-width: 760px) { .work-grid--even .work-card:last-child:nth-child(odd) { grid-column: 1 / -1 !important; } }
.gallery > .g-half:last-child:nth-child(odd) { grid-column: 1 / -1; }
.poster-notes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.8rem, 1.6vw, 1.5rem); margin-top: 1rem; }
.poster-notes div { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.poster-notes b { font-family: var(--display); font-size: 1.3rem; }
.poster-notes span { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.posters figure { margin: 0; background: none; border-radius: 0; overflow: visible; }
.posters img { border-radius: 14px; width: 100%; height: auto; display: block; transition: transform 1s var(--ease); }
.posters figure:hover img { transform: translateY(-6px); }
.posters figcaption { display: grid; gap: .2rem; padding-top: .9rem; }
.posters figcaption b { font-family: var(--display); font-size: 1.25rem; line-height: 1.15; }
.posters figcaption span { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 760px) { .gallery--3.posters { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.rail--square figure { flex-basis: clamp(240px, 26vw, 380px); }
.page-hero + .case-block { padding-top: 2rem; }

/* portfolio cards made of a fanned stack of 3 pieces (print, social) */
.stack {
  background:
    radial-gradient(60% 70% at 50% 60%, rgba(255, 107, 74,  .14), transparent 70%),
    radial-gradient(40% 50% at 80% 20%, rgba(229, 55, 143,  .12), transparent 70%),
    #171110;
}
.stack__item {
  position: absolute; left: 50%; top: 50%;
  height: 74%; width: auto; max-width: none;
  border-radius: 8px;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .9s var(--ease);
}
.stack__item--1 { transform: translate(-50%, -50%) translateX(-34%) rotate(-9deg) scale(.9); z-index: 1; }
.stack__item--2 { transform: translate(-50%, -50%) translateX(34%) rotate(9deg) scale(.9); z-index: 1; }
.stack__item--3 { transform: translate(-50%, -50%) translateY(2%); z-index: 2; }
.work-card:hover .stack__item--1 { transform: translate(-50%, -50%) translateX(-52%) rotate(-12deg) scale(.9); }
.work-card:hover .stack__item--2 { transform: translate(-50%, -50%) translateX(52%) rotate(12deg) scale(.9); }
.work-card:hover .stack__item--3 { transform: translate(-50%, -50%) translateY(-3%) scale(1.04); }
.work-card:hover .work-card__media .stack { transform: none; }

/* logo page */
.logo-head { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: end; margin-bottom: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.logo-meta { font-size: .85rem; color: var(--muted); margin: 0; letter-spacing: .03em; }
.logo-handle { color: var(--accent); border-bottom: 1px solid rgba(255, 138, 92, .35); }
.logo-handle:hover { border-color: var(--accent); }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.8rem, 1.4vw, 1.2rem); }
.logo-grid--5 { grid-template-columns: repeat(5, 1fr); }
.logo-grid--mc { grid-template-columns: 1fr 1fr; }
.logo-tile { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; position: relative; }
.logo-tile img { width: 100%; height: auto; display: block; transition: transform 1s var(--ease); }
.logo-tile:hover img { transform: scale(1.04); }
.logo-tile figcaption {
  position: absolute; left: .8rem; bottom: .8rem;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 999px;
  background: rgba(12, 9, 8, .72); color: #fff; backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease);
}
.logo-tile:hover figcaption, .logo-tile:focus-within figcaption { opacity: 1; transform: none; }
.logo-tile--big { grid-column: span 2; grid-row: span 2; }
.logo-tile--wide { grid-column: 1 / -1; background: #f3f1ee; display: grid; place-items: center; padding: clamp(1.5rem, 5vw, 4rem); }
.logo-tile--wide img { max-width: 720px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.45); border-radius: 6px; }
@media (hover: none) { .logo-tile figcaption { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .logo-head { grid-template-columns: 1fr; }
  .logo-grid, .logo-grid--5 { grid-template-columns: 1fr 1fr; }
  .logo-grid--5 .logo-tile:last-child { grid-column: 1 / -1; }
}
.logo-tile--tall img { aspect-ratio: 4 / 5; object-fit: cover; }

/* homepage: featured projects */
.featured { display: grid; gap: clamp(4rem, 9vw, 8rem); }
.feat { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feat--flip { grid-template-columns: 5fr 7fr; }
.feat--flip .feat__media { order: 2; }
.feat__media { display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.feat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feat:hover .feat__media img { transform: scale(1.05); }
.feat__num { font-size: .8rem; letter-spacing: .15em; color: var(--accent); }
.feat__title { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 5.5vw, 5rem); line-height: .95; letter-spacing: -.02em; margin: .6rem 0 .8rem; }
.feat__tags { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.4rem; }
.feat__desc { color: var(--ice-4); font-size: 1.05rem; line-height: 1.65; margin: 0 0 2rem; max-width: 30rem; }
@media (max-width: 860px) {
  .feat, .feat--flip { grid-template-columns: 1fr; }
  .feat--flip .feat__media { order: 0; }
}
.feat__media video { width: 100%; height: 100%; object-fit: cover; display: block; background: #161110; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }

/* header aligns with the page content on wide screens */
.site-header {
  padding-left: calc(var(--pad) + max(0px, (100% - 2 * var(--pad) - var(--max)) / 2));
  padding-right: calc(var(--pad) + max(0px, (100% - 2 * var(--pad) - var(--max)) / 2));
}

/* ---------- permanent ambient gradient (slow, soft, behind everything) ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient i {
  position: absolute; border-radius: 50%;
  filter: blur(110px); opacity: .42; mix-blend-mode: screen;
  will-change: transform;
}
.ambient i:nth-child(1) { width: 60vmax; height: 60vmax; left: -18vmax; top: -22vmax;
  background: radial-gradient(circle, var(--ice-5), transparent 65%); animation: amb1 38s ease-in-out infinite alternate; }
.ambient i:nth-child(2) { width: 52vmax; height: 52vmax; right: -20vmax; top: 20vh;
  background: radial-gradient(circle, var(--ice-3), transparent 65%); opacity: .3; animation: amb2 46s ease-in-out infinite alternate; }
.ambient i:nth-child(3) { width: 46vmax; height: 46vmax; left: 20vw; bottom: -26vmax;
  background: radial-gradient(circle, var(--ice-1), transparent 65%); opacity: .24; animation: amb3 54s ease-in-out infinite alternate; }
@keyframes amb1 { to { transform: translate(14vw, 18vh) scale(1.1); } }
@keyframes amb2 { to { transform: translate(-16vw, 10vh) scale(.9); } }
@keyframes amb3 { to { transform: translate(-10vw, -16vh) scale(1.15); } }

/* let it show through every section */
main, .site-footer { position: relative; z-index: 1; }
.site-footer, .marquee { background: transparent; }
section[style*="var(--bg-2)"] { background: transparent !important; }
@media (prefers-reduced-motion: reduce) { .ambient i { animation: none; } }


/* ---------- solid colour band ---------- */
.band {
  position: relative; z-index: 1; overflow: hidden;
  background: linear-gradient(100deg, var(--ice-2) 0%, var(--ice-1) 35%, var(--ice-3) 75%, var(--ice-5) 100%);
  color: #120a08;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  transform: rotate(-2deg) scale(1.04);
  margin: clamp(3rem, 7vw, 6rem) 0;
}
.band::after { /* grain on the band too */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.band__track { display: inline-flex; white-space: nowrap; animation: marquee 26s linear infinite reverse; }
.band__item {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3.2rem, 9vw, 8.5rem); line-height: 1; letter-spacing: -.03em;
  display: inline-flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); padding: 0 clamp(1.5rem, 3vw, 3rem);
}
.band__item .px { width: .2em; height: .2em; background: #120a08; border-radius: .05em; margin: 0; }


/* ---------- typography: Syne headings, Montserrat text, Gloock accents ---------- */
.mega, .page-title, .case-part__title { font-weight: 800; letter-spacing: -.045em; }
.h2, .feat__title, .band__item { font-weight: 800; letter-spacing: -.04em; }
.h3, .work-card__title, .convo__q, .package__price, .logo-head .h2 { font-weight: 700; letter-spacing: -.03em; }
.acc, .statement em {
  font-family: var(--serif); font-weight: 400; font-style: normal;
  letter-spacing: -.01em; color: var(--ice-2);
}
.mega .acc, .h2 .acc { font-size: 1.04em; }
.cta .mega { line-height: .95; }
.page-title { font-size: clamp(3rem, 9.5vw, 9.5rem); }
.mega, .page-title, .h2, .feat__title, .case-part__title { overflow-wrap: break-word; }
@media (max-width: 760px) { .cta .mega { font-size: 11vw; } .h2 { font-size: clamp(2.2rem, 9vw, 3rem); } }

/* WebGL flowing gradient replaces the round blobs */
.ambient__gl { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(30px); transform: scale(1.12); opacity: .85; }
.ambient.has-gl i { display: none; }


/* one continuous background: no full-width divider lines */
.site-header.is-scrolled { border-bottom-color: transparent; }
.marquee { border-top: 0; border-bottom: 0; }
.cta, .site-footer { border-top: 0; }
.legal { border-top: 0; }

/* contact e-mail on a single line */
.contact-info .big-link { font-size: clamp(.95rem, 1.25vw, 1.25rem); white-space: nowrap; word-break: normal; letter-spacing: -.01em; }
.contact-info--row { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
@media (max-width: 980px) { .contact-info--row { grid-template-columns: 1fr 1fr; } .contact-info--row > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .contact-info--row { grid-template-columns: 1fr; } .contact-info .big-link { font-size: min(1.1rem, 4.3vw); } }

/* the square dot replaces the system cursor (mouse/trackpad only; touch screens are unaffected) */
@media (hover: hover) and (pointer: fine) {
  html, body, *, *::before, *::after { cursor: none !important; }
}
.cursor { z-index: 9999; }
