/*
Theme Name: Ariham Corporate
Theme URI: https://ariham.com
Author: Ariham Technologies
Author URI: https://ariham.com
Description: A production-ready custom WordPress theme faithfully reproducing the Ariham Technologies website. Editorial, premium design with Instrument Serif + Hanken Grotesk typography, orange/navy brand palette, Gutenberg-compatible with custom block patterns and editor styles.
Version: 1.0.30
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ariham-corporate
Tags: custom-logo, custom-menu, full-site-editing, block-patterns, responsive-layout, translation-ready
*/

/* ============================================================
   ARIHAM CORPORATE — design system
   Light · editorial · premium. Instrument Serif + Hanken Grotesk.
   Accent: orange → navy (brand colors).
   ============================================================ */

:root {
  --paper: #fbfbf9;
  --paper-2: #f5f5f2;
  --surface: #ffffff;
  --panel: #f3f3f0;
  --ink: #131a36;
  --ink-2: #4b5765;
  --ink-3: #7c8694;
  --line: #e7e7e2;
  --line-2: #efefea;

  --navy: #14224f;
  --navy-deep: #0b143a;
  --orange: #f05c10;
  --orange-deep: #d44e05;
  --orange-soft: #fbe7da;

  --violet: var(--orange);
  --violet-deep: var(--orange-deep);
  --emerald: var(--navy);
  --emerald-br: var(--orange);
  --accent: var(--orange);
  --accent-2: var(--navy);
  --grad: var(--orange);
  --grad-soft: var(--orange-soft);

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --sh-sm: 0 1px 2px rgba(24, 24, 31, .04), 0 2px 6px rgba(24, 24, 31, .04);
  --sh-md: 0 4px 12px rgba(24, 24, 31, .05), 0 12px 32px rgba(24, 24, 31, .06);
  --sh-lg: 0 8px 24px rgba(24, 24, 31, .06), 0 32px 64px -12px rgba(40, 32, 90, .16);
  --sh-glow: 0 18px 50px -16px color-mix(in oklch, var(--violet) 55%, transparent);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

::selection {
  background: color-mix(in oklch, var(--violet) 26%, transparent);
}

/* ---- layout helpers ---- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section {
  padding-block: clamp(72px, 11vw, 152px);
  position: relative;
}

/* ---- type primitives ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.eyebrow.center::after {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

.display {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.6vw, 4.9rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
}

.display em {
  font-style: italic;
  color: var(--orange);
  -webkit-text-fill-color: var(--orange);
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  line-height: 1.0;
  letter-spacing: -0.014em;
}

.h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

em.grad,
.grad-text {
  font-style: italic;
  color: var(--orange);
  -webkit-text-fill-color: var(--orange);
}

.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 46ch;
  text-wrap: pretty;
}

.muted {
  color: var(--ink-3);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 540;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s, background .25s, color .2s, border-color .2s;
  white-space: nowrap;
  line-height: 1;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--sh-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

.btn-accent {
  background: var(--orange);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-glow), var(--sh-sm);
}

.btn-accent::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange-deep);
  opacity: 0;
  z-index: 0;
  transition: opacity .3s;
}

.btn-accent span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px -16px color-mix(in srgb, var(--orange) 60%, transparent);
}

.btn-accent:hover::before {
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  background: var(--surface);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1.04rem;
}

.btn .arrow {
  transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background .4s, box-shadow .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}

.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 20px var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding .4s;
}

.nav.scrolled {
  background: color-mix(in oklch, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}

.nav.scrolled .nav-inner {
  padding-block: 13px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  height: 40px;
  width: auto;
  display: block;
  flex: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.brand:hover .logo-image {
  transform: scale(1.02);
}

/* WordPress custom logo (the_custom_logo()) */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  height: 40px;
  width: auto;
  display: block;
  flex: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.brand:hover .custom-logo {
  transform: scale(1.02);
}

/* Strip WP default button styles from anchors inside custom button wrappers */
.wp-block-button.btn .wp-block-button__link.wp-element-button {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: inherit !important;
  font-family: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-inner .nav-links a {
  font-size: 0.94rem;
  font-weight: 480;
  color: var(--ink-2);
  padding: 9px 14px;
  border-radius: 100px;
  transition: color .2s, background .2s;
}

.nav-inner .nav-links a:hover,
.nav-inner .nav-links a.current-menu-item,
.nav-inner .nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--panel);
}

/* Dropdown submenu */
.nav-item {
  position: relative;
}

.nav-item>a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-item>a .nav-chevron {
  width: 13px;
  height: 13px;
  flex: none;
  transition: transform .2s;
  opacity: .55;
}

.nav-item:hover>a .nav-chevron,
.nav-item:focus-within>a .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 200;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  font-size: 0.88rem !important;
  font-weight: 480;
  color: var(--ink-2) !important;
  padding: 9px 12px !important;
  border-radius: 9px !important;
  white-space: nowrap;
  display: block;
  background: transparent !important;
  transition: color .15s, background .15s !important;
}

.nav-dropdown a:hover {
  color: var(--ink) !important;
  background: var(--panel) !important;
}

/* Mobile submenu */
.nav-mobile .mob-submenu {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 18px;
  border-left: 2px solid var(--line);
  margin-top: 4px;
  margin-bottom: 8px;
}

.nav-mobile .mob-submenu a {
  font-size: 1rem !important;
  font-family: var(--sans) !important;
  padding: 10px 0 !important;
  border-bottom: none !important;
  color: var(--ink-2) !important;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--paper);
  z-index: 99;
  padding: 100px var(--gut) 40px;
  flex-direction: column;
  gap: 8px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 1.4rem;
  font-family: var(--serif);
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.nav-mobile .mob-cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-mobile .mob-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 14px 22px;
}

.nav-mobile .mob-cta .btn-accent span {
  justify-content: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex: none;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ============================================================
   HERO — bento
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(124px, 16vh, 188px);
  padding-bottom: clamp(56px, 9vw, 120px);
  overflow: hidden;
}

.aurora {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  opacity: .55;
  border-radius: 50%;
}

