/* Smart Ideas - F004 ref-craft rebuild
   Floor: refs/extracted-home.html + extracted-o-mnie.html
   Satoshi + warm dark #1A0F08 + brand #F26B1D */

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi/Satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi/Satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi/Satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi/Satoshi-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #f26b1d;
  --brand-deep: #d95a10;
  --ink: #1a0f08;
  --ink-soft: #3a2c22;
  --muted: #4e433b;
  --muted-2: #6b5e54;
  --muted-3: #8f8278;
  --stone: #b9ada3;
  --stone-2: #cfc5bc;
  --line: #ece8e4;
  --line-2: #e2dcd6;
  --cream: #fbfaf8;
  --cream-2: #f3efeb;
  --cream-3: #e9e2dc;
  --white: #ffffff;
  --max: 1240px;
  --font: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 24px;
  --radius-lg: 32px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--brand-deep); }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: inherit;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
li, dd, blockquote, figcaption, .hero-lead, .about-hero-lead { text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 14px 0;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 40px; width: auto; display: block; }
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--stone); }
.nav a[aria-current="page"] {
  font-weight: 700;
  border-bottom-color: var(--brand);
}
.nav-cta {
  background: var(--brand) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 12px 22px !important;
  border-radius: var(--radius-pill) !important;
  border: none !important;
  text-decoration: none !important;
}
.nav-cta:hover { background: var(--brand-deep) !important; color: #fff !important; }

.nav-toggle {
  display: none;
  border: 1.5px solid var(--line-2);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding-bottom: 0.5rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 4px; }
  .nav-cta { text-align: center; margin-top: 0.5rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #4a3a2e;
}
.btn-ghost:hover { border-color: var(--brand); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--brand);
  flex-shrink: 0;
}
.eyebrow-muted { color: var(--muted-2); }
.eyebrow-muted::before { background: var(--muted-2); }

.link-arrow {
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  color: var(--brand);
  white-space: nowrap;
}
.link-arrow:hover { color: var(--brand-deep); }

/* Hero */
.hero-band {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 64px;
  align-items: center;
  padding: 88px 0 96px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero h1 {
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--brand); white-space: nowrap; }
.hero-lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--stone-2);
  max-width: 520px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--ink-soft);
}
.hero-meta strong {
  display: block;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hero-meta span {
  display: block;
  font-size: 15px;
  color: var(--stone);
  font-weight: 400;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 460px;
}
.hero-visual-glow {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 72%;
  height: 72%;
  background: var(--brand);
  border-radius: 28px;
}
.hero-visual picture { display: block; width: 100%; height: 100%; }
.hero-visual img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 28px;
}
.hero-badge {
  position: absolute;
  left: -24px;
  bottom: 32px;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 1;
}
.hero-badge strong { font-size: 17px; font-weight: 700; }
.hero-badge span { font-size: 14px; color: var(--muted-2); }

@media (max-width: 640px) {
  .hero { padding: 56px 0 64px; gap: 40px; }
  .hero-visual-glow { right: -12px; bottom: -12px; }
  .hero-badge { left: 12px; bottom: 12px; }
}

/* About page hero */
.about-hero-band {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.about-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: end;
  padding: 88px 0 0;
}
.about-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 88px;
}
.about-hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  letter-spacing: -0.03em;
}
.about-hero-lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--stone-2);
  max-width: 520px;
}
.about-hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--stone);
  max-width: 520px;
}
/* picture is the grid item (display: contents would turn <source> into a grid cell) */
.about-hero-picture { display: block; width: 100%; max-width: 480px; justify-self: center; line-height: 0; }
.about-hero-picture .about-hero-photo { max-width: none; }
.about-hero-photo {
  width: 100%;
  max-width: 480px;
  justify-self: center;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: right top;
  border-radius: 28px 28px 0 0;
}

@media (max-width: 640px) {
  .about-hero { padding-top: 56px; gap: 32px; }
  .about-hero-copy { padding-bottom: 40px; }
}

