
:root {
  --background: #f3f8fb;
  --foreground: #063654;
  --card: #ffffff;
  --card-foreground: #063654;
  --popover: #ffffff;
  --popover-foreground: #063654;
  --primary: #0071bd;
  --primary-foreground: #ffffff;
  --secondary: #e6f3fa;
  --secondary-foreground: #063654;
  --muted: #edf6fb;
  --muted-foreground: #607b8d;
  --accent: #b7def2;
  --accent-foreground: #063654;
  --destructive: oklch(0.58 0.22 28);
  --destructive-foreground: oklch(0.99 0 0);
  --border: #c9dce7;
  --input: #c9dce7;
  --ring: #0071bd;
  --radius: 0.25rem;
  --ink: #063654;
  --ink-soft: #0a4b75;
  --paper: #f3f8fb;
  --white: #ffffff;
  --blue: #0071bd;
  --cyan: #b7def2;
  --steel: #708697;
  --line: rgba(6, 54, 84, 0.16);
  font-family:
    "Aptos", "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --radius-sm: calc(var(--radius) - 2px);
  --radius-md: var(--radius);
  --radius-lg: calc(var(--radius) + 4px);
  --radius-xl: calc(var(--radius) + 8px);
}

* {
  box-sizing: border-box;
  border-color: var(--line);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: white;
  background: var(--blue);
}

.shell {
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 50;
  color: white;
  background: var(--blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header__inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.wordmark img {
  width: clamp(178px, 16vw, 218px);
  height: auto;
  display: block;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2.2vw, 36px);
}

.desktop-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -10px;
  height: 2px;
  background: white;
  transition: right 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: white;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  right: 0;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.header-cta {
  min-height: 42px;
  color: var(--blue);
  background: white;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.button--light {
  color: var(--ink);
  background: white;
}

.button--light:hover {
  color: white;
  background: var(--blue);
}

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

.button--dark:hover {
  background: var(--blue);
}

.button--outline {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}

.button--outline:hover {
  color: white;
  background: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  border: 0;
  background: transparent;
}

.mobile-panel {
  display: none;
}

.hero {
  position: relative;
  min-height: min(810px, calc(100svh - 86px));
  overflow: hidden;
  color: white;
  background: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to right, transparent, black 45%, black);
}

.hero__image {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(0.82) contrast(1.1);
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #063654 0%, rgba(6, 54, 84, 0.96) 34%, rgba(0, 113, 189, 0.3) 79%),
    linear-gradient(0deg, rgba(6, 54, 84, 0.76), transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 3;
  min-height: min(710px, calc(100svh - 130px));
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.45fr);
  align-items: center;
  gap: 10vw;
  padding-block: 90px 110px;
}

.hero__copy {
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--cyan);
}

.hero h1,
.page-masthead h1 {
  margin: 0;
  font-size: clamp(3.4rem, 7.1vw, 7.4rem);
  font-weight: 760;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.hero h1 span,
.page-masthead h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.66);
}

.hero__lead {
  max-width: 650px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-link--light {
  color: white;
}

.hero__note {
  align-self: end;
  margin-bottom: 32px;
  padding: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.hero__note span {
  color: var(--cyan);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__note strong {
  display: block;
  margin-top: 14px;
  font-size: 1.2rem;
  line-height: 1.35;
}

.hero__note p {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
  line-height: 1.6;
}

.hero__index {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.section {
  padding-block: clamp(88px, 10vw, 150px);
}

.section--intro {
  background: var(--paper);
}

.intro-grid,
.story-grid,
.clients-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(60px, 10vw, 160px);
}

.display-title {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  font-weight: 730;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.intro-copy {
  align-self: end;
  max-width: 620px;
}

.intro-copy > p,
.prose__lead {
  margin: 0 0 32px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.5;
}

.section--services {
  padding-block: 0;
  background: white;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 55px 60px minmax(180px, 0.8fr) minmax(260px, 1.2fr) 36px;
  gap: 24px;
  align-items: center;
  min-height: 154px;
  border-bottom: 1px solid var(--line);
}

.service-row__number {
  color: var(--steel);
  font-size: 0.7rem;
  font-weight: 800;
}

.service-row__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #eaf1ff;
}

.service-row h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.3vw, 2.15rem);
  letter-spacing: -0.03em;
}

.service-row p {
  max-width: 560px;
  margin: 0;
  color: #526174;
  line-height: 1.65;
}

.service-row > a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  transition: 180ms ease;
}

