/* HYB — Hype Your Brand
   Fonts: Manrope (headings, buttons), Inter (body, labels), Space Grotesk (logo), JetBrains Mono (menu)
   Palette: Ink #111111 (header, hero, footer), warm off-white #F7F5F0 + paper #EFEBE3 (content),
            Red #e3101a (buttons and highlights on ink), deep red #b80d1c (links and accents on off-white)
   Layout: ink zones frame light, warm content; one sharp accent.
   Every color below comes from the tokens, which the dark zones redefine. */

:root {
  /* constants */
  --red: #e3101a;        /* buttons and highlights (white text on it) */
  --red-light: #ff4040;  /* links and small accents on ink */
  --red-dark: #b80d1c;   /* button hover */
  --red-deep: #b80d1c;   /* readable red for text on off-white */
  --black: #111111;
  --white: #ffffff;

  /* content zone (default): warm off-white */
  --bg: #f7f5f0;
  --bg-2: #efebe3;
  --line: #e2ddd2;
  --text: #3a3a3a;
  --muted: #6b6b6b;
  --ink: #111111;
  --accent: #b80d1c;
  --link: #b80d1c;
  --field: #ffffff;
  --bar: #ece8df;
  --dot: #cfc8ba;
  --card: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.82));
  --card-line: rgba(17, 17, 17, 0.08);
  --card-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(17, 17, 17, 0.06), 0 18px 36px -18px rgba(17, 17, 17, 0.2);
  --shot-shadow: 0 1px 2px rgba(17, 17, 17, 0.08), 0 12px 24px -8px rgba(17, 17, 17, 0.18), 0 40px 70px -24px rgba(184, 13, 28, 0.28);
  --shot-line: rgba(17, 17, 17, 0.1);
  --edge: rgba(184, 13, 28, 0.45);
  --edge-glow: rgba(227, 16, 26, 0.18);

  --font-logo: "Space Grotesk", "Arial Black", Arial, sans-serif;
  --font-head: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius-sm: 4px;
  --radius-lg: 14px;
}

/* dark zones */
.site-header,
.hero,
.section-dark,
.site-footer,
.page-head,
.cookie-bar {
  --bg: #111111;
  --bg-2: #1a1a1a;
  --line: #2a2a2a;
  --text: #d4d4d4;
  --muted: #9a9a9a;
  --ink: #ffffff;
  --accent: #ff4040;
  --link: #ff4040;
  --field: #1a1a1a;
  --bar: #161616;
  --dot: #3a3a3a;
  --card: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  --card-line: rgba(255, 255, 255, 0.1);
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  --shot-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 12px 24px -6px rgba(0, 0, 0, 0.6), 0 40px 80px -20px rgba(227, 16, 26, 0.3);
  --shot-line: rgba(227, 16, 26, 0.3);
  --edge: rgba(227, 16, 26, 0.7);
  --edge-glow: rgba(227, 16, 26, 0.3);
  color: var(--text);
  background-color: var(--bg);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Film grain over the whole page: gives the flat colors a surface */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.8vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.35; }
p { margin: 0 0 1em; max-width: 64ch; }

a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--red); color: var(--white); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--red);
  color: var(--white);
  padding: 10px 16px;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

/* Glowing edge: a thin line of light where a section starts */
.section-paper,
.section-dark,
.site-footer { position: relative; }
.section-paper::before,
.section-dark::before,
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--edge) 50%, transparent);
  box-shadow: 0 0 24px 2px var(--edge-glow);
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95em 1.6em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.2s, transform 0.2s;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 24px -10px rgba(227, 16, 26, 0.65);
}
.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -10px rgba(227, 16, 26, 0.8);
}
/* btn-dark: solid ink button (dark on light sections) */

.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: var(--white); color: var(--black); }

