:root {
  color-scheme: light;
  --ink: #0b1f33;
  --ink-soft: #34495e;
  --navy: #0b1f33;
  --navy-2: #123451;
  --blue: #1a5a96;
  --accent: #f3c622;
  --accent-strong: #d49f00;
  --paper: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #ece9e1;
  --line: #d8d7d1;
  --muted: #687785;
  --success: #18794e;
  --danger: #b42318;
  --shadow-sm: 0 12px 32px rgba(11, 31, 51, 0.08);
  --shadow-lg: 0 28px 80px rgba(11, 31, 51, 0.2);
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shell: min(1180px, calc(100% - 40px));
  --font-body: "Manrope", Arial, sans-serif;
  --font-display: "Unbounded", "Arial Black", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-header: 40;
  --z-dialog: 100;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  overflow-x: clip;
}

html.scroll-instant {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

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

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

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

button,
summary,
a {
  touch-action: manipulation;
}

button {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.utility-bar {
  background: #071523;
  color: #cbd4dc;
  font-size: 12px;
  letter-spacing: 0.035em;
}

.utility-bar__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.utility-bar__contacts {
  display: flex;
  align-items: center;
  gap: 22px;
}

.utility-bar a {
  transition: color 180ms ease;
}

.utility-bar a:hover {
  color: var(--surface);
}

.utility-phone {
  color: var(--surface);
  font-weight: 800;
}

.premium-ticker {
  display: none;
}

.site-header {
  position: sticky;
  z-index: var(--z-header);
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(246, 244, 239, 0.94);
  backdrop-filter: blur(18px);
  transition: box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(11, 31, 51, 0.08);
  box-shadow: 0 10px 30px rgba(11, 31, 51, 0.08);
}

.site-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  min-width: 176px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  fill: var(--ink);
}

.brand__accent {
  fill: var(--accent);
}

.brand__text {
  display: grid;
  line-height: 1;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: -0.05em;
}

.brand__text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
  margin-inline: auto;
}

