:root {
  --navy: #14285d;
  --navy-deep: #07122f;
  --ink: #111a2f;
  --muted: #667085;
  --line: #d9e1ee;
  --paper: #f7f4ed;
  --surface: #fffdf8;
  --white: #ffffff;
  --orange: #f47a22;
  --teal: #2dbdb3;
  --gold: #d6b46a;
  --shadow: 0 24px 70px rgba(7, 18, 47, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.62;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 58px);
  color: var(--white);
  transition: padding 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  padding-top: 12px;
  padding-bottom: 12px;
  color: var(--navy);
  background: rgba(247, 244, 237, 0.94);
  box-shadow: 0 16px 42px rgba(7, 18, 47, 0.12);
  backdrop-filter: blur(18px);
}

.brand-plate {
  width: clamp(198px, 22vw, 330px);
  flex: 0 0 auto;
  padding: 0;
  border-radius: 0;
  transition: padding 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled .brand-plate,
.site-header.is-open .brand-plate {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-open .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible,
.site-header.is-open .site-nav a:focus-visible {
  background: rgba(20, 40, 93, 0.08);
}

.nav-cta {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 12px 28px rgba(20, 40, 93, 0.28);
}

.site-header:not(.is-scrolled):not(.is-open) .nav-cta {
  background: var(--white);
  color: var(--navy);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.16);
  padding: 12px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 122px clamp(20px, 5vw, 76px) 36px;
  color: var(--white);
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 18, 47, 0.9) 0%, rgba(7, 18, 47, 0.7) 42%, rgba(7, 18, 47, 0.22) 100%),
    linear-gradient(0deg, rgba(7, 18, 47, 0.86) 0%, rgba(7, 18, 47, 0.04) 54%);
}

.hero-content,
.hero-proof {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 880px;
  padding-bottom: 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow.dark {
  color: var(--orange);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 840px;
  font-size: clamp(3.15rem, 6.6vw, 6.8rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 4.75rem);
  line-height: 1.06;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.45rem;
  line-height: 1.2;
}

.hero-lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 18px 34px rgba(244, 122, 34, 0.34);
}

.button.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(920px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(7, 18, 47, 0.48);
  backdrop-filter: blur(16px);
}

.hero-proof div {
  min-height: 118px;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-proof div:last-child {
  border-right: 0;
}

.hero-proof strong {
  display: block;
  color: var(--white);
  font-size: clamp(1.45rem, 3vw, 2.55rem);
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.hero-proof span {
  display: block;
  max-width: 220px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.positioning {
  padding: 72px 0;
  background: var(--surface);
}

.positioning-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(30px, 5vw, 78px);
  align-items: center;
}

.positioning-grid p:last-child,
.section-heading p,
.delivery-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.expertise,
.delivery {
  padding: 104px 0;
}

.portfolio,
.contact {
  padding: 94px 0;
  background: var(--surface);
}

.credentials {
  padding: 0 0 96px;
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 780px;
  margin-bottom: 38px;
}

.section-heading.split {
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1fr);
  max-width: none;
  align-items: end;
  gap: 36px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1.28fr 0.86fr 0.86fr;
  gap: 18px;
}

.expertise-card {
  display: grid;
  grid-template-rows: 260px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(7, 18, 47, 0.08);
}

.expertise-card.large {
  grid-row: span 2;
  grid-template-rows: 520px 1fr;
}

.expertise-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expertise-card div {
  padding: 24px;
}

.expertise-card span,
.process span,
.portfolio-grid figcaption span,
.credential-strip span {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.expertise-card p,
.process p {
  margin: 0;
  color: var(--muted);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.42fr 1fr 1fr;
  grid-auto-rows: 252px;
  gap: 16px;
}

.portfolio-grid figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: 0 18px 44px rgba(7, 18, 47, 0.14);
}

.portfolio-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 18, 47, 0.72), rgba(7, 18, 47, 0.08) 62%);
}

.portfolio-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-feature {
  grid-row: span 2;
}

.portfolio-grid figcaption {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: var(--white);
}

.portfolio-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 1.08rem;
}

.delivery-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(430px, 1.12fr);
  gap: clamp(32px, 6vw, 86px);
}

.delivery-copy {
  position: sticky;
  top: 112px;
  align-self: start;
}

.delivery-copy p {
  margin-top: 22px;
}

.process {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.process article {
  min-height: 232px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(7, 18, 47, 0.07);
}

.credential-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--navy-deep);
  color: var(--white);
  box-shadow: var(--shadow);
}

