/* ---------------------------------------------------------------
   Fonts — self-hosted variable fonts (one file covers every weight).
   latin-ext carries Slovenian č, š, ž.
--------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../assets/fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../assets/fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------
   Sitesio — design tokens (white theme in the logo's black and grey)
--------------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-elevated-2: #f4f5f7;
  --border: rgba(10, 12, 16, 0.08);
  --border-strong: rgba(10, 12, 16, 0.15);

  --ink: #0a0b0d;
  --text: #0a0b0d;
  --text-muted: #555b65;
  --text-faint: #8b919b;

  /* The accent is the logo's black. */
  --accent: #0a0b0d;
  --accent-strong: #3a3e46;
  --accent-soft: rgba(10, 11, 13, 0.05);
  --accent-soft-border: rgba(10, 11, 13, 0.2);
  --on-accent: #ffffff;
  --brand-grey: #9a9a9a;
  --brand-grey-deep: #5c6068;

  --font-heading: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1120px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-md: 0 1px 2px rgba(10, 12, 16, 0.04), 0 12px 32px rgba(10, 12, 16, 0.07);
  --shadow-lg: 0 2px 6px rgba(10, 12, 16, 0.04), 0 28px 64px rgba(10, 12, 16, 0.12);

  --header-bg: rgba(255, 255, 255, 0.8);
  --nav-sheet-bg: rgba(255, 255, 255, 0.98);
  --grid-line: rgba(10, 12, 16, 0.065);
  --glow-2: rgba(10, 11, 13, 0.035);
  --glass: rgba(255, 255, 255, 0.75);
  --band-tint: #f6f7f8;
  --mock-line: rgba(10, 12, 16, 0.12);
  --mock-line-soft: rgba(10, 12, 16, 0.1);
  --mock-line-faint: rgba(10, 12, 16, 0.07);
  --mock-image: linear-gradient(135deg, #e3e5e8, #a7a9ad 55%, #5c6068);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-accent {
  color: var(--accent);
}

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------------------------------------------------------------
   Buttons
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  white-space: nowrap;
}

