/* ==========================================================================
   NOVATISE EDITORIAL DESIGN SYSTEM
   Palette: Warm Off-White (#F7F7F5), Near-Black (#171717), Grey (#666666),
            Dividers (#CFCFCB), Electric Blue (#284BFF), Red Action (#E93626)
   Typography: Editorial Serif (Newsreader) + Neutral Sans-Serif (Inter), self-hosted
   ========================================================================== */

/* Self-hosted fonts (latin + latin-ext), see /fonts/LICENSE.txt */
/* Inter normal latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter normal latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter normal latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter normal latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter normal latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter normal latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter normal latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter normal latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter normal latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter normal latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Newsreader italic latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/newsreader-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Newsreader italic latin */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/newsreader-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Newsreader normal latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/newsreader-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Newsreader normal latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/newsreader-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Newsreader normal latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/newsreader-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Newsreader normal latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/newsreader-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Newsreader normal latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/newsreader-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Newsreader normal latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/newsreader-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Newsreader normal latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/newsreader-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Newsreader normal latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/newsreader-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Design Tokens */
  --font-serif: 'Newsreader', Georgia, Cambria, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  /* Labels use the sans face; true monospace was decorative only */
  --font-mono: var(--font-sans);

  /* Color Palette */
  --bg-primary: #F7F7F5;
  --bg-surface: #FFFFFF;
  --bg-subtle: #EFEFEA;
  --bg-dark: #171717;
  --bg-dark-surface: #202020;

  --text-primary: #171717;
  --text-secondary: #5A5A57;
  --text-muted: #888884;
  --text-inverse: #F7F7F5;
  --text-inverse-muted: #A0A09C;

  --border-color: #CFCFCB;
  --border-subtle: #E4E4DF;
  --border-dark: #2F2F2D;

  --color-blue: #284BFF;
  --color-blue-hover: #1736DB;
  --color-blue-subtle: #EDF1FF;

  --color-red: #E93626;
  --color-red-hover: #CF2718;
  --color-red-subtle: #FDF2F1;

  --color-green: #15803D;

  /* Layout & Rhythm */
  --max-width: 1360px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --section-spacing: clamp(4rem, 7vw, 6.5rem);
  --radius-sm: 3px;
  --radius-md: 6px;

  /* Transitions */
  --transition: 0.2s ease;
}

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-blue);
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1.5rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.5rem 1rem;
  z-index: 10000;
  font-size: 0.875rem;
  transition: top 0.2s ease;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Base Section Utilities */
.section, .ed-section {
  padding-top: clamp(3.5rem, 6vw, 6rem);
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
  position: relative;
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 720px;
}

/* Editorial Labels & Eyebrows */
.ed-label, .kicker, .eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.ed-label-blue {
  color: var(--color-blue);
}

/* Link Arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-blue);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}

.link-arrow:hover {
  color: var(--color-blue-hover);
  transform: translateX(4px);
}

/* Editorial Headings */
h1, h2, h3, h4, .serif-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.ed-hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.ed-section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 400;
}

.ed-sub-title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

/* Editorial Links & Buttons */
.ed-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-blue);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: all var(--transition);
}

.ed-link:hover {
  border-bottom-color: var(--color-blue);
  gap: 0.65rem;
}

.btn-cta, .ed-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-red);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-red);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-cta:hover, .ed-button:hover {
  background-color: var(--color-red-hover);
  border-color: var(--color-red-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-secondary, .ed-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
  text-decoration: none;
}

.btn-secondary:hover, .ed-button-secondary:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.02);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-blue);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.btn-primary:hover {
  background-color: var(--color-blue-hover);
  color: #FFFFFF;
}

/* Thin Editorial Rule Dividers */
.ed-divider, hr {
  border: none;
  height: 1px;
  background-color: var(--border-color);
  width: 100%;
  margin: 0;
}

/* ==========================================================================
   Header & Navigation (Consistent Editorial Bar)
   ========================================================================== */

.site-header, .header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(247, 247, 245, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  transition: background-color var(--transition);
}