/* ---------- Header ---------- */
/* The header floats see-through over the hero photo, then turns solid once the page scrolls */
.site-header {
  --header-h: 76px;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
/* Once the page scrolls (or the phone menu opens), the header slims down and turns solid */
.site-header.is-scrolled,
.site-header:has(.nav.is-open) {
  background: rgba(17, 17, 17, 0.97);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
}
.site-header.is-scrolled { --header-h: 62px; }
.site-header:not(.is-scrolled) .logo-mark,
.site-header:not(.is-scrolled) .nav a:not(.nav-cta) { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.site-header .logo-mark { transition: font-size 0.25s ease; }
.site-header.is-scrolled .logo-mark { font-size: 1.4rem; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height 0.25s ease;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  font-family: var(--font-logo);
  line-height: 1;
}
.logo-mark {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--white);
  white-space: nowrap;
}
.logo-mark .br { color: var(--red); letter-spacing: 0; }
.logo-mark .br-l { margin-right: -0.05em; }
.logo-mark .br-r { margin-left: 0.01em; }
/* Shorten the slash in </> to the height of the capitals */
.sl { display: inline-block; margin-right: -0.04em; transform: translateY(-0.07em) scaleY(0.76); }
.logo-word {
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 5px 0 0 2px;
  white-space: nowrap;
}
.logo:hover .logo-mark { color: var(--white); }

.nav { display: flex; align-items: center; gap: 4px; }
/* Code-style menu: links written like file paths */
.nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font: 500 0.95rem var(--font-mono);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.nav-pre { color: var(--red); }
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.nav a[aria-current] { color: var(--white); }
.nav a[aria-current]::after {
  content: "_";
  color: var(--red);
  margin-left: 1px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.nav .nav-cta {
  margin-left: 14px;
  padding: 0.7em 1.1em;
  font: 700 0.92rem var(--font-mono);
  color: var(--white);
  background: var(--red);
}
.nav .nav-cta:hover { background: var(--red-dark); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  color: var(--white);
  font: 700 0.95rem var(--font-mono);
  padding: 8px 14px;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 4px; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin: 18px 0 0; justify-content: center; border-bottom: 0; border-radius: var(--radius-sm); }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--bg);
  color: var(--white);
  padding: calc(76px + clamp(56px, 8vw, 104px)) 0 clamp(72px, 9vw, 120px);
  overflow: hidden;
}
/* Hero photo and its dark overlays sit in a layer that settles in with a slow zoom on load */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 42% at 50% 34%, rgba(0, 0, 0, 0.6), transparent 80%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.78)),
    url("../images/hero.jpg?v=2") center top / cover no-repeat;
  background:
    radial-gradient(ellipse 55% 42% at 50% 34%, rgba(0, 0, 0, 0.6), transparent 80%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.78)),
    image-set(url("../images/hero.webp?v=2") type("image/webp"), url("../images/hero.jpg?v=2") type("image/jpeg")) center top / cover no-repeat;
  transform-origin: 50% 30%;
  animation: hero-zoom 2.6s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes hero-zoom { from { transform: scale(1.08); opacity: 0.6; } to { transform: none; opacity: 1; } }

