/* ==========================================================
   GLOBAL DESIGN SYSTEM
   Dark cinematic framing + light editorial reading areas

   ALL SITE STYLING LIVES IN THIS FILE.
   ========================================================== */

:root {

  /* Light surfaces */
  --background: #f5f7fa;
  --background-deep: #edf2f7;
  --background-soft: #ffffff;
  --background-card: #ffffff;

  /* Dark framing */
  --nav-background: #252e3a;
  --dark: #0b1220;
  --dark-soft: #111b2b;

  /* Text */
  --white: #ffffff;
  --text: #17202b;
  --muted: #5f6b7a;
  --quiet: #7d8896;

  /* Accent */
  --blue: #2f7df6;
  --blue-light: #1765db;
  --blue-pale: #edf5ff;

  /* Borders */
  --line: #dce3ea;
  --line-soft: #e8edf2;

  /* Layout */
  --container: 1320px;
  --reading-width: 740px;

  --page-padding:
    clamp(22px, 4vw, 64px);
}


/* ==========================================================
   RESET
   ========================================================== */

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


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  overflow-x: hidden;

  background:
    var(--background);

  color:
    var(--text);

  font-family:
    "DM Sans",
    Arial,
    Helvetica,
    sans-serif;

  font-size: 18px;

  line-height: 1.72;

  -webkit-font-smoothing:
    antialiased;

  text-rendering:
    optimizeLegibility;
}


a {
  color: inherit;

  text-decoration: none;
}


button,
input,
textarea,
select {
  font: inherit;
}


button {
  cursor: pointer;
}


img {
  display: block;

  max-width: 100%;
}


::selection {
  background:
    var(--blue);

  color:
    var(--white);
}


/* ==========================================================
   CONTAINER
   ========================================================== */

.container {
  width:
    min(
      var(--container),
      calc(
        100% -
        (var(--page-padding) * 2)
      )
    );

  margin:
    0 auto;
}


/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

h1,
h2,
h3,
p {
  margin-top: 0;
}


h1,
h2,
h3 {
  color:
    var(--text);

  font-family:
    "Instrument Serif",
    Georgia,
    serif;

  font-weight: 400;

  text-wrap: balance;
}


h1 {
  margin-bottom: 0;

  font-size:
    clamp(
      72px,
      9.6vw,
      158px
    );

  line-height: 0.9;

  letter-spacing:
    -0.05em;
}


h1 em {
  display: block;

  font-style: italic;
}


h2 {
  margin-bottom: 0;

  font-size:
    clamp(
      48px,
      6vw,
      92px
    );

  line-height: 0.97;

  letter-spacing:
    -0.035em;
}


h3 {
  margin-bottom: 0;

  font-size:
    clamp(
      27px,
      2.25vw,
      38px
    );

  line-height: 1.08;

  letter-spacing:
    -0.025em;
}


p {
  line-height: 1.72;
}


strong {
  color:
    var(--text);

  font-weight: 600;
}


.eyebrow {
  margin-bottom: 24px;

  color:
    var(--blue-light);

  font-size: 11px;

  line-height: 1;

  letter-spacing:
    0.15em;

  text-transform:
    uppercase;

  font-weight: 600;
}


/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
  position: sticky;

  top: 0;

  z-index: 100;

  background:
    rgba(
      30,
      39,
      52,
      0.98
    );

  border-bottom:
    1px solid
    rgba(
      255,
      255,
      255,
      0.08
    );

  backdrop-filter:
    blur(18px);

  -webkit-backdrop-filter:
    blur(18px);
}


.header-inner {
  min-height: 78px;

  display: flex;

  align-items: center;

  justify-content:
    space-between;

  gap: 40px;
}


.brand {
  display:
    inline-flex;

  align-items:
    center;

  gap: 12px;

  color:
    var(--white);
}


.brand-symbol {
  width: 37px;

  height: 37px;

  display: grid;

  place-items:
    center;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.55
    );

  border-radius:
    50%;

  color:
    var(--white);

  font-size: 11px;

  letter-spacing:
    -0.15em;
}


.brand-name {
  color:
    var(--white);

  font-family:
    "Instrument Serif",
    Georgia,
    serif;

  font-size: 25px;

  line-height: 1;
}


.desktop-nav {
  display: flex;

  align-items: center;

  gap: 42px;
}


.desktop-nav > a {
  color:
    rgba(
      255,
      255,
      255,
      0.80
    );

  font-size: 15px;

  transition:
    color 0.2s ease;
}


.desktop-nav > a:hover {
  color:
    var(--white);
}


.desktop-nav .nav-cta {
  min-height: 48px;

  display:
    inline-flex;

  align-items:
    center;

  padding:
    0 26px;

  border-radius:
    999px;

  background:
    var(--white);

  color:
    #11151b;

  font-family:
    "Instrument Serif",
    Georgia,
    serif;

  font-size: 18px;
}


