/* =========================================================
   PiNT Studio — style.css
   Colors, type and spacing follow the PiNT Studio Style Guide.
   ========================================================= */

:root {
  --plum: #1b1320;
  --plum-2: #231a29;
  --plum-raised: #2a2030;
  --dusty: #8e7c9a;
  --beige: #ede7dd;
  --paper: #f7f3ec;
  --mustard: #d4b43a;
  --gold: #e6b553;
  --mustard-text: #7a6310;
  --charcoal: #3e3a42;
  --muted-dark: #b9a8c4;
  --muted-light: #5e5566;
  --line-dark: #4a3d54;
  --line-light: #cfc4b5;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --pad-x: clamp(20px, 5.5vw, 80px);
  --section-y: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--plum);
  color: var(--beige);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--mustard); color: var(--plum); }
:focus-visible { outline: 2px solid var(--mustard); outline-offset: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--mustard); color: var(--plum);
  padding: 10px 18px; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.skip:focus { top: 16px; }

/* ---------- film grain over everything (subtle, alive) ---------- */
.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 90;
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  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); }
}

/* ---------- cursor ring (desktop only, follows the pointer exactly, no trail) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
    width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
    border: 1px solid rgba(237, 231, 221, .45); transform: translate3d(-100px, -100px, 0);
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s, border-color .35s;
  }
  .cursor.is-hover { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: rgba(237, 231, 221, .8); background: rgba(237, 231, 221, .06); }
  .cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; border-color: rgba(237, 231, 221, .8); background: rgba(27, 19, 32, .55); backdrop-filter: blur(4px); }
  .cursor.is-view::after {
    content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center;
    font: 500 9px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--beige);
  }
  .cursor.on-light { border-color: rgba(27, 19, 32, .4); }
  .cursor.on-light.is-hover { border-color: rgba(27, 19, 32, .75); background: rgba(27, 19, 32, .05); }
}

/* ---------- shared type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font: 500 11px/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--mustard);
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; transform-origin: left; transform: scaleX(var(--line, 1)); transition: transform 1.2s var(--ease) .2s; }
.light .eyebrow { color: var(--mustard-text); }
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 6vw, 88px); line-height: .98; letter-spacing: -0.02em;
  margin: 22px 0 0;
}
.h2 em { font-style: italic; color: var(--mustard); }
.light .h2 em { color: var(--mustard-text); }
.lead { font-size: clamp(15px, 1.15vw, 16px); line-height: 1.55; color: var(--muted-dark); max-width: 560px; }
.light .lead { color: var(--muted-light); }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 16px;
  padding: 16px 30px; min-height: 48px;
  border: 1px solid var(--mustard); background: transparent; cursor: pointer;
  font: 500 11px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--beige);
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--mustard);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.btn:hover { color: var(--plum); }
.btn:hover::before { transform: scaleY(1); }
.btn .arrow { transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.light .btn { color: var(--plum); border-color: var(--plum); }
.light .btn::before { background: var(--plum); }
.light .btn:hover { color: var(--beige); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px var(--pad-x);
  transition: padding .5s var(--ease), background-color .5s, backdrop-filter .5s, transform .6s var(--ease);
}
.header.is-scrolled { padding-top: 14px; padding-bottom: 14px; background: rgba(27, 19, 32, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header.is-hidden { transform: translateY(-100%); }
.logo img { height: 74px; width: auto; transition: height .5s var(--ease); }
.header.is-scrolled .logo img { height: 52px; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 38px); }
.nav a.link {
  position: relative; padding: 8px 0;
  font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--beige);
}
.nav a.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--mustard);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a.link:hover::after, .nav a.link.is-active::after { transform: scaleX(1); transform-origin: left; }
.lang { display: flex; gap: 6px; font: 500 11px/1 var(--sans); letter-spacing: .16em; color: var(--muted-dark); }
.lang a { padding: 8px 2px; }
.lang a[aria-current] { color: var(--mustard); }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .logo img { height: 56px; }
  .header.is-scrolled .logo img { height: 44px; }
  .menu-btn {
    display: grid; place-items: center; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; z-index: 2;
  }
  .menu-btn span { display: block; width: 26px; height: 1px; background: var(--beige); transition: transform .5s var(--ease); }
  .menu-btn span + span { margin-top: -18px; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 22px;
    background: var(--plum) url("../img/tex-brush-gold.webp") right bottom / 70% auto no-repeat;
    clip-path: circle(0% at calc(100% - 44px) 44px); transition: clip-path .8s var(--ease);
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); }
  .nav a.link { font: 400 40px/1.1 var(--serif); letter-spacing: 0; text-transform: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 150px var(--pad-x) 120px; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../img/hero-bg.webp") 68% center / cover no-repeat;
}
@keyframes breathe { from { scale: 1; } to { scale: 1.07; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(27, 19, 32, .92) 0%, rgba(27, 19, 32, .55) 45%, rgba(27, 19, 32, 0) 75%),
              linear-gradient(0deg, rgba(27, 19, 32, .8) 0%, rgba(27, 19, 32, 0) 30%);
}
.hero__content { width: min(640px, 100%); }
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(54px, 7.2vw, 108px); line-height: .92; letter-spacing: -0.02em;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.14em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); }
.hero h1 em { font-style: italic; color: var(--gold); letter-spacing: -0.015em; }
.is-loaded .hero h1 .line > span { transform: none; }
.is-loaded .hero h1 .line:nth-child(2) > span { transition-delay: .1s; }
.is-loaded .hero h1 .line:nth-child(3) > span { transition-delay: .2s; }
.is-loaded .hero h1 .line:nth-child(4) > span { transition-delay: .3s; }
.hero__services {
  margin: 36px 0 44px; font: 500 11px/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  display: flex; flex-wrap: wrap; gap: 6px 18px;
}
.hero__services span:not(:last-child)::after { content: "/"; margin-left: 18px; color: var(--mustard); }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.is-loaded .hero .fade-up { opacity: 1; transform: none; transition-delay: .6s; }
.is-loaded .hero .fade-up + .fade-up { transition-delay: .75s; }
.hero__marker {
  position: absolute; right: var(--pad-x); bottom: 110px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font: 500 11px/1 var(--sans); letter-spacing: .12em; color: var(--mustard);
}
.hero__marker i { width: 1px; height: 92px; background: var(--mustard); }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line-dark); background: var(--plum);
  padding: 14px 0; white-space: nowrap;
}
.marquee__track { display: inline-flex; gap: 28px; animation: marquee 42s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font: italic 400 clamp(16px, 2vw, 28px)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--dusty); }
.marquee span:nth-child(odd) { color: var(--beige); -webkit-text-stroke: 0; font-style: normal; }
.marquee b { align-self: center; width: 6px; height: 6px; border-radius: 50%; background: var(--mustard); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: var(--section-y) var(--pad-x); overflow: hidden; }
.wrap { max-width: 1320px; margin: 0 auto; position: relative; }
.light { background: var(--beige) url("../img/paper-bg.webp") center / cover; color: var(--plum); }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="scale"] { transform: scale(.94); }
.eyebrow[data-reveal] { --line: 0; }
.eyebrow[data-reveal].is-in { --line: 1; }

/* drifting abstract shapes (parallax on scroll) */
.float {
  position: absolute; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center;
  will-change: transform;
}

