@charset "utf-8";

/* ============================================================
   Technicity theme — extracted verbatim from the approved
   designs (top-page-v2.html + blog-design-draft.html), merged.
   ============================================================ */

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

:root {
  --ink: #0A1228;
  --navy: #0F2150;
  --navy-deep: #061230;
  --steel: #2A3D5E;
  --slate: #4A6080;
  --mist: #7E90AD;
  --cloud: #C8D4E4;
  --snow: #EEF2F7;
  --white: #F8FAFE;
  /* PRIMARY ACCENT — emerald green */
  --emerald: #FFBB42;
  --emerald-hover: #E8A400;
  --emerald-soft: #FFBB42;
  --emerald-pale: #FFF4D6;
  /* SECONDARY ACCENT — blue (Copper Sulphate) */
  --blue: #0094FB;
  --blue-soft: #57B8FF;
  --blue-pale: #D6EEFF;
  --blue-text: #0077DB; /* darker, for small text/links */
  --maxw: 1180px;
  --readw: 700px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.65;
  color: var(--steel);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: min(92%, var(--maxw)); margin-inline: auto; }

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

::selection { background: var(--emerald); color: #fff; }

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

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-text);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--emerald);
  display: inline-block;
}

h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.1; }

.serif { font-family: "Cormorant Garamond", Georgia, serif; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  transition: padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.scrolled {
  padding: 15px 0;
  background: rgba(248, 250, 254, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: rgba(10, 18, 40, 0.08) 0 1px 0;
}
.nav-inner {
  width: min(92%, var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: color .35s var(--ease);
}
.nav.scrolled .logo { color: var(--navy); }
.logo .dot { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 17px;
  font-weight: 500;
  color: rgba(248, 250, 254, 0.82);
  transition: color .25s var(--ease);
  position: relative;
}
.nav.scrolled .nav-links a { color: var(--slate); }
.nav-links a[aria-current="page"] { color: var(--white); font-weight: 600; }
.nav.scrolled .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--emerald);
  transition: width .3s var(--ease);
}
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]:not(.btn)::after { width: 100%; }
.nav-links a:hover { color: var(--white); }
.nav.scrolled .nav-links a:hover { color: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--emerald);
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 100px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  color: #fff !important;
  font-size: 16px !important;
  border: 0;
  cursor: pointer;
  font-family: Outfit, system-ui, sans-serif;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: rgba(255, 187, 66, 0.45) 0 10px 28px;
  background: var(--emerald-hover);
}
.btn.ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: var(--white) !important;
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--blue);
  box-shadow: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.nav.scrolled .nav-toggle span { background: var(--navy); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9.5px; }
.nav-toggle span:nth-child(3) { top: 19px; }
body.menu-open .nav-toggle span:nth-child(1) { top: 9.5px; transform: rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { top: 9.5px; transform: rotate(-45deg); }

/* Light/sticky nav variant (blog index + article + interior pages) */
.nav.nav-light {
  position: sticky;
  top: 0;
  padding: 22px 0;
  background: rgba(248, 250, 254, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: rgba(10, 18, 40, 0.08) 0 1px 0;
}

/* WordPress admin bar offset — keep the fixed/sticky nav below the 32px
   admin bar when logged in, so the logo never tucks under it.
   Only applies when the admin bar is present (public visitors unaffected). */
.admin-bar .nav { top: 32px; }
.admin-bar .nav.nav-light { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .nav,
  .admin-bar .nav.nav-light { top: 46px; }
}
.nav.nav-light .logo { color: var(--navy); }
.nav.nav-light .nav-links a { color: var(--slate); }
.nav.nav-light .nav-links a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav.nav-light .nav-links a:hover { color: var(--navy); }
.nav.nav-light .nav-toggle span { background: var(--navy); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1100px 600px at 78% -10%, rgba(45,108,223,0.40), transparent 60%),
    radial-gradient(900px 500px at 8% 110%, rgba(14,159,110,0.20), transparent 55%),
    linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 48%, var(--ink) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 140px 0 110px;
}
.hero-orbit {
  position: absolute;
  top: 50%;
  right: -240px;
  transform: translateY(-50%);
  width: 760px;
  height: 760px;
  border: 1px solid rgba(111, 160, 240, 0.18);
  border-radius: 50%;
  pointer-events: none;
  animation: 60s linear 0s infinite normal none running spin;
}
.hero-orbit::before, .hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(111, 160, 240, 0.14);
}
.hero-orbit::before { inset: 90px; }
.hero-orbit::after { inset: 200px; border-color: rgba(52, 211, 153, 0.20); }
.hero-orbit i {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--emerald-soft);
  border-radius: 50%;
  top: -7px;
  left: 50%;
  box-shadow: rgba(52, 211, 153, 0.55) 0 0 28px 4px;
}
@keyframes spin { 100% { transform: translateY(-50%) rotate(360deg); } }