.mobile-menu {
  display: none;
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.button {
  min-height: 58px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    0 34px;

  border:
    1px solid
    #cbd4de;

  border-radius:
    999px;

  font-family:
    "Instrument Serif",
    Georgia,
    serif;

  font-size: 20px;

  line-height: 1;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}


.button-primary {
  background:
    var(--white);

  color:
    #10141a;

  box-shadow:
    0 0 0 3px
    rgba(
      255,
      255,
      255,
      0.08
    );
}


.button:hover {
  transform:
    translateY(-2px);

  box-shadow:
    0 8px 28px
    rgba(
      31,
      75,
      135,
      0.14
    );
}


.button-link {
  display:
    inline-flex;

  align-items:
    center;

  gap: 10px;

  color:
    var(--blue-light);

  font-size: 16px;

  font-weight: 500;
}


.button-link:hover {
  color:
    var(--dark);
}


/* ==========================================================
   HOMEPAGE HERO
   Deep cinematic navy / blue treatment
   ========================================================== */

.hero {
  position: relative;

  min-height:
    calc(
      100vh -
      78px
    );

  overflow: hidden;

  background:
    radial-gradient(
      ellipse
      at
      52%
      10%,
      rgba(
        60,
        133,
        238,
        0.82
      )
      0%,
      rgba(
        24,
        77,
        172,
        0.82
      )
      22%,
      rgba(
        11,
        39,
        91,
        0.96
      )
      45%,
      rgba(
        7,
        24,
        51,
        1
      )
      66%,
      #050b14
      100%
    );
}


.hero::before {
  content: "";

  position: absolute;

  width: 118%;

  height: 64%;

  top: -34%;

  left: -8%;

  background:
    radial-gradient(
      ellipse
      at
      66%
      18%,
      rgba(
        255,
        255,
        255,
        0.82
      ),
      rgba(
        181,
        217,
        255,
        0.36
      )
      21%,
      rgba(
        61,
        134,
        242,
        0.12
      )
      48%,
      transparent
      70%
    );

  filter:
    blur(42px);

  opacity: 0.56;

  pointer-events: none;
}


.hero::after {
  content: "";

  position: absolute;

  left: -10%;

  right: -10%;

  bottom: -23%;

  height: 58%;

  background:
    radial-gradient(
      ellipse
      at
      center,
      rgba(
        13,
        36,
        73,
        0.08
      ),
      rgba(
        4,
        10,
        18,
        0.93
      )
      70%
    );

  filter:
    blur(32px);

  pointer-events: none;
}


.hero-inner {
  position: relative;

  z-index: 3;

  min-height:
    calc(
      100vh -
      78px
    );

  padding:
    clamp(
      110px,
      12vw,
      190px
    )
    0
    115px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;
}


.hero h1 {
  max-width:
    1180px;

  margin:
    0 auto;

  color:
    var(--white);
}


.hero-eyebrow,
.hero .eyebrow {
  color:
    rgba(
      255,
      255,
      255,
      0.68
    );
}


.hero-copy {
  max-width:
    800px;

  margin:
    38px
    auto
    0;

  color:
    rgba(
      255,
      255,
      255,
      0.88
    );

  font-size:
    clamp(
      18px,
      1.45vw,
      21px
    );

  line-height:
    1.72;
}


.hero-actions {
  margin-top:
    34px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 28px;

  flex-wrap: wrap;
}


.hero .button-link {
  color:
    rgba(
      255,
      255,
      255,
      0.84
    );
}


.hero .button-link:hover {
  color:
    var(--white);
}


.hero-glow {
  position: absolute;

  pointer-events: none;

  border-radius:
    50%;

  filter:
    blur(80px);
}


.hero-glow-one {
  width: 450px;

  height: 450px;

  top: 18%;

  left: -190px;

  background:
    rgba(
      19,
      85,
      209,
      0.18
    );
}


.hero-glow-two {
  width: 500px;

  height: 500px;

  right: -200px;

  bottom: 5%;

  background:
    rgba(
      37,
      103,
      220,
      0.12
    );
}


.hero-grid-pattern {
  position: absolute;

  inset:
    auto
    0
    0;

  height: 190px;

  opacity: 0.10;

  background-image:
    linear-gradient(
      rgba(
        255,
        255,
        255,
        0.14
      )
      1px,
      transparent
      1px
    ),
    linear-gradient(
      90deg,
      rgba(
        255,
        255,
        255,
        0.14
      )
      1px,
      transparent
      1px
    );

  background-size:
    52px
    52px;

  -webkit-mask-image:
    linear-gradient(
      transparent,
      black
    );

  mask-image:
    linear-gradient(
      transparent,
      black
    );
}


/* ==========================================================
   INTRO
   Light reading begins here
   ========================================================== */

.intro-section {
  padding:
    clamp(
      100px,
      10vw,
      160px
    )
    0;

  background:
    var(--white);

  border-bottom:
    1px solid
    var(--line);
}


.intro-grid {
  display: grid;

  grid-template-columns:
    minmax(
      0,
      0.9fr
    )
    minmax(
      0,
      1.1fr
    );

  gap:
    clamp(
      60px,
      9vw,
      140px
    );
}


.intro-copy {
  max-width:
    720px;
}


.intro-copy p {
  color:
    var(--muted);

  font-size:
    clamp(
      18px,
      1.35vw,
      20px
    );

  line-height:
    1.78;
}


.intro-copy p:first-child {
  color:
    var(--text);

  font-weight: 500;
}


/* ==========================================================
   STANDARD SECTIONS
   ========================================================== */

.section {
  padding:
    clamp(
      105px,
      11vw,
      180px
    )
    0;

  background:
    var(--white);
}


.section-heading {
  display: grid;

  grid-template-columns:
    minmax(
      0,
      0.75fr
    )
    minmax(
      0,
      2.4fr
    );

  gap:
    clamp(
      50px,
      8vw,
      120px
    );

  margin-bottom:
    70px;
}


/* ==========================================================
   SERVICES / RESOURCE ROWS
   ========================================================== */

.service-list {
  border-top:
    1px solid
    var(--line);
}


.service-row {
  display: grid;

  grid-template-columns:
    64px
    minmax(
      230px,
      0.95fr
    )
    minmax(
      280px,
      1.3fr
    )
    30px;

  gap: 30px;

  align-items: start;

  padding:
    38px
    0;

  border-bottom:
    1px solid
    var(--line);

  transition:
    padding-left 0.2s ease,
    background 0.2s ease;
}


a.service-row:hover {
  padding-left:
    14px;

  background:
    var(--blue-pale);
}


.service-number {
  color:
    var(--blue-light);

  font-size: 11px;

  line-height: 1.3;
}


.service-row h3 {
  color:
    var(--text);
}


.service-row p {
  max-width:
    570px;

  margin-bottom: 0;

  color:
    var(--muted);

  font-size: 17px;

  line-height: 1.72;
}


.service-arrow {
  color:
    var(--blue-light);

  font-size: 21px;

  line-height: 1;
}


/* ==========================================================
   TOOL STATUS
   ========================================================== */

.tools-status {
  margin:
    34px
    0
    0;

  color:
    var(--quiet);

  font-size:
    14px;

  line-height:
    1.6;
}


/* ==========================================================
   PHILOSOPHY / EDITORIAL SECTIONS
   ========================================================== */

.philosophy-section {
  background:
    var(--background-deep);

  border-top:
    1px solid
    var(--line);

  border-bottom:
    1px solid
    var(--line);
}


.philosophy-grid {
  display: grid;

  grid-template-columns:
    minmax(
      0,
      0.9fr
    )
    minmax(
      0,
      1.1fr
    );

  gap:
    clamp(
      70px,
      10vw,
      150px
    );
}


.philosophy-copy {
  max-width:
    720px;
}


.philosophy-copy p {
  color:
    var(--muted);

  font-size: 18px;

  line-height:
    1.75;
}


.philosophy-copy .large-statement {
  margin-bottom:
    38px;

  color:
    var(--text);

  font-size:
    clamp(
      22px,
      1.9vw,
      28px
    );

  line-height:
    1.55;
}


/* ==========================================================
   APPROACH / GUIDE ROWS
   ========================================================== */

.approach-section {
  background:
    var(--white);
}


.approach-list {
  border-top:
    1px solid
    var(--line);
}


.approach-row {
  display: grid;

  grid-template-columns:
    64px
    minmax(
      220px,
      0.95fr
    )
    minmax(
      300px,
      1.35fr
    );

  gap: 30px;

  padding:
    38px
    0;

  border-bottom:
    1px solid
    var(--line);
}


.approach-number {
  color:
    var(--blue-light);

  font-size: 11px;
}


.approach-row p {
  margin-bottom: 0;

  color:
    var(--muted);

  font-size: 17px;

  line-height:
    1.72;
}


/* ==========================================================
   FEATURE / FRICTION CARDS
   ========================================================== */

.friction-section {
  background:
    var(--background-deep);

  border-top:
    1px solid
    var(--line);

  border-bottom:
    1px solid
    var(--line);
}


.friction-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      1fr
    );

  border-top:
    1px solid
    var(--line);

  border-left:
    1px solid
    var(--line);
}