.service-row:hover > a {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.section--work {
  background: var(--paper);
}

.section--service-focus {
  background: var(--paper);
}

.service-focus__heading {
  align-items: end;
}

.service-focus__heading > div:first-child {
  max-width: 760px;
}

.service-focus__heading .display-title {
  font-size: clamp(2.6rem, 4.7vw, 4.9rem);
}

.service-focus__intro {
  width: min(100%, 440px);
}

.service-focus__intro > p {
  margin: 0 0 26px;
  color: #526174;
  font-size: 1.06rem;
  line-height: 1.7;
}

.service-focus__groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-focus__group {
  min-width: 0;
  padding: clamp(26px, 3.3vw, 46px);
  background: rgba(255, 255, 255, 0.58);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-focus__group-heading {
  min-height: 128px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.service-focus__group-heading > span {
  padding-top: 4px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
}

.service-focus__group-heading .eyebrow {
  margin-bottom: 13px;
}

.service-focus__group-heading h3 {
  max-width: 430px;
  margin: 0;
  font-size: clamp(1.65rem, 2.45vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.service-focus__items {
  display: grid;
}

.service-focus__item {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr) 28px;
  gap: 20px;
  align-items: center;
  min-height: 144px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
  transition: color 180ms ease, background-color 180ms ease;
}

.service-focus__item:last-child {
  border-bottom: 0;
}

.service-focus__thumb {
  --thumb-bg: #063654;
  --thumb-fg: #ffffff;
  --thumb-accent: #b7def2;
  position: relative;
  width: 106px;
  height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 13px;
  color: var(--thumb-fg);
  background: var(--thumb-bg);
  isolation: isolate;
  transition: transform 180ms ease;
}

.service-focus__thumb::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
}

.service-focus__thumb::after {
  position: absolute;
  right: -20px;
  bottom: -24px;
  z-index: -1;
  width: 70px;
  height: 70px;
  content: "";
  border: 1px solid var(--thumb-accent);
  border-radius: 50%;
  opacity: 0.75;
}

.service-focus__thumb--network,
.service-focus__thumb--campaigns {
  --thumb-bg: #0071bd;
  --thumb-accent: #ffffff;
}

.service-focus__thumb--web {
  --thumb-bg: #e6f3fa;
  --thumb-fg: #063654;
  --thumb-accent: #0071bd;
}

.service-focus__thumb--strategy {
  --thumb-bg: #0a4b75;
  --thumb-accent: #b7def2;
}

.service-focus__thumb--seo {
  --thumb-bg: #07324f;
  --thumb-accent: #8fc9e7;
}

.service-focus__thumb-label {
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.service-focus__thumb-lines {
  width: 62%;
  display: grid;
  gap: 4px;
}

.service-focus__thumb-lines i {
  height: 2px;
  display: block;
  background: currentColor;
  opacity: 0.75;
}

.service-focus__thumb-lines i:nth-child(2) {
  width: 72%;
  color: var(--thumb-accent);
}

.service-focus__thumb-lines i:nth-child(3) {
  width: 45%;
}

.service-focus__copy {
  min-width: 0;
}

.service-focus__copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.12rem, 1.45vw, 1.36rem);
  letter-spacing: -0.025em;
}

.service-focus__copy > span {
  display: block;
  color: #5a6878;
  font-size: 0.91rem;
  line-height: 1.55;
}

.service-focus__arrow {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--blue);
  border: 1px solid var(--line);
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.service-focus__item:hover .service-focus__arrow,
.service-focus__item:focus-visible .service-focus__arrow {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.service-focus__item:hover .service-focus__thumb,
.service-focus__item:focus-visible .service-focus__thumb {
  transform: translateY(-2px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
  margin-bottom: 68px;
}

.section-heading .display-title {
  max-width: 860px;
  font-size: clamp(2.6rem, 4.8vw, 5rem);
}

.selected-work-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.82fr;
  gap: 80px 42px;
  align-items: start;
}

.work-card--3 {
  grid-column: 2;
}

.work-card img,
.project-feature img,
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 600ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.work-card:hover img,
.project-feature:hover img,
.portfolio-card:hover img {
  transform: scale(1.035);
}

.work-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.3vw, 2.35rem);
  letter-spacing: -0.035em;
}

.work-card > p:last-child {
  max-width: 520px;
  color: #5d6a7a;
  line-height: 1.6;
}

.work-card__screens {
  position: relative;
  min-height: clamp(330px, 35vw, 510px);
  margin-bottom: 30px;
}

.browser-frame {
  margin: 0;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(6, 54, 84, 0.18);
  border-radius: 10px;
  box-shadow: 0 28px 70px rgba(6, 54, 84, 0.14);
}

.browser-frame__bar {
  min-height: 35px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  color: #7b8795;
  background: #f4f6f8;
  border-bottom: 1px solid rgba(6, 54, 84, 0.12);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.browser-frame__dots {
  display: inline-flex;
  gap: 5px;
}

.browser-frame__dots i {
  width: 6px;
  height: 6px;
  display: block;
  background: #aeb7c2;
  border-radius: 50%;
}

.browser-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.browser-frame--work-main {
  width: 92%;
}

.browser-frame--work-detail {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  box-shadow: 0 24px 54px rgba(6, 54, 84, 0.22);
}

.browser-frame--work-detail .browser-frame__bar {
  min-height: 28px;
}

.section--trust {
  color: white;
  background: var(--ink);
}

.trust-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 60px;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.trust-list span {
  min-height: 112px;
  display: flex;
  align-items: center;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
}

.contact-banner {
  color: white;
  background: var(--blue);
}

.contact-banner__inner {
  min-height: 380px;
  display: grid;
  grid-template-columns: 0.35fr 1fr auto;
  align-items: center;
  gap: 50px;
}

.contact-banner h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.page-masthead {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(115deg, transparent 48%, rgba(0, 113, 189, 0.24) 48%, transparent 72%),
    var(--ink);
}

.page-masthead::after {
  content: "";
  position: absolute;
  right: -12vw;
  bottom: -60%;
  width: 52vw;
  aspect-ratio: 1;
  border: 1px solid rgba(183, 222, 242, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(183, 222, 242, 0.045), 0 0 0 160px rgba(183, 222, 242, 0.03);
}

.page-masthead__grid {
  position: relative;
  z-index: 2;
  min-height: 570px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: end;
  gap: 80px;
  padding-block: 120px 90px;
}

.page-masthead h1 {
  font-size: clamp(3.2rem, 6.3vw, 6.7rem);
}

.page-masthead__intro {
  align-self: end;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
}

.page-masthead__intro > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.65;
}

.story-statement {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  color: white;
  background:
    linear-gradient(145deg, transparent 55%, rgba(183, 222, 242, 0.22)),
    var(--blue);
}

.story-statement span {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.story-statement p {
  max-width: 480px;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.4rem);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.prose p {
  color: #586678;
  line-height: 1.8;
}

.prose .prose__lead {
  color: var(--ink);
  line-height: 1.5;
}

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

.section-heading--light > p {
  max-width: 490px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.principles-grid > div {
  min-height: 170px;
  padding: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.principles-grid svg {
  color: var(--cyan);
}

.principles-grid p {
  max-width: 440px;
  margin: 42px 0 0;
  font-size: 1.18rem;
  line-height: 1.5;
}

.split-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.split-cta h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.3rem, 4.5vw, 4.7rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.service-group + .service-group {
  padding-top: 0;
}

.service-group__heading {
  display: grid;
  grid-template-columns: 60px 1fr 0.8fr;
  gap: 50px;
  align-items: start;
  padding-bottom: 54px;
}

.service-group__heading > span {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
}

.service-group__heading h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  letter-spacing: -0.05em;
}

.service-group__heading > p {
  margin: 0;
  color: #59687a;
  line-height: 1.7;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-cards article {
  min-height: 310px;
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  transition: background-color 180ms ease, transform 180ms ease;
}

.service-cards article:hover {
  z-index: 1;
  background: white;
  transform: translateY(-5px);
}

.service-cards svg {
  color: var(--blue);
}

.service-cards h3 {
  margin: 94px 0 14px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.service-cards p {
  margin: 0;
  color: #5d6b7b;
  line-height: 1.65;
}

.project-showcase {
  display: grid;
  gap: 90px;
}

.section--portfolio-intro {
  padding-bottom: clamp(72px, 8vw, 120px);
}

.portfolio-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  gap: clamp(60px, 10vw, 150px);
  align-items: end;
}

.portfolio-intro__copy > p {
  margin: 0 0 44px;
  color: #4f5f72;
  font-size: clamp(1.08rem, 1.6vw, 1.34rem);
  line-height: 1.7;
}

.portfolio-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.portfolio-facts div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.portfolio-facts dt {
  color: var(--blue);
  font-size: clamp(2.1rem, 3vw, 3.4rem);
  font-weight: 760;
  letter-spacing: -0.06em;
}

.portfolio-facts dd {
  margin: 7px 0 0;
  color: #637083;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.case-studies {
  border-top: 1px solid var(--line);
}

.case-study {
  padding-block: clamp(94px, 11vw, 164px);
  overflow: hidden;
  background: white;
  border-bottom: 1px solid var(--line);
}

.case-study:nth-child(even) {
  color: white;
  background:
    radial-gradient(circle at 86% 12%, rgba(0, 113, 189, 0.24), transparent 34%),
    var(--ink);
  border-color: rgba(255, 255, 255, 0.12);
}

.case-study__header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(240px, 0.34fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.case-study__number {
  padding-top: 6px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.case-study:nth-child(even) .case-study__number,
.case-study:nth-child(even) .eyebrow {
  color: var(--cyan);
}

.case-study__copy h2 {
  max-width: 850px;
  margin: 0 0 24px;
  font-size: clamp(2.7rem, 5.4vw, 6.2rem);
  font-weight: 740;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.case-study__copy > p:last-child {
  max-width: 720px;
  margin: 0;
  color: #556579;
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  line-height: 1.72;
}

.case-study:nth-child(even) .case-study__copy > p:last-child {
  color: rgba(255, 255, 255, 0.64);
}

.case-study__services {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.case-study:nth-child(even) .case-study__services {
  border-color: rgba(255, 255, 255, 0.18);
}

.case-study__services li {
  padding: 13px 0;
  color: #556579;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.045em;
}

.case-study:nth-child(even) .case-study__services li {
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
}

.case-study__stage {
  position: relative;
  min-height: clamp(590px, 58vw, 840px);
  margin-top: clamp(58px, 7vw, 96px);
  padding-bottom: clamp(54px, 7vw, 100px);
}

.browser-frame--main {
  width: 82%;
}

.browser-frame--detail {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 45%;
  z-index: 2;
  box-shadow: 0 34px 90px rgba(6, 54, 84, 0.28);
}

.case-study--reverse .browser-frame--main {
  margin-left: auto;
}

.case-study--reverse .browser-frame--detail {
  right: auto;
  left: 0;
}

.case-study:nth-child(even) .browser-frame {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
}

.section--portfolio-overview {
  padding-bottom: clamp(54px, 6vw, 82px);
}

.portfolio-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.78fr);
  gap: clamp(48px, 8vw, 118px);
  align-items: center;
}

.portfolio-overview h2 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(2.7rem, 4.15vw, 4.65rem);
  font-weight: 740;
  letter-spacing: -0.055em;
  line-height: 1;
}

.portfolio-overview__copy > p {
  max-width: 580px;
  margin: 0 0 28px;
  color: #526276;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.68;
}

.portfolio-overview__services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-overview__services span {
  padding: 9px 12px;
  color: #4d5d71;
  background: white;
  border: 1px solid var(--line);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section--portfolio-gallery {
  padding-top: 0;
  background: var(--paper);
}

.client-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 2.5vw, 34px);
  align-items: stretch;
}

.client-portfolio-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.client-portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(6, 54, 84, 0.1);
}

.client-portfolio-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.58fr);
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.client-portfolio-card__preview {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e7edf3;
  border-bottom: 1px solid var(--line);
}

.client-portfolio-card:nth-child(3n) .client-portfolio-card__preview {
  background: #dfeaff;
}

.client-portfolio-card:nth-child(3n + 1):not(.client-portfolio-card--featured) .client-portfolio-card__preview {
  background: #e5f2f5;
}

.client-portfolio-card--featured .client-portfolio-card__preview {
  min-height: clamp(500px, 43vw, 620px);
  aspect-ratio: auto;
  background: #dfe6ee;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.client-portfolio-window {
  position: absolute;
  z-index: 1;
  margin: 0;
}

.client-portfolio-window--home {
  top: 8%;
  left: 5%;
  width: 72%;
}

.client-portfolio-window--detail {
  right: 5%;
  bottom: 8%;
  width: 32%;
  z-index: 2;
  box-shadow: 0 26px 68px rgba(6, 54, 84, 0.28);
}

.client-portfolio-card .browser-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
}

.client-portfolio-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(28px, 3vw, 42px);
}

.client-portfolio-card--featured .client-portfolio-card__body {
  justify-content: center;
  padding: clamp(38px, 4vw, 64px);
}

.client-portfolio-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 24px;
}