.main-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  background: var(--accent-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  padding: 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  display: block;
  margin: 3px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

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

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #111b24;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  border-color: #ffdb44;
  background: #ffdb44;
  box-shadow: 0 10px 24px rgba(243, 198, 34, 0.2);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button--compact {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 13px;
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
  color: var(--surface);
}

.button--ghost:hover {
  border-color: var(--surface);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

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

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

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

.button--light:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  overflow: hidden;
  background: var(--navy);
  color: var(--surface);
}

.hero__media,
.hero__scrim {
  position: absolute;
  inset: 0;
}

.hero__media {
  background-image: url("/assets/portfolio/ceiling-damage.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__media picture,
.hero__image {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__image {
  object-fit: cover;
  object-position: center;
}

.hero__scrim {
  background:
    linear-gradient(90deg, rgba(5, 20, 33, 0.97) 0%, rgba(5, 20, 33, 0.91) 48%, rgba(5, 20, 33, 0.44) 76%, rgba(5, 20, 33, 0.6) 100%),
    linear-gradient(0deg, rgba(5, 20, 33, 0.36), transparent 35%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  align-items: end;
  gap: 64px;
  padding-block: 96px 84px;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.hero h1,
.section-heading h2,
.process h2,
.trust h2,
.contact h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(42px, 5.7vw, 82px);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.hero__lead {
  max-width: 690px;
  margin: 27px 0 0;
  color: #d6e0e8;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 36px 0 0;
  padding: 0;
  color: #d6e0e8;
  font-size: 13px;
  list-style: none;
}

.hero__proof li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__proof svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.hero-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  background: rgba(9, 35, 57, 0.72);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(15px);
}

.hero-card__index {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.hero-card h2 {
  margin: 12px 0 24px;
  font-size: 24px;
  line-height: 1.25;
}

.hero-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card li {
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #dce5eb;
  font-size: 13px;
}

.hero-card li span {
  color: #7e9aaf;
  font-variant-numeric: tabular-nums;
}

.metrics {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 34px;
  border-left: 1px solid var(--line);
}

.metric:last-child {
  border-right: 1px solid var(--line);
}

.metric strong {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 47px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.metric span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding-block: clamp(82px, 9vw, 132px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: 72px;
  margin-bottom: 54px;
}

.section-heading--compact {
  margin-bottom: 38px;
}

.section-heading h2,
.process h2,
.trust h2,
.contact h2 {
  font-size: clamp(36px, 4.7vw, 64px);
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.service-card {
  grid-column: span 4;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 0 0 rgba(11, 31, 51, 0);
  transition: transform 220ms var(--ease), box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover {
  border-color: #b8bdc0;
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.service-card--featured {
  grid-column: span 8;
  background: var(--surface-2);
}

.service-card--dark {
  grid-column: span 8;
  min-height: 300px;
  background: var(--ink);
  color: var(--surface);
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.service-card__number {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.service-card svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.service-card--dark svg {
  stroke: var(--accent);
}

.service-card h3 {
  max-width: 520px;
  margin: 46px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.service-card p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.service-card--dark p {
  color: #b8c6d1;
}

.service-card details {
  margin-top: auto;
  padding-top: 24px;
}

.service-card summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.service-card summary::-webkit-details-marker {
  display: none;
}

.service-card summary span {
  font-size: 23px;
  font-weight: 400;
  transition: transform 180ms ease;
}

.service-card details[open] summary span {
  transform: rotate(45deg);
}

.service-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 20px;
  margin: 7px 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 12px;
  list-style: none;
}

.service-card li::before {
  content: "—";
  margin-right: 6px;
  color: var(--accent-strong);
}

.service-card li a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.24em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.service-card li a:hover,
.service-card li a:focus-visible {
  color: var(--blue);
  text-decoration-color: currentColor;
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.text-link span {
  transition: transform 180ms var(--ease);
}

.text-link:hover span {
  transform: translateX(4px);
}

.service-card--dark .text-link {
  margin-top: auto;
  color: var(--accent);
}

.process {
  background: var(--navy);
  color: var(--surface);
}

.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(60px, 10vw, 150px);
}

.process__intro {
  align-self: start;
  position: sticky;
  top: 130px;
}

.process__intro > p:not(.eyebrow) {
  margin: 28px 0 32px;
  color: #bac9d5;
}

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

.process-list li {
  min-height: 190px;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 24px;
  padding: 35px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.process-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.process-list > li > span {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 14px;
}

.process-list h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.process-list p {
  max-width: 520px;
  margin: 0;
  color: #aebfcb;
  font-size: 14px;
}

.projects {
  background: var(--surface);
}

.project-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.chip {
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.chip:hover,
.chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

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

.project-card {
  min-height: 510px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: opacity 180ms ease, transform 220ms var(--ease);
}

.project-card__link {
  min-height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.project-card:focus-within {
  outline: 3px solid color-mix(in srgb, var(--blue) 72%, white);
  outline-offset: 4px;
}

.project-card__link:focus-visible {
  outline: none;
}

.project-card--state {
  min-height: 220px;
  grid-column: 1 / -1;
  justify-content: center;
}

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

.project-card.is-hidden {
  display: none;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
  transition: transform 500ms var(--ease), filter 300ms ease;
}

.project-card:hover img {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.025);
}

.project-card__body {
  flex: 1;
  padding: 24px 26px 28px;
}

.project-card__body span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card__body h3 {
  margin: 9px 0 7px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.project-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.trust {
  background: var(--surface-2);
  overflow: hidden;
}

.trust__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: clamp(55px, 8vw, 120px);
}

.trust__content > p:not(.eyebrow) {
  margin: 28px 0;
  color: var(--muted);
}

.trust__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.document-stack {
  display: grid;
  gap: 10px;
  perspective: 1000px;
}

.document-stack article {
  min-height: 100px;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid rgba(11, 31, 51, 0.1);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.document-stack article:nth-child(2) {
  transform: translateX(16px);
}

.document-stack article:nth-child(3) {
  transform: translateX(32px);
}

.document-stack article:nth-child(4) {
  transform: translateX(48px);
}

.document-stack article > span {
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 12px;
}

.document-stack div {
  display: grid;
}

.document-stack strong {
  font-size: 15px;
}

.document-stack small {
  margin-top: 5px;
  color: var(--muted);
}

.partners {
  padding-block: 78px;
  background: var(--surface);
}

.partner-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.partner-row span {
  min-height: 126px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #68737c;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.6vw, 20px);
  letter-spacing: -0.04em;
}

.brand-groups {
  display: grid;
  gap: clamp(34px, 5vw, 56px);
}

.brand-group {
  display: grid;
  gap: 16px;
}

.brand-group h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.04em;
}

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

.brand-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.brand-card img {
  width: 100%;
  height: auto;
  display: block;
}

.insights {
  background: var(--paper);
}

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

.insight-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  transition: transform 200ms var(--ease), border-color 200ms ease;
}

.insight-card:hover {
  border-color: #aeb8be;
  transform: translateY(-3px);
}

.insight-card--lead {
  grid-row: span 2;
  min-height: 516px;
  justify-content: flex-end;
  background:
    linear-gradient(0deg, rgba(7, 25, 41, 0.94) 0%, rgba(7, 25, 41, 0.2) 75%),
    url("/assets/portfolio/news-hero-22.jpg") center / cover,
    var(--navy);
  color: var(--surface);
}

.insight-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.insight-card--lead .insight-card__meta {
  color: var(--accent);
}

.insight-card h3 {
  max-width: 600px;
  margin: 26px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.insight-card p {
  margin: 0 0 16px;
  color: #c0ccd5;
}

.insight-card .text-link {
  margin-top: auto;
}

.insight-card--lead .text-link {
  color: var(--accent);
}

.contact {
  padding-block: clamp(84px, 10vw, 140px);
  background: var(--navy);
  color: var(--surface);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 0.72fr);
  gap: clamp(60px, 10vw, 150px);
}

.contact__content > p:not(.eyebrow) {
  max-width: 630px;
  margin: 28px 0 40px;
  color: #b8c8d3;
}

.contact dl {
  margin: 0;
}

.contact dl > div {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact dl > div:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.contact dt {
  color: #7890a3;
  font-size: 12px;
}

.contact dd {
  margin: 0;
  font-size: 14px;
}

.contact dd a:hover {
  color: var(--accent);
}

.contact-form {
  padding: 34px;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
}

.contact-form__head {
  display: grid;
  margin-bottom: 28px;
}

.contact-form__head span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-form__head strong {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.contact-form__head small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.contact-form__head small span,
.contact-form__label > span[aria-hidden="true"] {
  color: var(--danger);
}

.contact-form__label {
  display: inline;
}

.contact-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.contact-form input:not([type="checkbox"]):not([data-honeypot]),
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #ccd1d4;
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

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

.contact-form input:not([type="checkbox"]):not([data-honeypot]):focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(26, 90, 150, 0.14);
}

.contact-form [aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.11);
}

.contact-form__website {
  position: fixed !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-form label.contact-form__consent {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin: 3px 0 18px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.contact-form__consent input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.contact-form__consent input:focus-visible {
  outline: 3px solid rgba(26, 90, 150, 0.32);
  outline-offset: 3px;
}

.contact-form__consent input[aria-invalid="true"] + span {
  color: var(--danger);
}

.contact-form__consent a,
.form-recovery a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-form__consent a:hover,
.form-recovery a:hover {
  color: var(--navy-2);
}

.contact-form .button {
  width: 100%;
  margin-top: 5px;
}

.contact-form .button:disabled {
  border-color: #d9c36c;
  background: #e4cf77;
  box-shadow: none;
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.contact-form__spinner {
  width: 17px;
  height: 17px;
  display: none;
  border: 2px solid rgba(11, 31, 51, 0.28);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: contact-form-spin 700ms linear infinite;
}

.contact-form .button[aria-busy="true"] .contact-form__spinner {
  display: block;
}

@keyframes contact-form-spin {
  to { transform: rotate(360deg); }
}

.form-note,
.form-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.form-status:not(:empty) {
  min-height: 24px;
  font-size: 12px;
  font-weight: 800;
}

.form-status[data-state="loading"] {
  color: var(--ink-soft);
}

.form-status[data-state="success"] {
  color: var(--success);
}

.form-status[data-state="error"] {
  color: var(--danger);
}

.form-recovery {
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: 7px;
  background: rgba(180, 35, 24, 0.055);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.form-recovery[hidden] {
  display: none;
}

.site-footer {
  padding-block: 62px 24px;
  background: #071523;
  color: #c5d0d8;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.6fr 0.8fr;
  gap: 80px;
}

.brand--footer {
  color: var(--surface);
}

.brand--footer .brand__mark {
  fill: var(--surface);
}

.brand--footer .brand__text small {
  color: #8aa0b1;
}

.site-footer__grid > div > p {
  max-width: 390px;
  margin: 20px 0 0;
  color: #7f94a4;
  font-size: 13px;
}

.site-footer nav,
.site-footer__grid > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
}

.site-footer strong {
  margin-bottom: 8px;
  color: var(--surface);
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #73899a;
  font-size: 11px;
}

.quote-dialog {
  width: min(560px, calc(100% - 28px));
  padding: 40px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.quote-dialog::backdrop {
  background: rgba(5, 20, 33, 0.75);
  backdrop-filter: blur(5px);
}

.quote-dialog h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.quote-dialog > p:not(.eyebrow) {
  margin: 22px 0 26px;
  color: var(--muted);
}

.dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}

.dialog-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quote-dialog small {
  display: block;
  margin-top: 20px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

.reveal--delay {
  transition-delay: 110ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.policy-page {
  min-height: 100dvh;
  background: var(--paper);
}

.policy-header {
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.94);
}

.policy-header__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.policy-header .text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-weight: 800;
}

.policy-main {
  padding-block: clamp(56px, 9vw, 120px);
}

.policy-main__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}

.policy-copy h1 {
  max-width: 850px;
  margin: 18px 0 28px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.policy-copy > p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}

.policy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.policy-copy .policy-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.policy-aside {
  display: grid;
  gap: 16px;
  padding: 30px;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: var(--surface);
}

.policy-aside > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.policy-aside h2,
.policy-aside p,
.policy-aside ul {
  margin: 0;
}

.policy-aside h2 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.policy-aside ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  line-height: 1.5;
}

.policy-aside p {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #d5dde4;
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 1080px) {
  .header-cta {
    display: none;
  }

  .site-header__inner {
    gap: 22px;
  }

  .hero__inner {
    gap: 35px;
  }

  .service-card {
    grid-column: span 6;
  }

  .service-card--featured,
  .service-card--dark {
    grid-column: span 6;
  }

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

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

  .document-stack article:nth-child(n) {
    transform: none;
  }
}

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

  .utility-bar__inner > span,
  .utility-bar__contacts > span,
  .utility-bar__contacts > a:not(.utility-phone) {
    display: none;
  }

  .utility-bar__inner,
  .utility-bar__contacts {
    justify-content: flex-end;
  }

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    position: fixed;
    top: 106px;
    right: 0;
    left: 0;
    max-height: calc(100dvh - 106px);
    display: grid;
    align-content: start;
    gap: 0;
    padding: 18px 24px 32px;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 24px 40px rgba(11, 31, 51, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms var(--ease);
  }

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

  .main-nav a {
    min-height: 54px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    align-items: center;
    padding-block: 90px 60px;
  }

  .hero-card {
    max-width: 520px;
  }

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

  .metric:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .section-heading,
  .process__grid,
  .trust__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .process__intro {
    position: static;
  }

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

  .site-footer__grid {
    grid-template-columns: 1.2fr 0.7fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 28px);
  }

  html {
    scroll-padding-top: 78px;
  }

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

  .policy-header .brand__text,
  .policy-header .text-link {
    font-size: 12px;
  }

  .policy-main__grid {
    grid-template-columns: 1fr;
  }

  .policy-copy h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .policy-actions,
  .policy-actions .button {
    width: 100%;
  }

  .policy-aside {
    padding: 24px 20px;
  }

  .brand {
    min-width: 0;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .brand__text strong {
    font-size: 22px;
  }

  .brand__text small {
    display: none;
  }

  .main-nav {
    top: 106px;
  }

  .hero__scrim {
    background: linear-gradient(90deg, rgba(5, 20, 33, 0.97), rgba(5, 20, 33, 0.78));
  }

  .hero__inner {
    padding-block: 76px 46px;
  }

  .hero h1 {
    font-size: clamp(33px, 9.4vw, 44px);
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__actions,
  .dialog-actions {
    display: grid;
  }

  .hero__actions .button,
  .dialog-actions .button {
    width: 100%;
  }

  .hero__proof {
    display: grid;
  }

  .hero-card {
    padding: 22px;
  }

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

  .metric {
    min-height: 120px;
    padding: 20px 17px;
  }

  .metric strong {
    font-size: 29px;
  }

  .metric span {
    font-size: 11px;
  }

  .section {
    padding-block: 76px;
  }

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

  .section-heading h2,
  .process h2,
  .trust h2,
  .contact h2 {
    font-size: clamp(33px, 10vw, 44px);
  }

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

  .service-card,
  .service-card--featured,
  .service-card--dark {
    grid-column: auto;
    min-height: 330px;
    padding: 24px;
  }

  .service-card h3 {
    margin-top: 36px;
  }

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

  .process-list li {
    grid-template-columns: 46px 1fr;
    gap: 14px;
  }

  .project-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card--wide {
    grid-column: auto;
    min-height: 450px;
  }

  .project-card img {
    height: 280px;
  }

  .document-stack article {
    grid-template-columns: 36px 1fr;
    padding: 18px;
  }

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

  .partner-row span {
    min-height: 95px;
  }

  .insight-card,
  .insight-card--lead {
    min-height: 300px;
  }

  .contact dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .contact-form {
    padding: 24px 18px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
  }

  .quote-dialog {
    padding: 48px 22px 26px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .button,
  .chip,
  .service-card,
  .project-card,
  .contact-form {
    border: 1px solid CanvasText;
  }
}

/* Office, events, team and gratitude blocks. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.company-section {
  overflow: clip;
}

.section.office,
.section.team {
  background: var(--surface);
}

.section.events,
.section.gratitude {
  background: var(--paper);
}

.office-gallery {
  height: clamp(520px, 43vw, 610px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 0.7fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.company-gallery__item {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #d9d5cc;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}

.company-gallery__item--main {
  grid-row: 1 / -1;
}

.company-gallery__item picture,
.event-card picture,
.team-card picture,
.letter-card picture {
  width: 100%;
  display: block;
}

.company-gallery__item picture {
  height: 100%;
}

.company-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.03);
  transition: transform 500ms var(--ease), filter 260ms ease;
}

.company-gallery__item:hover img,
.company-gallery__item:focus-visible img {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.025);
}

.company-gallery__item--more::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 15, 14, 0.12), rgba(12, 15, 14, 0.76));
  content: "";
}

.company-gallery__item--more > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  display: grid;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.office__details {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.office__details address {
  display: grid;
  gap: 3px;
  font-style: normal;
}

.office__details address strong {
  font-size: 14px;
}

.office__details address span,
.office__details p {
  color: var(--muted);
  font-size: 12px;
}

.office__details p {
  margin: 0;
  text-align: right;
}

.office-route {
  margin-top: clamp(30px, 4vw, 46px);
  padding: clamp(22px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  align-items: start;
  gap: clamp(26px, 5vw, 58px);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow-lg);
}

.office-route__copy {
  align-self: center;
}

.office-route .eyebrow {
  color: var(--accent);
}

.office-route h3 {
  max-width: 650px;
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.office-route__address {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(15px, 1.7vw, 18px);
}

.office-route__steps {
  margin: clamp(24px, 4vw, 38px) 0 0;
  padding: 0;
  display: grid;
  gap: 15px;
  list-style: none;
}

.office-route__steps li {
  padding-top: 14px;
  display: grid;
  gap: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.office-route__steps strong {
  color: var(--surface);
  font-size: 14px;
}

.office-route__steps span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.office-route__button {
  margin-top: clamp(24px, 4vw, 36px);
}

.office-route__preview {
  min-height: 44px;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: #0d1117;
  color: var(--surface);
  text-decoration: none;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.office-route__preview img {
  width: 100%;
  height: auto;
  display: block;
}

.office-route__preview span {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.office-route__preview:hover span {
  color: var(--accent);
}

.company-carousel {
  min-width: 0;
}

.company-carousel__track {
  min-width: 0;
  display: flex;
  gap: 12px;
  padding: 4px 4px 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--accent) transparent;
  scrollbar-width: thin;
}

.company-carousel__track::-webkit-scrollbar {
  height: 6px;
}

.company-carousel__track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--accent);
}

.company-carousel__controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.company-carousel__button,
.gallery-dialog__controls button,
.gallery-dialog__close {
  width: 46px;
  height: 46px;
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.company-carousel__button:hover:not(:disabled),
.gallery-dialog__controls button:hover,
.gallery-dialog__close:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.company-carousel__button:disabled {
  opacity: 0.32;
  cursor: default;
}

.event-card {
  min-width: 0;
  flex: 0 0 calc((100% - 24px) / 3);
  scroll-snap-align: start;
}

.event-card__button {
  width: 100%;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(38, 34, 28, 0.07);
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  transition: transform 220ms var(--ease), box-shadow 220ms ease;
}

.event-card__button:hover,
.event-card__button:focus-visible {
  box-shadow: var(--shadow-md, var(--shadow-sm));
  transform: translateY(-3px);
}

.event-card img {
  width: 100%;
  height: clamp(240px, 20vw, 290px);
  object-fit: cover;
  filter: saturate(0.82) contrast(1.03);
}

.event-card__body {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
}

.event-card__body small,
.team-card small,
.letter-card small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.event-card__body strong {
  margin: 8px 0 24px;
  font-size: 18px;
  line-height: 1.25;
}

.event-card__body > span {
  margin-top: auto;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
}

.team__track {
  align-items: stretch;
}

.team-card {
  min-width: 0;
  flex: 0 0 calc((100% - 36px) / 4);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(38, 34, 28, 0.07);
  scroll-snap-align: start;
}

.team-card img {
  width: 100%;
  height: clamp(330px, 29vw, 410px);
  object-fit: cover;
  object-position: center;
  filter: saturate(0.78) contrast(1.04);
}

.team-card > div {
  padding: 18px;
}

.team-card h3 {
  margin: 8px 0 7px;
  font-size: 17px;
  line-height: 1.25;
}

.team-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.gratitude__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1.52fr);
  align-items: start;
  gap: clamp(40px, 6vw, 90px);
}

.gratitude__intro {
  position: sticky;
  top: 120px;
}

.gratitude__intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.047em;
}

.gratitude__intro > p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.gratitude__intro .gratitude__hint {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.gratitude__track {
  align-items: flex-start;
}

.letter-card {
  min-width: 0;
  flex: 0 0 calc((100% - 24px) / 3);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(38, 34, 28, 0.09);
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  scroll-snap-align: start;
  transition: transform 220ms var(--ease), box-shadow 220ms ease;
}

.letter-card:nth-child(3n + 2) {
  margin-top: 22px;
}

.letter-card:nth-child(3n + 3) {
  margin-top: 44px;
}

.letter-card:hover,
.letter-card:focus-visible {
  box-shadow: var(--shadow-md, var(--shadow-sm));
  transform: translateY(-3px);
}

.letter-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 0.707 / 1;
  object-fit: cover;
  object-position: top;
  background: #fff;
}

.letter-card > span {
  min-height: 80px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
}

.letter-card strong {
  font-size: 12px;
  line-height: 1.3;
}

.gallery-dialog {
  width: min(1180px, calc(100% - 24px));
  max-width: none;
  height: min(900px, calc(100dvh - 24px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  background: #111312;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.gallery-dialog::backdrop {
  background: rgba(8, 10, 9, 0.88);
  backdrop-filter: blur(6px);
}

.gallery-dialog__inner {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.gallery-dialog__stage {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 58px 56px 24px;
  overflow: auto;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #111312;
  background-size: 24px 24px;
}

.gallery-dialog__stage img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 190px);
  object-fit: contain;
  user-select: none;
}

.gallery-dialog__footer {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  background: #191c1b;
}

.gallery-dialog__footer p {
  margin: 0;
  font-size: 13px;
}

.gallery-dialog__footer > span {
  color: #adb2ad;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.gallery-dialog__controls {
  display: flex;
  gap: 8px;
}

.gallery-dialog__controls button,
.gallery-dialog__close {
  border-color: rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #fff;
}

.gallery-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.gallery-dialog__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

@media (max-width: 980px) {
  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .office-gallery {
    height: auto;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(360px, 48vw) repeat(2, 210px);
  }

  .company-gallery__item--main {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  .event-card {
    flex-basis: min(60%, 420px);
  }

  .team-card {
    flex-basis: min(44%, 330px);
  }

  .gratitude__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gratitude__intro {
    position: static;
    max-width: 650px;
  }

  .letter-card {
    flex-basis: min(40%, 290px);
  }
}

@media (max-width: 820px) {
  .office-route {
    grid-template-columns: minmax(0, 1fr);
  }

  .office-route__preview {
    width: min(100%, 520px);
  }
}

@media (max-width: 680px) {
  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .office-gallery {
    min-height: 0;
    display: flex;
    gap: 10px;
    padding: 4px 4px 12px;
    overflow-x: auto;
    scroll-padding-inline: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--accent) transparent;
    scrollbar-width: thin;
  }

  .company-gallery__item,
  .company-gallery__item--main {
    min-height: 310px;
    flex: 0 0 86%;
    grid-column: auto;
    scroll-snap-align: start;
  }

  .office__details {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .office__details p {
    text-align: left;
  }

  .office-route {
    padding: 20px;
    border-radius: var(--radius-sm);
  }

  .office-route__button {
    width: 100%;
  }

  .company-carousel__controls {
    justify-content: space-between;
  }

  .event-card,
  .team-card {
    flex-basis: 84%;
  }

  .team-card img {
    height: 260px;
  }

  .gratitude__intro h2 {
    font-size: clamp(29px, 9vw, 40px);
  }

  .letter-card {
    flex-basis: 72%;
  }

  .letter-card:nth-child(n) {
    margin-top: 0;
  }

  .gallery-dialog {
    width: calc(100% - 8px);
    height: calc(100dvh - 8px);
    border-radius: var(--radius-sm);
  }

  .gallery-dialog__stage {
    padding: 58px 12px 18px;
  }

  .gallery-dialog__stage img {
    max-height: calc(100dvh - 190px);
  }

  .gallery-dialog__footer {
    min-height: 118px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    padding: 14px;
  }

  .gallery-dialog__footer p {
    grid-column: 1 / -1;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .company-carousel__track {
    scroll-behavior: auto;
  }

  .company-gallery__item img,
  .company-carousel__button,
  .event-card__button,
  .letter-card,
  .gallery-dialog__controls button,
  .gallery-dialog__close {
    transition: none !important;
    transform: none !important;
  }
}

@media (forced-colors: active) {
  .company-gallery__item,
  .event-card__button,
  .team-card,
  .letter-card,
  .company-carousel__button,
  .gallery-dialog,
  .gallery-dialog__controls button,
  .gallery-dialog__close {
    border: 1px solid CanvasText;
  }
}