/* Primary buttons are logo-black and lift to charcoal on hover. */
.btn-primary {
  background: var(--ink);
  color: var(--on-accent);
  box-shadow: 0 8px 22px rgba(10, 12, 16, 0.18);
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(10, 11, 13, 0.22);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ---------------------------------------------------------------
   Header / nav
--------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

/* The blur lives on a pseudo-element: backdrop-filter on the header itself would make it
   the containing block for the fixed mobile nav, trapping the menu inside it on iOS Safari. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--header-bg);
  transition: background 0.35s var(--ease);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

/* Over the dark contact section and footer the header turns dark too (main.js toggles it). */
.site-header.is-dark {
  --header-bg: rgba(10, 11, 13, 0.82);
  --nav-sheet-bg: rgba(10, 11, 13, 0.98);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --ink: #ffffff;
  --text: #f3f4f6;
  --text-muted: #a2a7af;
  --accent: #ffffff;
  --on-accent: #0a0b0d;
  color-scheme: dark;
}

.site-header,
.site-header .logo,
.scroll-progress,
.nav-toggle span {
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease), background 0.35s var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Sitesio wordmark: an inline SVG (see the <symbol> in index.html) drawn in currentColor. */
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.logo svg {
  display: block;
  height: 18px;
  width: auto;
}

.logo-small svg {
  height: 15px;
}

/* Nav and language switch sit together on the right. */
.main-nav {
  margin-left: auto;
}

.lang-switch {
  display: flex;
  gap: 2px;
  margin-left: 1.5rem;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}

/* On wide screens the switch moves out to the window's right edge, past the content column. */
@media (min-width: 1320px) {
  .lang-switch {
    position: absolute;
    right: 1.75rem;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
  }
}

.lang-switch button {
  padding: 0.32rem 0.62rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.lang-switch button:hover {
  color: var(--text);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--on-accent);
}

.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.main-nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text) !important;
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  padding: clamp(4rem, 7vw, 7rem) 0 clamp(5rem, 8vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(1050px 760px at 68% 48%, #000 0%, transparent 74%);
  -webkit-mask-image: radial-gradient(1050px 760px at 68% 48%, #000 0%, transparent 74%);
}

.hero-glow {
  position: absolute;
  inset: -25% -15% auto -15%;
  height: 820px;
  background: radial-gradient(620px 420px at 22% 12%, var(--accent-soft), transparent 70%),
    radial-gradient(520px 360px at 78% 8%, var(--glow-2), transparent 72%);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  to {
    transform: translate3d(-2.5%, 1.5%, 0) scale(1.06);
  }
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  width: 100%;
}

/* Staggered entrance */
[data-hero-step] {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn 0.95s var(--ease) forwards;
}

[data-hero-step="1"] {
  animation-delay: 0.05s;
}
[data-hero-step="2"] {
  animation-delay: 0.16s;
}
[data-hero-step="3"] {
  animation-delay: 0.28s;
}
[data-hero-step="4"] {
  animation-delay: 0.4s;
}
[data-hero-step="5"] {
  animation-delay: 0.52s;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.95rem 0.45rem 0.75rem;
  margin: 0 0 1.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35d07f;
  flex-shrink: 0;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #35d07f;
  opacity: 0.6;
  animation: pulseRing 2.4s ease-out infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.7);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.hero-title {
  font-size: clamp(2.55rem, 1.5rem + 4.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 1.6rem;
  text-wrap: balance;
}

.hero-title .text-accent {
  display: block;
  background: linear-gradient(100deg, var(--brand-grey-deep) 10%, var(--brand-grey) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  font-size: clamp(1.02rem, 0.96rem + 0.32vw, 1.16rem);
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

.hero-tagline strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  max-width: 34rem;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* 3D laptop + phone. The poster (a still render of the scene) is the default and the
   fallback; js/hero3d.js crossfades to the live canvas on the visitor's first interaction. */
.hero-showcase {
  position: relative;
}

/* Wider than its column so the devices never clip at the canvas edge as they swing. */
.hero-3d {
  position: relative;
  aspect-ratio: 5 / 4;
  width: 128%;
  margin-left: -14%;
  pointer-events: none;
}

.hero-3d-poster,
.hero-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.7s var(--ease);
}

.hero-3d-poster {
  animation: posterFloat 6s ease-in-out infinite;
}

@keyframes posterFloat {
  50% {
    transform: translateY(-6px);
  }
}

.hero-3d-canvas {
  opacity: 0;
}

.hero-showcase.is-live .hero-3d-canvas {
  opacity: 1;
}

.hero-showcase.is-live .hero-3d-poster {
  opacity: 0;
}

/* The sites shown on the devices, as links; the one on screen is filled black. */
.hero-sites {
  position: relative;
  z-index: 1;
  margin-top: 0.5rem;
  text-align: center;
}

.hero-sites-label {
  margin-bottom: 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero-sites-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.hero-sites-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--glass);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.hero-sites-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.4s var(--ease);
}

.hero-sites-list a:hover {
  border-color: var(--ink);
  color: var(--text);
}

.hero-sites-list a.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.hero-sites-list a.is-active::before {
  background: #35d07f;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: 22px;
  height: 46px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero-scroll-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(var(--text-faint), transparent);
  animation: scrollCue 2.2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollCue {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.35;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ---------------------------------------------------------------
   Reveal-on-scroll
--------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Split headings (see initSplitHeadings): each word rises out of its own mask. The padding
   keeps descenders inside the mask. */
[data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

[data-split] .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.95s var(--ease);
  transition-delay: calc(var(--i) * 60ms + 0.08s);
}

.is-visible [data-split] .w > span {
  transform: none;
}

/* ---------------------------------------------------------------
   About
--------------------------------------------------------------- */
.about {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about-copy h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.3rem);
  margin-bottom: 1.25rem;
}

.about-copy p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-visual {
  position: relative;
}

.site-mock {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.site-mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated-2);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red {
  background: #ff5f57;
}

.dot-yellow {
  background: #febc2e;
}

.dot-green {
  background: #28c840;
}

.site-mock-url {
  margin-left: 0.75rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}

.site-mock-body {
  padding: 1.75rem;
}

.site-mock-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.site-mock-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  margin-right: auto;
}

.site-mock-navline {
  width: 28px;
  height: 6px;
  border-radius: 999px;
  background: var(--mock-line-soft);
}

.site-mock-navbtn {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
}

.site-mock-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-mock-hero-text {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-mock-line {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--mock-line);
}

.line-lg {
  width: 100%;
}

.line-lg.accent {
  width: 70%;
  background: var(--accent);
  opacity: 0.85;
}

.line-sm {
  width: 55%;
  height: 8px;
  background: var(--mock-line-faint);
  margin-bottom: 0.25rem;
}

.site-mock-cta {
  display: inline-block;
  margin-top: 0.5rem;
  align-self: flex-start;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.site-mock-hero-image {
  flex: 0.9;
  align-self: stretch;
  border-radius: var(--radius-md);
  background: var(--mock-image);
}

.site-mock-float {
  position: absolute;
  right: 1.25rem;
  bottom: -1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.site-mock-float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------
   Projects — a horizontal gallery
--------------------------------------------------------------- */
/* By default (phones, short screens, reduced motion) the track is a native swipe carousel.
   On larger screens main.js adds .is-pinned: the section then holds still while the page
   scrolls, and the vertical scroll moves the track sideways. */
.projects {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, var(--band-tint) 50%, transparent);
}

.projects-pin {
  padding: 6rem 0 5rem;
}

.projects-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vh, 3rem);
}

.projects-head h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.projects-head .section-sub {
  max-width: 34rem;
}

.projects-count {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.projects-count span {
  color: var(--text);
}

/* Lines the first card up with the page's content column. */
.projects {
  --gutter: max(1.5rem, calc((100vw - var(--container)) / 2 + 1.5rem));
}

.projects-viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.projects-viewport::-webkit-scrollbar {
  display: none;
}

.project-track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  width: max-content;
  padding: 0.75rem var(--gutter) 1.5rem;
}

.project-card,
.project-next {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: min(84vw, 560px);
}

.project-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(10, 12, 16, 0.03);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-soft-border);
  box-shadow: var(--shadow-lg);
}