.site-header .container,
.site-header .header-inner,
header .header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 72px !important;
  max-width: var(--max-width) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--gutter) !important;
  padding-right: var(--gutter) !important;
  gap: 1.5rem !important;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-symbol {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #171717 0%, #3A3A38 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}

.brand-caption {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-links {
  display: flex !important;
  align-items: center !important;
  gap: clamp(0.75rem, 1.4vw, 1.75rem) !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap !important;
}

.nav-links li {
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-link {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  position: relative !important;
  padding: 0.5rem 0 !important;
  transition: color var(--transition) !important;
  white-space: nowrap !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

.nav-link:hover {
  color: var(--text-primary) !important;
}

.nav-link.active {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
}

.nav-link.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0px !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background-color: var(--color-blue) !important;
  border-radius: 1px !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: var(--color-blue) !important;
  padding: 0.5rem 1rem !important;
  border: 1px solid var(--color-blue) !important;
  border-radius: var(--radius-sm) !important;
  transition: all var(--transition) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
}

.nav-cta:hover {
  background-color: var(--color-blue) !important;
  color: #FFFFFF !important;
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1100;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  transition: all 0.25s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 2rem var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 72px);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 999;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav .nav-link {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-primary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Homepage: Editorial Hero
   ========================================================================== */

.ed-hero {
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.ed-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.ed-hero-copy {
  display: flex;
  flex-direction: column;
}

.ed-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 580px;
}

.ed-hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.ed-hero-meta {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.ed-meta-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.ed-meta-bullet {
  color: var(--color-blue);
  font-weight: 700;
}

/* Hero Right Visual: Thoughtfully Cropped Editorial Figure */
.ed-hero-media {
  position: relative;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  overflow: hidden;
}

.ed-hero-media img {
  width: 100%;
  height: clamp(340px, 42vw, 480px);
  object-fit: cover;
  filter: contrast(1.02);
  transition: transform 0.6s ease;
}

.ed-hero-media:hover img {
  transform: scale(1.02);
}

.ed-media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(23, 23, 23, 0.85);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* Trust Bar / Established Strip */
.ed-trust-bar {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

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

/* ==========================================================================
   Editorial Sections & Two-Column Split Architecture
   ========================================================================== */

.ed-section {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
  border-bottom: 1px solid var(--border-color);
}

.ed-section-split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.ed-section-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.ed-section-main {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Section 01: Core Philosophy / Purpose Statement
   ========================================================================== */

.ed-purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.ed-purpose-item {
  display: flex;
  flex-direction: column;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.ed-purpose-item .num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-blue);
  margin-bottom: 0.75rem;
}

.ed-purpose-item h3 {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  margin-bottom: 0.75rem;
}

.ed-purpose-item p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Section 02: Services Overview (Editorial Numbered List with Thin Dividers)
   ========================================================================== */

.ed-service-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
}

.ed-service-row {
  display: grid;
  grid-template-columns: 60px 1.2fr 2fr 40px;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition), padding-left var(--transition);
  text-decoration: none;
  color: inherit;
}

.ed-service-row:hover {
  background-color: rgba(40, 75, 255, 0.02);
  padding-left: 0.5rem;
}

.ed-service-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-blue);
}

.ed-service-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-primary);
}

.ed-service-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ed-service-arrow {
  font-size: 1.15rem;
  color: var(--color-blue);
  text-align: right;
  transition: transform var(--transition);
}

.ed-service-row:hover .ed-service-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Section 03: Selected Work (Editorial Portfolio Grid)
   ========================================================================== */

.ed-work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2.5rem;
  margin-top: 2.5rem;
}

.ed-work-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
}

.ed-work-thumb {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  margin-bottom: 1.25rem;
}

.ed-work-thumb img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ed-work-card:hover .ed-work-thumb img {
  transform: scale(1.03);
}

.ed-work-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background-color: rgba(23, 23, 23, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.ed-work-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.ed-work-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.ed-work-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ed-work-metric {
  color: var(--color-blue);
  font-weight: 600;
}

/* Detailed Case Studies List (for the case studies page) */
.case-detailed-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-top: 2rem;
}