/* ---------- services ---------- */
.services__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: 88px; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-light); }
.service {
  position: relative; padding: 48px 40px 56px 0; border-right: 1px solid var(--line-light);
  transition: background-color .6s var(--ease);
}
.service:not(:first-child) { padding-left: 40px; }
.service:last-child { border-right: 0; }
.service__num {
  font: italic 400 110px/1 var(--serif); color: #6b5a78;
  position: relative; display: inline-block;
}
.service h3 { font: 400 clamp(32px, 3vw, 44px)/1.05 var(--serif); margin: 18px 0 16px; }
.service p { color: var(--muted-light); margin: 0 0 26px; max-width: 340px; }
.service ul { list-style: none; padding: 0; margin: 0; }
.service li {
  display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line-light);
  font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transition: padding-left .5s var(--ease), color .4s;
}
.service li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--mustard-text); transition: background-color .4s; }
.service li:hover { padding-left: 8px; color: var(--mustard-text); }
.service li:hover::before { background: var(--mustard-text); }

.cta-strip {
  margin-top: 96px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px;
  padding: 40px 0; background: transparent; color: var(--plum);
  border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
}
.cta-strip p { margin: 0; font: 400 clamp(30px, 3.2vw, 46px)/1.1 var(--serif); }
.cta-strip p em { color: var(--mustard-text); }