/* Quote */
.quote-band { padding: 96px 0; }
.quote {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.quote-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
}
.quote blockquote {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.quote figcaption {
  font-size: 15px;
  color: var(--muted-2);
}

/* Sections */
.section { padding: 0 0 112px; }
.section-pad { padding: 112px 0; }
.section-stone { background: var(--cream-2); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-intro {
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 72px;
}

/* Services triad */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.service-card {
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}
.service-card-light {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}
.service-card-dark {
  background: var(--ink);
  color: #fff;
}
.service-card-brand {
  background: var(--brand);
  color: #fff;
}
.service-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
}
.service-card-brand .service-num { color: var(--ink); }
.service-card h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.service-card p { font-size: 17px; line-height: 1.6; }
.service-card-light p { color: var(--muted); }
.service-card-dark p { color: var(--stone-2); }
.service-card-brand p { color: #fff; }

/* Why / reasons */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 64px;
  align-items: center;
}
.why-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.why-copy { display: flex; flex-direction: column; gap: 36px; }
.why-copy h2 {
  font-size: clamp(34px, 4vw, 52px);
  color: var(--ink);
}
.reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px 32px;
}
.reason {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
.reason h3 { font-size: 19px; font-weight: 700; color: var(--ink); }
.reason p { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* Projects */
.project {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: center;
}
.project + .project { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.project-copy { display: flex; flex-direction: column; gap: 20px; }
.project-logo {
  height: 40px;
  width: auto;
  align-self: flex-start;
  mix-blend-mode: multiply;
}
.project-copy h3 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.project-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
}
.project-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
/* Live screenshots: browser window + phone in front */
.project-shot {
  position: relative;
  padding: 0 10% 13% 0;
}
.project-shot figure { margin: 0; }
.shot-browser {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(26, 15, 8, 0.06), 0 32px 64px -24px rgba(26, 15, 8, 0.35);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--cream-2);
  border-bottom: 1px solid var(--line-2);
}
.shot-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cream-3);
}
.shot-bar em {
  flex: 0 1 60%;
  margin: 0 auto;
  padding: 3px 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 12px;
  font-style: normal;
  color: var(--muted-2);
  text-align: center;
  transform: translateX(-14px);
}
.shot-browser img { display: block; width: 100%; height: auto; }
.shot-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 29%;
  aspect-ratio: 480 / 935;
  border: 6px solid var(--ink);
  border-radius: 26px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 28px 48px -16px rgba(26, 15, 8, 0.5);
}
.shot-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Clients - infinite marquee */
.clients {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: none;
}
.clients .eyebrow { margin-bottom: 0; }
.clients-marquee {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients-track {
  display: flex;
  width: max-content;
  gap: 0;
  will-change: transform;
}
.clients-set {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
  flex-shrink: 0;
}
/* Transparent, trimmed marks (logos/*.png) with balanced optical size; width/height come from config. */
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
}
.client-logo img {
  display: block;
  width: auto;
  height: auto;
  max-height: 44px;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.25s var(--ease), opacity 0.25s var(--ease);
}
.client-logo:hover img,
.client-logo:focus-visible img {
  filter: none;
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .clients-track.is-ready {
    animation: clients-marquee 42s linear infinite;
  }
  .clients-marquee:hover .clients-track.is-ready,
  .clients-marquee:focus-within .clients-track.is-ready {
    animation-play-state: paused;
  }
}
@keyframes clients-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* CTA band */
.cta-wrap { padding: 0 0 112px; }
.cta-band {
  background: var(--brand);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 88px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  color: #fff;
}
.cta-band h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 640px;
}
.cta-band p {
  margin-top: 12px;
  font-size: 19px;
  line-height: 1.5;
  color: #fff;
  max-width: 620px;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Skills */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}