.case-detailed-item {
  display: grid;
  grid-template-columns: 1.1fr 1fr 220px;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-color);
  align-items: start;
}

.case-detailed-media {
  border: 1px solid var(--border-color);
  overflow: hidden;
  background-color: #FFFFFF;
}

.case-detailed-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.case-stats-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-left: 1px solid var(--border-color);
  padding-left: 1.5rem;
}

.case-stat-item label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.case-stat-item .stat-value {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--text-primary);
  font-weight: 500;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--text-primary);
  color: #FFFFFF;
  border-color: var(--text-primary);
}

/* ==========================================================================
   Section 04: How It Works (Simple Phased Delivery)
   ========================================================================== */

.ed-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.ed-step-item {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.ed-step-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-blue);
  margin-bottom: 0.75rem;
}

.ed-step-item h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.ed-step-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Section 05: Technology Stack (Understated Inline System)
   ========================================================================== */

.ed-tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-items: center;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.ed-tech-tag, .tech-pill {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ed-tech-tag::before {
  content: '·';
  color: var(--color-blue);
  font-size: 1.25rem;
  line-height: 0;
}

/* ==========================================================================
   Living Vision & Generative Art Stage (Restrained Editorial Tone)
   ========================================================================== */

.living-vision-container {
  border: 1px solid var(--border-color);
  background-color: #FFFFFF;
  margin-top: 2rem;
  overflow: hidden;
}

.living-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.living-canvas-stage {
  position: relative;
  width: 100%;
  height: clamp(320px, 40vw, 440px);
  background: radial-gradient(circle at center, #FFFFFF 0%, #F7F7F5 100%);
}

.living-canvas-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hitl-hud-dock {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  overflow-x: auto;
}

.hitl-step-pill {
  flex: 1;
  min-width: 140px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-right: 1px solid var(--border-color);
  background: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.hitl-step-pill:last-child {
  border-right: none;
}

.hitl-step-pill .step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hitl-step-pill.active {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 600;
}

.hitl-step-pill.active .step-num {
  color: var(--color-blue);
}

.hitl-inspector-card {
  padding: 1.75rem;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
}

.hitl-inspect-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.hitl-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
}

.hitl-inspect-title {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.hitl-inspect-sub {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.hitl-columns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.hitl-col-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.hitl-col p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.living-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background-color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.living-toggle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-blue);
  cursor: pointer;
}

/* ==========================================================================
   Spotlight: SEO, AI Search & Local Discovery (Editorial Tabs)
   ========================================================================== */

.spotlight-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.spotlight-left h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.spotlight-left p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.spotlight-right {
  border: 1px solid var(--border-color);
  background-color: #FFFFFF;
}

.search-toggle-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.search-toggle-tabs .tab-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border-right: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition);
}

.search-toggle-tabs .tab-btn:last-child {
  border-right: none;
}

.search-toggle-tabs .tab-btn.active {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-weight: 600;
}

.search-mockup-display {
  padding: 1.5rem;
  font-size: 0.875rem;
}

/* ==========================================================================
   ROI Calculator (Restrained Editorial Estimator)
   ========================================================================== */

.calc-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.calc-slider-group {
  margin-bottom: 1.5rem;
}

.calc-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.val-badge {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-blue);
  font-weight: 600;
}

.calc-range {
  width: 100%;
  accent-color: var(--color-blue);
  cursor: pointer;
}

.calc-result-panel {
  border: 1px solid var(--border-color);
  background-color: #FFFFFF;
  padding: 2.25rem;
}

.calc-result-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.calc-result-big {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.calc-breakdown {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.calc-breakdown-row strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Accordion / FAQs
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  text-align: left;
  background: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-primary);
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--color-blue);
}

.faq-icon {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--color-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 1.5rem;
}

/* ==========================================================================
   Closing Consultation Section & Simple Footer
   ========================================================================== */

.ed-cta-section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--border-color);
}

.ed-cta-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.ed-cta-box h2 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  margin-bottom: 1rem;
}