.client-portfolio-card__meta > span,
.client-portfolio-card__meta > p {
  margin: 0;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.client-portfolio-card__meta > p {
  color: #69788b;
  text-align: right;
}

.client-portfolio-card--featured .client-portfolio-card__meta > span {
  color: var(--cyan);
}

.client-portfolio-card--featured .client-portfolio-card__meta > p {
  color: rgba(255, 255, 255, 0.58);
}

.client-portfolio-card h2 {
  max-width: 600px;
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 3vw, 3.5rem);
  font-weight: 740;
  letter-spacing: -0.055em;
  line-height: 1;
}

.client-portfolio-card--featured h2 {
  font-size: clamp(3rem, 4vw, 4.8rem);
}

.client-portfolio-card__description {
  max-width: 590px;
  margin: 0;
  color: #59697c;
  font-size: 0.98rem;
  line-height: 1.68;
}

.client-portfolio-card--featured .client-portfolio-card__description {
  color: rgba(255, 255, 255, 0.68);
}

.client-portfolio-card__services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.client-portfolio-card__services li {
  padding: 8px 10px;
  color: #526276;
  border: 1px solid var(--line);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.client-portfolio-card--featured .client-portfolio-card__services li {
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.24);
}

.section--portfolio-explorer {
  padding-top: 0;
  background: var(--paper);
}