/* The top of each card: the site's screenshot in black and white under a dark tint, so it
   sits in the page's palette, with the project's one-word label and a small Sitesio mark
   set in white on a dark fade along the bottom, clear of the screenshot's own headline. The card the gallery is on (.is-current, set by main.js) and a
   hovered card bring the screenshot back to full colour. */
.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.7rem;
  padding: clamp(1.1rem, 4cqi, 1.75rem);
  background: var(--ink);
  color: #fff;
}

.project-shot {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(1) contrast(1.05) brightness(0.62);
  transform: scale(1.04);
  transition: filter 0.9s var(--ease), transform 1.2s var(--ease);
}

/* The fade the label sits on, plus the page's faint grid on top. */
.project-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 11, 13, 0) 22%, rgba(10, 11, 13, 0.72) 60%, rgba(10, 11, 13, 0.96) 100%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 32px 32px;
  transition: opacity 0.9s var(--ease);
}

.project-card.is-current .project-shot {
  filter: grayscale(0) contrast(1) brightness(0.72);
  transform: scale(1);
}

.project-word {
  font-family: var(--font-heading);
  /* Sized to the card (see container-type on .project-card), so long words always fit. */
  font-size: clamp(1.9rem, 10cqi, 3.7rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  text-shadow: 0 2px 30px rgba(10, 11, 13, 0.35);
  transition: transform 0.6s var(--ease), letter-spacing 0.6s var(--ease);
}

.project-mark {
  display: block;
  height: 12px;
  width: auto;
  color: rgba(255, 255, 255, 0.72);
}

.project-hint {
  position: absolute;
  right: 0.85rem;
  top: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(10, 11, 13, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.project-hint svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease);
}

@media (hover: hover) {
  .project-card:hover .project-shot {
    filter: grayscale(0) contrast(1) brightness(0.8);
    transform: scale(1.06);
  }

  .project-card:hover .project-word {
    transform: translateY(-3px);
    letter-spacing: -0.03em;
  }

  .project-card:hover .project-hint {
    background: #fff;
    color: var(--ink);
  }

  .project-card:hover .project-hint svg {
    transform: translate(2px, -2px);
  }
}

.project-body {
  padding: 1.5rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.project-body h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.project-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 0.5rem;
  width: fit-content;
}

.project-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.project-link:hover svg,
.project-next:hover .project-next-btn svg {
  transform: translate(2px, -2px);
}

/* The last card: an invitation to get in touch. */
.project-next {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.project-next::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px 320px at 85% 0%, rgba(255, 255, 255, 0.12), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 48px 48px;
}

.project-next:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(10, 11, 13, 0.3);
}