.skill {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.skill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* Mini project cards on about */
.mini-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.mini-project {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease);
}
.mini-project:hover { transform: translateY(-2px); color: inherit; }
.mini-project img { height: 28px; width: auto; align-self: flex-start; }
.mini-project img.mini-project-logo-si { height: 30px; }
/* FPV Studio SVG has wide empty margins in its viewBox */
.mini-project img.mini-project-logo-fpv { height: 44px; margin: -8px 0 -6px -10px; }
.mini-project span { font-size: 16px; color: var(--muted); }

/* Hobbies */
/* Fixed columns so 8 tiles always close the grid: 4x2, 2x4, 1x8 */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  overflow: hidden;
}
.hobby {
  background: var(--white);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 72px;
}
.hobby strong { font-size: 19px; font-weight: 700; color: var(--ink); }
.hobby span { font-size: 15px; color: var(--muted-2); }

@media (max-width: 900px) { .hobby-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 340px) { .hobby-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .hobby { padding: 20px; } .hobby strong { font-size: 17px; } }

/* FPV embed */
.fpv-embed {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fpv-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 24px 60px rgba(20, 16, 12, 0.12);
}
.fpv-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.fpv-embed figcaption {
  font-size: 15px;
  color: var(--muted-2);
  text-align: center;
}


/* Five photos: two wide on top, three below (no empty cell) */
.life-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.life-gallery img { grid-column: span 2; }
.life-gallery img:nth-child(-n + 2) { grid-column: span 3; }
@media (max-width: 900px) {
  .life-gallery { grid-template-columns: repeat(2, 1fr); }
  .life-gallery img, .life-gallery img:nth-child(-n + 2) { grid-column: span 1; }
  .life-gallery img:first-child { grid-column: span 2; }
}
.life-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 20px;
}

/* Contact */
.page-hero {
  padding: 72px 0 48px;
}
.page-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  color: var(--ink);
  margin-top: 16px;
}
.page-hero p {
  margin-top: 16px;
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 48px;
  padding-bottom: 112px;
  align-items: start;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.form-row input,
.form-row textarea {
  font: inherit;
  padding: 14px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--brand);
  outline: none;
  background: #fff;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.consent input { margin-top: 3px; }
.form-note { font-size: 14px; color: var(--muted-2); }


/* Legal */
.legal {
  padding: 72px 0 112px;
  max-width: 760px;
}
.legal h1 {
  font-size: clamp(36px, 4vw, 52px);
  color: var(--ink);
  margin: 16px 0 28px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--ink);
}
.legal p, .legal li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 12px;
}
.legal ul { padding-left: 1.2rem; list-style: disc; margin-bottom: 12px; }
.legal strong { color: var(--ink); font-weight: 700; }

/* Footer - slim social */
.site-footer {
  background: var(--ink);
  color: var(--cream-3);
}
.footer-slim {
  padding: 48px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ink-soft);
  color: var(--cream-3);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: var(--brand);
  color: #fff;
  background: rgba(242, 107, 29, 0.12);
}
.footer-bottom {
  padding: 20px 0 32px;
  border-top: 1px solid var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted-3);
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-legal a { color: var(--muted-3); text-decoration: none; }
.footer-legal a:hover { color: var(--brand); }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .reveal.is-in { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 32px, var(--max)); }
  .section, .cta-wrap { padding-bottom: 72px; }
  .section-pad { padding: 72px 0; }
  .quote-band { padding: 64px 0; }
}

/* ===== F008 / F009 additions ===== */

/* Buttons */
.btn-sm { font-size: 15px; padding: 12px 20px; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

/* Local preview only */
.dev-ribbon {
  background: #fff4cc;
  color: #5a4300;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 6px 12px;
}
.todo-slot {
  border: 2px dashed var(--brand);
  background: #fff4ec;
  color: var(--ink);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.5;
}
.todo-slot strong {
  display: inline-block;
  margin-right: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--brand-deep);
}

/* Consent banner */
.footer-link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--muted-3);
  cursor: pointer;
}
.footer-link-btn:hover { color: var(--brand); }