/* ---------- about ---------- */
.about {
  background:
    linear-gradient(90deg, rgba(27, 19, 32, .94) 0%, rgba(27, 19, 32, .82) 45%, rgba(27, 19, 32, .55) 100%),
    radial-gradient(ellipse at 85% 20%, rgba(142, 124, 154, .25), transparent 60%),
    var(--plum) url("../img/tex-brush-dark-tile.webp") 0 0 / 460px auto repeat;
}
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 140px); align-items: start; position: relative; z-index: 1; }
.about__text p { color: var(--muted-dark); margin: 0 0 20px; max-width: 540px; }
.about__quote { margin: 40px 0 0; font: italic 400 clamp(26px, 2.6vw, 36px)/1.25 var(--serif); color: var(--beige); padding-left: 28px; border-left: 1px solid var(--mustard); }
.stats { display: flex; gap: 56px; margin-top: 48px; }
.stat b { display: block; font: 400 64px/1 var(--serif); color: var(--gold); }
.stat span { font: 500 11px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark); }
.skills { margin-top: 12px; }
.skills h3 { font: 500 11px/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted-dark); margin: 0 0 20px; }
.skill { padding: 26px 0 18px; border-top: 1px solid var(--line-dark); }
.skill__row { display: flex; justify-content: space-between; align-items: baseline; }
.skill__name { font: 400 30px/1.1 var(--serif); }
.skill__val { font: italic 400 30px/1 var(--serif); color: var(--gold); font-variant-numeric: tabular-nums; }
.skill__bar { position: relative; height: 1px; margin-top: 18px; background: var(--line-dark); }
.skill__bar i { position: absolute; left: 0; top: -1px; height: 3px; width: var(--v); background: linear-gradient(90deg, var(--dusty), var(--mustard)); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease); }
.skill__bar i::after { content: ""; position: absolute; right: -4px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--mustard); box-shadow: 0 0 16px rgba(230, 181, 83, .8); }
.skill.is-in .skill__bar i { transform: scaleX(1); }

/* ---------- team ---------- */
.team__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 240px)); justify-content: start; gap: clamp(28px, 4vw, 64px); margin-top: 72px; }
.member { margin: 0; }
.member:nth-child(2) { margin-top: 40px; }
.member__frame {
  position: relative; aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; overflow: hidden;
  background: var(--plum-raised);
}
.member__frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.04); transition: filter 1s var(--ease), transform 1.2s var(--ease); }
.member__frame::after {
  content: ""; position: absolute; inset: 0; mix-blend-mode: multiply;
  background: linear-gradient(180deg, rgba(142, 124, 154, .45), rgba(27, 19, 32, .35));
  transition: opacity 1s var(--ease);
}
.member:hover .member__frame img { filter: grayscale(0); transform: scale(1); }
.member:hover .member__frame::after { opacity: 0; }
.member__ring {
  position: absolute; inset: -14px -14px auto; aspect-ratio: 3 / 4; border: 1px solid var(--mustard-text);
  border-radius: 999px 999px 0 0; opacity: .5; pointer-events: none; transition: transform 1s var(--ease);
}
.member__wrap { position: relative; }
.member figcaption { margin-top: 26px; }
.member h3 { margin: 0; font: 400 28px/1.1 var(--serif); }
.member p { margin: 6px 0 0; font: 500 11px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mustard-text); }

/* ---------- portfolio ---------- */
.work {
  background:
    linear-gradient(90deg, rgba(27, 19, 32, .78) 0%, rgba(27, 19, 32, .35) 55%, rgba(27, 19, 32, .15) 100%),
    linear-gradient(rgba(91, 62, 110, .5), rgba(91, 62, 110, .5)),
    var(--plum) url("../img/work-bg.webp") center / cover no-repeat;
}
.work__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 72px; position: relative; z-index: 1; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; z-index: 1; }
.work__more { margin-top: 56px; display: flex; justify-content: center; position: relative; z-index: 1; }
.shot {
  position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; cursor: zoom-in;
  overflow: hidden; background: var(--plum-raised); aspect-ratio: 4 / 3;
}
.shot img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s; filter: saturate(.9); }
.shot::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--mustard);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.shot:hover img { transform: scale(1.04); filter: saturate(1.05); }
.shot:hover::after { transform: scaleX(1); }