.friction-card {
  min-height:
    330px;

  padding:
    30px;

  display: flex;

  flex-direction: column;

  border-right:
    1px solid
    var(--line);

  border-bottom:
    1px solid
    var(--line);

  background:
    var(--white);

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


a.friction-card:hover {
  background:
    var(--blue-pale);

  transform:
    translateY(-2px);

  box-shadow:
    0 12px 30px
    rgba(
      37,
      64,
      94,
      0.08
    );
}


.friction-card > span {
  color:
    var(--blue-light);

  font-size: 10px;

  letter-spacing:
    0.06em;

  text-transform:
    uppercase;
}


.friction-card h3 {
  margin-top:
    auto;

  margin-bottom:
    18px;

  color:
    var(--text);
}


.friction-card p {
  margin-bottom: 0;

  color:
    var(--muted);

  font-size: 17px;

  line-height:
    1.7;
}


/* ==========================================================
   FINAL CTA
   Dark cinematic framing returns
   ========================================================== */

.final-cta {
  position: relative;

  overflow: hidden;

  padding:
    clamp(
      110px,
      12vw,
      190px
    )
    0;

  background:
    radial-gradient(
      ellipse
      at
      25%
      18%,
      rgba(
        44,
        111,
        220,
        0.52
      ),
      rgba(
        13,
        45,
        103,
        0.58
      )
      31%,
      #07101d
      72%
    );

  border-top:
    1px solid
    rgba(
      255,
      255,
      255,
      0.10
    );
}


.final-cta h2 {
  color:
    var(--white);
}


.final-cta .eyebrow {
  color:
    rgba(
      255,
      255,
      255,
      0.70
    );
}


.final-cta-glow {
  position: absolute;

  width: 600px;

  height: 600px;

  top: -380px;

  right: 2%;

  border-radius:
    50%;

  background:
    rgba(
      107,
      170,
      255,
      0.16
    );

  filter:
    blur(90px);
}


.final-cta-grid {
  position: relative;

  z-index: 2;

  display: grid;

  grid-template-columns:
    minmax(
      0,
      1.45fr
    )
    minmax(
      300px,
      0.55fr
    );

  gap:
    clamp(
      70px,
      9vw,
      130px
    );

  align-items:
    end;
}


.final-cta-copy p {
  margin-bottom:
    30px;

  color:
    rgba(
      255,
      255,
      255,
      0.86
    );

  font-size:
    18px;

  line-height:
    1.72;
}


/* ==========================================================
   CONTACT HERO
   ========================================================== */

.contact-hero {
  position: relative;

  overflow: hidden;

  padding:
    clamp(
      120px,
      12vw,
      190px
    )
    0
    clamp(
      100px,
      10vw,
      150px
    );

  background:
    radial-gradient(
      ellipse
      at
      62%
      4%,
      rgba(
        55,
        128,
        231,
        0.75
      ),
      rgba(
        16,
        56,
        128,
        0.58
      )
      28%,
      rgba(
        8,
        27,
        59,
        0.94
      )
      55%,
      #050b14
      84%
    );

  border-bottom:
    1px solid
    var(--line);
}


.contact-hero::before {
  content: "";

  position: absolute;

  width: 850px;

  height: 450px;

  top: -260px;

  right: -60px;

  border-radius:
    50%;

  background:
    rgba(
      188,
      222,
      255,
      0.26
    );

  filter:
    blur(90px);

  pointer-events: none;
}


.contact-hero-glow {
  position: absolute;

  width: 550px;

  height: 550px;

  left: -260px;

  bottom: -360px;

  border-radius:
    50%;

  background:
    rgba(
      39,
      103,
      218,
      0.15
    );

  filter:
    blur(80px);

  pointer-events: none;
}


.contact-hero-grid {
  position: relative;

  z-index: 2;

  display: grid;

  grid-template-columns:
    minmax(
      0,
      1.55fr
    )
    minmax(
      320px,
      0.55fr
    );

  gap:
    clamp(
      70px,
      10vw,
      150px
    );

  align-items:
    end;
}


.contact-hero h1 {
  max-width:
    900px;

  color:
    var(--white);

  font-size:
    clamp(
      72px,
      8.8vw,
      145px
    );
}


.contact-hero .eyebrow {
  color:
    rgba(
      255,
      255,
      255,
      0.70
    );
}


.contact-hero-copy {
  max-width:
    460px;

  padding-bottom:
    8px;
}


.contact-hero-copy p {
  color:
    rgba(
      255,
      255,
      255,
      0.86
    );

  font-size:
    18px;

  line-height:
    1.72;
}


.contact-hero-copy p:last-child {
  margin-bottom:
    0;

  color:
    var(--white);

  font-family:
    "Instrument Serif",
    Georgia,
    serif;

  font-size:
    26px;
}


/* ==========================================================
   PROJECT FORM SECTION
   ========================================================== */

.project-section {
  padding:
    clamp(
      100px,
      10vw,
      160px
    )
    0;

  background:
    var(--background);
}


.project-layout {
  display: grid;

  grid-template-columns:
    minmax(
      280px,
      0.62fr
    )
    minmax(
      0,
      1.38fr
    );

  gap:
    clamp(
      70px,
      9vw,
      135px
    );

  align-items:
    start;
}


/* ==========================================================
   PROJECT SIDEBAR
   ========================================================== */

.project-sidebar {
  position: sticky;

  top: 120px;
}


.project-sidebar h2 {
  max-width:
    480px;

  font-size:
    clamp(
      48px,
      5vw,
      76px
    );
}


.project-sidebar-copy {
  max-width:
    450px;

  margin-top:
    30px;

  color:
    var(--muted);

  font-size:
    18px;

  line-height:
    1.75;
}


.project-sidebar-block {
  margin-top:
    58px;

  padding-top:
    28px;

  border-top:
    1px solid
    var(--line);
}


.project-sidebar-label {
  margin-bottom:
    22px;

  color:
    var(--blue-light);

  font-size:
    10px;

  font-weight: 600;

  letter-spacing:
    0.14em;

  text-transform:
    uppercase;
}


.project-sidebar-list {
  margin: 0;

  padding: 0;

  list-style: none;
}


.project-sidebar-list li {
  position: relative;

  padding:
    11px
    0
    11px
    22px;

  color:
    var(--muted);

  border-bottom:
    1px solid
    var(--line);

  font-size:
    15px;

  line-height:
    1.55;
}


.project-sidebar-list li::before {
  content: "";

  position: absolute;

  left: 0;

  top: 21px;

  width: 5px;

  height: 5px;

  background:
    var(--blue);
}


.project-sidebar-note {
  margin-top:
    44px;

  padding:
    28px;

  background:
    var(--white);

  border:
    1px solid
    var(--line);

  border-radius:
    4px;

  box-shadow:
    0 10px 28px
    rgba(
      34,
      58,
      84,
      0.05
    );
}


.project-sidebar-note > span {
  display: block;

  margin-bottom:
    12px;

  color:
    var(--text);

  font-family:
    "Instrument Serif",
    Georgia,
    serif;

  font-size:
    24px;
}


.project-sidebar-note p {
  margin-bottom:
    16px;

  color:
    var(--muted);

  font-size:
    15px;

  line-height:
    1.65;
}


.project-sidebar-note a {
  color:
    var(--blue-light);

  font-size:
    14px;
}


/* ==========================================================
   FORM PANEL
   ========================================================== */

.project-form-panel {
  min-width: 0;
}


.project-form {
  width: 100%;

  background:
    var(--white);

  border:
    1px solid
    var(--line);

  box-shadow:
    0 16px 50px
    rgba(
      34,
      58,
      84,
      0.06
    );
}


/* ==========================================================
   FORM GROUPS
   ========================================================== */

.form-group {
  margin: 0;

  padding:
    44px
    clamp(
      28px,
      4vw,
      58px
    )
    52px;

  border: 0;

  border-bottom:
    1px solid
    var(--line);
}


.form-group:last-of-type {
  border-bottom:
    0;
}


.form-group legend {
  width: 100%;

  margin-bottom:
    38px;

  padding: 0;

  display: flex;

  align-items: center;

  gap: 16px;

  color:
    var(--text);

  font-family:
    "Instrument Serif",
    Georgia,
    serif;

  font-size:
    clamp(
      28px,
      2.5vw,
      38px
    );

  line-height:
    1.1;
}


.form-section-number {
  color:
    var(--blue-light);

  font-family:
    "DM Sans",
    Arial,
    sans-serif;

  font-size:
    10px;

  font-weight: 600;

  letter-spacing:
    0.12em;
}


.form-group-intro {
  max-width:
    600px;

  margin:
    -18px
    0
    30px;

  color:
    var(--muted);

  font-size:
    15px;
}


/* ==========================================================
   FORM ROWS
   ========================================================== */

.form-row {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap: 22px;
}


.form-field {
  margin-bottom:
    28px;
}


.form-row .form-field {
  min-width: 0;
}


.form-field:last-child {
  margin-bottom:
    0;
}


.form-field label {
  display: block;

  margin-bottom:
    10px;

  color:
    var(--text);

  font-size:
    14px;

  line-height:
    1.4;

  font-weight: 500;
}


.form-field label span {
  color:
    var(--blue-light);
}


.form-help {
  max-width:
    650px;

  margin:
    -2px
    0
    13px;

  color:
    var(--quiet);

  font-size:
    13px;

  line-height:
    1.6;
}


/* ==========================================================
   INPUTS
   ========================================================== */

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;

  margin: 0;

  border:
    1px solid
    #cbd4de;

  border-radius:
    4px;

  outline:
    none;

  background:
    #f8fafc;

  color:
    var(--text);

  font-family:
    "DM Sans",
    Arial,
    sans-serif;

  font-size:
    16px;

  line-height:
    1.5;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}