.aurora.a1 {
  width: 620px;
  height: 460px;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--orange) 34%, transparent), transparent 70%);
  top: -120px;
  right: -80px;
  opacity: .4;
}

.aurora.a2 {
  width: 520px;
  height: 420px;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--navy) 30%, transparent), transparent 70%);
  top: 40px;
  right: 220px;
  opacity: .32;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 14px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  font-size: 0.84rem;
  color: var(--ink-2);
  font-weight: 480;
  margin-bottom: 30px;
}

.hero-tag b {
  font-weight: 600;
  color: var(--ink);
}

.hero-tag span:last-child {
  white-space: nowrap;
}

.hero-tag .pill {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--grad);
  color: #fff;
  padding: 4px 9px;
  border-radius: 100px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 38px;
}

/* Bento hero grid */
.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(32px, 4vw, 60px);
  align-items: center;
}

.hero-grid .display {
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.hero-grid .lede {
  margin-top: 30px;
}

/* Bento tiles */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 14px;
}

.bento .tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.bento .tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.bento .t-big {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.bento .t-tall {
  grid-row: span 2;
}

.bento .t-accent {
  background: var(--ink);
  color: var(--paper);
}

.bento .t-accent .gauge-num {
  color: #fff;
}

.t-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.t-accent .t-label {
  color: color-mix(in oklch, #fff 65%, transparent);
}

.gauge {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.gauge-num {
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 0.9;
}

.gauge-suf {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink-3);
}

.spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
  margin-top: auto;
}

.spark i {
  flex: 1;
  background: var(--grad);
  border-radius: 3px;
  display: block;
  opacity: .85;
}

/* ============================================================
   MARQUEE / trusted-by
   ============================================================ */
.trust {
  padding-block: clamp(36px, 5vw, 60px);
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.trust-head {
  text-align: center;
  margin-bottom: 30px;
}

.trust-head p {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.marquee {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  animation: scroll-x 42s linear infinite;
  flex: none;
  width: max-content;
}

.trust:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scroll-x {
  to {
    transform: translateX(-50%);
  }
}

.client {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  padding: 4px clamp(30px, 4vw, 54px);
  position: relative;
  filter: grayscale(0.2);
  transition: filter .3s;
}

.client::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 32px;
  background: var(--line);
}

.client .cl-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.32rem;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: color .3s, border-color .3s, background .3s;
}

.client .cl-name {
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .3s;
  line-height: 1.1;
}

.client .cl-meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: .04em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 3px;
}

.client .cl-go {
  width: 15px;
  height: 15px;
  color: var(--ink-3);
  opacity: 0;
  transform: translate(-4px, 2px);
  transition: opacity .3s, transform .3s, color .3s;
}

.client:hover {
  filter: grayscale(0);
}

.client:hover .cl-name {
  color: var(--ink);
}

.client:hover .cl-mark {
  border-color: var(--orange);
  color: var(--orange);
}

.client:hover .cl-go {
  opacity: 1;
  transform: none;
  color: var(--orange);
}

/* ============================================================
   SECTION HEAD
   ============================================================ */
.s-head {
  max-width: 760px;
}

.s-head.center {
  margin-inline: auto;
  text-align: center;
}

.s-head .h2 {
  margin-top: 18px;
}

.s-head .lede {
  margin-top: 20px;
}

.s-head.center .lede {
  margin-inline: auto;
}

/* ============================================================
   SERVICES BENTO
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.svc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s, border-color .35s;
  min-height: 232px;
  display: flex;
  flex-direction: column;
}

.svc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklch, var(--violet) 10%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}

.svc:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: color-mix(in oklch, var(--violet) 26%, var(--line));
}

.svc:hover::after {
  opacity: 1;
}

.svc-c6 {
  grid-column: span 6;
}

.svc-c4 {
  grid-column: span 4;
}

.svc-c3 {
  grid-column: span 3;
}

.svc-c2 {
  grid-column: span 2;
}

.svc-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--violet-deep);
  margin-bottom: auto;
}

.svc-ico svg {
  width: 22px;
  height: 22px;
}

.svc h3 {
  margin-top: 22px;
}

.svc p {
  color: var(--ink-2);
  margin-top: 9px;
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 42ch;
}

.svc .svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.svc-tags span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.svc.feature {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
}

.svc.feature .svc-ico {
  background: color-mix(in oklch, #fff 12%, transparent);
  border-color: color-mix(in oklch, #fff 16%, transparent);
  color: #fff;
}

.svc.feature p {
  color: color-mix(in oklch, #fff 72%, transparent);
}

.svc.feature .svc-tags span {
  color: color-mix(in oklch, #fff 60%, transparent);
  border-color: color-mix(in oklch, #fff 18%, transparent);
}

.svc.feature::after {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklch, var(--violet) 40%, transparent), transparent 60%);
}

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.proc {
  background: var(--paper-2);
}

.proc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 60px;
  position: relative;
}

.proc-line {
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}

.proc-line .fill {
  height: 100%;
  width: 0;
  background: var(--grad);
  transition: width 1.4s cubic-bezier(.4, 0, .1, 1);
}

.step {
  padding-right: 28px;
  position: relative;
}

.step .dot {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--violet-deep);
  position: relative;
  z-index: 2;
  box-shadow: var(--sh-sm);
  transition: transform .3s, box-shadow .3s, background .3s, color .3s;
}

.step.lit .dot {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--sh-glow);
}

.step h3 {
  margin-top: 24px;
  font-size: 1.18rem;
}

.step p {
  color: var(--ink-2);
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.step .st-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 14px;
}

@media (max-width: 860px) {
  .proc-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 44px;
  }

  .proc-line {
    display: none;
  }
}

@media (max-width: 520px) {
  .proc-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tmt-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  margin-top: 56px;
}

.tmt-col {
  display: grid;
  gap: 18px;
}

.tmt {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.tmt:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: color-mix(in oklch, var(--violet) 22%, var(--line));
}

.tmt.lead {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
  justify-content: space-between;
}

.tmt .quote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.tmt.lead .quote em {
  color: var(--emerald-br);
}

.tmt.sm .quote {
  font-size: 1.12rem;
  line-height: 1.4;
  font-family: var(--sans);
  font-weight: 480;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.tmt .who {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 30px;
}

.tmt .av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: #fff;
  flex: none;
}

.tmt .who b {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
}

.tmt .who span {
  font-size: 0.82rem;
  color: var(--ink-3);
  font-family: var(--mono);
}

.tmt.lead .who span {
  color: color-mix(in oklch, #fff 60%, transparent);
}

.stars {
  display: flex;
  gap: 3px;
  color: var(--violet);
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.tmt.lead .stars {
  color: var(--emerald-br);
}

@media (max-width: 820px) {
  .tmt-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BIG CTA
   ============================================================ */