.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 26px 0;
}
.hero h1 em { font-style: italic; color: var(--blue-soft); }
.hero p.lead {
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 300;
  color: rgba(232, 240, 250, 0.88);
  max-width: 680px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.hero-foot { position: absolute; bottom: 30px; left: 0; right: 0; z-index: 2; }
.hero-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
}
.hero-foot .tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: rgba(220, 232, 252, 0.78);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-foot .tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-soft);
}

/* ============ SECTIONS ============ */
section.block { padding: clamp(80px, 11vw, 150px) 0; }

.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(40px, 5vw, 56px); margin-top: 18px; letter-spacing: -0.01em; }
.sec-head h2 em { font-style: italic; color: var(--blue); }
.sec-head p { font-size: 21px; color: var(--slate); margin-top: 20px; }

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---- Pillars (light) ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 18px;
  padding: 38px 32px 34px;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald), var(--blue));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease);
}
.pillar:hover {
  transform: translateY(-8px);
  box-shadow: rgba(15, 33, 80, 0.14) 0 26px 60px;
  border-color: transparent;
}
.pillar:hover::before { transform: scaleX(1); }
.pillar .pnum { font-family: "JetBrains Mono", monospace; font-size: 16px; color: var(--blue-text); letter-spacing: 0.1em; }
.pillar h3 { font-size: 26px; margin: 16px 0 14px; }
.pillar p { font-size: 19px; color: var(--slate); line-height: 1.62; }
.pillar .chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--steel);
  background: var(--snow);
  border: 1px solid var(--cloud);
  border-radius: 100px;
  padding: 6px 13px;
}

/* ---- Focus (dark) ---- */
.focus {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(45,108,223,0.22), transparent 60%),
    linear-gradient(150deg, var(--navy) 0%, var(--ink) 100%);
  color: var(--white);
}
.focus .sec-head h2 { color: var(--white); }
.focus .sec-head h2 em { color: var(--blue-soft); }
.focus .sec-head p { color: rgba(220, 232, 252, 0.85); }
.focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.focus-item {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 30px 26px;
  transition: background .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}
.focus-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.5);
}
.focus-item .fi-k { font-family: "JetBrains Mono", monospace; font-size: 15px; color: var(--blue-soft); letter-spacing: 0.12em; }
.focus-item h4 { font-size: 22px; color: var(--white); margin: 14px 0 8px; font-weight: 600; }
.focus-item p { font-size: 17px; color: rgba(220, 232, 252, 0.85); line-height: 1.55; }