.credential-strip div {
  min-height: 138px;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.credential-strip div:last-child {
  border-right: 0;
}

.credential-strip strong {
  display: block;
  margin-top: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.18;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 244, 237, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
}

.mark-plate {
  width: min(260px, 72vw);
  padding: 0;
  border-radius: 0;
  margin-bottom: 28px;
}

.contact-copy p:last-child {
  margin-top: 18px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-links a,
.footer-contact a {
  font-weight: 900;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(45, 189, 179, 0.13);
}

.contact-links a:nth-child(2) {
  background: rgba(244, 122, 34, 0.12);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.lead-form span {
  color: var(--navy);
  font-weight: 800;
  font-size: 0.92rem;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(45, 189, 179, 0.18);
}

.form-submit {
  grid-column: 1 / -1;
  width: 100%;
}

.site-footer {
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy-deep);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-plate {
  width: 245px;
  padding: 0;
  border-radius: 0;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  text-align: right;
}

.footer-contact p {
  flex-basis: 100%;
  margin: 0;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.86);
}

.expertise-page {
  background: var(--paper);
}

.expertise-page .site-header:not(.is-scrolled):not(.is-open) .nav-cta {
  background: var(--white);
  color: var(--navy);
}

.expertise-page .site-nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.expertise-page .site-header.is-scrolled .site-nav a[aria-current="page"],
.expertise-page .site-header.is-open .site-nav a[aria-current="page"] {
  color: var(--navy);
  background: rgba(20, 40, 93, 0.08);
}

.expertise-hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  padding: 128px 0 72px;
}

.expertise-hero-media,
.expertise-hero-shade {
  position: absolute;
  inset: 0;
}

.expertise-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.expertise-hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 18, 47, 0.92) 0%, rgba(7, 18, 47, 0.7) 45%, rgba(7, 18, 47, 0.24) 100%),
    linear-gradient(0deg, rgba(7, 18, 47, 0.84) 0%, rgba(7, 18, 47, 0.04) 62%);
}

.expertise-hero-content {
  position: relative;
  z-index: 1;
}

.expertise-hero-content h1 {
  max-width: 980px;
}

.expertise-hero-content p:last-child {
  max-width: 740px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.expertise-overview,
.theme-lab,
.expertise-cta {
  background: var(--surface);
}

.expertise-overview {
  padding: 74px 0;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 0.82fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
}

.overview-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.overview-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.overview-metrics span {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(45, 189, 179, 0.14);
  font-weight: 800;
}

.overview-metrics span:nth-child(2n) {
  background: rgba(244, 122, 34, 0.13);
}

.capability-suite,
.expertise-process {
  padding: 104px 0;
}

.capability-feature {
  display: grid;
  grid-template-columns: minmax(360px, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  margin-bottom: 18px;
}

.capability-main,
.capability-cards article,
.capability-side article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(7, 18, 47, 0.08);
}

.capability-main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 470px;
}

.capability-main img,
.capability-cards img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capability-main img {
  object-position: 72% center;
}

.capability-main div,
.capability-cards div {
  padding: 30px;
}

.capability-main span,
.capability-cards span,
.capability-side span,
.expertise-steps span {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.capability-main p,
.capability-cards p,
.capability-side p,
.expertise-steps p,
.theme-copy p,
.expertise-cta-panel p {
  margin: 0;
  color: var(--muted);
}

.capability-side {
  display: grid;
  gap: 18px;
}

.capability-side article {
  min-height: 226px;
  padding: 28px;
}

.capability-side strong {
  display: block;
  margin: 12px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.15;
}

.capability-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.capability-cards article {
  display: grid;
  grid-template-rows: 290px 1fr;
}

.capability-cards img[src*="catalog-p15"] {
  object-position: 72% center;
}

.capability-cards img[src*="catalog-p22"] {
  object-position: 62% center;
}

.capability-cards img[src*="catalog-p25"] {
  object-position: 68% center;
}

.theme-lab {
  padding: 96px 0;
}

.theme-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(480px, 1.22fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
}

.theme-copy {
  position: sticky;
  top: 112px;
}

.theme-copy p {
  margin-top: 20px;
}

.theme-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 280px;
  gap: 16px;
}

.theme-board figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: 0 18px 42px rgba(7, 18, 47, 0.12);
}

.theme-board figure:first-child {
  grid-row: span 2;
}