.cta-sec {
  position: relative;
}

.cta-box {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: clamp(48px, 7vw, 96px);
  text-align: center;
}

.cta-box .blob {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 22% 30%, color-mix(in srgb, var(--orange) 55%, transparent) 0, transparent 45%),
    radial-gradient(circle at 78% 64%, color-mix(in srgb, var(--navy) 70%, transparent) 0, transparent 48%);
  filter: blur(54px);
  opacity: .6;
  animation: drift 18s ease-in-out infinite;
}

.cta-box>* {
  position: relative;
  z-index: 1;
}

.cta-box .display {
  font-size: clamp(2.4rem, 6vw, 5rem);
  color: var(--paper);
}

.cta-box .display em {
  color: var(--emerald-br);
  font-style: italic;
}

.cta-box .lede {
  color: color-mix(in oklch, #fff 78%, transparent);
  margin: 22px auto 0;
  max-width: 52ch;
}

.cta-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 38px auto 0;
  flex-wrap: wrap;
}

.cta-form input {
  flex: 1;
  min-width: 220px;
  padding: 15px 20px;
  border-radius: 100px;
  border: 1px solid color-mix(in oklch, #fff 18%, transparent);
  background: color-mix(in oklch, #fff 8%, transparent);
  color: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  outline: none;
  transition: border-color .25s, background .25s;
}

.cta-form input::placeholder {
  color: color-mix(in oklch, #fff 50%, transparent);
}

.cta-form input:focus {
  border-color: var(--emerald-br);
  background: color-mix(in oklch, #fff 12%, transparent);
}

.cta-note {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: color-mix(in oklch, #fff 55%, transparent);
  margin-top: 18px;
  letter-spacing: .03em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-top: clamp(60px, 8vw, 96px);
  overflow: hidden;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.foot-brand .logo-image,
.foot-brand .custom-logo {
  height: 36px;
  width: auto;
}

.foot-brand p {
  color: var(--ink-2);
  margin-top: 18px;
  max-width: 34ch;
  font-size: 0.96rem;
}

.foot-brand .brand {
  margin-bottom: 4px;
}

.foot-col h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 16px;
}

.foot-col a {
  display: block;
  color: var(--ink-2);
  font-size: 0.96rem;
  padding: 6px 0;
  transition: color .2s, padding .2s;
}

.foot-col a:hover {
  color: var(--ink);
  padding-left: 4px;
}

.foot-watermark {
  font-family: var(--serif);
  font-size: clamp(4rem, 22vw, 19rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: var(--ink);
  opacity: 0.045;
  margin-top: 60px;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 14px;
  margin-top: -10px;
}

.foot-bottom p {
  font-size: 0.86rem;
  color: var(--ink-3);
}

.foot-social {
  display: flex;
  gap: 8px;
}

.foot-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition: border-color .25s, color .25s, transform .25s;
}

.foot-social a:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-2px);
}

.foot-social svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 860px) {
  .foot-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s cubic-bezier(.2, .7, .3, 1), transform .8s cubic-bezier(.2, .7, .3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.d1 {
  transition-delay: .08s;
}

.reveal.d2 {
  transition-delay: .16s;
}

.reveal.d3 {
  transition-delay: .24s;
}

.reveal.d4 {
  transition-delay: .32s;
}

.reveal.d5 {
  transition-delay: .4s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .aurora,
  .blob,
  .marquee-track {
    animation: none !important;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes floaty {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes drift {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(-48%, -52%) scale(1.12) rotate(8deg);
  }
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(140px, 18vh, 200px);
  padding-bottom: clamp(32px, 4vw, 48px);
}

.page-hero .aurora.a1 {
  width: 640px;
  height: 480px;
  top: -100px;
  right: -60px;
  opacity: .35;
}

.page-hero .aurora.a2 {
  width: 500px;
  height: 400px;
  top: 60px;
  right: 200px;
  opacity: .28;
}

.page-hero .inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.page-hero .display {
  font-size: clamp(3rem, 6.4vw, 5.6rem);
}

.page-hero .lede {
  margin-top: 26px;
  max-width: 54ch;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.stat-row {
  display: flex;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.stat-row .stat b {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1;
  display: block;
}

.stat-row .stat span {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.story-text p {
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.story-text p:last-child {
  margin-bottom: 0;
}

.story-aside {
  position: sticky;
  top: 100px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 56px;
}

.val-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.val-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: color-mix(in oklch, var(--orange) 24%, var(--line));
}

.val-card.dark {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
}

.val-card .val-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--orange);
}

.val-card h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.val-card p {
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.5;
}

.val-card.dark p {
  color: color-mix(in oklch, #fff 72%, transparent);
}

.pull-quote {
  padding: clamp(48px, 7vw, 88px) clamp(32px, 6vw, 96px);
  background: var(--ink);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.pull-quote .blob {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 28% 34%, color-mix(in srgb, var(--orange) 45%, transparent) 0, transparent 48%),
    radial-gradient(circle at 74% 66%, color-mix(in srgb, var(--navy) 60%, transparent) 0, transparent 46%);
  filter: blur(54px);
  opacity: .6;
  animation: drift 18s ease-in-out infinite;
}

.pull-quote blockquote {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.pull-quote blockquote em {
  color: var(--orange);
  font-style: italic;
}

.pull-quote cite {
  display: block;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: color-mix(in oklch, #fff 55%, transparent);
  position: relative;
  z-index: 1;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.svc-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}

.svc-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.svc-detail:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: color-mix(in oklch, var(--orange) 24%, var(--line));
}

.svc-detail.wide {
  grid-column: span 2;
}

.svc-detail.dark {
  background: var(--ink);
  border-color: transparent;
  color: var(--paper);
}

.svc-detail .svc-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--orange);
}

.svc-detail.dark .svc-ico {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .14);
  color: #fff;
}

.svc-detail .svc-ico svg {
  width: 24px;
  height: 24px;
}

.svc-detail h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.svc-detail p {
  color: var(--ink-2);
  font-size: 0.97rem;
  line-height: 1.6;
}

.svc-detail.dark p {
  color: rgba(255, 255, 255, .72);
}

.svc-detail .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.svc-detail .tag-row span {
  font-family: var(--mono);
  font-size: 0.69rem;
  color: var(--ink-3);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 100px;
}

.svc-detail.dark .tag-row span {
  color: rgba(255, 255, 255, .58);
  border-color: rgba(255, 255, 255, .16);
}

.svc-detail .svc-includes {
  margin-top: 4px;
}

.svc-detail .svc-includes li {
  font-size: 0.92rem;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.svc-detail.dark .svc-includes li {
  color: rgba(255, 255, 255, .72);
  border-color: rgba(255, 255, 255, .1);
}

.svc-detail .svc-includes li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

.svc-detail .svc-includes li:last-child {
  border-bottom: none;
}

/* Pricing cards */
.curr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.curr-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: .07em;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 3px;
  background: var(--paper);
  box-shadow: var(--sh-sm);
}

.curr-toggle button {
  padding: 5px 14px;
  border-radius: 100px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ink-3);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  transition: all .2s;
}

.curr-toggle button.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}

.eng-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.eng-card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  background: var(--surface);
  position: relative;
  transition: transform .3s, box-shadow .3s;
}

.eng-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.eng-card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
}

.eng-card .badge {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--orange);
  color: #fff;
  display: inline-block;
  margin-bottom: 20px;
}

.eng-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.eng-card .price {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--orange);
}