.ed-cta-box p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Simple Editorial Footer */
.ed-footer,
.site-footer {
  padding-top: 4.5rem;
  padding-bottom: 3.5rem;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.ed-footer-grid,
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.ed-footer-brand,
.footer-brand {
  display: flex;
  flex-direction: column;
}

.ed-footer-brand .logo,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ed-footer-brand h3,
.footer-brand-title {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 500;
}

.ed-footer-brand p,
.footer-desc,
.footer-legal {
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.ed-footer-col h4,
.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.ed-footer-col ul,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ed-footer-col a,
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.ed-footer-col a:hover,
.footer-links a:hover {
  color: var(--color-blue);
}

.ed-footer-bottom,
.footer-meta {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ed-footer-bottom a,
.footer-meta a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.ed-footer-bottom a:hover,
.footer-meta a:hover {
  color: var(--color-blue);
}

/* ==========================================================================
   FAQ Accordions (Clean Editorial Style)
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--color-blue);
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.25s ease, color var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-blue);
}

.faq-answer {
  display: none;
  padding-bottom: 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  display: block;
  animation: faqFadeIn 0.25s ease;
}

@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Modal Dialogs & Form Styles (Restrained, Accessible, Clean)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(23, 23, 23, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open,
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-card,
.modal-overlay.active .modal-card {
  transform: translateY(0);
}

/* ==========================================================================
   Editorial Layouts & Lists (Shared across Blog, Capabilities, Engine, Network)
   ========================================================================== */

.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 2.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.page-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-hero-meta .eyebrow {
  margin-bottom: 0;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: 860px;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 720px;
}

.hero-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Editorial Rows */
.editorial-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
}

.editorial-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 2rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition);
  text-decoration: none;
  color: inherit;
}

.editorial-row:hover {
  background-color: rgba(40, 75, 255, 0.015);
}

.row-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-blue);
  padding-top: 0.25rem;
}

.row-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.row-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.row-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.row-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
  transition: color var(--transition);
}

.editorial-row:hover .row-title {
  color: var(--color-blue);
}

.row-action {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-blue);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: transform var(--transition);
}

.editorial-row:hover .row-action {
  transform: translateX(4px);
}

.row-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 820px;
}

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

.row-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

.meta-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border-color);
  background-color: #FFFFFF;
  color: var(--text-primary);
  border-radius: 2px;
  display: inline-block;
  transition: all var(--transition);
}

.meta-tag:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

/* Capability Architecture Matrix Table */
.matrix-table-wrap {
  overflow-x: auto;
  margin-top: 2.25rem;
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.matrix-table th {
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-sans);
  background: #F2F1EC;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.02em;
}

.matrix-table td {
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text-secondary);
}

.matrix-table tr:last-child td {
  border-bottom: none;
}

.matrix-table tr:hover td {
  background-color: rgba(40, 75, 255, 0.015);
}

.matrix-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

/* Editorial Blog Card Grid (Optional 2-Column with Visual Thumbnails) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2.5rem;
  margin-top: 2rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  cursor: pointer;
}

.blog-thumb {
  width: 100%;
  height: 240px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  margin-bottom: 1.25rem;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.03);
}

.blog-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  transition: color var(--transition);
}

.blog-card:hover .blog-title {
  color: var(--color-blue);
}

.blog-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-top: auto;
}

@media (max-width: 768px) {
  .editorial-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.75rem 0;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(40, 75, 255, 0.12);
  background-color: #FFFFFF;
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 3000;
  pointer-events: none;
}

.toast {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-left: 3px solid var(--color-blue);
  padding: 0.85rem 1.25rem;
  font-size: 0.875rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  animation: slideInToast 0.3s ease;
}

@keyframes slideInToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
  .ed-section-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ed-section-sidebar {
    position: static;
  }

  .ed-service-row {
    grid-template-columns: 50px 1fr 30px;
    grid-template-areas: 
      "num name arrow"
      "desc desc desc";
    gap: 0.75rem;
  }

  .ed-service-num { grid-area: num; }
  .ed-service-name { grid-area: name; }
  .ed-service-arrow { grid-area: arrow; }
  .ed-service-desc { grid-area: desc; }

  .case-detailed-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .case-stats-column {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-left: 0;
    padding-top: 1rem;
    flex-direction: row;
    gap: 2rem;
  }

  .ed-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ed-footer-grid,
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 1140px) {
  .nav-links, .header-actions .nav-cta {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {

  .ed-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .spotlight-box, .calc-wrapper, .ed-cta-box, .ed-work-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ed-purpose-grid, .ed-steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ed-footer-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .modal-card {
    padding: 1.75rem 1.25rem;
  }
}

/* FAQ Accordion Component */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.faq-item:hover {
  background-color: rgba(0, 0, 0, 0.015);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 1.5rem 0.5rem;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.2s ease;
  gap: 1.5rem;
}