.project-next-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-grey);
}

.project-next-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.project-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.project-next-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}

.projects-progress {
  position: relative;
  height: 2px;
  margin-top: clamp(1.25rem, 3vh, 2rem);
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}

.projects-progress span {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

/* Pinned: the section is made taller by main.js and its content sticks under the header. */
.projects.is-pinned .projects-pin {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 0;
}

/* Flex items would otherwise shrink the centred containers to their content. */
.projects-pin > .container {
  width: 100%;
}

.projects.is-pinned .projects-viewport {
  flex-shrink: 0;
  overflow: hidden;
  scroll-snap-type: none;
}

.projects.is-pinned .project-track {
  will-change: transform;
}

/* Cards size to the screen height too, so the pinned view always fits. */
.projects.is-pinned .project-card,
.projects.is-pinned .project-next {
  width: clamp(300px, min(40vw, (100vh - 560px) * 1.6), 600px);
}

/* ---------------------------------------------------------------
   Process
--------------------------------------------------------------- */
.process {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.process-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.process-intro {
  position: sticky;
  top: 130px;
}

.process-intro h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem);
  margin-bottom: 1rem;
}

.process-track {
  position: relative;
}

/* The rail runs through the centres of the step numbers. */
.process-rail {
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  margin-left: -1px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.process-rail-fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: top;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 7vw, 5rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.process-num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-faint);
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease),
    transform 0.45s var(--ease);
}

.process-step h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  margin: 0.85rem 0 0.6rem;
  color: var(--text-faint);
  transition: color 0.45s var(--ease);
}

.process-step p {
  color: var(--text-muted);
  max-width: 28rem;
  opacity: 0.55;
  transition: opacity 0.45s var(--ease);
}

.process-step.is-active .process-num {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: scale(1.06);
}

.process-step.is-active h3 {
  color: var(--text);
}

.process-step.is-active p {
  opacity: 1;
}

/* ---------------------------------------------------------------
   Skills
--------------------------------------------------------------- */
.skills {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.skill-card:hover {
  border-color: var(--accent-soft-border);
  transform: translateY(-3px);
}

/* Each icon is a two-sided coin: it spins in once when the grid appears, and flips on hover. */
.skill-icon {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  perspective: 320px;
}

.skill-coin {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.75s var(--ease);
}

.skill-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.skill-face--front {
  background: var(--accent-soft);
  color: var(--accent);
}

.skill-face--back {
  background: var(--accent);
  color: var(--on-accent);
  transform: rotateY(180deg);
  box-shadow: 0 8px 22px rgba(10, 11, 13, 0.22);
}

.skill-face svg {
  width: 22px;
  height: 22px;
}

/* fill-mode "backwards" (not "both") so the finished spin releases the transform to :hover. */
.skills-grid.is-visible .skill-coin {
  animation: coinSpin 1.2s var(--ease) backwards;
}

.skills-grid.is-visible .skill-card:nth-child(1) .skill-coin {
  animation-delay: 0.25s;
}
.skills-grid.is-visible .skill-card:nth-child(2) .skill-coin {
  animation-delay: 0.37s;
}
.skills-grid.is-visible .skill-card:nth-child(3) .skill-coin {
  animation-delay: 0.49s;
}
.skills-grid.is-visible .skill-card:nth-child(4) .skill-coin {
  animation-delay: 0.61s;
}

@keyframes coinSpin {
  from {
    transform: rotateY(-360deg);
  }
  to {
    transform: rotateY(0deg);
  }
}

@media (hover: hover) {
  .skill-card:hover .skill-coin {
    transform: rotateY(180deg);
  }

  .skill-card:hover {
    box-shadow: var(--shadow-md);
  }
}

.skill-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.skill-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------------------------------------------------------------
   Contact
--------------------------------------------------------------- */
.contact,
.site-footer {
  --bg: #0a0b0d;
  --bg-elevated: #121317;
  --bg-elevated-2: #18191d;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --ink: #ffffff;
  --text: #f3f4f6;
  --text-muted: #a2a7af;
  --text-faint: #6f747c;
  --accent: #ffffff;
  --accent-strong: #d7d9dd;
  --on-accent: #0a0b0d;
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
}

/* At least a screen tall, so at the very bottom of the page the header sits over the dark
   section rather than over a sliver of the white one above it. */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(6rem, 10vw, 8.5rem) 0 clamp(5rem, 8vw, 7rem);
}