.theme-board figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 18, 47, 0.58), rgba(7, 18, 47, 0.03) 58%);
}

.theme-board img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-board img[src*="catalog-p06"] {
  object-position: 62% center;
}

.theme-board img[src*="catalog-p21"] {
  object-position: 74% center;
}

.theme-board img[src*="catalog-p08"] {
  object-position: 75% center;
}

.theme-board figcaption {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.expertise-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.expertise-steps article {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(7, 18, 47, 0.07);
}

.expertise-cta {
  padding: 86px 0;
}

.expertise-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 8px;
  background: var(--navy-deep);
  color: var(--white);
  box-shadow: var(--shadow);
}

.expertise-cta-panel h2 {
  max-width: 760px;
}

.expertise-cta-panel p:last-child {
  max-width: 650px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.portfolio-page .site-header:not(.is-scrolled):not(.is-open) .nav-cta {
  background: var(--white);
  color: var(--navy);
}

.portfolio-page .site-nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.portfolio-page .site-header.is-scrolled .site-nav a[aria-current="page"],
.portfolio-page .site-header.is-open .site-nav a[aria-current="page"] {
  color: var(--navy);
  background: rgba(20, 40, 93, 0.08);
}

.portfolio-hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 128px 0 72px;
  color: var(--white);
}

.portfolio-hero-media,
.portfolio-hero-shade {
  position: absolute;
  inset: 0;
}

.portfolio-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 18, 47, 0.94) 0%, rgba(7, 18, 47, 0.74) 43%, rgba(7, 18, 47, 0.24) 100%),
    linear-gradient(0deg, rgba(7, 18, 47, 0.86) 0%, rgba(7, 18, 47, 0.03) 60%);
}

.portfolio-hero-content {
  position: relative;
  z-index: 1;
}

.portfolio-hero-content h1 {
  max-width: 960px;
}

.portfolio-hero-content p:last-child {
  max-width: 760px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.portfolio-intro {
  padding: 74px 0;
  background: var(--surface);
}

.portfolio-intro-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 0.82fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
}

.portfolio-intro-grid p:last-child,
.case-section-heading p,
.project-card p,
.flagship-card p,
.portfolio-cta-panel p {
  margin: 0;
  color: var(--muted);
}

.portfolio-filter-band {
  position: sticky;
  top: 0;
  z-index: 12;
  padding: 12px 0;
  background: rgba(247, 244, 237, 0.92);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.portfolio-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.portfolio-tabs::-webkit-scrollbar {
  display: none;
}

.portfolio-tabs a {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
}

.portfolio-tabs a:hover,
.portfolio-tabs a:focus-visible {
  border-color: rgba(20, 40, 93, 0.34);
  outline: none;
}

.case-section {
  padding: 104px 0;
}

.case-section.alt {
  background: var(--surface);
}

.case-section-heading {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 38px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-grid.trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card,
.flagship-card,
.flagship-stack article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(7, 18, 47, 0.08);
}

.project-card {
  display: grid;
  grid-template-rows: 276px 1fr;
}

.project-card.wide {
  grid-column: span 2;
}

.project-card img,
.flagship-card img,
.flagship-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card div,
.flagship-card div,
.flagship-stack div {
  padding: 24px;
}

.project-card span,
.flagship-card span,
.flagship-stack span {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flagship-layout {
  display: grid;
  grid-template-columns: minmax(440px, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.flagship-card {
  display: grid;
  grid-template-rows: 560px 1fr;
}

.flagship-stack {
  display: grid;
  gap: 18px;
}

.flagship-stack article {
  display: grid;
  grid-template-rows: 240px 1fr;
}

.portfolio-cta {
  padding: 90px 0;
  background: var(--surface);
}

.portfolio-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 8px;
  background: var(--navy-deep);
  color: var(--white);
  box-shadow: var(--shadow);
}

.portfolio-cta-panel h2 {
  max-width: 760px;
}

.portfolio-cta-panel p:last-child {
  max-width: 650px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.delivery-page .site-header:not(.is-scrolled):not(.is-open) .nav-cta {
  background: var(--white);
  color: var(--navy);
}

.delivery-page .site-nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.delivery-page .site-header.is-scrolled .site-nav a[aria-current="page"],
.delivery-page .site-header.is-open .site-nav a[aria-current="page"] {
  color: var(--navy);
  background: rgba(20, 40, 93, 0.08);
}

.delivery-hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 128px 0 72px;
  color: var(--white);
}

.delivery-hero-media,
.delivery-hero-shade {
  position: absolute;
  inset: 0;
}

.delivery-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.delivery-hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 18, 47, 0.94) 0%, rgba(7, 18, 47, 0.76) 45%, rgba(7, 18, 47, 0.26) 100%),
    linear-gradient(0deg, rgba(7, 18, 47, 0.86) 0%, rgba(7, 18, 47, 0.06) 62%);
}