/* ---- Selected work (light) ---- */
.work { background: linear-gradient(170deg, var(--snow) 0%, var(--white) 100%); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case {
  display: block;
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 18px;
  padding: 36px 34px 32px;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.case::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald), var(--blue));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease);
}
.case:hover {
  transform: translateY(-8px);
  box-shadow: rgba(15, 33, 80, 0.14) 0 26px 60px;
  border-color: transparent;
}
.case:hover::before { transform: scaleX(1); }
.case .ck {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.case .ck .badge {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--blue-text);
  background: var(--emerald-pale);
  border: 1px solid var(--emerald-soft);
  border-radius: 100px;
  padding: 3px 11px;
}
.case h3 { font-size: 28px; margin: 16px 0 12px; }
.case p { font-size: 18px; color: var(--slate); line-height: 1.6; }
.case .more { margin-top: 20px; font-weight: 600; color: var(--blue-text); font-size: 17px; display: inline-flex; align-items: center; gap: 7px; }
.case.case-add {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: var(--gold-pale);
  border: 1.5px solid var(--gold);
}
.case.case-add:hover { box-shadow: rgba(255, 187, 66, 0.4) 0 18px 44px; }
.case.case-add h3 { color: var(--ink); }
.case.case-add p { margin: 0; color: var(--slate); }

/* ---- Approach + quote (light w/ dark callout) ---- */
.approach-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center; }
.approach-list { list-style: none; display: grid; gap: 8px; }
.approach-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--cloud);
}
.approach-list li:last-child { border-bottom: 0; }
.approach-list .n { font-family: "Cormorant Garamond", serif; font-size: 44px; font-weight: 700; color: var(--blue); line-height: 1; }
.approach-list h4 { font-size: 22px; color: var(--ink); margin-bottom: 6px; font-weight: 600; }
.approach-list p { font-size: 19px; color: var(--slate); }

.quote-card {
  background: linear-gradient(155deg, var(--navy) 0%, var(--ink) 100%);
  color: var(--white);
  border-radius: 22px;
  padding: 50px 46px;
  position: relative;
  overflow: hidden;
}
.quote-card::after {
  content: "\201C";
  position: absolute;
  top: -40px;
  right: 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: 260px;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}
.quote-card p {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(26px, 3.2vw, 36px);
  font-style: italic;
  line-height: 1.35;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.quote-card .by {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--blue-soft);
  text-transform: uppercase;
  margin-top: 26px;
}

/* ---- About + reg card (light) ---- */
.about { background: var(--snow); }
.about-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 64px; align-items: start; }
.about-grid p { font-size: 20px; color: var(--steel); margin-bottom: 20px; }
.reg-card { background: var(--white); border: 1px solid var(--cloud); border-radius: 18px; padding: 34px 32px; }
.reg-card h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 22px;
  font-weight: 500;
}
.reg-row { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--snow); }
.reg-row:last-child { border-bottom: 0; }
.reg-row .k { font-size: 17px; color: var(--mist); }
.reg-row .v { font-size: 18px; color: var(--ink); font-weight: 600; text-align: right; }