/* Centered hero: one-line headline, intro, buttons, three selling-point cards */
.hero .wrap { text-align: center; }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 6rem); line-height: 1.02; letter-spacing: -0.01em; }
.hero h1 .line { display: inline-block; }
.hero h1 .line-accent { color: var(--red); }
.hero-lead {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 40ch;
  margin: 0 auto 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero-points {
  list-style: none;
  padding: 0;
  margin: clamp(48px, 7vw, 80px) auto 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  text-align: left;
}
.hero-points li {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}
.hero-points h2 { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em; margin: 0 0 8px; }
.hero-points p { font-size: 1rem; color: var(--text); margin: 0; }
@media (max-width: 760px) { .hero-points { grid-template-columns: 1fr; } }

/* ---------- Aurora background (hero) ----------
   Three soft lights (red, red, gray) slowly drift and blend. Markup: .bg-grid > .bg-glow */
.bg-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-grid::before,
.bg-grid::after,
.bg-glow {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.bg-glow {
  width: min(560px, 90vw);
  height: 400px;
  right: -80px;
  top: -140px;
  background: #c00d16;
  opacity: 0.32;
  animation: aurora-1 16s ease-in-out infinite alternate;
}
.bg-grid::before {
  width: min(440px, 80vw);
  height: 320px;
  right: 22%;
  top: 45%;
  background: #e3101a;
  opacity: 0.14;
  animation: aurora-2 20s ease-in-out infinite alternate;
}
.bg-grid::after {
  width: min(380px, 80vw);
  height: 300px;
  left: -140px;
  bottom: -180px;
  background: #555555;
  opacity: 0.3;
  animation: aurora-3 22s ease-in-out infinite alternate;
}

.hero .bg-grid { opacity: 0.5; }
.hero > .wrap { position: relative; z-index: 1; }
@keyframes aurora-1 { to { transform: translate(-22vw, 120px) scale(1.15); } }
@keyframes aurora-2 { to { transform: translate(14vw, -120px) scale(0.9); } }
@keyframes aurora-3 { to { transform: translate(20vw, -60px) scale(1.2); } }
@media (prefers-reduced-motion: reduce) {
  .bg-grid::before, .bg-grid::after, .bg-glow { animation: none; }
}

/* ---------- Page load motion ----------
   Headline lines appear one by one, then the selling points rise. */
@keyframes rise { from { opacity: 0; transform: translateY(0.45em); } to { opacity: 1; transform: none; } }
@keyframes rise-far { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero h1 .line { animation: rise 0.6s cubic-bezier(.2, .7, .2, 1) both; }
.hero h1 .line:nth-child(1) { animation-delay: 0.1s; }
.hero h1 .line:nth-child(2) { animation-delay: 0.28s; }
.hero h1 .line:nth-child(3) { animation-delay: 0.46s; }
.hero-lead { animation: fade 0.6s ease-out 0.75s both; }
.hero-actions { animation: fade 0.6s ease-out 0.9s both; }
.hero-points { animation: rise-far 0.9s cubic-bezier(.2, .7, .2, 1) 1s both; }

/* ---------- Glass cards ----------
   Translucent panels lit from the top edge. Used for steps, services and the contact aside. */
.steps li,
.service,
.aside-card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.steps li:hover {
  transform: translateY(-6px);
  border-color: rgba(227, 16, 26, 0.5);
  box-shadow: var(--card-shadow), 0 30px 60px -24px rgba(227, 16, 26, 0.45);
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
/* Alternate sections: a paper tint with a faint red light behind the cards */
.section-paper {
  background:
    radial-gradient(ellipse 45% 55% at 18% 70%, rgba(227, 16, 26, 0.07), transparent 70%),
    radial-gradient(ellipse 40% 50% at 90% 10%, rgba(255, 255, 255, 0.7), transparent 70%),
    var(--bg-2);
}
/* Dark photo section (Process): same ink colors as the hero, with a darkened photo behind */
.section-dark {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.86)), url("../images/process-bg.jpg?v=3") center / cover no-repeat, var(--bg);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.86)),
    image-set(url("../images/process-bg.webp?v=3") type("image/webp"), url("../images/process-bg.jpg?v=3") type("image/jpeg")) center / cover no-repeat,
    var(--bg);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
/* Solid step cards here so the connecting line runs behind them, not through the numbers */
.section-dark .steps li { background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)), #151515; }
.section-intro { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-intro p { font-size: 1.22rem; }
/* One-page layout: small label above each section heading; anchors clear the sticky header */
.section-label {
  font: 700 0.8rem var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 12px;
}
section[id] { scroll-margin-top: 76px; }
/* Fade-up on scroll (js/main.js adds .reveal and then .is-visible). No motion for reduced-motion users. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .steps::before { transform: scaleX(1); transition: none; }
}
.aside-card picture { display: block; }
.aside-photo {
  width: calc(100% + 2 * var(--aside-pad, 28px));
  max-width: none;
  height: 170px;
  object-fit: cover;
  margin: calc(-1 * var(--aside-pad, 28px)) calc(-1 * var(--aside-pad, 28px)) 22px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.section-intro .contact-meta { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 0; }

/* What we do — two-column split */

.ticks { list-style: none; padding: 0; margin: 1.25em 0 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 0.55em; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 4px;
  background: var(--accent);
}

/* Process — a real sequence, so it's numbered */
.steps {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.steps li { counter-increment: step; padding: 26px; position: relative; z-index: 1; }
/* A line that links the four steps, drawn left to right when the steps come into view */
.steps::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50px;
  left: 26px;
  right: 26px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red-deep), var(--red));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1) 0.2s;
}
.steps.is-visible::before { transform: scaleX(1); }
@media (max-width: 960px) { .steps::before { display: none; } }
.steps li::before {
  content: counter(step);
  display: block;
  font: 800 3rem/1 var(--font-head);
  color: var(--accent);
  margin-bottom: 14px;
}
.steps h3 { margin-bottom: 0.4em; }
.steps p { font-size: 1.02rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.service {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(24px, 3.2vw, 40px);
  margin-top: clamp(16px, 2vw, 24px);
}
.section-intro + .service { margin-top: 0; }
.service-title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.service .for { color: var(--accent); font-weight: 600; font-size: 1.05rem; }
/* Big outlined red number above each service title */
.service-num {
  display: block;
  font: 700 clamp(2.6rem, 4.6vw, 3.6rem)/1 var(--font-logo);
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}
.service:hover .service-num { color: var(--red); }
/* Each item: a red line icon in a tinted tile, then its title and text */
.service-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; margin-top: 8px; }
.service-cols > div { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-content: start; }
.item-icon {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(227, 16, 26, 0.08);
  fill: none;
  stroke: var(--red);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-cols h3 { font-size: 1rem; margin: 3px 0 4px; }
.service-cols p { font-size: 1.02rem; }
/* Photo items: a photo above each title, used for the Google services */
.photo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.item-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.45);
}
.photo-cols > div .item-photo,
.item-photo.wide { transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s ease; }
.photo-cols > div:hover .item-photo,
.service:hover .item-photo.wide { transform: translateY(-4px); box-shadow: 0 18px 32px -16px rgba(0, 0, 0, 0.5); }
.item-photo.wide { aspect-ratio: 16 / 7; margin: 4px 0 20px; }
.photo-cols h3 { font-size: 1rem; margin: 0 0 4px; }
.photo-cols p { font-size: 1.02rem; }
@media (max-width: 820px) {
  .service { grid-template-columns: 1fr; }
  .service-cols { grid-template-columns: 1fr; }
  .photo-cols { grid-template-columns: 1fr; }
}