.delivery-hero-content {
  position: relative;
  z-index: 1;
}

.delivery-hero-content h1 {
  max-width: 930px;
}

.delivery-hero-content p:last-child {
  max-width: 740px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.delivery-summary,
.delivery-detail {
  padding: 74px 0;
  background: var(--surface);
}

.delivery-summary-grid,
.delivery-detail-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
}

.delivery-summary-grid p:last-child,
.delivery-detail-copy p,
.deliverable-grid p,
.workflow-timeline p {
  margin: 0;
  color: var(--muted);
}

.workflow-section {
  padding: 104px 0;
}

.workflow-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.workflow-timeline article,
.deliverable-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(7, 18, 47, 0.08);
}

.workflow-timeline article {
  min-height: 300px;
  padding: 28px;
}

.workflow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(45, 189, 179, 0.13);
}

.workflow-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workflow-icon.small {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: var(--orange);
  background: rgba(244, 122, 34, 0.12);
}

.workflow-icon.small svg {
  width: 22px;
  height: 22px;
}

.workflow-timeline span {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
}

.workflow-timeline h3,
.deliverable-grid h3 {
  margin-bottom: 10px;
}

.delivery-detail-copy p {
  margin-top: 20px;
}

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.deliverable-grid article {
  min-height: 218px;
  padding: 26px;
}

.delivery-proof {
  padding: 96px 0;
}

.delivery-proof-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  grid-auto-rows: 330px;
  gap: 16px;
}

.delivery-proof-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: 0 18px 42px rgba(7, 18, 47, 0.12);
}

.delivery-proof-grid figure:first-child {
  grid-row: span 2;
}

.delivery-proof-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 18, 47, 0.58), rgba(7, 18, 47, 0.04) 62%);
}

.delivery-proof-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.delivery-proof-grid figcaption {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 20px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.38rem;
}

.blog-page .site-header,
.admin-page .site-header {
  color: var(--navy);
  background: rgba(247, 244, 237, 0.94);
  box-shadow: 0 16px 42px rgba(7, 18, 47, 0.12);
}

.blog-page .site-nav a[aria-current="page"] {
  color: var(--navy);
  background: rgba(20, 40, 93, 0.08);
}

.blog-hero {
  padding: 152px 0 84px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(247, 244, 237, 0.94)),
    var(--surface);
}

.blog-hero-content {
  max-width: 940px;
}

.blog-hero-content p:last-child {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.blog-categories {
  position: sticky;
  top: 0;
  z-index: 12;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 237, 0.92);
  backdrop-filter: blur(16px);
}

.blog-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.blog-tabs::-webkit-scrollbar {
  display: none;
}

.blog-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--navy);
  background: var(--surface);
  font-weight: 800;
  cursor: pointer;
}

.blog-tabs button.is-active {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
}

.blog-list-section {
  padding: 90px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(7, 18, 47, 0.08);
}

.blog-card[hidden] {
  display: none;
}

.blog-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.blog-card div {
  padding: 24px;
}

.blog-card span,
.blog-card time {
  display: inline-block;
  margin-right: 10px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-card time {
  color: var(--muted);
}

.blog-card h2 {
  margin-top: 12px;
  font-size: 1.55rem;
}

.blog-card p {
  margin: 12px 0 18px;
  color: var(--muted);
}

.blog-card a {
  color: var(--navy);
  font-weight: 900;
}

.article-page {
  background: var(--surface);
}

.article-shell {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 148px 0 90px;
}

.article-shell img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-shell h1 {
  margin-top: 28px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 800;
}

.article-body {
  margin-top: 34px;
  color: var(--ink);
  font-size: 1.08rem;
}

.article-body p {
  color: var(--muted);
}

.article-page .button.ghost {
  color: var(--navy);
  border-color: var(--line);
  background: var(--paper);
}

.admin-page {
  background: #eef2f7;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 26px;
  color: var(--white);
  background: var(--navy-deep);
}

.admin-sidebar img {
  width: 210px;
  margin-bottom: 16px;
}

.admin-sidebar a,
.admin-sidebar button,
.admin-panel-title button,
.admin-post-top button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 900;
  cursor: pointer;
}