.eng-card .price span {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-3);
}

.eng-card.featured .price span {
  color: rgba(255, 255, 255, .55);
}

.eng-card p {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.eng-card.featured p {
  color: rgba(255, 255, 255, .7);
}

.eng-card ul {
  margin-top: 20px;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eng-card ul li {
  font-size: 0.9rem;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.eng-card.featured ul li {
  color: rgba(255, 255, 255, .75);
}

.eng-card ul li::before {
  content: "✓";
  color: var(--orange);
  font-weight: 700;
  flex: none;
}

.eng-card .eng-cta {
  margin-top: 28px;
  display: block;
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.filter-btn {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: all .2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.proj-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s, border-color .35s;
}

.proj-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: color-mix(in oklch, var(--orange) 28%, var(--line));
}

.proj-card.featured {
  grid-column: span 2;
}

.proj-img {
  aspect-ratio: 16/9;
  background: var(--panel);
  position: relative;
  overflow: hidden;
  flex: none;
}

.proj-card.featured .proj-img {
  aspect-ratio: 16/8;
}

.proj-img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.proj-img-inner img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: object-position 2s ease-out; /* fast reset on leave */
}

.proj-card:hover .proj-img-inner img {
  object-position: center bottom;
  transition: object-position 8s ease-out 0.3s; /* slow scroll on hover */
}

@media (prefers-reduced-motion: reduce) {
  .proj-img-inner img {
    transition: none !important;
  }
}

.proj-img-inner .proj-mockup {
  width: 60%;
  max-width: 320px;
  background: rgba(255, 255, 255, .08);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 12px;
  backdrop-filter: blur(4px);
}

.proj-mockup-bar {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}

.proj-mockup-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  display: inline-block;
}

.proj-mockup-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.proj-mockup-lines span {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .18);
}

.proj-mockup-lines span:first-child {
  width: 70%;
}

.proj-mockup-lines span:nth-child(2) {
  width: 90%;
}

.proj-mockup-lines span:last-child {
  width: 55%;
}

.proj-img .proj-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.proj-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.proj-body .proj-cat {
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
}

.proj-body h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.proj-body p {
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}

.proj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.proj-meta span {
  font-family: var(--mono);
  font-size: 0.67rem;
  color: var(--ink-3);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 100px;
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 540;
  color: var(--orange);
  margin-top: 8px;
  transition: gap .2s;
}

.proj-link:hover {
  gap: 11px;
}

.proj-link svg {
  width: 14px;
  height: 14px;
}

.stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: 80px;
}

.stat-cell {
  background: var(--surface);
  padding: 28px 24px;
  text-align: center;
}

.stat-cell b {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  display: block;
  color: var(--orange);
}

.stat-cell span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(140px, 18vh, 200px) 0 clamp(24px, 4vw, 40px);
}

.contact-hero .blob {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 25% 30%, color-mix(in srgb, var(--orange) 18%, transparent) 0, transparent 44%),
    radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--navy) 15%, transparent) 0, transparent 40%);
  filter: blur(60px);
  opacity: .55;
}

.contact-hero .inner {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

/* wp:columns override — force grid layout when .contact-grid is on wp-block-columns */
.contact-grid,
.contact-grid.wp-block-columns {
  display: grid !important;
  grid-template-columns: 340px 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(80px, 12vw, 140px);
  margin-top: clamp(20px, 3vw, 30px);
  flex-wrap: unset;
}
/* wp:column inside contact-grid must not shrink/grow via flex */
.contact-grid .wp-block-column {
  flex-grow: unset;
  flex-basis: unset;
  min-width: unset;
  margin: 0;
}

.contact-info-head {
  margin-bottom: 32px;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-2);
}

.info-item:last-child {
  border-bottom: none;
}

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--orange);
  flex: none;
}