/* Form */
.form-alert {
  background: #fdecea;
  color: #8a1c12;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
}
.field-error { font-size: 14px; color: #b3261e; font-weight: 500; }
.form-row input[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] { border-color: #b3261e; }
.optional { font-weight: 400; color: var(--muted-2); }
.form-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact-side { display: flex; flex-direction: column; gap: 20px; }
.next-steps {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.next-steps h2 { font-size: 28px; }
.next-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 16px; }
.next-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 14px;
}
.next-steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.next-steps li strong { font-size: 17px; }
.next-steps li span { font-size: 15px; color: var(--muted); }

.page-hero-center { text-align: center; padding: 112px 0; display: flex; flex-direction: column; align-items: center; }
.page-hero-center p { margin-inline: auto; }
.page-hero-center .hero-actions { margin-top: 32px; justify-content: center; }

/* YouTube click-to-load */
.fpv-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--ink);
}
.fpv-play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.2s var(--ease); }
.fpv-play:hover img { opacity: 1; }
.fpv-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--brand);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.fpv-play-icon::after {
  content: "";
  margin-left: 6px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
}
.fpv-play-note {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 13px;
  color: #fff;
  background: rgba(26, 15, 8, 0.7);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Services with scope */
.service-list { display: grid; gap: 8px; margin-top: auto; padding-top: 8px; }
.service-list li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.service-card-light .service-list li { color: var(--ink-soft); }
.service-card-dark .service-list li { color: var(--cream-3); }
.service-card-brand .service-list li { color: #fff; }
.service-card-brand .service-list li::before { background: var(--ink); }
.section-foot { margin-top: 32px; display: flex; justify-content: center; }

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step::before {
  content: "0" counter(step);
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
}
.step h3 { font-size: 22px; font-weight: 700; }
.step p { font-size: 16px; color: var(--muted); }
.section-stone .step { border-color: transparent; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 24px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 32px 22px 0;
  font-size: 19px;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 500;
  color: var(--brand);
}
.faq details[open] summary::after { content: "-"; }
.faq details p { padding: 0 0 22px; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* Fit / not fit */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 20px;
}
.fit-card { border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.fit-card h3 { font-size: 24px; font-weight: 700; }
.fit-card p, .fit-card li { font-size: 16px; line-height: 1.6; }
.fit-yes { background: var(--ink); color: #fff; }
.fit-yes p, .fit-yes li { color: var(--cream-3); }
.fit-no { background: var(--white); border: 1px solid var(--line); }
.fit-no p, .fit-no li { color: var(--muted); }

/* Areas (cooperation page) */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px 32px;
}
.area { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--ink); }
.area h3 { font-size: 21px; font-weight: 700; }
.area p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Pricing */
.pricing-head { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; }
.pricing-head p { font-size: 17px; color: var(--muted); }
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; max-width: 560px; } }
.price {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.price-name { font-size: 15px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; }
.price-value { font-size: 40px; font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.price-from { font-size: 20px; font-weight: 700; color: var(--muted-2); letter-spacing: 0; }
.price-value small { font-size: 16px; font-weight: 500; color: var(--muted-2); letter-spacing: 0; }
.price-note { font-size: 16px; line-height: 1.55; color: var(--muted); }
.price-options { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.price-options li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--cream-2);
}
.price-options strong { grid-row: span 2; align-self: center; font-size: 19px; font-weight: 900; }
.price-options span { font-size: 15px; color: var(--muted); }
.price-options em { font-style: normal; font-size: 14px; color: var(--muted-2); }
.price-cta { margin-top: auto; justify-content: center; }
.price-featured { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 30px 60px -30px rgba(26, 15, 8, 0.6); }
.price-featured .price-name, .price-featured .price-from, .price-featured small { color: var(--stone); }
.price-featured .price-value { color: #fff; }
.price-featured .price-options li { background: rgba(255, 255, 255, 0.07); }
.price-featured .price-options span { color: var(--cream-3); }
.price-featured .price-options em { color: var(--stone); }
.btn-ghost-dark { background: transparent; border: 1.5px solid var(--line-2); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--brand); color: var(--ink); }
.pricing-foot { margin-top: 20px; font-size: 15px; color: var(--muted); }
.lead-text { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 760px; }

/* Billing split (cooperation page) */
.billing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 20px;
}
.billing-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.billing-card h3 { font-size: 24px; font-weight: 700; }
.billing-card .service-list { margin-top: 0; }
.billing-card p, .billing-card li { font-size: 16px; line-height: 1.6; color: var(--muted); }
.billing-card .billing-note { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.billing-card-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.billing-card-dark p, .billing-card-dark li { color: var(--cream-3); }
.billing-card-dark .billing-note { color: #fff; border-color: rgba(255, 255, 255, 0.16); }
.pricing-title { font-size: 26px; font-weight: 900; letter-spacing: -0.01em; }

/* Timeline */
.timeline { display: grid; gap: 0; max-width: 880px; }
.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line-2);
}
.timeline li:last-child { border-bottom: 1px solid var(--line-2); }
.timeline-when { font-size: 20px; font-weight: 900; color: var(--brand); }
.timeline h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.timeline p { font-size: 16px; color: var(--muted); line-height: 1.6; }
@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
}