.faq-question:hover {
  color: var(--color-blue);
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-secondary);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background-color: var(--text-primary);
  color: #FFFFFF;
  border-color: var(--text-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease, opacity 0.25s ease;
  opacity: 0;
  padding: 0 0.5rem;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  opacity: 1;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* Floating Design Comparison Bar */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


.toast-icon { color: var(--color-blue); font-weight: 700; }

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

.ed-hero-media { margin: 0; }
.ed-hero-note { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.6; }
.spotlight-single { grid-template-columns: minmax(0, 760px); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 768px) {
  .contact-grid, .form-row { grid-template-columns: minmax(0, 1fr); }
}

/* Long-form case study */
.cs-narrow { max-width: 760px; }
.cs-article h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2rem); margin: 3rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.cs-article h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.25rem; margin: 2rem 0 0.5rem; }
.cs-article p, .cs-article li { color: var(--text-secondary); line-height: 1.75; margin-bottom: 1rem; }
.cs-article ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.cs-article strong { color: var(--text-primary); }
.cs-facts { margin: 2rem 0; border-top: 1px solid var(--border-color); }
.cs-facts div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border-subtle); }
.cs-facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); padding-top: 0.2rem; }
.cs-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.9375rem; }
.cs-table th, .cs-table td { text-align: left; padding: 0.75rem 0.5rem 0.75rem 0; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.cs-table th { font-weight: 500; }
.cs-table td:last-child { text-align: right; white-space: nowrap; }
.cs-note { font-size: 0.8125rem !important; color: var(--text-muted) !important; }
@media (max-width: 600px) {
  .cs-facts div { grid-template-columns: 1fr; gap: 0.25rem; }
  .cs-table td:last-child { white-space: normal; }
}
.cs-article ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.cs-table-text td:last-child { text-align: left; white-space: normal; }
.cs-table-text th[scope="row"] { width: 9rem; padding-right: 1rem; }

/* Homepage diagrams (js/systems.js) */
.hero-diagram { margin: 0; border: 1px solid var(--border-color); background: var(--bg-surface); }
.hero-diagram canvas { display: block; width: 100%; height: clamp(300px, 34vw, 440px); }
.hero-diagram figcaption { padding: 0.75rem 1rem; border-top: 1px solid var(--border-color); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

.work-feature { padding: var(--section-spacing) 0; border-top: 1px solid var(--border-color); }
.work-feature-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.work-feature-head h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.work-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.work-feature-card { display: flex; flex-direction: column; border: 1px solid var(--border-color); background: var(--bg-surface); color: inherit; text-decoration: none; transition: border-color var(--transition); }
.work-feature-card:hover, .work-feature-card:focus-visible { border-color: var(--color-blue); }
.work-feature-art { position: relative; aspect-ratio: 16 / 9; }
.work-feature-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.work-feature-body { position: relative; padding: 1.5rem 3.5rem 1.5rem 1.5rem; border-top: 1px solid var(--border-color); }
.work-feature-body h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.35rem; margin: 0.4rem 0 0.5rem; }
.work-feature-body p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.work-feature-arrow { position: absolute; right: 1.5rem; bottom: 1.5rem; color: var(--color-blue); }
@media (max-width: 768px) {
  .work-feature-grid { grid-template-columns: minmax(0, 1fr); }
}

.legal-draft { border-left: 3px solid var(--color-red); padding: 0.75rem 1rem; background: var(--color-red-subtle); color: var(--text-primary) !important; font-size: 0.875rem !important; margin: 1.5rem 0; }
.calc-note { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.75rem; }
img.brand-symbol { background: none; border-radius: 0; width: 28px; height: 28px; }
img[src$=".svg"]:not(.brand-symbol) { object-fit: contain !important; background: var(--bg-primary); }

/* Odd card count: last card spans the row, image beside text */
@media (min-width: 1025px) {
  .ed-work-grid > .ed-work-card:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; align-content: start; }
  .ed-work-grid > .ed-work-card:last-child:nth-child(odd) .ed-work-thumb { grid-row: 1 / span 4; margin-bottom: 0; }
  .ed-work-grid > .ed-work-card:last-child:nth-child(odd) > :not(.ed-work-thumb) { grid-column: 2; }
}