.form-field input,
.form-field select {
  height:
    58px;

  padding:
    0
    17px;
}


.form-field textarea {
  min-height:
    145px;

  padding:
    16px
    17px;

  resize:
    vertical;
}


.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color:
    #adb8c5;
}


.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color:
    var(--blue);

  background:
    var(--white);

  box-shadow:
    0 0 0 3px
    rgba(
      47,
      125,
      246,
      0.10
    );
}


.form-field input::placeholder,
.form-field textarea::placeholder {
  color:
    #8994a1;

  opacity: 1;
}


.form-field select {
  appearance: none;

  -webkit-appearance: none;

  padding-right:
    46px;

  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      var(--muted) 50%
    ),
    linear-gradient(
      135deg,
      var(--muted) 50%,
      transparent 50%
    );

  background-position:
    calc(100% - 19px)
    25px,
    calc(100% - 14px)
    25px;

  background-size:
    5px
    5px,
    5px
    5px;

  background-repeat:
    no-repeat;
}


.form-field select option {
  background:
    white;

  color:
    var(--text);
}


/* ==========================================================
   CHECKBOX CHOICE CARDS
   ========================================================== */

.form-choice-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap: 12px;
}


.form-choice {
  position: relative;

  display: block;

  cursor: pointer;
}


.form-choice input {
  position: absolute;

  width: 1px;

  height: 1px;

  opacity: 0;

  pointer-events: none;
}


.form-choice-box {
  min-height:
    130px;

  padding:
    22px;

  display: flex;

  flex-direction: column;

  justify-content:
    space-between;

  gap: 18px;

  border:
    1px solid
    var(--line);

  background:
    #f8fafc;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}


.form-choice:hover .form-choice-box {
  border-color:
    #9abce9;

  background:
    var(--blue-pale);
}


.form-choice input:checked + .form-choice-box {
  border-color:
    var(--blue);

  background:
    #e5f0ff;

  box-shadow:
    inset 3px 0 0
    var(--blue);
}


.form-choice input:focus-visible + .form-choice-box {
  outline:
    2px solid
    var(--blue);

  outline-offset:
    3px;
}


.form-choice-box strong {
  display: block;

  color:
    var(--text);

  font-family:
    "Instrument Serif",
    Georgia,
    serif;

  font-size:
    24px;

  line-height:
    1.05;

  font-weight: 400;
}


.form-choice-box > span {
  color:
    var(--muted);

  font-size:
    14px;

  line-height:
    1.55;
}


/* ==========================================================
   HONEYPOT
   ========================================================== */

.form-honeypot {
  position:
    absolute !important;

  left:
    -9999px !important;

  width:
    1px !important;

  height:
    1px !important;

  opacity:
    0 !important;

  pointer-events:
    none !important;
}


/* ==========================================================
   FORM SUBMIT
   ========================================================== */

.form-submit-area {
  padding:
    40px
    clamp(
      28px,
      4vw,
      58px
    )
    46px;

  background:
    var(--background-deep);

  border-top:
    1px solid
    var(--line);

  display: flex;

  align-items: center;

  justify-content:
    space-between;

  gap: 28px;
}


.form-submit-button {
  border:
    1px solid
    var(--dark);

  background:
    var(--dark);

  color:
    var(--white);
}


.form-submit-note {
  max-width:
    300px;

  margin: 0;

  color:
    var(--quiet);

  font-size:
    12px;

  line-height:
    1.6;

  text-align:
    right;
}


/* ==========================================================
   GENERIC SERVICE PAGE HERO
   ========================================================== */

.service-hero {
  position: relative;

  overflow: hidden;

  padding:
    clamp(
      110px,
      11vw,
      180px
    )
    0
    80px;

  background:
    radial-gradient(
      ellipse
      at
      62%
      12%,
      rgba(
        52,
        126,
        233,
        0.78
      )
      0%,
      rgba(
        18,
        62,
        142,
        0.60
      )
      29%,
      rgba(
        8,
        28,
        61,
        0.94
      )
      57%,
      #050b14
      84%
    );
}


.service-hero h1,
.service-hero h2,
.service-hero h3 {
  color:
    var(--white);
}


.service-hero p {
  color:
    rgba(
      255,
      255,
      255,
      0.86
    );
}


.service-hero .eyebrow {
  color:
    rgba(
      255,
      255,
      255,
      0.70
    );
}


.hero-grid {
  display: grid;

  grid-template-columns:
    minmax(
      0,
      1.5fr
    )
    minmax(
      300px,
      0.5fr
    );

  gap:
    clamp(
      60px,
      8vw,
      130px
    );

  align-items:
    end;
}


/* ==========================================================
   FLOW DIAGRAM SUPPORT
   ========================================================== */

.flow-diagram,
.hero-flow {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      1fr
    );

  margin-top:
    clamp(
      75px,
      9vw,
      135px
    );

  border-top:
    1px solid
    rgba(
      255,
      255,
      255,
      0.20
    );

  border-bottom:
    1px solid
    rgba(
      255,
      255,
      255,
      0.20
    );
}


.flow-node,
.hero-flow-item {
  position: relative;

  min-height:
    150px;

  padding:
    26px
    44px
    26px
    26px;

  border-right:
    1px solid
    rgba(
      255,
      255,
      255,
      0.18
    );

  color:
    var(--white);
}