/* Skills with description */
.skill-grid-desc .skill { flex-direction: column; align-items: flex-start; gap: 8px; }
.skill-grid-desc .skill::before { margin-bottom: 4px; }
.skill-grid-desc .skill span { font-size: 15px; font-weight: 400; line-height: 1.55; color: var(--muted); }

.mini-project-brand { font-size: 20px; font-weight: 900; color: var(--ink); }
.section-head-stack { flex-direction: column; align-items: flex-start; gap: 12px; }
.section-head-stack p { font-size: 19px; color: var(--muted); max-width: 640px; }
.stack-gap { display: flex; flex-direction: column; gap: 20px; }
.cta-wrap-top { padding-top: 112px; }
@media (max-width: 480px) { .cta-wrap-top { padding-top: 72px; } }
.about-hero-photo-center { object-position: center 15%; }
.nowrap { white-space: nowrap; }

/* Blog */
.blog-feed-link { margin-top: 20px; font-size: 15px; font-weight: 700; }
.blog-feed-link a { color: var(--ink); text-decoration: none; }
.blog-feed-link a:hover { color: var(--brand); }
.blog-page { padding-bottom: 96px; }
.blog-empty { font-size: 18px; color: var(--muted); max-width: 560px; }
.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
}
.blog-list > li { border-top: 1px solid var(--line-2); }
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 0;
}
.blog-card-cover { display: block; margin: 0 0 8px; }
.blog-card-cover img { width: 100%; margin: 0; border-radius: 16px; }
.blog-card time { font-size: 15px; color: var(--muted-2); }
.blog-card h2, .blog-card h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.blog-card h2 a, .blog-card h3 a { color: var(--ink); text-decoration: none; }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--brand); }
.blog-card p { font-size: 17px; color: var(--muted); max-width: 62ch; }
.blog-card-meta { font-size: 14px !important; color: var(--muted-2) !important; }
/* Home teaser: cards side by side, styled like the light service cards */
.blog-list-grid {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.blog-list-grid > li { border-top: 0; display: flex; }
.blog-list-grid .blog-card {
  flex: 1;
  padding: 0 0 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.blog-list-grid .blog-card:hover { border-color: var(--brand); }
.blog-list-grid .blog-card-cover { margin: 0 0 8px; }
.blog-list-grid .blog-card-cover img { border-radius: 0; }
.blog-list-grid .blog-card > :not(.blog-card-cover) { padding-inline: 24px; }
.blog-list-grid .blog-card h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.blog-list-grid .blog-card p { font-size: 16px; }
.blog-list-grid .blog-card-meta { margin-top: auto; padding-top: 8px; }
@media (max-width: 900px) {
  .blog-list-grid { grid-template-columns: minmax(0, 1fr); }
}
.blog-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  max-width: 760px;
  margin-top: 8px;
  padding-top: 8px;
  font-size: 15px;
  font-weight: 700;
}
.blog-pager a { color: var(--ink); text-decoration: none; }
.blog-pager a:hover { color: var(--brand); }
.blog-pager span:nth-child(2) { color: var(--muted-2); font-weight: 500; }
.blog-pager span:last-child { text-align: right; }
.blog-skipped {
  margin-top: 48px;
  max-width: 760px;
  border: 2px dashed var(--brand);
  background: #fff4ec;
  border-radius: 14px;
  padding: 18px 20px;
}
.blog-skipped h2 { font-size: 16px; font-weight: 700; }
.blog-skipped ul { list-style: none; margin: 10px 0 0; padding: 0; }
.blog-skipped li { font-size: 14px; line-height: 1.5; margin-top: 8px; }
.blog-skipped code { font-size: 13px; }
.blog-back { margin-bottom: 12px; font-size: 15px; font-weight: 700; }
.blog-back a { color: var(--ink); text-decoration: none; }
.blog-back a:hover { color: var(--brand); }
.blog-post-head { padding: 72px 0 8px; max-width: 720px; }
.blog-post-head h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-top: 12px;
}
.blog-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.blog-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--brand);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
}
.blog-meta, .blog-updated {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 15px;
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.blog-tags li {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--cream-2);
  border-radius: 999px;
  padding: 4px 10px;
}
.blog-prose {
  max-width: 720px;
  padding: 28px 0 96px;
  font-size: 18px;
  line-height: 1.7;
}
.blog-prose > :first-child { margin-top: 0; }
.blog-prose p { margin: 0.9em 0; }
.blog-prose h2 { font-size: 28px; margin: 1.6em 0 0.5em; }
.blog-prose h3 { font-size: 22px; margin: 1.4em 0 0.4em; }
.blog-prose ul, .blog-prose ol { margin: 0.8em 0; padding-left: 1.3em; }
.blog-prose ul { list-style: disc; }
.blog-prose ol { list-style: decimal; }
.blog-prose li { margin: 0.25em 0; }
.blog-prose li > ul, .blog-prose li > ol { margin: 0.25em 0; }
.blog-prose blockquote {
  margin: 1.4em 0;
  padding: 0.2em 0 0.2em 1.1em;
  border-left: 3px solid var(--brand);
  color: var(--ink-soft);
}
.blog-prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 2em 0; }
.blog-prose a { overflow-wrap: anywhere; }
.blog-prose img { border-radius: 16px; margin: 1em 0; }
.blog-prose picture { display: block; margin: 1em 0; }
.blog-prose picture img { margin: 0; }
.blog-prose .blog-figure { margin: 1.4em 0 1.6em; }
.blog-prose .blog-figure picture,
.blog-prose .blog-figure img { margin: 0; }
.blog-prose .blog-figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted-2);
}
.blog-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--cream-2);
  padding: 0.1em 0.35em;
  border-radius: 6px;
  overflow-wrap: anywhere; /* a long URL or parameter in running text must not widen the page on a phone */
}
.blog-prose pre {
  background: var(--ink);
  color: var(--cream);
  padding: 18px 20px;
  border-radius: 16px;
  overflow-x: auto;
}
.blog-prose pre code { background: transparent; color: inherit; padding: 0; overflow-wrap: normal; }
/* A wide table scrolls inside its own box instead of widening the page on a phone. */
.blog-prose table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 15px;
}
.blog-prose th, .blog-prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
.blog-prose th {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.blog-prose del { color: var(--muted-2); }
.blog-prose input[type="checkbox"] { margin-right: 0.4em; accent-color: var(--brand); }

/* Contact: booking (Zencal loads on click) */
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
}
.page-hero-actions span { font-size: 15px; color: var(--muted-2); }
.booking-embed {
  margin-bottom: 48px;
  padding: 12px;
  min-height: 640px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.booking-embed[hidden] { display: none; }