.portfolio-explorer {
  display: grid;
  grid-template-columns: minmax(220px, 0.27fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 2.6vw, 38px);
}

.portfolio-explorer__projects {
  position: sticky;
  top: 92px;
  overflow: hidden;
  color: white;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.portfolio-explorer__nav-label {
  margin: 0;
  padding: 19px 20px 17px;
  color: var(--cyan);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-explorer__project-list {
  display: grid;
}

.portfolio-project-button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 3px 10px;
  width: 100%;
  padding: 17px 18px;
  color: rgba(255, 255, 255, 0.62);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.portfolio-project-button:last-child {
  border-bottom: 0;
}

.portfolio-project-button > span {
  grid-row: 1 / 3;
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.portfolio-project-button strong {
  color: inherit;
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.18;
}

.portfolio-project-button small {
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.58rem;
  font-weight: 760;
  letter-spacing: 0.045em;
  line-height: 1.3;
  text-transform: uppercase;
}

.portfolio-project-button:hover,
.portfolio-project-button.is-active {
  color: white;
  background: var(--blue);
}

.portfolio-project-button.is-active small {
  color: rgba(255, 255, 255, 0.72);
}

.portfolio-project-button:focus-visible,
.portfolio-thumbnail:focus-visible,
.portfolio-explorer__arrow:focus-visible {
  position: relative;
  z-index: 4;
  outline: 3px solid var(--cyan);
  outline-offset: -3px;
}

.portfolio-explorer__panels {
  min-width: 0;
}

.portfolio-explorer__stage {
  min-width: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
}

.portfolio-explorer__stage[hidden] {
  display: none;
}

.portfolio-explorer__header {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  padding: clamp(26px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
}

.portfolio-explorer__header .eyebrow {
  margin-bottom: 11px;
}

.portfolio-explorer__header h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.45rem, 4.5vw, 5rem);
  font-weight: 750;
  letter-spacing: -0.058em;
  line-height: 0.96;
}

.portfolio-explorer__counter {
  display: flex;
  gap: 7px;
  align-items: baseline;
  padding-bottom: 4px;
  color: #8a96a4;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.portfolio-explorer__counter span:first-child {
  color: var(--blue);
  font-size: 1.45rem;
}

.portfolio-explorer__viewer {
  position: relative;
  overflow: hidden;
  background: #dfe5ec;
}

.portfolio-explorer__browser-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: center;
  min-height: 42px;
  padding: 8px 17px;
  color: #657488;
  background: #f4f6f8;
  border-bottom: 1px solid var(--line);
  font-size: 0.62rem;
  font-weight: 830;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-explorer__browser-bar > span:nth-child(2) {
  color: var(--ink);
}

.portfolio-explorer__browser-bar > span:last-child {
  color: #929daa;
}

.portfolio-explorer__viewer > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  background: white;
  animation: portfolio-view-in 260ms ease both;
}

@keyframes portfolio-view-in {
  from {
    opacity: 0.25;
    transform: scale(0.995);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.portfolio-explorer__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  color: white;
  background: rgba(7, 27, 51, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease;
}

.portfolio-explorer__arrow:hover {
  background: var(--blue);
  transform: translateY(-50%) scale(1.06);
}

.portfolio-explorer__arrow--previous {
  left: 18px;
}

.portfolio-explorer__arrow--next {
  right: 18px;
}

.portfolio-explorer__thumbnails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  background: #f3f4f3;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.portfolio-thumbnail {
  min-width: 0;
  padding: 0;
  color: #6f7d8d;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.portfolio-thumbnail__image {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 8px;
  background: #dfe5ec;
  border: 2px solid transparent;
  transition: border-color 180ms ease, transform 180ms ease;
}

.portfolio-thumbnail__image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(7, 27, 51, 0.12);
  transition: opacity 180ms ease;
}

.portfolio-thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
}