/* ---------- Portfolio ---------- */
.projects { display: grid; gap: clamp(72px, 10vw, 128px); }
.project {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.project:nth-child(even) { grid-template-columns: 5fr 7fr; }
.project:nth-child(even) .shot { order: 2; }
.project-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.project-text p { font-size: 1.15rem; }
.project-text .ticks { margin-bottom: 1.5em; }
.project-text .ticks li { font-size: 1.05rem; }
.tag { display: inline-block; font: 700 0.78rem var(--font-body); text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 8px; }
.visit {
  display: inline-block;
  padding: 4px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration-color: var(--red);
}
.visit:hover { color: var(--accent); }
.shot {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bar);
  text-decoration: none;
  border: 1px solid var(--shot-line);
  box-shadow: var(--shot-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shot:hover { box-shadow: var(--shot-shadow), 0 0 0 1px rgba(227, 16, 26, 0.55); }
/* 3D tilt toward the mouse (js/main.js sets --rx / --ry) */
.shot.tilting { transition: transform 0.12s ease-out, box-shadow 0.25s ease; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.shot-bar .url {
  flex: 1;
  margin-left: 10px;
  background: var(--field);
  border-radius: 6px;
  padding: 2px 10px;
  font: 600 0.8rem var(--font-body);
  color: var(--muted);
}
.shot picture { display: block; }
.shot img { width: 100%; height: auto; }
@media (max-width: 860px) {
  .project,
  .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .shot { order: 0; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: 400 1.08rem var(--font-body);
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--field);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
.field input::placeholder,
.field textarea::placeholder { color: #94a3b8; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 16, 26, 0.3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 24px;
}
.form-status[hidden] { display: none; }
.form-status.ok { background: #e7f6ec; color: #14532d; border-left: 5px solid #16a34a; }
.form-status.err { background: #fdecec; color: #7f1d1d; border-left: 5px solid #dc2626; }

.aside-card { padding: 28px; }
.aside-card h3 { margin-bottom: 14px; }
.aside-card ol { padding-left: 1.2em; margin: 0; }
.aside-card li { margin-bottom: 0.6em; }
.aside-card li::marker { color: var(--accent); font-weight: 700; }
.aside-book { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.aside-book p { margin: 0 0 14px; font-weight: 600; color: var(--ink); }
.btn-book { width: 100%; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  --bg: #0b0b0b;
  background: var(--bg);
  color: var(--muted);
  padding: 64px 0 36px;
  font-size: 1rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-top p { margin: 14px 0 0; max-width: 36ch; }
.footer-contact a { color: var(--white); text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-contact a:hover { color: var(--red-light); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-start; }
.footer-nav a { color: var(--white); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--red-light); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-top: 24px;
  font-size: 0.92rem;
}
.footer-bottom p { margin: 0; max-width: none; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-legal a,
.footer-legal button {
  color: var(--muted);
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.footer-legal a:hover,
.footer-legal button:hover { color: var(--white); }

/* ---------- Cookie bar (built by js/main.js) ---------- */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding: 18px 22px;
  background: rgba(17, 17, 17, 0.97);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(227, 16, 26, 0.12);
  font-size: 0.98rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cookie-bar.is-open { opacity: 1; transform: none; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; flex: 1 1 340px; max-width: none; }
.cookie-bar a { color: var(--link); }
.cookie-bar a:hover { color: var(--white); }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-actions .btn { padding: 0.7em 1.4em; font-size: 0.95rem; justify-content: center; }
@media (max-width: 560px) {
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .cookie-actions { flex: 1 1 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* ---------- Privacy policy page ---------- */
.page-head {
  padding: calc(76px + clamp(40px, 6vw, 80px)) 0 clamp(44px, 6vw, 72px);
  background:
    radial-gradient(ellipse 50% 70% at 85% 20%, rgba(227, 16, 26, 0.16), transparent 70%),
    var(--bg);
}
.page-head h1 { margin-bottom: 0.3em; }
.page-head p { margin: 0; color: var(--muted); }
/* Text column sits on the left edge of the page, in line with the heading above */
.legal > * { max-width: 760px; }
.legal h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 2.2em 0 0.6em; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.45em; }
.legal li::marker { color: var(--accent); }
.legal strong { color: var(--ink); }
.legal code { font: 500 0.88em var(--font-mono); background: var(--bg-2); padding: 0.1em 0.35em; border-radius: var(--radius-sm); }
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.link-button:hover { color: var(--ink); }

/* Comfortable tap height for inline email links */
.contact-meta a { display: inline-block; padding: 4px 0; }
