/* ==========================================================================
   WDev UK - public theme
   Dark canvas, white type, logo orange (#E16542) accents.
   ========================================================================== */

/* ----------------------------------- tokens ------------------------------- */
:root {
  --ink: #0b0b0d;
  --ink-soft: #101014;
  --surface: #14141a;
  --surface-2: #1a1a22;
  --surface-3: #21212b;
  --border: #26262f;
  --border-strong: #34343f;

  --white: #ffffff;
  --text: #f4f4f6;
  --text-dim: #c6c6cf;
  --muted: #94949f;
  --muted-2: #6e6e79;

  --orange: #e16542;
  --orange-bright: #ff7a55;
  --orange-deep: #b8482b;
  --orange-glow: rgba(225, 101, 66, 0.22);
  /* Text that sits on the accent colour. Kept separate from --white so a pale
     accent can use dark buttons without also changing the headings. */
  --on-accent: #ffffff;

  --ok: #3fb27f;
  --warn: #e16542;
  --danger: #e04b4b;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 0.95);

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-size-body: 17px;

  --shell: min(1180px, 100% - 3rem);
  --shell-narrow: min(760px, 100% - 3rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--white);
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.1em; color: var(--text-dim); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange-bright); }

img, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.2em; }
li { color: var(--text-dim); }

hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

::selection { background: var(--orange); color: var(--on-accent); }

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

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

/* ----------------------------------- layout ------------------------------- */
.shell { width: var(--shell); margin-inline: auto; }
.shell-narrow { width: var(--shell-narrow); margin-inline: auto; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--ink-soft); border-block: 1px solid var(--border); }
.section--surface { background: var(--surface); border-block: 1px solid var(--border); }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ----------------------------------- type --------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--text-dim); }
.muted { color: var(--muted); }
.accent { color: var(--orange); }
.measure { max-width: 62ch; }
.measure-tight { max-width: 46ch; }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); max-width: 68ch; }
.section-head--center { margin-inline: auto; text-align: center; }

/* --------------------------- rich text (from CMS) ------------------------- */
.rich { color: var(--text-dim); }
.rich > *:first-child { margin-top: 0; }
.rich h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); margin-top: 2.2em; }
.rich h3 { font-size: 1.35rem; margin-top: 1.8em; }
.rich a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.rich strong { color: var(--white); }
.rich ul, .rich ol { margin: 0 0 1.2em; }
.rich li { margin-bottom: 0.5em; }
.rich blockquote {
  margin: 2em 0;
  padding: 0.25em 0 0.25em 1.5em;
  border-left: 3px solid var(--orange);
  font-size: 1.12rem;
  color: var(--text);
  font-style: italic;
}
.rich img { border-radius: var(--radius); margin: 1.8em 0; }
.rich code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.12em 0.4em;
  border-radius: 5px;
  font-size: 0.9em;
  color: var(--orange-bright);
}
.rich pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
}
.rich pre code { background: none; border: 0; padding: 0; color: var(--text); }
.rich table { width: 100%; border-collapse: collapse; margin: 1.6em 0; }
.rich th, .rich td { border-bottom: 1px solid var(--border); padding: 0.7em 0.9em; text-align: left; }
.rich th { color: var(--white); font-family: var(--font-head); }
.rich hr { margin: 2.4em 0; }

/* ----------------------------------- header ------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* Derived from the page background so a light theme gets a light header. */
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand img, .brand svg { height: 26px; width: auto; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--white);
}
.brand__tag {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
.site-nav a {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.site-nav a:hover { color: var(--white); background: var(--surface-2); }
.site-nav a.is-active { color: var(--white); }
.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}
.site-nav .nav-item { position: relative; }
.site-nav .nav-item__sub {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 230px;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  gap: 2px;
}
.site-nav .nav-item:hover .nav-item__sub,
.site-nav .nav-item:focus-within .nav-item__sub { display: flex; }
.site-nav .nav-item__sub a { width: 100%; }

/* The in-nav call to action belongs to the mobile drawer only; the desktop
   header shows the one in .header-actions. */
.site-nav .nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: 0.75rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 44px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 1rem 1.5rem 1.75rem;
    background: var(--ink-soft);
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.85rem 0.75rem; font-size: 1.02rem; }
  .site-nav a.is-active::after { display: none; }
  .site-nav .nav-item__sub {
    position: static;
    display: flex;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 0.9rem;
    min-width: 0;
  }
  .header-actions { display: none; }
  .site-nav .nav-cta { display: inline-flex; margin-top: 0.75rem; align-self: flex-start; }
}

/* ----------------------------------- buttons ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
/* `max-width: none` undoes the global `svg { max-width: 100% }` reset, which
   otherwise crushes an icon-only button down to a few pixels. */
.btn svg { width: 17px; height: 17px; max-width: none; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--orange); color: var(--on-accent); box-shadow: 0 10px 26px -14px var(--orange); }
.btn--primary:hover { background: var(--orange-bright); color: var(--on-accent); box-shadow: 0 14px 30px -12px var(--orange); }