.info-icon svg {
  width: 16px;
  height: 16px;
}

.info-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-text strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.info-text span,
.info-text a {
  font-size: 0.84rem;
  color: var(--ink-3);
}

.trust-mini {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.trust-mini .eyebrow {
  font-size: 0.62rem;
  color: var(--ink-3);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--mono);
  display: block;
  margin-bottom: 16px;
}

.trust-mini-stats,
.trust-mini-stats.wp-block-columns {
  display: flex !important;
  gap: 20px;
  flex-wrap: nowrap;
}

.trust-mini-stats .wp-block-column {
  flex-grow: 0;
  flex-basis: auto;
  min-width: unset;
}

/* native b or wp:heading inside .stat */
.trust-mini-stats .stat b,
.trust-mini-stats .stat .wp-block-heading {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--orange);
  display: block;
  line-height: 1;
  margin: 0;
}

/* native span or wp:paragraph inside .stat */
.trust-mini-stats .stat span,
.trust-mini-stats .stat p {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--sh-md);
}

.form-heading {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 0.96rem;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--panel);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--orange) 10%, transparent);
  background: var(--surface);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.55;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #e03838;
}

.form-error {
  font-size: 0.78rem;
  color: #e03838;
  font-family: var(--mono);
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}

.form-submit {
  margin-top: 24px;
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
}

.form-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  text-align: center;
  margin-top: 14px;
  letter-spacing: .02em;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn.loading .btn-spinner {
  display: block;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading {
  pointer-events: none;
}

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.form-success.show {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: color-mix(in oklch, #22a06b 12%, transparent);
  border: 2px solid color-mix(in oklch, #22a06b 28%, transparent);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  color: #22a06b;
}

.success-icon svg {
  width: 28px;
  height: 28px;
}

.form-success h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.form-success p {
  color: var(--ink-2);
}

/* ============================================================
   RESPONSIVE — hero bento
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid .hero-visual {
    margin-top: 18px;
  }

  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .svc-c6,
  .svc-c4,
  .svc-c3,
  .svc-c2 {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .contact-grid,
  .contact-grid.wp-block-columns {
    grid-template-columns: 1fr !important;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-aside {
    position: static;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .svc-detail-grid {
    grid-template-columns: 1fr;
  }

  .svc-detail.wide {
    grid-column: auto;
  }

  .proj-grid {
    grid-template-columns: 1fr 1fr;
  }

  .proj-card.featured {
    grid-column: auto;
  }

  .stats-banner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero-tag span:last-child {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .svc-grid {
    grid-template-columns: 1fr;
  }

  .svc-c6,
  .svc-c4,
  .svc-c3,
  .svc-c2 {
    grid-column: span 1;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-form {
    flex-direction: column;
    max-width: 100%;
  }

  .cta-form input {
    min-width: 0;
    width: 100%;
  }

  .cta-form .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-ctas {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-ctas .btn-lg {
    flex: 1;
    min-width: 140px;
    justify-content: center;
  }

  .values-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .proj-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .foot-top {
    grid-template-columns: 1fr;
  }

  .foot-brand {
    grid-column: 1;
  }
}

/* ============================================================
   BLOG / SINGLE POST
   ============================================================ */
.entry-content {
  max-width: 720px;
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 80px);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--serif);
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.entry-content p {
  margin-bottom: 1.2em;
  line-height: 1.7;
  color: var(--ink-2);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
  color: var(--ink-2);
}

.entry-content li {
  margin-bottom: 0.4em;
  line-height: 1.6;
}

.entry-content a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, var(--orange) 40%, transparent);
}

.entry-content a:hover {
  text-decoration-color: var(--orange);
}

.entry-content blockquote {
  border-left: 3px solid var(--orange);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--panel);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.entry-content blockquote p {
  color: var(--ink);
  font-style: italic;
}

.entry-content img {
  border-radius: var(--r-md);
  margin: 2em 0;
}

.entry-content code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--panel);
  padding: 2px 6px;
  border-radius: 4px;
}

.entry-content pre {
  background: var(--ink);
  color: var(--paper);
  padding: 24px;
  border-radius: var(--r-md);
  overflow-x: auto;
  margin: 2em 0;
}

.entry-content pre code {
  background: none;
  padding: 0;
  font-size: 0.92rem;
}

/* Post meta */
.entry-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

/* Post navigation */
.post-navigation {
  max-width: 720px;
  margin-inline: auto;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.nav-previous,
.nav-next {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .25s, box-shadow .25s, transform .25s;
  background: var(--surface);
}

.nav-previous a,
.nav-next a {
  display: block;
  padding: 24px;
  text-decoration: none;
}

.nav-previous:hover,
.nav-next:hover {
  border-color: var(--orange);
  box-shadow: var(--sh-sm);
}

.nav-previous:hover {
  transform: translateX(-4px);
}

.nav-next:hover {
  transform: translateX(4px);
}

.nav-previous .nav-subtitle,
.nav-next .nav-subtitle {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.nav-previous .nav-title,
.nav-next .nav-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.3;
  font-weight: 400;
}

.nav-next {
  text-align: right;
}

/* Archive grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.post-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-body h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.post-card-body h2 a {
  color: var(--ink);
  transition: color .2s;
}

.post-card-body h2 a:hover {
  color: var(--orange);
}

.post-card-body p {
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

/* Search results */
.search-results-header {
  padding-block: clamp(80px, 12vw, 140px) 40px;
  padding-top: clamp(140px, 18vh, 200px);
}

/* 404 */
.not-found-content {
  text-align: center;
  padding: clamp(120px, 18vh, 200px) 0 clamp(80px, 12vw, 140px);
}

/* WordPress core alignment */
.alignwide {
  margin-inline: calc(-1 * var(--gut));
}

.alignfull {
  margin-inline: calc(-1 * var(--gut));
  padding-inline: var(--gut);
}

@media (max-width: 860px) {
  .posts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .eng-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   COMMENTS & FORMS
   ============================================================ */
#comments,
.comments-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-top: 60px;
  margin-bottom: 24px;
  color: var(--ink);
}

.commentlist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 60px;
}