.flow-node:last-child,
.hero-flow-item:last-child {
  border-right: 0;
}


/* ==========================================================
   FEATURE / PROBLEM GRID SUPPORT
   ========================================================== */

.feature-grid,
.problem-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      1fr
    );

  border-top:
    1px solid
    var(--line);

  border-left:
    1px solid
    var(--line);
}


.feature-card,
.problem-card {
  min-height:
    300px;

  padding:
    30px;

  background:
    var(--white);

  border-right:
    1px solid
    var(--line);

  border-bottom:
    1px solid
    var(--line);
}


.feature-card h3,
.problem-card h3 {
  color:
    var(--text);
}


.feature-card p,
.problem-card p {
  color:
    var(--muted);
}


/* ==========================================================
   PROCESS / OUTCOME SUPPORT
   ========================================================== */

.process-list,
.outcome-list {
  border-top:
    1px solid
    var(--line);
}


.process-row,
.outcome-row {
  display: grid;

  grid-template-columns:
    70px
    1fr
    1.35fr;

  gap: 28px;

  padding:
    36px
    0;

  border-bottom:
    1px solid
    var(--line);
}


.process-row span,
.outcome-row span {
  color:
    var(--blue-light);

  font-size:
    11px;
}


.process-row p,
.outcome-row p {
  color:
    var(--muted);

  margin-bottom:
    0;
}


/* ==========================================================
   USE CASE SUPPORT
   ========================================================== */

.use-cases {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      1fr
    );

  border-top:
    1px solid
    var(--line);

  border-left:
    1px solid
    var(--line);
}


.use-case {
  min-height:
    280px;

  padding:
    32px;

  background:
    var(--white);

  border-right:
    1px solid
    var(--line);

  border-bottom:
    1px solid
    var(--line);
}


.use-case span {
  color:
    var(--blue-light);
}


.use-case p {
  color:
    var(--muted);
}


/* ==========================================================
   FAQ SUPPORT
   ========================================================== */

.faq-list {
  border-top:
    1px solid
    var(--line);
}


details {
  border-bottom:
    1px solid
    var(--line);
}


summary {
  position: relative;

  list-style: none;

  cursor: pointer;

  padding:
    30px
    50px
    30px
    0;

  color:
    var(--text);

  font-size:
    18px;

  font-weight: 500;
}


summary::-webkit-details-marker {
  display: none;
}


summary::after {
  content: "+";

  position: absolute;

  right: 4px;

  top: 24px;

  color:
    var(--blue-light);

  font-size:
    24px;
}


details[open] summary::after {
  content: "−";
}


.faq-answer {
  max-width:
    760px;

  padding-bottom:
    30px;

  color:
    var(--muted);

  font-size:
    17px;

  line-height:
    1.75;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
  padding:
    85px
    0
    28px;

  background:
    #050b14;

  border-top:
    1px solid
    rgba(
      255,
      255,
      255,
      0.08
    );
}


.footer-grid {
  display: grid;

  grid-template-columns:
    1.4fr
    1fr
    1fr;

  gap: 80px;
}


.footer-brand {
  margin-bottom:
    22px;
}


.footer-description {
  max-width:
    320px;

  color:
    rgba(
      255,
      255,
      255,
      0.66
    );

  font-size: 16px;

  line-height:
    1.7;
}


.footer-heading {
  margin-bottom:
    20px;

  color:
    #9bc7ff;

  font-size: 10px;

  letter-spacing:
    0.15em;

  text-transform:
    uppercase;

  font-weight: 600;
}


.footer-links {
  display: flex;

  flex-direction: column;

  gap: 13px;
}


.footer-links a {
  width:
    fit-content;

  color:
    rgba(
      255,
      255,
      255,
      0.66
    );

  font-size: 15px;

  transition:
    color 0.2s ease;
}


.footer-links a:hover {
  color:
    var(--white);
}


.footer-bottom {
  margin-top:
    80px;

  padding-top:
    24px;

  border-top:
    1px solid
    rgba(
      255,
      255,
      255,
      0.10
    );

  display: flex;

  justify-content:
    space-between;

  gap: 20px;

  color:
    rgba(
      255,
      255,
      255,
      0.44
    );

  font-size: 12px;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media
(max-width: 1000px) {

  .desktop-nav {
    display: none;
  }


  .mobile-menu {
    position: relative;

    display: block;
  }


  .mobile-menu summary {
    list-style: none;

    cursor: pointer;

    color:
      var(--white);

    font-size: 15px;
  }


  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }


  .mobile-menu-panel {
    position: absolute;

    top: 42px;

    right: 0;

    width:
      min(
        360px,
        calc(
          100vw -
          44px
        )
      );

    padding: 12px;

    display: flex;

    flex-direction: column;

    background:
      #172232;

    border:
      1px solid
      rgba(
        255,
        255,
        255,
        0.12
      );

    border-radius:
      14px;

    box-shadow:
      0 25px 70px
      rgba(
        0,
        0,
        0,
        0.35
      );
  }


  .mobile-menu-panel a {
    padding:
      15px
      14px;

    border-bottom:
      1px solid
      rgba(
        255,
        255,
        255,
        0.08
      );

    color:
      rgba(
        255,
        255,
        255,
        0.84
      );

    font-size: 16px;
  }


  .mobile-menu-panel a:last-child {
    border-bottom: 0;
  }


  .intro-grid,
  .philosophy-grid,
  .section-heading,
  .final-cta-grid,
  .footer-grid,
  .contact-hero-grid,
  .project-layout,
  .hero-grid {
    grid-template-columns:
      1fr;
  }


  .section-heading {
    gap: 15px;
  }


  .contact-hero-grid {
    gap: 50px;
  }


  .contact-hero-copy {
    max-width:
      700px;
  }


  .project-layout {
    gap: 70px;
  }


  .project-sidebar {
    position: static;

    max-width:
      760px;
  }


  .service-row {
    grid-template-columns:
      46px
      1fr
      28px;
  }


  .service-row p {
    grid-column:
      2 / 4;
  }


  .approach-row,
  .process-row,
  .outcome-row {
    grid-template-columns:
      46px
      1fr;
  }


  .approach-row p,
  .process-row p,
  .outcome-row p {
    grid-column: 2;
  }


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

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media
(max-width: 620px) {

  :root {
    --page-padding:
      20px;
  }


  body {
    font-size:
      17px;
  }


  .header-inner {
    min-height:
      70px;
  }


  .brand-name {
    font-size:
      22px;
  }


  .brand-symbol {
    width:
      34px;

    height:
      34px;
  }


  h1 {
    font-size:
      clamp(
        62px,
        18vw,
        94px
      );

    line-height:
      0.91;
  }


  h2 {
    font-size:
      clamp(
        44px,
        13vw,
        64px
      );

    line-height:
      0.99;
  }


  h3 {
    font-size:
      clamp(
        28px,
        8.5vw,
        36px
      );
  }


  .hero,
  .hero-inner {
    min-height:
      700px;
  }


  .hero-inner {
    padding:
      95px
      0
      85px;
  }


  .hero-copy {
    margin-top:
      28px;

    font-size:
      18px;
  }


  .hero-actions {
    width: 100%;

    flex-direction:
      column;

    gap: 20px;
  }


  .button {
    min-height:
      56px;

    padding:
      0
      28px;

    font-size:
      19px;
  }


  .intro-section,
  .section,
  .final-cta {
    padding:
      88px
      0;
  }


  .intro-grid {
    gap: 36px;
  }


  .service-row {
    grid-template-columns:
      34px
      1fr
      22px;

    gap: 14px;

    padding:
      30px
      0;
  }


  .approach-row,
  .process-row,
  .outcome-row {
    grid-template-columns:
      34px
      1fr;

    gap: 14px;

    padding:
      30px
      0;
  }


  .friction-grid,
  .feature-grid,
  .problem-grid,
  .use-cases,
  .flow-diagram,
  .hero-flow {
    grid-template-columns:
      1fr;
  }


  .friction-card,
  .feature-card,
  .problem-card {
    min-height:
      270px;
  }


  .contact-hero {
    padding:
      90px
      0
      82px;
  }


  .contact-hero h1 {
    font-size:
      clamp(
        60px,
        17vw,
        88px
      );
  }


  .contact-hero-grid {
    gap:
      38px;
  }


  .project-section {
    padding:
      82px
      0;
  }


  .project-layout {
    gap:
      55px;
  }


  .project-sidebar h2 {
    font-size:
      clamp(
        46px,
        13vw,
        64px
      );
  }


  .form-group {
    padding:
      34px
      20px
      40px;
  }


  .form-group legend {
    margin-bottom:
      30px;

    gap:
      11px;

    font-size:
      30px;
  }


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

    gap: 0;
  }


  .form-row .form-field {
    margin-bottom:
      26px;
  }


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


  .form-choice-box {
    min-height:
      112px;
  }


  .form-field input,
  .form-field select {
    height:
      56px;

    font-size:
      16px;
  }


  .form-field textarea {
    font-size:
      16px;
  }


  .form-submit-area {
    padding:
      30px
      20px
      34px;

    flex-direction:
      column;

    align-items:
      stretch;
  }


  .form-submit-button {
    width:
      100%;
  }


  .form-submit-note {
    max-width:
      none;

    text-align:
      left;
  }


  .footer-grid {
    gap:
      48px;
  }


  .footer-bottom {
    margin-top:
      55px;

    flex-direction:
      column;
  }

}