/* ---- Contact (dark) ---- */
.contact {
  background:
    radial-gradient(700px 360px at 12% 10%, rgba(14,159,110,0.20), transparent 60%),
    linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 60%, var(--ink) 100%);
  color: var(--white);
  text-align: center;
}
.contact h2 { color: var(--white); font-size: clamp(40px, 6vw, 70px); }
.contact p.lead { font-size: 22px; color: rgba(220, 232, 252, 0.88); max-width: 620px; margin: 22px auto 40px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.mail {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(20px, 3vw, 30px);
  color: var(--blue-soft);
  letter-spacing: 0.02em;
  display: inline-block;
  margin-top: 26px;
  border-bottom: 2px solid transparent;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.mail:hover { color: var(--white); border-color: var(--blue); }

/* ---- Contact FORM (on-brand; added for WordPress build) ---- */
.contact-form {
  max-width: 620px;
  margin: 44px auto 0;
  text-align: left;
  display: grid;
  gap: 18px;
}
.contact-form .field { display: grid; gap: 8px; }
.contact-form .field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
.contact-form label .opt { color: rgba(220,232,252,0.55); letter-spacing: 0.06em; }
.contact-form input,
.contact-form textarea {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  width: 100%;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.contact-form textarea { border-radius: 18px; resize: vertical; min-height: 150px; line-height: 1.6; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(220,232,252,0.45); }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: 3px solid var(--emerald-soft); border-color: transparent; background: rgba(255,255,255,0.10); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .actions { display: flex; justify-content: center; margin-top: 4px; }
.contact-form .btn { font-size: 17px !important; padding: 15px 30px; }
.form-note {
  max-width: 620px;
  margin: 22px auto 0;
  border-radius: 14px;
  padding: 16px 22px;
  font-size: 17px;
  text-align: center;
}
.form-note.ok { background: rgba(14,159,110,0.18); border: 1px solid var(--emerald-soft); color: var(--blue-soft); }
.form-note.err { background: rgba(45,108,223,0.16); border: 1px solid var(--blue-soft); color: var(--blue-soft); }

footer { background: var(--ink); color: rgba(200, 212, 228, 0.7); padding: 50px 0 40px; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; align-items: center; }
.foot-inner .logo { color: var(--white); font-size: 20px; }
.foot-meta { font-size: 15px; line-height: 1.7; text-align: right; }
.foot-meta .reg { font-family: "JetBrains Mono", monospace; color: var(--mist); }
.foot-meta .fine { color: rgba(200, 212, 228, 0.5); font-size: 14px; }

/* ================================================================
   BLOG INDEX (home.php)
   ================================================================ */
.masthead {
  background: linear-gradient(170deg, var(--snow) 0%, var(--white) 70%);
  border-bottom: 1px solid var(--cloud);
  padding: clamp(70px, 9vw, 110px) 0 clamp(46px, 6vw, 70px);
}
.masthead .inner { max-width: 880px; }
.masthead h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(44px, 6.4vw, 78px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 22px 0;
  color: var(--ink);
}
.masthead h1 em { font-style: italic; color: var(--blue); }
.masthead .standfirst {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 300;
  color: var(--slate);
  max-width: 680px;
}

.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--cloud);
  padding-bottom: 18px;
}
.rail-head h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
}
.rail-head .count {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.card-k {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-text);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.card-k .cat {
  color: var(--blue-text);
  background: var(--emerald-pale);
  border: 1px solid var(--emerald-soft);
  border-radius: 100px;
  padding: 3px 11px;
  letter-spacing: 0.06em;
}
.card-k time { color: var(--mist); }
.read-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.read-more {
  margin-top: auto;
  font-weight: 600;
  color: var(--blue-text);
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ---- Featured post (large) ---- */
.featured {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  border: 1px solid var(--cloud);
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.featured:hover {
  transform: translateY(-6px);
  box-shadow: rgba(15, 33, 80, 0.14) 0 26px 60px;
  border-color: transparent;
}
.featured .art {
  position: relative;
  min-height: 360px;
  background:
    radial-gradient(600px 360px at 80% 0%, rgba(45,108,223,0.30), transparent 62%),
    radial-gradient(500px 320px at 0% 110%, rgba(14,159,110,0.26), transparent 58%),
    linear-gradient(150deg, var(--navy) 0%, var(--ink) 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 30px;
}
.featured .art .glyph {
  position: absolute;
  top: 30px;
  right: 34px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(96px, 12vw, 168px);
  font-style: italic;
  line-height: 1;
  color: rgba(255,255,255,0.10);
}
.featured .art .pin {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.featured .art .pin::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald-soft);
}
.featured .body {
  padding: clamp(34px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.featured h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.005em;
}
.featured .excerpt { font-size: 19px; color: var(--slate); line-height: 1.6; }

/* ---- Post card grid ---- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 18px;
  padding: 32px 30px 30px;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.post-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald), var(--blue));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease);
}
.post-card:hover {
  transform: translateY(-8px);
  box-shadow: rgba(15, 33, 80, 0.14) 0 26px 60px;
  border-color: transparent;
}
.post-card:hover::before { transform: scaleX(1); }
.post-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.14;
}
.post-card .excerpt { font-size: 18px; color: var(--slate); line-height: 1.55; }
.post-card .meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
}

/* ============ NEWSLETTER STRIP ============ */
.subscribe {
  background:
    radial-gradient(700px 360px at 88% 0%, rgba(45,108,223,0.22), transparent 60%),
    linear-gradient(150deg, var(--navy) 0%, var(--ink) 100%);
  color: var(--white);
  border-radius: 22px;
  padding: clamp(40px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.subscribe h2 { color: var(--white); font-family: "Cormorant Garamond", serif; font-size: clamp(30px, 3.6vw, 42px); font-weight: 600; }
.subscribe h2 em { font-style: italic; color: var(--blue-soft); }
.subscribe p { font-size: 19px; color: rgba(220,232,252,0.85); margin-top: 14px; }
.subscribe form { display: flex; gap: 12px; flex-wrap: wrap; }
.subscribe input {
  flex: 1 1 220px;
  font-family: Outfit, sans-serif;
  font-size: 17px;
  padding: 14px 18px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: var(--white);
}
.subscribe input::placeholder { color: rgba(220,232,252,0.55); }
.subscribe input:focus-visible { outline: 3px solid var(--emerald-soft); }

/* ============ ARTICLE (reading view) ============ */
.article-head {
  background: linear-gradient(175deg, var(--snow) 0%, var(--white) 80%);
  border-bottom: 1px solid var(--cloud);
  padding: clamp(56px, 7vw, 90px) 0 clamp(40px, 5vw, 60px);
}
.article-head .inner { max-width: var(--readw); margin-inline: auto; width: min(92%, var(--readw)); }
.crumb {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-text);
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.crumb a:hover { color: var(--blue-text); }
.article-head h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 22px 0 24px;
  color: var(--ink);
}
.article-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--slate);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.article-meta .sep { color: var(--cloud); }
.article-meta .cat {
  color: var(--blue-text);
  background: var(--emerald-pale);
  border: 1px solid var(--emerald-soft);
  border-radius: 100px;
  padding: 3px 11px;
  letter-spacing: 0.06em;
}

.article-body {
  width: min(92%, var(--readw));
  margin: clamp(46px, 6vw, 70px) auto;
}
.article-body > p {
  font-size: 21px;
  line-height: 1.74;
  color: var(--steel);
  margin-bottom: 28px;
}
.article-body > p:first-child {
  font-size: 23px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 400;
}
.article-body .lede {
  font-size: 23px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 400;
}
.article-body h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.16;
  margin: 48px 0 18px;
  color: var(--ink);
}
.article-body h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(26px, 2.8vw, 31px);
  font-weight: 600;
  line-height: 1.18;
  margin: 38px 0 14px;
  color: var(--ink);
}
.article-body ul,
.article-body ol { margin: 0 0 28px 1.1em; }
.article-body li { font-size: 21px; line-height: 1.74; color: var(--steel); margin-bottom: 10px; }
.article-body img { max-width: 100%; height: auto; border-radius: 14px; margin: 32px 0; }
.article-body a,
.article-body a.inline {
  color: var(--blue-text);
  font-weight: 500;
  border-bottom: 1.5px solid var(--emerald-soft);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.article-body a:hover,
.article-body a.inline:hover { color: var(--blue-text); border-color: var(--blue-text); }
.article-body code,
.article-body .mono { font-family: "JetBrains Mono", monospace; font-size: 0.92em; color: var(--steel); background: var(--snow); border: 1px solid var(--cloud); border-radius: 6px; padding: 1px 7px; }
.article-body pre { background: var(--snow); border: 1px solid var(--cloud); border-radius: 12px; padding: 20px 22px; overflow-x: auto; margin: 0 0 28px; }
.article-body pre code { border: 0; background: transparent; padding: 0; }

.article-body blockquote,
.pullquote {
  margin: 44px 0;
  padding: 8px 0 8px 30px;
  border-left: 3px solid var(--emerald);
}
.article-body blockquote p,
.pullquote p {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(27px, 3.4vw, 34px);
  font-style: italic;
  line-height: 1.32;
  color: var(--ink);
  margin: 0;
}
.pullquote .src {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-text);
  margin-top: 16px;
  display: block;
}

/* author / CTA block */
.author-cta {
  width: min(92%, var(--readw));
  margin: 56px auto 0;
  background: var(--snow);
  border: 1px solid var(--cloud);
  border-radius: 18px;
  padding: 34px 32px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.author-cta .avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--navy), var(--ink));
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.author-cta .who { flex: 1 1 240px; }
.author-cta .who .name { font-size: 19px; color: var(--ink); font-weight: 600; }
.author-cta .who .role {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px; letter-spacing: 0.06em; color: var(--mist);
}
.author-cta .who p { font-size: 17px; color: var(--slate); margin-top: 10px; }

/* related row */
.related { background: var(--snow); border-top: 1px solid var(--cloud); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---- Generic page (page.php) ---- */
.page-head {
  background: linear-gradient(175deg, var(--snow) 0%, var(--white) 80%);
  border-bottom: 1px solid var(--cloud);
  padding: clamp(72px, 8vw, 104px) 0 clamp(36px, 4vw, 52px);
}
.page-head h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.page-body { width: min(92%, var(--readw)); margin: clamp(46px, 6vw, 70px) auto; }

/* ---- 404 ---- */
.err404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  background: linear-gradient(170deg, var(--snow) 0%, var(--white) 100%);
}
.err404 .big {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(80px, 16vw, 200px);
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}
.err404 h1 { font-family: "Cormorant Garamond", serif; font-size: clamp(32px, 4vw, 46px); margin: 14px 0 18px; }
.err404 p { font-size: 21px; color: var(--slate); max-width: 560px; margin: 0 auto 32px; }

@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .approach-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .post-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured .art { min-height: 220px; }
  .subscribe { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 720px) {
  body { font-size: 19px; }
  .hero { min-height: auto; padding: 130px 0 56px; }
  .hero-foot { position: static; margin-top: 44px; }
  .hero-foot .wrap { gap: 16px; }
  .contact-form .field.row2 { grid-template-columns: 1fr; }
  .post-grid, .related-grid { grid-template-columns: 1fr; }
  .article-body > p { font-size: 21px; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82%, 360px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 0 40px;
    background: var(--navy-deep);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    box-shadow: rgba(0, 0, 0, 0.4) -20px 0 60px;
    z-index: 105;
  }
  body.menu-open .nav-links { transform: none; }
  .nav-links a, .nav.scrolled .nav-links a,
  .nav.nav-light .nav-links a { color: var(--white); font-size: 22px; }
  .nav-links a[aria-current="page"],
  .nav.nav-light .nav-links a[aria-current="page"] { color: var(--white); }
  .nav-toggle { display: block; z-index: 110; }
  .focus-grid { grid-template-columns: 1fr; }
  .rail-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .foot-inner, .foot-meta { text-align: left; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-orbit { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
</content>
</invoke>

/* featured-image support — added 2026-06-20 */
.art{position:relative}
.art.has-img{overflow:hidden}
.art .art-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;z-index:0}
.art.has-img::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,18,40,.12),rgba(10,18,40,.58));z-index:1}
.art.has-img .pin{z-index:2}
.article-lead{margin:8px auto 44px;max-width:920px;padding:0 24px}
.article-lead img{width:100%;height:auto;display:block;border-radius:2px}
.article-lead figcaption{font:14px/1.5 'JetBrains Mono',monospace;color:var(--slate);margin-top:10px;text-align:right}

/* primary buttons: navy text on the warm-yellow fill */
.btn:not(.ghost){color:var(--ink)!important}