.portfolio-thumbnail > span:last-child {
  display: block;
  overflow: hidden;
  font-size: 0.61rem;
  font-weight: 820;
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.portfolio-thumbnail:hover .portfolio-thumbnail__image,
.portfolio-thumbnail.is-active .portfolio-thumbnail__image {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.portfolio-thumbnail:hover .portfolio-thumbnail__image::after,
.portfolio-thumbnail.is-active .portfolio-thumbnail__image::after {
  opacity: 0;
}

.portfolio-thumbnail.is-active {
  color: var(--blue);
}

.portfolio-explorer__details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding: clamp(24px, 3vw, 38px);
}

.portfolio-explorer__details > p {
  max-width: 680px;
  margin: 0;
  color: #536377;
  font-size: 1rem;
  line-height: 1.68;
}

.portfolio-explorer__details ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: 350px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portfolio-explorer__details li {
  padding: 8px 10px;
  color: #566578;
  border: 1px solid var(--line);
  font-size: 0.59rem;
  font-weight: 820;
  letter-spacing: 0.035em;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(52px, 7vw, 92px) clamp(26px, 4vw, 52px);
  align-items: start;
}

.portfolio-card {
  min-width: 0;
}

.portfolio-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-soft);
  border: 1px solid var(--line);
}

.portfolio-card__body {
  position: relative;
  padding: 26px 0 0 52px;
}

.portfolio-card__index {
  position: absolute;
  top: 29px;
  left: 0;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.portfolio-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 2.7vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.portfolio-card__body > p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: #5b697a;
  line-height: 1.7;
}

.portfolio-card:last-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}

.portfolio-card:last-child .portfolio-card__body {
  padding-top: 0;
}

.portfolio-card:last-child .portfolio-card__index {
  top: 3px;
}

.project-feature {
  display: grid;
  grid-template-columns: 48px minmax(360px, 0.95fr) minmax(280px, 0.75fr);
  gap: 42px;
  align-items: center;
}