.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--orange); color: var(--white); background: var(--surface-2); }

.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: #f0f0f2; color: var(--ink); }

.btn--sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--orange);
}
.text-link svg { width: 15px; height: 15px; transition: transform 0.18s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ----------------------------------- hero --------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 9vw, 8rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 620px;
  background: radial-gradient(45% 60% at 22% 40%, var(--orange-glow), transparent 70%),
    radial-gradient(35% 50% at 82% 8%, rgba(255, 255, 255, 0.05), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--white) 3%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--white) 3%, transparent) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero--split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 950px) { .hero--split { grid-template-columns: 1.08fr 0.92fr; } }

.hero h1 { max-width: 20ch; }
.hero__sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-dim); max-width: 56ch; }
.hero__media {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  aspect-ratio: 4 / 3;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.page-head {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute;
  inset: -80% 55% auto -20%;
  height: 480px;
  background: radial-gradient(closest-side, var(--orange-glow), transparent);
  pointer-events: none;
}
.page-head > * { position: relative; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span[aria-hidden] { color: var(--muted-2); }

/* ----------------------------------- stats -------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--ink-soft); padding: 1.6rem 1.4rem; }
.stat__value {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.stat__value em { color: var(--orange); font-style: normal; }
.stat__label { font-size: 0.88rem; color: var(--muted); margin-top: 0.4rem; }

/* ----------------------------------- cards -------------------------------- */
.grid { display: grid; gap: 1.35rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), transform 0.22s var(--ease), background 0.2s var(--ease);
  height: 100%;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); background: var(--surface-2); }
.card h3 { margin: 0; }
.card p { margin: 0; font-size: 0.96rem; }
.card__foot { margin-top: auto; padding-top: 0.9rem; }

.card--service::after {
  content: '';
  position: absolute;
  inset: auto 1.7rem 0 1.7rem;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}
.card--service:hover::after { opacity: 1; }

.card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(
    150deg,
    color-mix(in srgb, var(--orange) 20%, transparent),
    color-mix(in srgb, var(--orange) 4%, transparent)
  );
  border: 1px solid color-mix(in srgb, var(--orange) 32%, transparent);
  color: var(--orange-bright);
  margin-bottom: 0.35rem;
}
.card__icon svg { width: 22px; height: 22px; }

.card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.7rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--orange) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--orange) 30%, transparent);
  color: var(--orange-bright);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip--plain { background: var(--surface-3); border-color: var(--border-strong); color: var(--text-dim); }

/* ----------------------------- portfolio cards ---------------------------- */
.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.22s var(--ease);
  height: 100%;
}
.work-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.work-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.work-card:hover .work-card__media img { transform: scale(1.045); }
.work-card__media--empty { display: grid; place-items: center; color: var(--muted-2); font-family: var(--font-head); font-size: 2rem; }
.work-card__badge { position: absolute; top: 0.85rem; left: 0.85rem; }
.work-card__body { padding: 1.35rem 1.45rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.work-card__body h3 { margin: 0; font-size: 1.2rem; }
.work-card__body p { font-size: 0.94rem; margin: 0; }
.work-card__foot { margin-top: auto; padding-top: 0.85rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.84rem; color: var(--muted); }

/* --------------------------------- filters -------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  padding-bottom: 2rem;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.18s var(--ease);
}
.filter:hover { border-color: var(--border-strong); color: var(--white); }
.filter.is-active { background: var(--orange); border-color: var(--orange); color: var(--on-accent); }
.filter__count {
  font-size: 0.76rem;
  padding: 0.05rem 0.42rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--white) 12%, transparent);
  color: inherit;
}
.filter.is-active .filter__count { background: rgba(0, 0, 0, 0.22); }

/* ------------------------------- list blocks ------------------------------ */
.point-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.15rem; }
.point { display: flex; gap: 0.95rem; align-items: flex-start; }
.point__dot {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--orange) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--orange) 34%, transparent);
  color: var(--orange);
}
.point__dot svg { width: 12px; height: 12px; }
.point strong { display: block; color: var(--white); font-family: var(--font-head); margin-bottom: 0.15rem; }
.point p { font-size: 0.95rem; margin: 0; }

.steps { counter-reset: step; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } }
.step { background: var(--ink-soft); padding: 1.7rem 1.5rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 0.7rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.94rem; margin: 0; }

/* ---------------------------------- FAQ ----------------------------------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 2.5rem 1.25rem 0;
  position: relative;
  font-family: var(--font-head);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--white);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.faq summary:hover { color: var(--orange-bright); }
.faq details[open] summary { color: var(--orange); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq__answer { padding: 0 0 1.4rem; color: var(--text-dim); font-size: 0.97rem; max-width: 78ch; }

/* --------------------------------- forms ---------------------------------- */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }

.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field > label { font-size: 0.88rem; font-weight: 600; color: var(--text); font-family: var(--font-head); letter-spacing: 0.01em; }
.field__hint { font-size: 0.82rem; color: var(--muted); }
.field__error { font-size: 0.85rem; color: #ff8f7a; }

.input, .textarea, .select {
  width: 100%;
  padding: 0.82rem 1rem;
  background: var(--ink-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease), background 0.16s var(--ease);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 16%, transparent);
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2394949f' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; padding-right: 2.6rem; }
.select option { background: var(--surface); color: var(--text); }

.checkbox { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.95rem; color: var(--text-dim); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); flex-shrink: 0; }

.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------- notice --------------------------------- */
.notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.95rem;
}
.notice--success { border-color: rgba(63, 178, 127, 0.45); background: rgba(63, 178, 127, 0.09); color: #a9e6c9; }
.notice--error { border-color: rgba(224, 75, 75, 0.5); background: rgba(224, 75, 75, 0.09); color: #ffb3b3; }
.notice svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; }
.notice ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }

/* -------------------------------- contact --------------------------------- */
.contact-layout { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 980px) { .contact-layout { grid-template-columns: 1fr 1.15fr; align-items: start; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.panel--flat { background: transparent; border: 0; padding: 0; }

.detail-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.15rem; }
.detail { display: flex; gap: 0.9rem; align-items: flex-start; }
.detail__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--orange);
}
.detail__icon svg { width: 18px; height: 18px; }
.detail__label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.detail__value { color: var(--text); font-weight: 500; word-break: break-word; }
.detail__value a { color: var(--text); }
.detail__value a:hover { color: var(--orange-bright); }

.map-embed { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-top: 2rem; }
.map-embed iframe { width: 100%; min-height: 340px; border: 0; display: block; }

/* -------------------------------- portfolio ------------------------------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.gallery figcaption { padding: 0.75rem 1rem; font-size: 0.86rem; color: var(--muted); border-top: 1px solid var(--border); }

.project-meta {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.project-meta > div { background: var(--ink-soft); padding: 1.1rem 1.25rem; }
.project-meta dt { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.project-meta dd { margin: 0; color: var(--white); font-weight: 500; }

/* ---------------------------------- team ---------------------------------- */
.team-card { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.team-card__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border-strong); }
.team-card__photo--initials { display: grid; place-items: center; background: var(--surface-3); font-family: var(--font-head); font-weight: 700; color: var(--orange); font-size: 1.2rem; }
.team-card h3 { font-size: 1.06rem; margin: 0; }
.team-card__role { font-size: 0.84rem; color: var(--orange); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.4rem; }
.team-card p { font-size: 0.92rem; margin: 0; }

.logo-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.logo-wall > div { background: var(--ink-soft); display: grid; place-items: center; padding: 1.5rem 1rem; min-height: 96px; }
.logo-wall img { max-height: 40px; width: auto; opacity: 0.72; filter: grayscale(1); transition: opacity 0.2s var(--ease), filter 0.2s var(--ease); }
.logo-wall > div:hover img { opacity: 1; filter: none; }
.logo-wall span { font-family: var(--font-head); font-size: 1rem; color: var(--muted); }

/* --------------------------------- CTA ------------------------------------ */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(140deg, var(--surface-2), var(--ink-soft) 60%);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: auto -10% -70% 40%;
  height: 400px;
  background: radial-gradient(closest-side, var(--orange-glow), transparent);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 0.5rem; }

/* --------------------------------- pagination ----------------------------- */
.pagination { display: flex; gap: 0.5rem; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 2.75rem; }
.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--text-dim);
}
.pagination a:hover { border-color: var(--orange); color: var(--white); }
.pagination .is-current { background: var(--orange); border-color: var(--orange); color: var(--on-accent); font-weight: 600; }
.pagination .is-disabled { opacity: 0.4; pointer-events: none; }

/* ---------------------------------- footer -------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--ink-soft); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; margin-top: auto; }
.site-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; } }
.site-footer h4 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-family: var(--font-head); }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.site-footer__links a { color: var(--text-dim); font-size: 0.94rem; }
.site-footer__links a:hover { color: var(--orange); }
.site-footer__about { max-width: 42ch; font-size: 0.94rem; color: var(--muted); }
.site-footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.socials { display: flex; gap: 0.5rem; }
.socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  transition: all 0.18s var(--ease);
}
.socials a:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

/* --------------------------------- layout --------------------------------- */
.page-body { display: flex; flex-direction: column; min-height: 100vh; }

/* --------------------------------- utilities ------------------------------ */
.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;
}
.empty-state {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty-state h3 { color: var(--white); }

.media-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
/* Blog listing: same idea as .split, but the sidebar is a fixed narrow
   column so the post grid keeps two columns instead of collapsing to one. */
.blog-layout { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
@media (min-width: 1000px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .blog-layout > aside { position: sticky; top: 5.5rem; }
}

.split { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-first > :first-child { order: 2; }
}
