/* Melbourne Marble Designs — design tokens, layout, components, motion */

:root {
  --ink: #111214;
  --charcoal: #1c1d20;
  --charcoal-2: #26282c;
  --slate: #5a6068;
  --slate-2: #8b9199;
  --stone: #e7e3dc;
  --off: #f5f3ef;
  --paper: #fbfaf8;
  --white: #ffffff;
  --line: rgba(17, 18, 20, 0.1);
  --line-inv: rgba(255, 255, 255, 0.14);
  --accent: #3e6e4e;        /* brand green, from the cube logo */
  --accent-soft: #a8d6b5;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 18, 20, 0.04), 0 12px 32px -12px rgba(17, 18, 20, 0.18);
  --shadow-lg: 0 30px 60px -24px rgba(17, 18, 20, 0.35);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --font-head: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.section--off { background: var(--off); }
.section--dark { background: var(--charcoal); color: #c9ccd1; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--accent-soft); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--slate); max-width: 62ch; }
.section--dark .lead { color: #aeb3ba; }
.section-head { display: grid; gap: 24px; grid-template-columns: 1fr; margin-bottom: clamp(40px, 6vw, 64px); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; align-items: end; }
  .section-head--split .lead { margin: 0; justify-self: end; }
}
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(62, 110, 78, 0.6); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; backdrop-filter: blur(8px); background: rgba(255, 255, 255, 0.06); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 16px; height: 16px; flex: none; transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translateX(3px); }
.section--dark .link-arrow { color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(251, 250, 248, 0.82); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -20px rgba(0, 0, 0, 0.25); background: rgba(251, 250, 248, 0.94); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 38px; height: 40px; object-fit: contain; }
.brand-text { font-family: var(--font-head); font-weight: 800; line-height: 1.05; color: var(--ink); letter-spacing: 0.02em; text-transform: uppercase; font-size: 0.95rem; }
.brand-text small { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.22em; color: var(--slate); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--slate);
  border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--ink); background: rgba(17, 18, 20, 0.05); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { min-height: 44px; padding: 0 20px; font-size: 0.88rem; }
.header-phone { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--ink); display: none; }
@media (min-width: 1200px) { .header-phone { display: inline; } }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform 0.3s var(--ease), background 0.2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
  }
  .nav a { padding: 14px 8px; font-size: 1.05rem; border-radius: 10px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]::after { left: 8px; right: auto; width: 24px; bottom: 8px; }
  .nav .btn { display: inline-flex; margin-top: 14px; color: #fff; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
}
@media (min-width: 1041px) { .nav .btn { display: none; } }

/* Hero */
.hero {
  position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; color: #fff; isolation: isolate;
  margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 80px) 0 clamp(48px, 7vw, 88px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 11, 12, 0.55) 0%, rgba(10, 11, 12, 0.05) 30%, rgba(10, 11, 12, 0.35) 60%, rgba(10, 11, 12, 0.88) 100%),
    linear-gradient(90deg, rgba(10, 11, 12, 0.6) 0%, rgba(10, 11, 12, 0) 65%);
}
.hero-grid { display: grid; gap: 40px; align-items: end; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.5fr 0.8fr; } }
.hero h1 { color: #fff; margin-bottom: 22px; max-width: 19ch; }
.hero h1 .accent { display: block; color: var(--accent-soft); }
.hero-sub { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, 0.86); max-width: 56ch; margin-bottom: 32px; }
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-card {
  justify-self: end; width: 100%; max-width: 360px; padding: 24px; border-radius: var(--radius);
  background: rgba(20, 21, 23, 0.5); border: 1px solid var(--line-inv); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.hero-card h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); line-height: 1.45; }
.hero-card li svg { flex: none; width: 20px; height: 20px; color: var(--accent-soft); margin-top: 1px; }
.scroll-cue { position: absolute; left: 50%; bottom: 20px; width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 20px; transform: translateX(-50%); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 3px; background: #fff; transform: translateX(-50%); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }
@media (max-width: 999px) { .hero-card { justify-self: start; } .scroll-cue { display: none; } }

/* Page hero (inner pages) */
.page-hero {
  position: relative; color: #fff; isolation: isolate; overflow: hidden;
  margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + clamp(72px, 10vw, 128px)) 0 clamp(56px, 8vw, 96px);
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(12, 13, 14, 0.9) 0%, rgba(12, 13, 14, 0.62) 55%, rgba(12, 13, 14, 0.35) 100%); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 18ch; }
.page-hero .lead { color: rgba(255, 255, 255, 0.82); }
.crumbs { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }

/* Trust bar */
.trust { background: var(--charcoal); color: #fff; padding: 0; position: relative; z-index: 2; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; gap: 16px; align-items: center; padding: 30px 24px; border-left: 1px solid var(--line-inv); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item svg { flex: none; width: 40px; height: 40px; color: var(--accent-soft); }
.trust-item strong { display: block; font-family: var(--font-head); font-size: 1rem; color: #fff; line-height: 1.25; }
.trust-item span { font-size: 0.84rem; color: #9da3ab; line-height: 1.4; display: block; margin-top: 3px; }
@media (max-width: 1000px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { border-left: 0; border-top: 1px solid var(--line-inv); padding: 22px 12px 22px 0; }
  .trust-item:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } .trust-item:nth-child(2) { border-top: 1px solid var(--line-inv); } }
.materials-marquee { border-top: 1px solid var(--line-inv); overflow: hidden; padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.8rem; color: #7d838b; white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "◆"; font-size: 0.5rem; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Bento / performance grid */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); }
.tile {
  position: relative; grid-column: span 4; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); overflow: hidden; min-height: 260px; display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.tile--wide { grid-column: span 8; }
.tile--dark { background: var(--charcoal); color: #b8bcc2; border-color: transparent; }
.tile--dark h3 { color: #fff; }
.tile--img { padding: 0; color: #fff; }
.tile--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile--img:hover img { transform: scale(1.06); }
.tile--img .tile-body { position: relative; margin-top: auto; padding: clamp(24px, 3vw, 36px); background: linear-gradient(180deg, transparent, rgba(10, 11, 12, 0.85)); }
.tile--img h3 { color: #fff; }
.tile--img p { color: rgba(255, 255, 255, 0.8); }
.tile-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--off); color: var(--accent); margin-bottom: auto; }
.tile--dark .tile-icon { background: rgba(255, 255, 255, 0.07); color: var(--accent-soft); }
.tile-icon svg { width: 26px; height: 26px; }
.tile h3 { margin-top: 28px; }
.tile p { margin: 0; font-size: 0.96rem; color: inherit; }
.tile .tile-meter { margin-top: 18px; }
.meter { display: grid; gap: 8px; font-size: 0.8rem; }
.meter-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; }
.meter-bar { height: 6px; border-radius: 6px; background: rgba(125, 131, 139, 0.2); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--accent); transition: width 1.4s var(--ease) 0.2s; }
.tile--dark .meter-bar i { background: var(--accent-soft); }
.in .meter-bar i { width: var(--w); }
.big-stat { font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 6vw, 4.6rem); color: #fff; letter-spacing: -0.04em; line-height: 1; margin-top: auto; }
@media (max-width: 1000px) { .tile, .tile--wide { grid-column: span 6; } }
@media (max-width: 640px) { .tile, .tile--wide { grid-column: span 12; min-height: 220px; } }

/* Product cards */
.products { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.product {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.product:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1s var(--ease), filter 0.6s; }
.product:hover .product-media img { transform: scale(1.1); filter: saturate(1.08) contrast(1.03); }
.product-tag { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.product-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.product-body p { color: var(--slate); font-size: 0.96rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--off); border: 1px solid var(--line); font-size: 0.78rem; font-weight: 600; color: var(--charcoal-2); }
.product .link-arrow { margin-top: auto; align-self: flex-start; }

/* Feature product (split) */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split-media:hover img { transform: scale(1.05); }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.section--dark .checklist li { color: #d3d6da; }

/* Edge profiles */
.edges { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.edge { padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; text-align: center; transition: border-color 0.3s, transform 0.3s var(--ease); }
.edge:hover { border-color: var(--accent); transform: translateY(-3px); }
.edge svg { width: 100%; height: 70px; margin-bottom: 12px; }
.edge strong { display: block; font-family: var(--font-head); color: var(--ink); }
.edge span { font-size: 0.82rem; color: var(--slate); }

/* Projects gallery (case studies) */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; }
.shot { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); grid-column: span 2; grid-row: span 2; background: var(--stone); }
.shot--lg { grid-column: span 4; grid-row: span 2; }
.shot--tall { grid-row: span 3; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.07); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 20px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10, 11, 12, 0.82));
  transform: translateY(12px); opacity: 0.92; transition: transform 0.5s var(--ease), opacity 0.5s;
}
.shot:hover figcaption { transform: none; opacity: 1; }
.shot figcaption strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.shot figcaption span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.75); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } .shot, .shot--lg { grid-column: span 1; grid-row: span 2; } .shot--lg { grid-column: span 2; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; } .shot, .shot--lg, .shot--tall { grid-column: span 1; grid-row: span 1; } }