.commentlist .comment-body {
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 24px;
  position: relative;
}

.commentlist li:last-child > .comment-body {
  border-bottom: none;
  padding-bottom: 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-author .avatar {
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: block;
}

.comment-author .fn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink);
  font-style: normal;
}

.comment-author .fn a {
  color: inherit;
  text-decoration: none;
}

.comment-author .says {
  display: none;
}

.comment-metadata {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-3);
  text-transform: uppercase;
}

.comment-metadata a {
  color: inherit;
  text-decoration: none;
}

.comment-content {
  font-size: 0.98rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 12px;
}

.comment-content p {
  margin-bottom: 1em;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.reply {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 500;
}

.reply a {
  color: var(--orange);
  transition: color .2s;
  text-decoration: none;
}

.reply a:hover {
  color: var(--orange-deep);
}

.commentlist .children {
  list-style: none;
  margin-left: clamp(20px, 4vw, 48px);
  margin-top: 24px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-left: 2px solid var(--line-2);
  padding-left: 20px;
}

#respond {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--sh-sm);
  margin-top: 60px;
}

.comment-reply-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 24px;
  color: var(--ink);
}

.comment-reply-title small {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  margin-left: 12px;
}

.comment-reply-title small a {
  color: var(--orange);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-decoration: none;
}

.comment-notes,
.logged-in-as {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-bottom: 20px;
}

.logged-in-as a {
  color: var(--orange);
  font-weight: 500;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}

.comment-form p {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.comment-form label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 0.96rem;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--panel);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--orange) 10%, transparent);
  background: var(--surface);
}

.comment-form textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
}

.comment-form-cookies-consent {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
}

.comment-form-cookies-consent input[type="checkbox"] {
  margin-top: 5px;
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
}

.comment-form-cookies-consent label {
  font-family: var(--sans) !important;
  font-size: 0.9rem !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: var(--ink-2);
  cursor: pointer;
}

.comment-form .form-submit {
  margin-top: 10px;
}

.comment-form .submit {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-weight: 540;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  padding: 13px 28px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--sh-sm);
  transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s, background .25s;
  width: auto;
  align-self: flex-start;
}

.comment-form .submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  background: var(--orange);
  color: #fff;
}

@media (min-width: 560px) {
  .comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }
  
  .comment-form-comment {
    grid-column: span 2;
  }
  
  .comment-form-author {
    grid-column: span 1;
  }
  
  .comment-form-email {
    grid-column: span 1;
  }
  
  .comment-form-url {
    grid-column: span 2;
  }
  
  .comment-form-cookies-consent {
    grid-column: span 2;
  }
  
  .form-submit {
    grid-column: span 2;
  }
}
/* ============================================================
   v1.0.7 — CONSOLIDATED FIXES (appended last, highest priority)
   Spacing normalisation + Gutenberg button reconciliation.
   ============================================================ */

/* ── Section spacing: reduce excessive desktop padding ───── */
.section          { padding-block: clamp(56px, 8vw, 96px); }

.contact-hero     { padding: clamp(120px, 15vh, 180px) 0 clamp(40px, 5vw, 60px); }

/* ── Gutenberg button: wrapper div must be visually transparent ── */
/* div.wp-block-button carries .btn/.btn-ghost/.btn-accent but must NOT
   render a box itself — only the inner <a> is the button. (0,1,1) beats (0,1,0). */
div.wp-block-button {
  display: inline-flex;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  white-space: normal;
  line-height: inherit;
  transition: none;
}
div.wp-block-button::before { display: none; }

/* Inner <a>: the actual button. all:unset clears WP link defaults (no !important). */
.wp-block-button.btn .wp-block-button__link {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 540;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  transition: background .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s,
              transform .25s cubic-bezier(.2,.7,.3,1), border-color .2s, color .2s;
}
.wp-block-button.btn-lg .wp-block-button__link { padding: 16px 28px; font-size: 1.04rem; }

.wp-block-button.btn-accent .wp-block-button__link {
  background: var(--orange); color: #fff;
  box-shadow: var(--sh-glow), var(--sh-sm);
}
.wp-block-button.btn-accent .wp-block-button__link:is(:hover,:focus-visible) {
  background: var(--orange-deep); color: #fff; transform: translateY(-2px);
  box-shadow: 0 22px 56px -16px color-mix(in srgb, var(--orange) 60%, transparent);
}
.wp-block-button.btn-ghost .wp-block-button__link {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.wp-block-button.btn-ghost .wp-block-button__link:is(:hover,:focus-visible) {
  border-color: var(--ink); background: var(--surface); transform: translateY(-2px);
}
/* Ghost on dark backgrounds — higher specificity wins without !important */
.cta-box .wp-block-button.btn-ghost .wp-block-button__link,
.eng-card.featured .wp-block-button.btn-ghost .wp-block-button__link {
  color: #fff; border-color: rgba(255,255,255,0.28); background: transparent;
}
.cta-box .wp-block-button.btn-ghost .wp-block-button__link:hover,
.eng-card.featured .wp-block-button.btn-ghost .wp-block-button__link:hover {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.55);
}

/* Direct <a class="btn-*"> from wp:html blocks (legacy accent ::before removed) */
a.btn-accent::before { display: none; }

/* ============================================================
   FAQ ACCORDION (wp:details) — SEO FAQ section
   ============================================================ */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-list .wp-block-details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 4px 24px;
  transition: border-color .2s, box-shadow .2s;
}
.faq-list .wp-block-details[open] {
  border-color: color-mix(in oklch, var(--orange) 32%, var(--line));
  box-shadow: var(--sh-sm);
}
.faq-list .wp-block-details summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.3;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-list .wp-block-details summary::-webkit-details-marker { display: none; }
.faq-list .wp-block-details summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--orange);
  transition: transform .25s;
}
.faq-list .wp-block-details[open] summary::after { transform: rotate(45deg); }
.faq-list .wp-block-details p {
  margin: 0 0 18px;
  color: var(--ink-2);
  line-height: 1.65;
  font-size: 1rem;
}