/* Three.js scenes (js/scenes.js) */
.three-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.three-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.hero-ribbon { aspect-ratio: auto; min-height: clamp(320px, 38vw, 520px); }
.scene-band { padding: 0 0 clamp(2rem, 4vw, 3.5rem); }
.scene-figure { margin: 0; border: 1px solid var(--border-color); background: var(--bg-surface); }
.scene-figure .three-stage { aspect-ratio: 21 / 9; cursor: crosshair; }
.scene-figure figcaption, .scene-band .hero-diagram figcaption { padding: 0.75rem 1rem; border-top: 1px solid var(--border-color); font-size: 0.8rem; color: var(--text-muted); }
.scene-inline { margin: 2rem 0; }
.scene-inline .three-stage { aspect-ratio: 16 / 10; }
@media (max-width: 768px) {
  .scene-figure .three-stage { aspect-ratio: 4 / 3; }
}

/* ---- Added: PDPA consent checkbox ---- */
.form-consent { margin-top: 1.25rem; }
.form-consent label { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.8125rem; line-height: 1.5; color: var(--text-secondary); cursor: pointer; }
.form-consent input[type="checkbox"] { margin-top: 0.2rem; width: 1rem; height: 1rem; flex: 0 0 auto; accent-color: var(--color-blue); }
.form-consent a { color: var(--color-blue); text-decoration: underline; }

/* ---- Added: blog cards are real links (whole card clickable, keyboard focusable) ---- */
.blog-card { position: relative; }
.blog-title a { color: inherit; text-decoration: none; }
.blog-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.blog-card:focus-within { outline: 2px solid var(--color-blue); outline-offset: 3px; }
.blog-title a:focus { outline: none; }
.blog-hero { margin: 2rem 0 0.5rem; border: 1px solid var(--border-color); overflow: hidden; background: #000; }
.blog-hero img { display: block; width: 100%; height: auto; }
.blog-article-cta { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.cs-takeaway { background: #F0EFEA; padding: 1.25rem; border-left: 3px solid var(--color-blue); margin: 1.5rem 0; }
.cs-takeaway strong { display: block; font-size: 0.875rem; margin-bottom: 0.25rem; }
.cs-takeaway p { font-size: 0.875rem; margin: 0; }

/* ---- Mobile audit fixes (22 Oct 2026) ---- */
/* Bigger tap areas without changing the look */
.hamburger { width: 44px; height: 44px; padding: 13px 10px; margin-right: -10px; box-sizing: border-box; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.modal-close-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; top: 0.9rem; right: 0.9rem; background: none; border: 0; padding: 0; }
.form-consent input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin-top: 0.05rem; }
img.brand-symbol { image-rendering: auto; }
@media (max-width: 768px) {
  /* iOS Safari/Chrome zoom the page when a focused field is under 16px */
  input, select, textarea, .form-input, .form-select, .form-textarea { font-size: 16px; }
  .ed-footer a, footer a { display: inline-block; padding-top: 0.2rem; padding-bottom: 0.2rem; }
}
.text-link { color: var(--color-blue); text-decoration: underline; text-underline-offset: 2px; }
.text-link:hover { color: var(--color-blue-hover, var(--color-blue)); }