.contact > .container {
  width: 100%;
}

.contact::before,
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.contact::before {
  background: radial-gradient(760px 460px at 12% 0%, rgba(255, 255, 255, 0.08), transparent 70%),
    radial-gradient(620px 420px at 95% 100%, rgba(154, 154, 154, 0.1), transparent 70%);
}

.contact::after {
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(900px 560px at 20% 10%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 560px at 20% 10%, #000, transparent 75%);
}

.contact .btn-primary {
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.08);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.contact-info .section-sub {
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 600;
}

.contact-details a {
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.2s var(--ease);
}

.contact-details a:hover {
  color: var(--accent);
}

.contact-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-self: start;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s var(--ease);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-align: center;
}

/* ---------------------------------------------------------------
   Cursor shade
--------------------------------------------------------------- */
/* In difference mode a near-black disc darkens the white page slightly and lightens the
   black contact section slightly, so one layer reads as a soft shade on both. */
.cursor-glow {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-glow {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 90;
    width: 380px;
    height: 380px;
    margin: -190px 0 0 -190px;
    border-radius: 50%;
    background: radial-gradient(circle closest-side, rgb(11, 11, 11), rgba(11, 11, 11, 0));
    mix-blend-mode: difference;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    will-change: transform;
  }

  .cursor-glow.is-on {
    opacity: 1;
  }
}

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  color: var(--text-faint);
  font-size: 0.88rem;
}

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero {
    min-height: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-showcase {
    order: 2;
    max-width: 520px;
    width: 100%;
  }

  .hero-3d {
    width: 100%;
    margin-left: 0;
  }

  .hero-scroll {
    display: none;
  }
}

@media (max-width: 860px) {
  .about-inner,
  .contact-inner,
  .process-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .process-intro {
    position: static;
  }

  .about-visual {
    order: -1;
    margin-bottom: 1.5rem;
  }

  .contact-form {
    order: 1;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--nav-sheet-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .main-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .main-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
  }

  .main-nav .nav-list li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .main-nav .nav-list a {
    display: block;
    padding: 1rem 0;
  }

  .nav-cta {
    border: none !important;
    padding: 1rem 0 !important;
  }

  .nav-toggle {
    display: flex;
  }

  /* The nav becomes a drop-down sheet, so the switch moves next to the menu button. */
  .lang-switch {
    margin: 0 0.75rem 0 auto;
  }
}

@media (max-width: 520px) {
  .process-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 1.25rem;
  }

  .process-num {
    width: 44px;
    height: 44px;
    font-size: 0.85rem;
  }

  .process-rail {
    left: 22px;
    top: 22px;
    bottom: 22px;
  }

  .process-step h3 {
    margin-top: 0.55rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats {
    gap: 1.25rem 2rem;
  }

  .hero-stat-value {
    font-size: 1.2rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-glow,
  .hero-3d-poster {
    animation: none !important;
  }
}