/* ============================================================
   BLOG ARCHIVE — post card enhancements (home.php)
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .2s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: color-mix(in oklch, var(--orange) 30%, var(--line));
}
.post-card-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.post-card:hover .post-card-thumb img { transform: scale(1.03); }
.post-card-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.post-card-cat { color: var(--orange); transition: opacity .2s; }
.post-card-cat:hover { opacity: .8; }
.post-card-sep { opacity: .4; }
.post-card-body h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0;
}
.post-card-body h2 a { color: var(--ink); transition: color .2s; }
.post-card-body h2 a:hover { color: var(--orange); }
.post-card-body p {
  color: var(--ink-2);
  font-size: 0.97rem;
  line-height: 1.6;
  flex: 1;
  margin: 0;
}
.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-family: var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 6px;
  transition: gap .2s;
  text-decoration: none;
}
.post-card-link svg { width: 15px; height: 15px; flex: none; }
.post-card:hover .post-card-link svg { transform: translateX(3px); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.pagination .nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.page-numbers:hover { border-color: var(--orange); color: var(--orange); }
.page-numbers.current { background: var(--orange); border-color: var(--orange); color: #fff; }
.page-numbers.prev, .page-numbers.next {
  width: auto;
  padding: 0 16px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  gap: 6px;
}
.page-numbers.prev svg, .page-numbers.next svg { width: 14px; height: 14px; }

@media (max-width: 560px) { .posts-grid { grid-template-columns: 1fr; } }

/* ── Single post: clean separation between comments and footer ── */
.single #main,
.single main { padding-bottom: clamp(48px, 7vw, 96px); }

/* ============================================================
   PROJECT SHOWCASE BLOCK — ariham/project-showcase
   Browser-window cards with scroll-through screenshot animation
   ============================================================ */

/* ── Visually hidden utility ──────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Section ──────────────────────────────────────────────── */
.pshowcase-section {
  padding-block: clamp(64px, 10vw, 128px);
  overflow: hidden;      /* clips horizontal marquee bleed */
  background: var(--paper);
}

/* ── Header ───────────────────────────────────────────────── */
.pshowcase-header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 60px);
  padding-inline: var(--gut);
}

.pshowcase-header .eyebrow {
  display: inline-flex;
  justify-content: center;
}

.pshowcase-sub {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.014em;
  color: var(--ink);
  margin-top: 14px;
}

/* ── Marquee wrapper ──────────────────────────────────────── */
.pshowcase-marquee {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Edge fade masks */
.pshowcase-fade-l,
.pshowcase-fade-r {
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(40px, 6vw, 100px);
  z-index: 10;
  pointer-events: none;
}
.pshowcase-fade-l { left:  0; background: linear-gradient(to right, var(--paper), transparent); }
.pshowcase-fade-r { right: 0; background: linear-gradient(to left,  var(--paper), transparent); }

/* ── Scrolling track ──────────────────────────────────────── */
.pshowcase-track {
  display: flex;
  flex: none;
  width: max-content;
  gap: 20px;
  padding-block: 6px; /* room for card shadow */
  animation: ps-scroll var(--ps-speed, 40s) linear infinite;
  will-change: transform;
}

.pshowcase-track[data-dir="reverse"] {
  animation-name: ps-scroll-rev;
}

/* Pause entire marquee on hover */
.pshowcase-marquee:hover .pshowcase-track {
  animation-play-state: paused;
}

@keyframes ps-scroll     { to { transform: translateX(calc(-100% / 3)); } }
@keyframes ps-scroll-rev { to { transform: translateX(calc( 100% / 3)); } }

@media (prefers-reduced-motion: reduce) {
  .pshowcase-track { animation: none !important; }
}

/* ── Card ─────────────────────────────────────────────────── */
.pshowcase-card {
  flex: none;
  display: block;
  width: clamp(220px, 22vw, 300px);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.2,0.7,0.3,1),
              box-shadow 0.35s cubic-bezier(0.2,0.7,0.3,1),
              border-color 0.25s;
  outline-offset: 3px;
}

.pshowcase-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: color-mix(in oklch, var(--orange) 30%, var(--line));
}

.pshowcase-card:focus-visible {
  outline: 2px solid var(--orange);
}

/* ── Browser chrome bar ───────────────────────────────────── */
.pshowcase-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.pshowcase-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.pshowcase-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.d-red   { background: #ff5f57; }
.d-amber { background: #febc2e; }
.d-green { background: #28c840; }

.pshowcase-urlbar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 3px 9px;
  min-width: 0;
  overflow: hidden;
}

.pshowcase-urlbar svg {
  flex: none;
  color: var(--ink-3);
}

.pshowcase-domain {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Screenshot frame (clips the tall image) ──────────────── */
.pshowcase-frame {
  position: relative;
  /* 3:2 ratio — gives a nice landscape window without being too tall */
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--panel);
}

/* ── Scroll viewport (contains the tall image) ────────────── */
.pshowcase-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: object-position 2s ease-out; /* fast reset on leave */
}

/* Hover: scroll from top to bottom over 8s with 0.3s delay */
.pshowcase-card:hover .pshowcase-shot {
  object-position: center bottom;
  transition: object-position 8s ease-out 0.3s; /* slow scroll on hover */
}

@media (prefers-reduced-motion: reduce) {
  .pshowcase-shot {
    transition: none !important;
  }
}

/* ── Gradient placeholder ─────────────────────────────────── */
.pshowcase-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.2,0.7,0.3,1);
}

.pshowcase-card:hover .pshowcase-placeholder {
  transform: scale(1.06);
}

/* Mockup inside gradient */
.pshowcase-mockup-inner {
  width: 65%;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 8px 12px 12px;
}

.pshowcase-mb {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.pshowcase-mb i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  display: block;
}

.pshowcase-ml span {
  display: block;
  height: 4px;
  border-radius: 3px;
  background: rgba(255,255,255,.18);
  margin-bottom: 6px;
}