.lightbox {
  position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 64px 80px;
  background: rgba(20, 14, 24, .96); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 84vh; width: auto; transform: scale(.96); transition: transform .6s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox button {
  position: absolute; width: 56px; height: 56px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line-dark); color: var(--beige); cursor: pointer; transition: border-color .3s, color .3s;
}
.lightbox button:hover { border-color: var(--mustard); color: var(--mustard); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 20px; top: calc(50% - 28px); }
.lb-next { right: 20px; top: calc(50% - 28px); }
.lb-count { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; font: 500 11px/1 var(--sans); letter-spacing: .2em; color: var(--muted-dark); }

/* ---------- contact ---------- */
.contact { background: var(--plum-2); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 7vw, 120px); position: relative; z-index: 1; }
.contact__note { margin-top: 36px; color: var(--muted-dark); }
.contact__note a { color: var(--gold); border-bottom: 1px solid rgba(230, 181, 83, .4); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 28px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font: 500 11px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid var(--dusty); border-radius: 0;
  font-size: 17px; color: var(--beige); transition: border-color .4s;
}
.field select { appearance: none; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23d4b43a'/></svg>") right center no-repeat; cursor: pointer; }
.field select option { background: var(--plum); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mustard); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--mustard); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field .err { display: none; margin-top: 8px; font-size: 13px; color: #f0a8a0; }
.field.is-invalid .err { display: block; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between; }
.form__foot small { color: var(--muted-dark); font-size: 13px; }
.form__status { grid-column: 1 / -1; margin: 0; font: italic 400 26px/1.3 var(--serif); color: #a9cfb4; }
.form__status.is-error { color: #f0a8a0; }

/* ---------- footer ---------- */
.footer { padding: 72px var(--pad-x) 40px; background: var(--plum); border-top: 1px solid var(--line-dark); }
.footer__top { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.footer__top img { height: 86px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 28px; font: 500 11px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.footer__links a { transition: color .3s; }
.footer__links a:hover { color: var(--mustard); }
.footer__bottom { max-width: 1320px; margin: 56px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted-dark); }
.to-top { display: inline-flex; gap: 10px; align-items: center; }
.to-top span { display: inline-block; transition: transform .4s var(--ease); }
.to-top:hover span { transform: translateY(-4px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: 1fr; }
  .service, .service:not(:first-child) { padding: 44px 0; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .services__head, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .services__head { margin-bottom: 56px; }
  .team__grid { grid-template-columns: repeat(2, minmax(0, 200px)); gap: 32px 24px; }
  .member:nth-child(2) { margin-top: 0; }
  .form { grid-template-columns: 1fr; }
  .hero__marker { display: none; }
  .cta-strip { padding: 32px 0; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .stats { gap: 32px; }
  .lightbox { padding: 72px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal], .fade-up, .hero h1 .line > span { opacity: 1 !important; transform: none !important; }
  .skill__bar i { transform: none !important; }
  .cursor, .cursor-dot { display: none !important; }
}

/* ---------- gold thread drawn on scroll ---------- */
.thread { position: absolute; z-index: 0; pointer-events: none; overflow: visible; }
.thread path { fill: none; stroke: var(--mustard); stroke-width: 1.2; stroke-linecap: round; opacity: .75; }
.light .thread path { stroke: var(--mustard-text); opacity: .5; }
@media (max-width: 860px) { .thread { display: none; } }

/* ---------- contact on light paper + compact footer ---------- */
.contact.light { padding-block: clamp(72px, 8vw, 120px); background: linear-gradient(rgba(237, 231, 221, .84), rgba(237, 231, 221, .84)), var(--beige) url("../img/paper-bg.webp") center / cover; color: var(--plum); }
.light .contact__note { color: var(--muted-light); }
.light .field label { color: var(--muted-light); }
.light .field input, .light .field select, .light .field textarea { color: var(--plum); border-bottom-color: var(--muted-light); }
.light .field input::placeholder, .light .field textarea::placeholder { color: #8a8190; }
.light .field select option { background: var(--beige); color: var(--plum); }
.light .field::after { background: var(--mustard-text); }
.light .field input:focus, .light .field select:focus, .light .field textarea:focus { border-color: var(--mustard-text); }
.light .field .err { color: #a33a2e; }
.light .form__foot small { color: var(--muted-light); }
.light .form__status { color: #2f6b45; }
.light .form__status.is-error { color: #a33a2e; }
.light .field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%237a6310'/></svg>"); }
.footer { padding-top: 44px; padding-bottom: 28px; }
.footer__top img { height: 60px; }
.footer__bottom { margin-top: 28px; }

/* ---------- footer: one slim row ---------- */
.footer { padding: 18px var(--pad-x); }
.footer__row { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer__row img { height: 44px; width: auto; }
.footer__copy { font-size: 13px; color: var(--muted-dark); }
@media (max-width: 860px) { .footer__row { justify-content: flex-start; } }

/* ---------- services: calm the gold brush behind the numbers ---------- */
#services.light {
  background:
    linear-gradient(90deg, rgba(237, 231, 221, .9) 0%, rgba(237, 231, 221, .78) 45%, rgba(237, 231, 221, .35) 100%),
    var(--beige) url("../img/paper-bg.webp") center / cover;
}

/* ---------- team: centered ---------- */
#team .wrap { text-align: center; }
#team .eyebrow { justify-content: center; }
#team .eyebrow::after { content: ""; width: 40px; height: 1px; background: currentColor; transform-origin: right; transform: scaleX(var(--line, 1)); transition: transform 1.2s var(--ease) .2s; }
#team .lead { margin-left: auto; margin-right: auto; }
#team .team__grid { justify-content: center; }
.member__ring { inset: -12px; aspect-ratio: auto; }

/* ---------- service icons (replace numbers) ---------- */
.service__icon { display: block; width: 76px; height: 76px; color: #6b5a78; }
.service__icon svg { width: 100%; height: 100%; display: block; }

/* ---------- services head: lead centered on the heading ---------- */
.services__head { align-items: center; margin-top: 22px; }
.services__head .h2 { margin: 0; }
.services__head .lead { margin: 0; }
.services__head { grid-template-columns: auto minmax(0, 700px); justify-content: space-between; gap: 64px; }
.services__head .lead { max-width: 700px; }
@media (max-width: 860px) { .services__head { grid-template-columns: 1fr; gap: 24px; } }
.services__head { align-items: last baseline; }

/* ---------- marquee: seamless loop without gaps ---------- */
.marquee__track { gap: 0; animation-duration: 70s; }
.marquee span, .marquee b { margin-right: 28px; }

/* ---------- numbers in Montserrat Light (clear "1") ---------- */
.stat b { font: 400 52px/1 var(--sans); color: var(--mustard); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.skill__val { font: 500 20px/1 var(--sans); color: var(--mustard); letter-spacing: .02em; font-variant-numeric: lining-nums tabular-nums; }

.stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat b { margin-bottom: 10px; }
.stats { gap: 48px; align-items: flex-start; }
.stat span { line-height: 1.6; }
.stats { gap: clamp(56px, 6vw, 96px); }
@media (max-width: 560px) { .stats { gap: 32px; } }
@media (max-width: 560px) { .stats { gap: 22px; flex-wrap: wrap; } .stat span { letter-spacing: .12em; } .stat b { font-size: 44px; } }

/* ---------- hero trust line ---------- */
.hero__trust { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; font: 500 11px/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--beige); opacity: .85; }
.hero__trust span { width: 32px; height: 1px; background: var(--mustard); }
.is-loaded .hero .hero__trust.fade-up { transition-delay: .1s; opacity: .85; }
.hero__trust a { display: inline-flex; align-items: center; gap: 14px; color: inherit; transition: color .3s; }
.hero__trust a:hover { color: var(--mustard); }
.hero__trust .stars { width: auto; height: auto; background: none; color: var(--mustard); font-size: 12px; letter-spacing: .18em; }

/* ---------- team photos in full colour ---------- */
.member__frame img { filter: none; transform: none; }
.member__frame::after { display: none; }

/* ---------- lightbox for full-page website screenshots (scrollable) ---------- */
.lightbox { display: block; overflow-y: auto; padding: 88px 16px 64px; }
.lightbox img { max-height: none; width: min(1100px, 100%); height: auto; margin: 0 auto; display: block; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.lightbox button { position: fixed; z-index: 2; background: rgba(27, 19, 32, .85); }
.lb-count { position: fixed; bottom: 20px; }
.shot img { object-position: top center; }
.lb-count { left: 50%; right: auto; transform: translateX(-50%); width: auto; padding: 8px 14px; background: rgba(27, 19, 32, .85); z-index: 2; }

/* hero: 16:9 source, 4K file for large / high-DPI screens */
.hero__bg { background-position: 70% center; }
@media (min-width: 1700px), (min-width: 900px) and (min-resolution: 1.5dppx) {
  .hero__bg { background-image: url("../img/hero-bg-4k.webp"); }
}

/* hero: animated scroll mouse (SVG, crisp on every screen) */
.hero__mouse {
  position: absolute; left: calc(50% - 13px); bottom: 34px; z-index: 2;
  display: block; width: 26px; height: 40px; line-height: 0;
  color: var(--mustard);
  opacity: 0; transition: opacity 1s ease 1.2s;
}
.hero__mouse svg { display: block; width: 26px; height: 40px; overflow: visible; }
.is-loaded .hero__mouse { opacity: .9; }
.hero__wheel {
  transform-box: fill-box; transform-origin: center;
  animation: mouse-wheel 1.9s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes mouse-wheel {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(12px); opacity: 0; }
}
.hero__mouse:hover { opacity: 1; }
@media (max-width: 700px), (max-height: 560px) { .hero__mouse { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__wheel { animation: none; opacity: 1; } }

/* marquee: smaller words */
.marquee span { font-size: clamp(13px, 1.5vw, 21px); }
.marquee span, .marquee b { margin-right: 22px; }
.marquee b { width: 5px; height: 5px; }

/* team: one portrait under another on phones */
@media (max-width: 600px) {
  #team .team__grid { grid-template-columns: minmax(0, 260px); justify-content: center; gap: 56px; }
  #team .member:nth-child(2) { margin-top: 0; }
}

/* work: more breathing room between projects */
#work .gallery { gap: clamp(32px, 3.6vw, 56px); }
@media (max-width: 560px) { #work .gallery { gap: 40px; } }

/* language switch: slash centred between DE and EN */
.lang { align-items: center; gap: 4px; }
.lang a { display: inline-block; padding: 8px 2px 8px calc(2px + .16em); line-height: 1; }
.lang span { display: inline-block; line-height: 1; letter-spacing: 0; opacity: .7; }

/* contact form: hidden spam trap */
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* external-link arrow as SVG (iPhone showed the ↗ character as an emoji) */
.arrow--out svg { display: inline-block; width: .8em; height: .8em; vertical-align: -.02em; }

/* touch screens: no hover effects (iPhone keeps them "stuck" after a tap) */
@media (hover: none) {
  .btn:hover { color: var(--beige); }
  .light .btn:hover { color: var(--plum); }
  .btn:hover::before { transform: scaleY(0); }
  .btn:hover .arrow { transform: none; }
  .btn:active { opacity: .75; }
  .shot:hover img { transform: none; filter: saturate(.9); }
  .shot:hover::after { transform: scaleX(0); }
  .to-top:hover span { transform: none; }
}

/* lightbox on phones: arrows in the middle of the screen, over the image edges */
@media (max-width: 560px) {
  .lightbox { padding: 72px 12px 64px; }
  .lb-prev, .lb-next { top: calc(50% - 22px); bottom: auto; width: 44px; height: 44px; border-radius: 50%; background: rgba(27, 19, 32, .72); }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}

/* performance: smoother scrolling */
.grain { display: none; }                         /* animated full-screen blend layer was repainting the whole page */
.header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(27, 19, 32, .94); }