/* Steps roadmap */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; list-style: none; margin: 0; padding: 0; }
.steps::before { content: ""; position: absolute; top: 31px; left: 32px; right: 32px; height: 1px; background: repeating-linear-gradient(90deg, var(--slate-2) 0 6px, transparent 6px 12px); opacity: 0.6; }
.section--dark .steps::before { background: repeating-linear-gradient(90deg, #5d636b 0 6px, transparent 6px 12px); }
.step { position: relative; counter-increment: step; }
.step-num {
  position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--ink);
  margin-bottom: 26px; transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.section--dark .step-num { background: var(--charcoal-2); border-color: var(--line-inv); color: #fff; }
.step:hover .step-num { background: var(--accent); color: #fff; border-color: var(--accent); }
.step-num::after { content: "0" counter(step); }
.step h3 { font-size: 1.15rem; }
.step p { font-size: 0.95rem; color: var(--slate); margin: 0; }
.section--dark .step p { color: #a4a9b0; }
.step-meta { display: inline-block; margin-top: 14px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.section--dark .step-meta { color: var(--accent-soft); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 32px; bottom: 32px; left: 31px; right: auto; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--slate-2) 0 6px, transparent 6px 12px); }
  .step { display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; padding-bottom: 32px; }
  .step-num { margin-bottom: 0; grid-row: span 3; }
}

/* Detailed timeline (How to order) */
.timeline { display: grid; gap: 24px; }
.t-item { display: grid; gap: 24px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
@media (min-width: 860px) { .t-item { grid-template-columns: 120px 1fr 1fr; align-items: start; } }
.t-num { font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--slate-2); }
.t-item:hover .t-num { -webkit-text-stroke-color: var(--accent); }
.t-item ul { margin: 0; padding-left: 18px; color: var(--slate); }
.t-item li { margin-bottom: 6px; }
.note { display: flex; gap: 14px; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--off); border: 1px solid var(--line); font-size: 0.92rem; color: var(--slate); }
.note strong { color: var(--ink); }

/* Visual Studio */
.studio { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .studio { grid-template-columns: 1.6fr 1fr; } }
.studio-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: #202225; box-shadow: var(--shadow-lg); }
.studio-stage svg { width: 100%; height: auto; }
.studio-badge { position: absolute; top: 16px; left: 16px; display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 999px; background: rgba(17, 18, 20, 0.7); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; backdrop-filter: blur(8px); }
.studio-badge i { width: 8px; height: 8px; border-radius: 50%; background: #62d388; box-shadow: 0 0 0 4px rgba(98, 211, 136, 0.25); }
.studio-summary { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.studio-summary span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); font-size: 0.78rem; font-weight: 600; color: var(--ink); }
.studio-panel { background: var(--charcoal-2); border: 1px solid var(--line-inv); border-radius: var(--radius); padding: 24px; color: #c9ccd1; }
.control { padding: 18px 0; border-bottom: 1px solid var(--line-inv); }
.control:first-child { padding-top: 0; }
.control:last-of-type { border-bottom: 0; }
.control-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 0.92rem; }
.control-label output { font-family: var(--font-body); font-weight: 500; font-size: 0.82rem; color: var(--accent-soft); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); transition: transform 0.2s var(--ease), border-color 0.2s; background-size: cover;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 3px var(--accent); }
.swatch--custom { display: grid; place-items: center; background: conic-gradient(#e74c3c, #f1c40f, #2ecc71, #3498db, #9b59b6, #e74c3c); overflow: hidden; }
.swatch--custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); }
.seg button { border: 0; background: transparent; color: #aeb3ba; padding: 8px 14px; border-radius: 9px; font-size: 0.85rem; font-weight: 600; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.studio-panel .btn { width: 100%; margin-top: 20px; }
.studio-panel small { display: block; margin-top: 12px; font-size: 0.78rem; color: #8b9199; }

/* Studio teaser (home) */
.teaser { position: relative; display: grid; gap: 32px; align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: calc(var(--radius) + 8px); background: var(--charcoal); color: #b8bcc2; overflow: hidden; isolation: isolate; }
.teaser::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 400px at 85% 20%, rgba(62, 110, 78, 0.35), transparent 70%); }
@media (min-width: 900px) { .teaser { grid-template-columns: 1fr 1.1fr; } }
.teaser h2 { color: #fff; }

/* Quote / testimonial */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0 0 20px; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
.quote blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: 0.6; color: var(--accent); margin-bottom: 12px; }
.quote cite { font-style: normal; color: var(--slate); font-size: 0.95rem; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: clamp(72px, 10vw, 120px) 0; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 13, 14, 0.92), rgba(12, 13, 14, 0.55)); }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: rgba(255, 255, 255, 0.8); max-width: 54ch; }

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 0.94rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-head); background: var(--off); color: var(--ink); font-size: 0.85rem; letter-spacing: 0.04em; }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.dots { letter-spacing: 3px; color: var(--accent); white-space: nowrap; }
.dots span { color: #d0d3d7; }

/* FAQ */
.faq-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: 260px 1fr; } .faq-nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.faq-nav { display: flex; flex-direction: column; gap: 4px; }
.faq-nav a { padding: 10px 14px; border-radius: 10px; font-weight: 600; color: var(--slate); }
.faq-nav a:hover { background: var(--off); color: var(--ink); }
@media (max-width: 959px) { .faq-nav { flex-direction: row; flex-wrap: wrap; } .faq-nav a { background: var(--off); } }
.faq-group { margin-bottom: 48px; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 18px; }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 22px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 1.2rem; font-weight: 400; transition: transform 0.3s var(--ease), background 0.3s, color 0.3s; }
details.faq[open] summary::after { transform: rotate(45deg); background: var(--ink); color: #fff; }
details.faq .answer { padding: 0 0 22px; color: var(--slate); max-width: 70ch; }
details.faq[open] .answer { animation: fadeDown 0.4s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Blog */
.posts { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease); }
.post:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-media { aspect-ratio: 16 / 10; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post-media img { transform: scale(1.06); }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.post-body p { color: var(--slate); font-size: 0.95rem; }
.post-body .link-arrow { margin-top: auto; align-self: flex-start; }
.post--feature { grid-column: 1 / -1; }
@media (min-width: 900px) { .post--feature { flex-direction: row; } .post--feature .post-media { flex: 1.2; aspect-ratio: auto; min-height: 380px; } .post--feature .post-body { flex: 1; padding: 40px; justify-content: center; } }
.article { max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.article h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.article h3 { margin-top: 1.6em; }
.article p, .article li { color: #3b3f45; font-size: 1.04rem; }
.article .post-meta { display: block; }
.back-top { display: inline-block; margin-top: 16px; font-size: 0.9rem; font-weight: 600; color: var(--slate); }

/* Contact */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.3fr 1fr; } }
.card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.form { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1px solid #d7d9dc; background: var(--paper);
  font: inherit; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(62, 110, 78, 0.15); }
.form-status { grid-column: 1 / -1; font-size: 0.9rem; color: var(--accent); min-height: 1.4em; margin: 0; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; }
.info-list svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.info-list strong { display: block; font-family: var(--font-head); color: var(--ink); }
.info-list a:hover { color: var(--accent); }
.map { margin-top: 24px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--stone); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.85) contrast(1.05); }

/* Footer */
.site-footer { background: var(--ink); color: #9ba1a9; padding: clamp(64px, 8vw, 96px) 0 32px; font-size: 0.94rem; }
.footer-top { display: grid; gap: 40px; grid-template-columns: 1.6fr repeat(3, 1fr); padding-bottom: 48px; border-bottom: 1px solid var(--line-inv); }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text small { color: #7d838b; }
.footer-brand p { margin: 20px 0 0; max-width: 42ch; }
.site-footer h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.footer-legal { display: grid; gap: 20px; padding-top: 32px; font-size: 0.8rem; color: #6f757d; }
@media (min-width: 900px) { .footer-legal { grid-template-columns: 1fr auto; align-items: end; } }
.footer-legal p { margin: 0; max-width: 90ch; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-inv); display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; color: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal--zoom { transform: scale(0.96); }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