.project-feature:nth-child(even) .project-feature__media {
  order: 3;
}

.project-feature__index {
  align-self: start;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
}

.project-feature__media {
  aspect-ratio: 5 / 4;
  overflow: hidden;
}

.project-feature h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 3.3vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.project-feature > div:last-child > p:last-child {
  color: #5b697a;
  line-height: 1.7;
}

.section--soft {
  background: white;
}

.client-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.client-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.4;
}

.client-list span {
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: clamp(60px, 10vw, 150px);
}

.contact-details {
  display: grid;
  gap: 42px;
  align-content: start;
}

.contact-details > div:not(.contact-details__note) {
  position: relative;
  padding-left: 44px;
}

.contact-details svg {
  position: absolute;
  left: 0;
  color: var(--blue);
}

.contact-details a,
.contact-details > div > p:last-child {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
}

.contact-details__note {
  margin-top: 24px;
  padding: 28px;
  color: white;
  background: var(--ink);
}

.contact-details__note span {
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 800;
}

.contact-details__note p {
  margin: 48px 0 0;
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contact-form label {
  display: grid;
  gap: 10px;
  color: #455366;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 17px 0;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid #9aa5b3;
  border-radius: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 180ms ease;
}

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

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  justify-self: start;
  margin-top: 12px;
}

.form-success {
  display: none;
  margin: 0;
  padding: 18px;
  color: #0b5b39;
  border: 1px solid #a7d8c0;
  background: #eef9f3;
  line-height: 1.5;
}

.form-success.is-visible {
  display: block;
}

.site-footer {
  color: white;
  background: var(--blue);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 0.55fr 0.55fr;
  gap: 80px;
  padding-block: 90px;
}

.wordmark--footer {
  color: white;
}

.site-footer__top > div:first-child > p {
  margin: 36px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 1.08rem;
  line-height: 1.6;
}

.site-footer__top > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.site-footer__top a,
.site-footer__top > div:not(:first-child) > p:not(.footer-label) {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.5;
}

.site-footer__top a:hover {
  color: white;
}