.pshowcase-ml span:nth-child(2) { width: 74%; }
.pshowcase-ml span:nth-child(3) { width: 50%; }

/* ── "Hover to scroll" hint ───────────────────────────────── */
.pshowcase-scroll-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3px 8px 3px 6px;
  border-radius: 100px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  white-space: nowrap;
}

.pshowcase-card:hover .pshowcase-scroll-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Caption / footer ─────────────────────────────────────── */
.pshowcase-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border-top: 1px solid var(--line-2);
}

.pshowcase-badge {
  flex: none;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-soft);
  padding: 3px 7px;
  border-radius: 100px;
  white-space: nowrap;
}

.pshowcase-caption-body {
  flex: 1;
  min-width: 0;
}

.pshowcase-cat {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pshowcase-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pshowcase-goto {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--ink-3);
  opacity: 0;
  transform: translate(-3px, 2px);
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
}

.pshowcase-card:hover .pshowcase-goto {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--orange);
}

/* ── Footer CTA ───────────────────────────────────────────── */
.pshowcase-footer {
  display: flex;
  justify-content: center;
  margin-top: clamp(36px, 5vw, 56px);
}

.pshowcase-footer .btn svg {
  transition: transform 0.3s cubic-bezier(0.2,0.7,0.3,1);
}

.pshowcase-footer .btn:hover svg {
  transform: translateX(3px);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .pshowcase-card {
    width: clamp(180px, 46vw, 240px);
  }

  /* Hide the second marquee track on tablets and mobile screens */
  .pshowcase-rows-2 .pshowcase-track + .pshowcase-track {
    display: none;
  }
}

@media (max-width: 560px) {
  .pshowcase-card {
    width: clamp(160px, 64vw, 210px);
  }

  .pshowcase-sub {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
}


/* ============================================================
   RICH BLOG POST DESIGN SYSTEM
   Applies automatically to every single post via .single .entry-content
   ============================================================ */

/* ── Reading progress bar ───────────────────────────────────── */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), #ff8c42);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Lead / opening paragraph ───────────────────────────────── */
.single .entry-content > .wp-block-paragraph:first-child,
.single .entry-content p.lead-paragraph {
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
  border-left: 4px solid var(--orange);
  padding-left: 20px;
  margin-bottom: 2em;
}

/* ── Auto-numbered H2 headings ──────────────────────────────── */
.single .entry-content {
  counter-reset: section-counter;
}

.single .entry-content h2.wp-block-heading {
  counter-increment: section-counter;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 2.5em;
  margin-bottom: 0.6em;
  font-size: clamp(1.3rem, 2.8vw, 1.6rem);
  color: var(--ink);
  line-height: 1.15;
}

.single .entry-content h2.wp-block-heading::before {
  content: counter(section-counter);
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin-top: 3px;
}

/* "The Bottom Line" and CTA headings — no counter */
.single .entry-content h2.wp-block-heading.no-counter,
.single .entry-content h2.no-counter {
  counter-increment: none;
}
.single .entry-content h2.wp-block-heading.no-counter::before,
.single .entry-content h2.no-counter::before {
  display: none;
}

/* ── Pull quote / blockquote ─────────────────────────────────── */
.single .entry-content .wp-block-pullquote,
.single .entry-content blockquote {
  background: linear-gradient(135deg, #fff7f2 0%, #fff0e6 100%);
  border: none;
  border-left: 5px solid var(--orange);
  border-radius: 0 16px 16px 0;
  padding: 24px 32px;
  margin: 2.5em 0;
  box-shadow: 0 4px 24px color-mix(in oklch, var(--orange) 10%, transparent);
}

.single .entry-content .wp-block-pullquote p,
.single .entry-content blockquote p {
  color: var(--ink);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.65;
}

/* ── Orange callout / stat box ──────────────────────────────── */
.single .entry-content .wp-block-group.callout,
.single .entry-content .callout {
  background: linear-gradient(135deg, #fff4ee 0%, #ffe8d6 100%);
  border: 1.5px solid color-mix(in oklch, var(--orange) 30%, transparent);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
  margin: 2em 0;
}

/* ── Horizontal rule (separator) ────────────────────────────── */
.single .entry-content .wp-block-separator,
.single .entry-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, transparent 100%);
  margin: 3em 0;
  opacity: 0.35;
  border-radius: 2px;
}

/* ── Inline paragraph emphasis accent ───────────────────────── */
.single .entry-content strong {
  color: var(--ink);
  font-weight: 700;
}

.single .entry-content em {
  color: var(--orange-deep);
  font-style: italic;
}

/* ── "Bottom Line" section — dark callout ───────────────────── */
.single .entry-content .bottom-line-callout {
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  margin: 3em 0;
}

.single .entry-content .bottom-line-callout p {
  color: rgba(255,255,255,0.85);
}

.single .entry-content .bottom-line-callout h2 {
  color: #fff;
}

/* ── CTA button in post ─────────────────────────────────────── */
.single .entry-content .wp-block-buttons {
  margin: 2em 0;
}

.single .entry-content .wp-block-button__link {
  background: var(--orange) !important;
  color: #fff !important;
  border-radius: 100px !important;
  padding: 14px 32px !important;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px color-mix(in oklch, var(--orange) 32%, transparent);
}

.single .entry-content .wp-block-button__link:hover {
  background: var(--orange-deep) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in oklch, var(--orange) 40%, transparent);
}

/* ── Post tags at bottom ────────────────────────────────────── */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.post-tags .tag-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  margin-right: 4px;
}

.post-tags a {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: .04em;
  transition: background .2s, border-color .2s, color .2s;
}

.post-tags a:hover {
  background: color-mix(in oklch, var(--orange) 8%, transparent);
  border-color: color-mix(in oklch, var(--orange) 35%, transparent);
  color: var(--orange);
}

/* ── Responsive tweaks ──────────────────────────────────────── */
@media (max-width: 600px) {
  .single .entry-content h2.wp-block-heading {
    gap: 12px;
    font-size: 1.2rem;
  }

  .single .entry-content h2.wp-block-heading::before {
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
  }
}