.admin-sidebar a,
.admin-panel-title button {
  color: var(--navy);
  background: var(--white);
  text-align: center;
}

.admin-sidebar button {
  color: var(--white);
  background: var(--orange);
}

.admin-sidebar p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.admin-main {
  padding: 38px;
}

.admin-heading {
  max-width: 900px;
  margin-bottom: 28px;
}

.admin-heading h1 {
  color: var(--navy);
}

.admin-heading p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.admin-panel {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(7, 18, 47, 0.08);
}

.admin-panel h2 {
  font-size: 2rem;
}

.admin-panel-title,
.admin-post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-page-grid,
.admin-blog-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

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

.admin-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-post {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-post-top,
.admin-field.wide {
  grid-column: 1 / -1;
}

.admin-post-top button {
  color: var(--white);
  background: #a53b3b;
}

.admin-field {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.admin-field span {
  color: var(--navy);
  font-weight: 900;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--surface);
}

.admin-field textarea {
  min-height: 100px;
  resize: vertical;
}

@media (max-width: 980px) {
  .site-header {
    padding: 14px 20px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .positioning-grid,
  .section-heading.split,
  .delivery-layout,
  .contact-panel,
  .overview-grid,
  .capability-feature,
  .theme-layout,
  .portfolio-intro-grid,
  .case-section-heading,
  .flagship-layout,
  .delivery-summary-grid,
  .delivery-detail-layout {
    grid-template-columns: 1fr;
  }

  .expertise-grid,
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }

  .expertise-card.large,
  .portfolio-feature {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .expertise-card.large {
    grid-template-rows: 360px 1fr;
  }

  .delivery-copy {
    position: static;
  }

  .capability-main {
    grid-template-columns: 1fr;
  }

  .capability-main img {
    min-height: 340px;
  }

  .capability-cards,
  .expertise-steps,
  .project-grid,
  .project-grid.trio,
  .workflow-timeline,
  .delivery-proof-grid,
  .blog-grid,
  .admin-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card.wide {
    grid-column: 1 / -1;
  }

  .flagship-card {
    grid-template-rows: 420px 1fr;
  }

  .theme-copy {
    position: static;
  }

  .delivery-proof-grid figure:first-child {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 88vh;
    padding: 110px 20px 24px;
  }

  .brand-plate {
    width: 205px;
  }

  .hero-proof,
  .expertise-grid,
  .portfolio-grid,
  .process,
  .credential-strip,
  .lead-form,
  .footer-inner,
  .capability-cards,
  .theme-board,
  .expertise-steps,
  .project-grid,
  .project-grid.trio,
  .workflow-timeline,
  .deliverable-grid,
  .delivery-proof-grid,
  .blog-grid,
  .admin-page-grid,
  .admin-post,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .hero-proof div,
  .credential-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero-proof div:last-child,
  .credential-strip div:last-child {
    border-bottom: 0;
  }

  .expertise-card,
  .expertise-card.large {
    grid-template-rows: 250px 1fr;
  }

  .portfolio-grid {
    grid-auto-rows: 250px;
  }

  .expertise-hero {
    min-height: 82vh;
    padding: 112px 0 46px;
  }

  .portfolio-hero {
    min-height: 82vh;
    padding: 112px 0 46px;
  }

  .delivery-hero {
    min-height: 82vh;
    padding: 112px 0 46px;
  }

  .capability-main img {
    min-height: 260px;
  }

  .capability-cards article {
    grid-template-rows: 250px 1fr;
  }

  .theme-board {
    grid-auto-rows: 250px;
  }

  .theme-board figure:first-child {
    grid-row: auto;
  }

  .expertise-cta-panel {
    display: grid;
  }

  .project-card,
  .flagship-card,
  .flagship-stack article {
    grid-template-rows: 250px 1fr;
  }

  .portfolio-cta-panel {
    display: grid;
  }

  .blog-hero {
    padding: 126px 0 58px;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-main {
    padding: 24px 20px;
  }

  .workflow-timeline article,
  .deliverable-grid article {
    min-height: auto;
  }

  .delivery-proof-grid {
    grid-auto-rows: 250px;
  }

  .footer-inner {
    display: grid;
  }

  .footer-contact {
    justify-content: flex-start;
    text-align: left;
  }
}