.footer-label {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-block: 24px;
  color: rgba(255, 255, 255, 0.38);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

@media (max-width: 1050px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
    grid-column: 3;
  }

  .mobile-panel {
    position: fixed;
    inset: 86px 0 0;
    z-index: 49;
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 42px 24px;
    color: white;
    background: var(--blue);
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 240ms ease,
      visibility 240ms ease;
  }

  .admin-bar .mobile-panel {
    inset-block-start: 118px;
  }

  .mobile-panel.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .mobile-panel nav {
    display: grid;
    align-content: start;
  }

  .mobile-panel nav a {
    display: grid;
    grid-template-columns: 42px 1fr;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 1.7rem;
    font-weight: 650;
    letter-spacing: -0.03em;
  }

  .mobile-panel nav span {
    color: var(--cyan);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .mobile-panel > a {
    color: rgba(255, 255, 255, 0.68);
  }

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

  .hero__note {
    display: none;
  }

  .hero__image {
    width: 84%;
  }

  .intro-grid,
  .story-grid,
  .clients-layout {
    gap: 60px;
  }

  .service-focus__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-focus__intro {
    width: 100%;
    max-width: 620px;
  }

  .service-focus__groups {
    grid-template-columns: 1fr;
  }

  .contact-banner__inner {
    grid-template-columns: 1fr auto;
    padding-block: 80px;
  }

  .contact-banner__inner .eyebrow {
    grid-column: 1 / -1;
    margin: 0;
  }

  .page-masthead__grid {
    grid-template-columns: 1fr;
    min-height: 600px;
    gap: 60px;
  }

  .service-group__heading {
    grid-template-columns: 48px 1fr;
  }

  .service-group__heading > p {
    grid-column: 2;
  }

  .project-feature {
    grid-template-columns: 38px 1fr;
  }

  .portfolio-intro {
    gap: 64px;
  }

  .portfolio-overview {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .client-portfolio-card--featured {
    grid-template-columns: 1fr;
  }

  .client-portfolio-card--featured .client-portfolio-card__preview {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .case-study__header {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .case-study__services {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    border-top: 0;
  }

  .case-study__services li {
    border-top: 1px solid var(--line);
  }

  .case-study:nth-child(even) .case-study__services {
    border-color: transparent;
  }

  .portfolio-card:last-child {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.6fr);
  }

  .project-feature > div:last-child,
  .project-feature:nth-child(even) > div:last-child {
    grid-column: 2;
  }

  .project-feature:nth-child(even) .project-feature__media {
    order: initial;
  }
}

@media (max-width: 782px) {
  .admin-bar .mobile-panel {
    inset-block-start: 132px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 32px, 1320px);
  }

  .site-header__inner {
    min-height: 74px;
  }

  .mobile-panel {
    inset: 74px 0 0;
  }

  .admin-bar .mobile-panel {
    inset-block-start: 120px;
  }

  .hero {
    min-height: calc(100svh - 74px);
  }

  .hero__image {
    inset: 0;
    width: 100%;
    opacity: 0.5;
  }

  .hero__veil {
    background: linear-gradient(0deg, rgba(6, 54, 84, 0.94), rgba(0, 113, 189, 0.42));
  }

  .hero::before {
    background-size: 54px 54px;
  }

  .hero__content {
    min-height: calc(100svh - 110px);
    align-content: end;
    padding-block: 100px 86px;
  }

  .hero h1,
  .page-masthead h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
    line-height: 0.92;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    padding-block: 82px;
  }

  .intro-grid,
  .story-grid,
  .clients-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .display-title {
    font-size: 2.75rem;
  }

  .service-row {
    grid-template-columns: 34px 44px 1fr 34px;
    gap: 14px;
    padding-block: 28px;
  }

  .service-row p {
    grid-column: 3 / 5;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .work-card__screens {
    min-height: clamp(330px, 82vw, 520px);
  }

  .work-card--3 {
    grid-column: auto;
  }

  .service-focus__group {
    padding: 24px 18px;
  }

  .service-focus__group-heading {
    min-height: 0;
  }

  .service-focus__item {
    grid-template-columns: 84px minmax(0, 1fr) 28px;
    gap: 14px;
    min-height: 126px;
    padding-block: 20px;
  }

  .service-focus__thumb {
    width: 84px;
    height: 64px;
    padding: 10px;
  }

  .service-focus__copy > span {
    font-size: 0.84rem;
  }

  .section-heading,
  .split-cta {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .trust-list {
    grid-template-columns: 1fr;
  }

  .contact-banner__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-banner h2 {
    font-size: 2.9rem;
  }

  .page-masthead__grid {
    min-height: 540px;
    padding-block: 100px 70px;
  }

  .principles-grid,
  .service-cards {
    grid-template-columns: 1fr;
  }

  .service-group__heading {
    grid-template-columns: 32px 1fr;
    gap: 24px;
  }

  .project-feature {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .portfolio-intro {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .portfolio-overview {
    gap: 34px;
  }

  .portfolio-overview h2 {
    font-size: clamp(2.45rem, 11vw, 3.7rem);
  }

  .client-portfolio-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .client-portfolio-card--featured {
    grid-column: auto;
  }

  .client-portfolio-card__preview,
  .client-portfolio-card--featured .client-portfolio-card__preview {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .client-portfolio-card__body,
  .client-portfolio-card--featured .client-portfolio-card__body {
    padding: 26px 24px 28px;
  }

  .client-portfolio-card h2,
  .client-portfolio-card--featured h2 {
    font-size: clamp(2.15rem, 9.5vw, 3rem);
  }

  .client-portfolio-card__meta {
    gap: 12px;
    margin-bottom: 18px;
  }

  .client-portfolio-card__meta > p {
    max-width: 68%;
  }

  .client-portfolio-window--home {
    top: 7%;
    left: 4%;
    width: 70%;
  }

  .client-portfolio-window--detail {
    right: 4%;
    bottom: 7%;
    width: 36%;
  }

  .client-portfolio-card .browser-frame__bar {
    min-height: 30px;
    gap: 10px;
    padding-inline: 10px;
    font-size: 0.53rem;
  }

  .client-portfolio-card__services {
    margin-top: 24px;
  }

  .portfolio-facts {
    gap: 14px;
  }

  .case-study {
    padding-block: 86px;
  }

  .case-study__header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .case-study__copy h2 {
    font-size: clamp(2.65rem, 13vw, 4.4rem);
  }

  .case-study__services {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 16px;
  }

  .case-study__stage {
    min-height: 0;
    display: grid;
    margin-top: 48px;
    padding-bottom: 0;
  }

  .browser-frame--main {
    width: 100%;
  }

  .browser-frame--detail,
  .case-study--reverse .browser-frame--detail {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 84%;
    margin: -42px 16px 0 auto;
  }

  .case-study--reverse .browser-frame--detail {
    margin-right: auto;
    margin-left: 16px;
  }

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

  .portfolio-card:last-child {
    grid-column: auto;
    display: block;
  }

  .portfolio-card:last-child .portfolio-card__body {
    padding-top: 26px;
  }

  .portfolio-card:last-child .portfolio-card__index {
    top: 29px;
  }

  .project-feature > div,
  .project-feature > div:last-child,
  .project-feature:nth-child(even) > div:last-child {
    grid-column: auto;
  }

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

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 52px;
    padding-block: 72px;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 10px;
  }
}

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

/* WordPress integration */
.desktop-nav .menu,
.mobile-panel .menu {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav .menu li {
  display: contents;
  list-style: none;
}

.desktop-nav .current-menu-item > a,
.desktop-nav .current_page_item > a {
  color: white;
}

.desktop-nav .current-menu-item > a::after,
.desktop-nav .current_page_item > a::after {
  right: 0;
}

.mobile-panel .menu li {
  display: contents;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  width: 24px;
  height: 2px;
  display: block;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.form-error {
  display: none;
  margin: 0;
  padding: 18px;
  color: #8b1d22;
  border: 1px solid #e4a8aa;
  background: #fff1f1;
  line-height: 1.5;
}

.form-error.is-visible {
  display: block;
}

.wp-content {
  max-width: 900px;
}

.wp-content > * + * {
  margin-top: 1.4em;
}

.wp-content h2,
.wp-content h3 {
  letter-spacing: -0.035em;
}

.wp-content p,
.wp-content li {
  color: #536173;
  line-height: 1.75;
}

.wp-content img {
  max-width: 100%;
  height: auto;
}

.service-card__marker,
.contact-icon,
.principles-grid span {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
}

.service-row__icon {
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

@media (max-width: 1040px) {
  .portfolio-explorer {
    grid-template-columns: 1fr;
  }

  .portfolio-explorer__projects {
    position: static;
  }

  .portfolio-explorer__project-list {
    grid-template-columns: repeat(8, minmax(170px, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .portfolio-project-button {
    border-right: 1px solid rgba(255, 255, 255, 0.11);
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .portfolio-explorer {
    width: calc(100% + 32px);
    margin-inline: -16px;
    gap: 14px;
  }

  .portfolio-explorer__nav-label {
    padding-inline: 16px;
  }

  .portfolio-explorer__project-list {
    grid-template-columns: repeat(8, 158px);
  }

  .portfolio-project-button {
    padding: 15px 14px;
  }

  .portfolio-explorer__header {
    align-items: start;
    padding: 24px 18px;
  }

  .portfolio-explorer__header h2 {
    font-size: clamp(2.1rem, 10vw, 3.05rem);
  }

  .portfolio-explorer__counter {
    flex-shrink: 0;
  }

  .portfolio-explorer__browser-bar {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 0.54rem;
  }

  .portfolio-explorer__browser-bar > span:last-child {
    display: none;
  }

  .portfolio-explorer__viewer > img {
    aspect-ratio: 4 / 3;
  }

  .portfolio-explorer__arrow {
    width: 40px;
    height: 40px;
  }

  .portfolio-explorer__arrow--previous {
    left: 9px;
  }

  .portfolio-explorer__arrow--next {
    right: 9px;
  }

  .portfolio-explorer__thumbnails {
    grid-template-columns: repeat(5, 128px);
    overflow-x: auto;
    padding: 12px;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .portfolio-thumbnail > span:last-child {
    font-size: 0.56rem;
  }

  .portfolio-explorer__details {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 18px 28px;
  }

  .portfolio-explorer__details ul {
    justify-content: flex-start;
  }
}

/* Simple portfolio gallery */
.portfolio-explorer {
  display: block;
}

.portfolio-explorer__projects {
  position: static;
  overflow: visible;
  margin-bottom: 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.portfolio-explorer__nav-label {
  display: none;
}

.portfolio-explorer__project-list {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}

.portfolio-project-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 9px;
  min-height: 68px;
  padding: 13px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.portfolio-project-button:last-child {
  border: 1px solid var(--line);
}

.portfolio-project-button > span {
  grid-row: auto;
  color: var(--blue);
}

.portfolio-project-button strong {
  align-self: center;
  font-size: 0.72rem;
  line-height: 1.15;
}

.portfolio-project-button small {
  display: none;
}

.portfolio-project-button:hover {
  color: var(--ink);
  background: #edf3ff;
}

.portfolio-project-button.is-active {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.portfolio-project-button.is-active > span {
  color: var(--cyan);
}

.portfolio-explorer__stage {
  border-color: var(--line);
}

.portfolio-explorer__header {
  padding: clamp(24px, 2.8vw, 38px);
}

.portfolio-explorer__header h2 {
  font-size: clamp(2.35rem, 4vw, 4.4rem);
}

.portfolio-explorer__viewer > img {
  width: 100%;
  height: clamp(360px, 48vw, 620px);
  aspect-ratio: auto;
  object-fit: contain;
  object-position: top center;
}

.portfolio-explorer__thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px;
  background: white;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.portfolio-thumbnail {
  flex: 0 0 132px;
}

.portfolio-thumbnail__image {
  height: 82px;
  margin-bottom: 7px;
}

.portfolio-thumbnail img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 900px) {
  .portfolio-explorer__project-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .portfolio-project-button {
    flex: 0 0 168px;
  }
}

@media (max-width: 720px) {
  .portfolio-explorer {
    width: 100%;
    margin-inline: 0;
  }

  .portfolio-explorer__project-list {
    grid-template-columns: none;
  }

  .portfolio-explorer__header {
    padding: 22px 18px;
  }

  .portfolio-explorer__viewer > img {
    height: min(72vw, 420px);
    aspect-ratio: auto;
  }

  .portfolio-thumbnail {
    flex-basis: 112px;
  }

  .portfolio-thumbnail__image {
    height: 70px;
  }
}