/* ==========================================================
   HOWWORKRUNS REFRESH (2026-10)
   Brand, accessibility, and homepage components.
   Placed last so it refines the shared rules above.
   ========================================================== */

:root {
  --quiet: #5f6b7a;          /* was #7d8896 — now meets 4.5:1 on white */
  --navy: #0b1220;
}

body {
  font-size: 19px;
}

/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--white);
  color: var(--dark);
  font-size: 16px;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

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

main:focus {
  outline: none;
}

/* Readable small labels (were 10–12px) */
.eyebrow,
.service-number,
.approach-number,
.process-row span,
.outcome-row span {
  font-size: 13px;
}

.friction-card > span,
.project-sidebar-label,
.form-section-number,
.footer-heading {
  font-size: 12px;
}

.form-help,
.form-submit-note {
  font-size: 15px;
}

/* ---------- Headings: calmer scale ---------- */

h1 {
  font-size: clamp(52px, 7.4vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.contact-hero h1 {
  font-size: clamp(52px, 6.6vw, 104px);
}

.project-sidebar h2 {
  font-size: clamp(40px, 4vw, 60px);
}

/* ---------- Brand wordmark ---------- */

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #1b4fa8, var(--navy));
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 24px;
  line-height: 1;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.brand-name {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.brand-name-mid {
  color: #8fbcff;
}

.desktop-nav {
  gap: 34px;
}

.desktop-nav > a[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.desktop-nav .nav-cta {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
}

/* Mobile menu: neutralise global FAQ <details> styling */
.mobile-menu {
  border-bottom: 0;
}

.mobile-menu summary {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-weight: 500;
}

.mobile-menu summary::after {
  content: none;
}

.mobile-menu-panel .mobile-menu-cta {
  margin-top: 8px;
  border-radius: 999px;
  background: var(--white);
  color: var(--dark);
  text-align: center;
  font-weight: 600;
}

/* ---------- Buttons ---------- */

.button {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
}

.button-dark {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.button-dark:hover {
  background: #17305c;
}

/* ---------- Homepage hero ---------- */

.home-hero,
.home-hero .hero-inner {
  min-height: 0;
}

.home-hero .hero-inner {
  padding: clamp(96px, 11vw, 160px) 0 clamp(88px, 9vw, 130px);
}

.hero-audience {
  margin: 36px auto 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.notfound-hero,
.notfound-hero .hero-inner {
  min-height: 70vh;
}

/* ---------- Shared section bits ---------- */

.section-lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.section-actions {
  margin-top: 44px;
}

.service-alias {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

/* ---------- Problem: symptoms + before/after ---------- */

.problem-section {
  background: var(--white);
}

.symptom-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.symptom-grid li {
  position: relative;
  padding: 16px 18px 16px 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--background);
  font-size: 16px;
  line-height: 1.4;
}

.symptom-grid li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #c2410c;
}

.before-after {
  margin: 64px 0 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 20px;
}

.ba-column {
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.ba-before {
  background: #fbf7f4;
  border-color: #ecdccf;
}

.ba-after {
  background: var(--blue-pale);
  border-color: #c9defc;
}

.ba-label {
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ba-before .ba-label { color: #9a3412; }
.ba-after .ba-label { color: var(--blue-light); }

.ba-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ba;
}

.ba-steps li {
  counter-increment: ba;
  position: relative;
  padding: 10px 0 10px 40px;
  font-size: 16px;
  line-height: 1.45;
}

.ba-steps li::before {
  content: counter(ba);
  position: absolute;
  left: 0;
  top: 9px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
}

.ba-before .ba-steps li::before {
  background: #f3e3d6;
  color: #9a3412;
}

.ba-after .ba-steps li::before {
  background: var(--blue);
  color: var(--white);
}

.ba-steps li + li::after {
  content: "";
  position: absolute;
  left: 12px;
  top: -10px;
  height: 18px;
  border-left: 2px dotted currentColor;
  opacity: 0.25;
}

.ba-arrow {
  display: grid;
  place-items: center;
  color: var(--blue);
}

.before-after figcaption {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Method: three phases ---------- */

.method-section {
  background: var(--background);
  border-top: 1px solid var(--line);
}

.method-phases {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.method-phase {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.method-phase:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -17px;
  top: 34px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
}

.method-phase-label {
  margin-bottom: 8px;
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.method-phase h3 {
  margin-bottom: 20px;
}

.method-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 16px;
  line-height: 1.45;
}

.method-steps li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 600;
  padding-top: 2px;
}

/* ---------- Principles ---------- */

.principles-section {
  background: var(--white);
}

.principle-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}

.principle-grid li {
  padding: 28px 24px 28px 0;
}

.principle-grid li + li {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.principle-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 600;
}

.principle-grid h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 1.9vw, 30px);
}

.principle-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- Guides grid ---------- */


.guides-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Footer ---------- */

.footer-description,
.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-founder {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.footer-bottom {
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

/* ---------- Homepage density (keeps the page short) ---------- */

.home-page .section,
.home-page .final-cta {
  padding: clamp(72px, 7.5vw, 112px) 0;
}

.home-page .section-heading {
  margin-bottom: 48px;
}

.home-page .friction-card {
  min-height: 0;
}

.home-page .friction-card h3 {
  margin-top: 28px;
}

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

.guide-grid .guide-featured {
  grid-column: span 2;
}

@media (max-width: 1000px) {
  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .guide-grid .guide-featured {
    grid-column: auto;
  }
  .home-page .section,
  .home-page .final-cta {
    padding: 60px 0;
  }
  .home-page .section-heading {
    margin-bottom: 32px;
  }
}

.principles-title {
  margin: 56px 0 0;
  padding-bottom: 14px;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.principle-grid li {
  padding-top: 22px;
  padding-bottom: 0;
}

.principle-grid span {
  margin-bottom: 10px;
}

.principle-grid h3 {
  font-size: clamp(22px, 1.7vw, 26px);
}

.home-page .service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
}

.home-page .service-row {
  grid-template-columns: 40px 1fr;
  gap: 6px 16px;
  padding: 28px 0;
}

.home-page .service-row h3 {
  margin-bottom: 4px;
}

.home-page .service-row p {
  grid-column: 2;
  font-size: 16px;
}

.home-page .service-row:last-child {
  grid-column: span 2;
}

.home-page .section-actions {
  margin-top: 36px;
}

.home-page .friction-card {
  padding: 28px;
}

.home-page .friction-card h3 {
  margin-top: 18px;
}

@media (max-width: 1000px) {
  .home-page .service-list {
    grid-template-columns: 1fr;
  }
  .home-page .service-row:last-child {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .home-page .service-row {
    grid-template-columns: 32px 1fr;
    padding: 22px 0;
  }
  .principles-title {
    margin-top: 40px;
  }
  .home-page .friction-card {
    padding: 22px;
  }
}

.home-hero .hero-inner {
  padding: clamp(84px, 8.5vw, 124px) 0 clamp(72px, 7vw, 104px);
}

.hero-audience {
  margin-top: 28px;
}

.home-page .symptom-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-page .symptom-grid li {
  padding: 10px 16px 10px 36px;
  border-radius: 999px;
  font-size: 15px;
}

.home-page .symptom-grid li::before {
  left: 16px;
  top: 50%;
  margin-top: -5px;
}

.home-page .before-after {
  margin-top: 40px;
}

.home-page .ba-column {
  padding: 24px 28px;
}

.home-page .method-phase {
  padding: 26px 28px;
}

.home-page .final-cta {
  padding: clamp(72px, 7vw, 104px) 0;
}

.home-page .final-cta-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
}

.site-footer {
  padding-top: 64px;
}

.footer-grid {
  gap: 56px;
}

@media (max-width: 1000px) {
  .home-page .final-cta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .home-page .symptom-grid li {
    font-size: 14px;
  }
  .home-page .ba-column,
  .home-page .method-phase {
    padding: 22px;
  }
  .home-page .final-cta {
    padding: 60px 0;
  }
}

.home-page .section-heading {
  margin-bottom: 40px;
}

.home-page .guide-grid {
  grid-template-columns: repeat(5, 1fr);
}

.home-page .guide-grid .guide-featured {
  grid-column: auto;
}

.home-page .guide-grid .friction-card {
  padding: 24px 22px;
}

.home-page .guide-grid .friction-card h3 {
  font-size: clamp(24px, 1.9vw, 28px);
}

.home-page .guide-grid .friction-card p {
  font-size: 15px;
}

@media (max-width: 1000px) {
  .home-page .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .home-page .guide-grid {
    grid-template-columns: 1fr;
  }
}

.home-page .section,
.home-page .final-cta {
  padding: clamp(64px, 6.5vw, 92px) 0;
}

.home-page .section-lede {
  margin-top: 16px;
  font-size: 18px;
}

.home-page .method-phase h3 {
  margin-bottom: 12px;
}

.home-page .method-steps li {
  padding: 9px 0;
}

.home-page .ba-steps li {
  padding-top: 7px;
  padding-bottom: 7px;
}

.home-page .ba-label {
  margin-bottom: 12px;
}

.home-page .principles-title {
  margin-top: 44px;
}

@media (max-width: 620px) {
  .home-page .section,
  .home-page .final-cta {
    padding: 56px 0;
  }
  .home-page .principle-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .home-page .principle-grid li,
  .home-page .principle-grid li + li {
    padding: 18px 0 0;
    border-left: 0;
  }
  .home-page .principle-grid h3 {
    font-size: 21px;
    margin-bottom: 6px;
  }
  .home-page .principle-grid p {
    font-size: 14px;
  }
  .home-page .method-phases {
    gap: 14px;
  }
}

.home-page .service-row {
  padding: 22px 0;
}

.home-hero .hero-inner {
  padding: clamp(76px, 7.5vw, 108px) 0 clamp(64px, 6vw, 92px);
}

.site-footer {
  padding-top: 56px;
}

.footer-bottom {
  margin-top: 40px;
}

@media (max-width: 620px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
  .home-page .guide-grid .friction-card {
    padding: 20px;
  }
  .home-page .guide-grid .friction-card h3 {
    margin-top: 10px;
  }
  .home-page .guide-grid .friction-card p {
    margin-bottom: 0;
  }
}

/* ---------- Tablet ---------- */

@media (max-width: 1000px) {

  .before-after {
    grid-template-columns: 1fr;
  }

  .ba-arrow {
    transform: rotate(90deg);
  }

  .method-phases {
    grid-template-columns: 1fr;
  }

  .method-phase:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 32px;
    top: auto;
    bottom: -17px;
  }

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

  .principle-grid li,
  .principle-grid li + li {
    padding: 24px 24px 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 620px) {

  body {
    font-size: 17px;
  }

  h1 {
    font-size: clamp(42px, 12.5vw, 58px);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.05;
  }

  h3 {
    font-size: clamp(23px, 6.4vw, 28px);
  }

  .contact-hero h1 {
    font-size: clamp(42px, 12vw, 56px);
  }

  .project-sidebar h2 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .brand-name {
    font-size: 19px;
  }

  .hero,
  .hero-inner {
    min-height: 0;
  }

  .hero-inner,
  .home-hero .hero-inner {
    padding: 72px 0 64px;
  }

  .intro-section,
  .section,
  .final-cta {
    padding: 64px 0;
  }

  .section-lede {
    font-size: 17px;
  }

  .symptom-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ba-column,
  .method-phase {
    padding: 24px 20px;
  }

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

  .friction-card {
    min-height: 0;
  }

  .button-dark {
    width: 100%;
  }
}

/* Mobile menu: never show the panel while the menu is closed */
.mobile-menu:not([open]) .mobile-menu-panel {
  display: none;
}

/* =========================================================
   V3 — typographic wordmark, smaller headings, padded form
   ========================================================= */

/* ---------- Wordmark: lowercase DM Sans, "work" in accent blue ---------- */

.brand {
  gap: 0;
}

.brand-mark {
  display: none;
}

.brand-name {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: lowercase;
  color: var(--white);
}

.brand-name-mid {
  color: #2f7df6;
}

/* ---------- Headings: about 25% smaller, slightly tighter ---------- */

h1 {
  font-size: clamp(40px, 5.6vw, 86px);
  line-height: 0.93;
}

h2 {
  font-size: clamp(30px, 3.5vw, 50px);
  line-height: 0.99;
}

h3 {
  font-size: clamp(21px, 1.7vw, 28px);
  line-height: 1.05;
}

.contact-hero h1 {
  font-size: clamp(40px, 5vw, 78px);
}

.project-sidebar h2 {
  font-size: clamp(30px, 3vw, 44px);
}

.principle-grid h3,
.home-page .principle-grid h3 {
  font-size: clamp(19px, 1.35vw, 21px);
}

.home-page .guide-grid .friction-card h3 {
  font-size: clamp(20px, 1.5vw, 22px);
}

.hero-copy,
.home-hero .hero-copy {
  margin-top: 28px;
}

/* ---------- Contact form: padded card ---------- */

.project-form {
  padding: clamp(32px, 3.6vw, 48px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(34, 58, 84, 0.06);
}

.form-group {
  min-width: 0;
  margin: 0 0 36px;
  padding: 0 0 36px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.form-group:last-of-type {
  margin-bottom: 0;
}

/* Float the legend so it sits inside the card instead of on the fieldset edge */
.form-group legend {
  float: left;
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
  font-size: clamp(24px, 2vw, 30px);
}

.form-group legend + * {
  clear: both;
}

.form-group-intro {
  margin: 0 0 24px;
}

.form-row {
  gap: 20px 24px;
}

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  margin-bottom: 8px;
}

.form-submit-area {
  margin-top: 32px;
  padding: 0;
  background: transparent;
  border-top: 0;
}

@media (max-width: 620px) {
  h1 {
    font-size: clamp(34px, 9.6vw, 44px);
    line-height: 0.96;
  }

  h2 {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.02;
  }

  h3 {
    font-size: clamp(19px, 5vw, 22px);
  }

  .contact-hero h1 {
    font-size: clamp(34px, 9.4vw, 42px);
  }

  .project-sidebar h2 {
    font-size: clamp(26px, 7vw, 32px);
  }

  .brand-name {
    font-size: 20px;
  }

  .project-form {
    padding: 22px;
    border-radius: 16px;
  }

  .form-group {
    margin-bottom: 28px;
    padding: 0 0 28px;
  }

  .form-group legend {
    margin-bottom: 20px;
    font-size: 24px;
  }

  .form-row {
    gap: 0;
  }

  .form-field {
    margin-bottom: 18px;
  }
}

/* ---------- h-dot mark: dot with trailing crescent echoes ---------- */

.hdot {
  width: 30px;
  height: 30px;
  flex: none;
  display: block;
}

.hdot-h {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hdot-dot,
.hdot-echo {
  fill: #2f7df6;
}

.brand {
  gap: 10px;
}

.brand .hdot {
  color: var(--white);
}

@media (max-width: 620px) {
  .brand .hdot {
    width: 28px;
    height: 28px;
  }
}


/* ==========================================================
   V7 — RESOURCE GUIDES (business-systems, ai-for-operations,
   internal-tools): single reading column, ~760px, 18px body
   ========================================================== */

.guide-page main > .section,
.guide-page main > .intro-section {
  padding-block: clamp(56px, 7vw, 96px);
}

.guide-page main > .section > .container,
.guide-page main > .intro-section > .container {
  width: min(760px, calc(100% - (var(--page-padding) * 2)));
}

/* Stack heading above copy */
.guide-page .philosophy-grid,
.guide-page .section-heading,
.guide-page .intro-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.guide-page .section-heading {
  margin-bottom: 36px;
}

.guide-page .philosophy-grid h2,
.guide-page .section-heading h2 {
  max-width: 22ch;
}

.guide-page .philosophy-copy {
  max-width: none;
  min-width: 0;
}

.guide-page .philosophy-copy p,
.guide-page .philosophy-copy li,
.guide-page .philosophy-copy dd,
.guide-page .intro-copy p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
}

.guide-page .philosophy-copy p + p,
.guide-page .philosophy-copy > * + p {
  margin-top: 1em;
}

.guide-page .philosophy-copy .large-statement {
  font-size: clamp(21px, 2vw, 24px);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 28px;
}

.guide-page .philosophy-copy strong {
  color: var(--text);
  font-weight: 600;
}

.guide-page .philosophy-copy a {
  color: #2f7df6;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.guide-page .philosophy-copy ul,
.guide-page .philosophy-copy ol {
  margin: 1.1em 0;
  padding-left: 1.3em;
}

.guide-page .philosophy-copy li + li {
  margin-top: 0.55em;
}

.guide-page .philosophy-copy li::marker {
  color: #2f7df6;
}

.guide-page .philosophy-copy dl {
  margin: 1.4em 0;
  border-top: 1px solid var(--line);
}

.guide-page .philosophy-copy dt {
  padding-top: 18px;
  font-size: 18px;
  color: var(--text);
}

.guide-page .philosophy-copy dd {
  margin: 4px 0 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

/* Code / prompt examples: scroll inside the block, never the page */
.guide-page pre {
  max-width: 100%;
  margin: 1.4em 0;
  padding: 18px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #0b1220;
  color: #e6edf7;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.guide-page pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
  background: none;
  padding: 0;
  color: inherit;
}

.guide-page :not(pre) > code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: rgba(47, 125, 246, 0.08);
  color: var(--text);
  overflow-wrap: anywhere;
}

/* Tables (if any) scroll inside a wrapper */
.guide-page .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 1.4em 0;
}

.guide-page .table-wrap table {
  min-width: 560px;
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
}

.guide-page .table-wrap th,
.guide-page .table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

/* Rows / cards inside the narrower column */
.guide-page .service-row {
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  gap: 6px 18px;
}

.guide-page .service-row h3 {
  grid-column: 2;
}

.guide-page .service-row p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

.guide-page .service-row .service-arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
}

.guide-page .approach-row {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px 18px;
  padding: 28px 0;
}

.guide-page .approach-row > :not(.approach-number) {
  grid-column: 2;
}

.guide-page .friction-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 620px) {
  .guide-page .friction-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-page .service-row {
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    gap: 4px 12px;
  }

  .guide-page .approach-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px 12px;
  }

  .guide-page pre {
    font-size: 13px;
    padding: 14px 16px;
  }
}

/* Decorative hero glows must never widen the page */
.guide-page .hero {
  overflow: hidden;
}

/* ---------- Headings: one more step smaller (v8) ---------- */
h1 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; }
h2 { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.08; }
h3 { font-size: clamp(19px, 1.45vw, 23px); line-height: 1.15; }
.contact-hero h1 { font-size: clamp(34px, 4vw, 58px); }
.project-sidebar h2 { font-size: clamp(26px, 2.5vw, 36px); }

@media (max-width: 620px) {
  h1 { font-size: clamp(30px, 8.2vw, 36px); line-height: 1.04; }
  h2 { font-size: clamp(23px, 6vw, 27px); line-height: 1.1; }
  h3 { font-size: clamp(18px, 4.6vw, 20px); }
  .contact-hero h1 { font-size: clamp(30px, 8vw, 36px); }
  .project-sidebar h2 { font-size: clamp(23px, 6vw, 27px); }
}
