/* ==========================================================================
   [NEW BRAND] — European institutional technology studio
   Design system
   ========================================================================== */

:root {
  /* Primary palette */
  --ink-navy: #101828;
  --institutional-blue: #2257E6;
  --warm-white: #FAFAF8;
  --pure-white: #FFFFFF;

  /* Secondary palette */
  --slate: #667085;
  --soft-border: #DDE3EA;
  --light-blue-surface: #EEF3FF;
  --technical-teal: #167C80;

  /* Type */
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  /* Layout */
  --max-width: 1280px;
  --text-max: 720px;
  --section-gap: 120px;
  --gutter: 32px;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --t-fast: 220ms;
  --t-slow: 600ms;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  position: relative;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-navy);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient pastel mesh behind the top of every page */
body::before {
  content: "";
  position: absolute;
  top: -160px;
  left: 0;
  right: 0;
  height: 1080px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 55% at 10% 16%, rgba(34, 87, 230, 0.22), transparent 70%),
    radial-gradient(40% 52% at 88% 16%, rgba(22, 124, 128, 0.28), transparent 70%),
    radial-gradient(32% 45% at 66% 46%, rgba(132, 116, 246, 0.16), transparent 70%),
    radial-gradient(48% 52% at 32% 76%, rgba(178, 205, 255, 0.55), transparent 72%);
  filter: blur(64px);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

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

a { color: var(--institutional-blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

/* --------------------------------------------------------------------------
   Typography scale
   -------------------------------------------------------------------------- */

.h-hero   { font-size: 68px; line-height: 1.06; letter-spacing: -0.025em; }
.h-page   { font-size: 56px; line-height: 1.08; letter-spacing: -0.02em; }
.h-section{ font-size: 44px; }
.h-card   { font-size: 26px; line-height: 1.25; }
.h-small  { font-size: 20px; line-height: 1.3; }

.lead { font-size: 20px; line-height: 1.6; color: var(--slate); }
.small { font-size: 15px; }
.muted { color: var(--slate); }

.mono-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.mono-label--blue { color: var(--institutional-blue); }

.text-block { max-width: var(--text-max); }

@media (max-width: 900px) {
  body { font-size: 17px; }
  .h-hero { font-size: 42px; }
  .h-page { font-size: 38px; }
  .h-section { font-size: 32px; }
  .h-card { font-size: 22px; }
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-gap) 0 0; }
.section:last-of-type { padding-bottom: var(--section-gap); }
.section--padded { padding-bottom: var(--section-gap); }

.section-head { margin-bottom: 64px; }
.section-head .mono-label { display: block; margin-bottom: 16px; }
.section-head p { max-width: var(--text-max); }

.divider { border: 0; border-top: 1px solid var(--soft-border); margin: 0; }

@media (max-width: 900px) {
  :root { --section-gap: 64px; --gutter: 20px; }
  .section-head { margin-bottom: 40px; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 28px;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--institutional-blue);
  color: var(--pure-white);
  border: 1px solid var(--institutional-blue);
}
.btn--primary:hover { background: #1A46C4; border-color: #1A46C4; }

.btn--secondary {
  background: transparent;
  color: var(--ink-navy);
  border: 1px solid var(--soft-border);
}
.btn--secondary:hover { border-color: var(--slate); }

.btn--on-dark {
  background: var(--pure-white);
  color: var(--ink-navy);
  border: 1px solid var(--pure-white);
}
.btn--on-dark:hover { background: var(--warm-white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 16px;
  color: var(--institutional-blue);
}
.text-link::after { content: "→"; transition: transform var(--t-fast) var(--ease); }
.text-link:hover::after { transform: translateX(3px); }
.text-link:hover { text-decoration: none; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250, 250, 248, 0.75);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--soft-border);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-navy);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo svg { flex-shrink: 0; }
/* Two-tone wordmark: "Smart" ink, "Hospitality" accent */
.logo .accent { color: var(--institutional-blue); }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a {
  color: var(--ink-navy);
  font-size: 15.5px;
  font-weight: 400;
}
.site-nav a:hover { color: var(--institutional-blue); text-decoration: none; }
.site-nav a.is-active { color: var(--institutional-blue); font-weight: 500; }

.lang-switch {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  letter-spacing: 0.04em;
}
.lang-opt {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  color: var(--slate);
  background: none;
  border: 0;
  padding: 2px;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
.lang-opt:hover { color: var(--ink-navy); }
.lang-switch .active { color: var(--ink-navy); font-weight: 500; }

.site-nav .btn { height: 44px; padding: 0 22px; font-size: 15px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-navy);
  margin: 5px 0;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 80px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: var(--warm-white);
    border-bottom: 1px solid var(--soft-border);
    padding: 24px var(--gutter) 32px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 18px; padding: 8px 0; }
  .site-nav .btn { margin-top: 12px; height: 50px; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding: 96px 0 0; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr);
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-bottom: 28px; max-width: 640px; }
.hero .lead { max-width: 560px; margin-bottom: 36px; }
.hero__meta {
  margin-top: 36px;
  font-size: 15px;
  color: var(--slate);
}

@media (max-width: 900px) {
  .hero { padding-top: 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Hero diagram */
.hero-diagram {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 40px -18px rgba(16, 24, 40, 0.18);
  border-radius: 10px;
  padding: 28px;
}
.hero-diagram svg { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   Trust bar
   -------------------------------------------------------------------------- */

.trust-bar { padding-top: 96px; }
.trust-bar .mono-label { display: block; margin-bottom: 36px; }
.trust-bar__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 64px;
}
.client-mark {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: #98A2B3;
  white-space: nowrap;
}
.client-mark--caps { text-transform: uppercase; letter-spacing: 0.12em; font-size: 17px; }
.client-mark--more { color: var(--institutional-blue); font-weight: 500; }

.client-logo {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}
.client-logo--tall { height: 52px; }
.client-logo--xl { height: 72px; }

@media (max-width: 900px) {
  .trust-bar { padding-top: 56px; }
  .trust-bar__logos { gap: 16px 36px; }
  .client-mark { font-size: 16px; }
  .client-logo { height: 24px; }
  .client-logo--tall { height: 40px; }
  .client-logo--xl { height: 56px; }
}

/* --------------------------------------------------------------------------
   Intro section
   -------------------------------------------------------------------------- */

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 80px;
  align-items: start;
}
.intro-facts { border-top: 1px solid var(--soft-border); }
.intro-facts li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--soft-border);
  font-weight: 500;
  font-size: 17px;
}
.intro-facts .mono-label { color: var(--institutional-blue); }

@media (max-width: 900px) {
  .intro__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* --------------------------------------------------------------------------
   Work / case rows
   -------------------------------------------------------------------------- */

.case-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--soft-border);
}
.case-row:last-child { border-bottom: 1px solid var(--soft-border); }
.case-row--flip .case-row__text { order: 2; }
.case-row--flip .case-row__visual { order: 1; }

.case-row__text .mono-label { display: block; margin-bottom: 18px; }
.case-row__text h3 { margin-bottom: 18px; }
.case-row__text p { color: var(--slate); margin-bottom: 24px; }

.scope-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.scope-list li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--ink-navy);
  background: var(--light-blue-surface);
  border-radius: 5px;
  padding: 5px 10px;
}

.client-list { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 28px; }
.client-list li { font-size: 15px; font-weight: 500; color: var(--slate); }

@media (max-width: 900px) {
  .case-row { grid-template-columns: 1fr; gap: 36px; padding: 48px 0; }
  .case-row--flip .case-row__text { order: 1; }
  .case-row--flip .case-row__visual { order: 2; }
}

/* Browser frame for mockups */
.browser-frame {
  background: var(--pure-white);
  border: 1px solid var(--soft-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease);
}
a:hover .browser-frame, .case-row:hover .browser-frame { border-color: #C4CDD8; }
.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--soft-border);
  background: var(--warm-white);
}
.browser-frame__bar > span:not(.browser-frame__url) {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #E4E7EC;
  flex-shrink: 0;
}
.browser-frame__url {
  flex: 1;
  min-width: 0;
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--slate);
  background: var(--pure-white);
  border: 1px solid var(--soft-border);
  border-radius: 7px;
  padding: 5px 12px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-frame__url::before {
  content: "";
  flex-shrink: 0;
  width: 7px; height: 7px;
  border: 1.5px solid #C4CDD8;
  border-radius: 50%;
}
.browser-frame__body { padding: 0; }
.browser-frame__body svg { width: 100%; height: auto; }

/* Plain diagram panel */
.diagram-panel {
  background: var(--pure-white);
  border: 1px solid var(--soft-border);
  border-radius: 10px;
  padding: 32px;
}
.diagram-panel svg { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   Capabilities
   -------------------------------------------------------------------------- */

.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--soft-border);
  border-left: 1px solid var(--soft-border);
}
.capability {
  padding: 48px 44px 52px;
  border-right: 1px solid var(--soft-border);
  border-bottom: 1px solid var(--soft-border);
  background: var(--warm-white);
}
.capability__number {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--institutional-blue);
  display: block;
  margin-bottom: 20px;
}
.capability h3 { margin-bottom: 14px; }
.capability p { color: var(--slate); font-size: 17px; }

@media (max-width: 900px) {
  .capabilities-grid { grid-template-columns: 1fr; }
  .capability { padding: 32px 24px 36px; }
}

/* --------------------------------------------------------------------------
   Sectors
   -------------------------------------------------------------------------- */

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.sector { border-top: 2px solid var(--ink-navy); padding-top: 24px; }
.sector h3 { font-size: 21px; margin-bottom: 12px; }
.sector p { color: var(--slate); font-size: 16.5px; }

@media (max-width: 900px) {
  .sectors-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--soft-border);
}
.process-step { position: relative; padding-top: 32px; }
.process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--institutional-blue);
}
.process-step .mono-label { display: block; margin-bottom: 10px; color: var(--institutional-blue); }
.process-step h3 { font-size: 20px; margin-bottom: 10px; }
.process-step p { color: var(--slate); font-size: 16px; }

@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-grid::before { top: 12px; bottom: 12px; left: 5px; right: auto; width: 1px; height: auto; }
  .process-step { padding-top: 0; padding-left: 32px; }
  .process-step::before { top: 6px; }
}

/* --------------------------------------------------------------------------
   Reliability (dark section)
   -------------------------------------------------------------------------- */

.dark-section {
  background:
    radial-gradient(42% 65% at 88% 0%, rgba(34, 87, 230, 0.32), transparent 70%),
    radial-gradient(38% 60% at 6% 100%, rgba(22, 124, 128, 0.28), transparent 70%),
    var(--ink-navy);
  color: var(--pure-white);
  padding: var(--section-gap) 0;
  margin-top: var(--section-gap);
}
.dark-section h2 { color: var(--pure-white); }
.dark-section .section-head .mono-label { color: #8FA3C8; }

.reliability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 72px;
}
.reliability-item { border-top: 1px solid rgba(34, 87, 230, 0.45); padding-top: 22px; }
.reliability-item h3 { font-size: 20px; color: var(--pure-white); margin-bottom: 10px; }
.reliability-item p { color: #A6B3C9; font-size: 16.5px; }

@media (max-width: 900px) {
  .reliability-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* --------------------------------------------------------------------------
   Company / team
   -------------------------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}
.team-member__photo {
  aspect-ratio: 4 / 5;
  background: var(--light-blue-surface);
  border: 1px solid var(--soft-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  filter: grayscale(1);
}
.team-member__photo span {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  color: var(--slate);
}
.team-member h3 { font-size: 19px; margin-bottom: 2px; }
.team-member .role { font-size: 15px; color: var(--institutional-blue); font-weight: 500; margin-bottom: 10px; }
.team-member .bio { font-size: 15.5px; color: var(--slate); }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; gap: 32px; }
  .team-member__photo { aspect-ratio: 16 / 9; }
}

/* --------------------------------------------------------------------------
   Insights list
   -------------------------------------------------------------------------- */

.insight-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--soft-border);
}
.insight-item:first-of-type { border-top: 1px solid var(--soft-border); }
.insight-item h3 { font-size: 22px; margin-bottom: 8px; }
.insight-item p { color: var(--slate); font-size: 16.5px; margin: 0; }

@media (max-width: 900px) {
  .insight-item { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.final-cta {
  padding: var(--section-gap) 0;
  position: relative;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: -100px 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 55% at 86% 28%, rgba(34, 87, 230, 0.18), transparent 70%),
    radial-gradient(46% 60% at 8% 82%, rgba(22, 124, 128, 0.16), transparent 70%),
    radial-gradient(36% 50% at 52% 8%, rgba(178, 205, 255, 0.5), transparent 72%);
  filter: blur(70px);
}
.final-cta h2 { max-width: 640px; }
.final-cta p { max-width: 560px; margin-bottom: 40px; }
.final-cta .email-link {
  font-size: 17px;
  font-weight: 500;
}

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

.site-footer {
  background: transparent;
  border-top: 1px solid var(--soft-border);
  padding: 72px 0 40px;
  font-size: 15px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 48px;
  margin-bottom: 64px;
}
.site-footer__brand p { color: var(--slate); max-width: 320px; margin-top: 18px; }
.site-footer nav ul li { margin-bottom: 10px; }
.site-footer nav a { color: var(--ink-navy); }
.site-footer nav a:hover { color: var(--institutional-blue); text-decoration: none; }
.site-footer__meta li { margin-bottom: 10px; color: var(--slate); }
.site-footer__meta a { color: var(--ink-navy); }
.site-footer__legal {
  border-top: 1px solid var(--soft-border);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--slate);
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* --------------------------------------------------------------------------
   Case study page
   -------------------------------------------------------------------------- */

.case-hero { padding: 80px 0 0; }
.case-hero .mono-label { display: block; margin-bottom: 20px; }
.case-hero h1 { max-width: 880px; margin-bottom: 24px; }
.case-hero .lead { max-width: var(--text-max); }

.case-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--soft-border);
}
.case-meta .mono-label { display: block; margin-bottom: 8px; }
.case-meta div p { font-size: 16px; font-weight: 500; margin: 0; }

@media (max-width: 900px) {
  .case-hero { padding-top: 48px; }
  .case-meta { grid-template-columns: 1fr; gap: 20px; }
}

.case-section { padding-top: 88px; }
.case-section:last-of-type { padding-bottom: var(--section-gap); }
.case-section h2 { font-size: 30px; margin-bottom: 24px; }
.case-section .text-block p { color: #344054; }

.deliverable-list { max-width: var(--text-max); }
.deliverable-list li {
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--soft-border);
  position: relative;
  font-size: 17px;
}
.deliverable-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--institutional-blue);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
}
.tech-item {
  background: var(--pure-white);
  border: 1px solid var(--soft-border);
  border-radius: 8px;
  padding: 24px 28px;
}
.tech-item .mono-label { display: block; margin-bottom: 8px; color: var(--institutional-blue); }
.tech-item p { font-size: 16px; color: var(--slate); margin: 0; }

@media (max-width: 900px) {
  .case-section { padding-top: 56px; }
  .tech-grid { grid-template-columns: 1fr; }
}

/* Prev / next case navigation */
.case-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--soft-border);
  padding: 48px 0 var(--section-gap);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 96px;
  align-items: start;
}
.contact-form label {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink-navy);
  background: var(--pure-white);
  border: 1px solid var(--soft-border);
  border-radius: 7px;
  padding: 13px 16px;
  margin-bottom: 24px;
  transition: border-color var(--t-fast) var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--institutional-blue);
}
.contact-form textarea { min-height: 160px; resize: vertical; }

.contact-aside .mono-label { display: block; margin-bottom: 12px; }
.contact-aside__block { margin-bottom: 40px; }
.contact-aside__block p { font-size: 16.5px; margin-bottom: 4px; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* --------------------------------------------------------------------------
   Page hero (simple inner pages)
   -------------------------------------------------------------------------- */

.page-hero { padding: 80px 0 0; }
.page-hero .mono-label { display: block; margin-bottom: 20px; }
.page-hero h1 { max-width: 800px; margin-bottom: 24px; }
.page-hero .lead { max-width: var(--text-max); }

@media (max-width: 900px) {
  .page-hero { padding-top: 48px; }
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Diagram SVG shared styles
   -------------------------------------------------------------------------- */

.diag-box { fill: var(--pure-white); stroke: var(--soft-border); rx: 6; }
.diag-box--active { stroke: var(--institutional-blue); }
.diag-line { stroke: var(--soft-border); fill: none; }
.diag-line--draw {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw-line 1.4s var(--ease) forwards;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }

.diag-pulse { animation: pulse-box 4s ease-in-out infinite; }
@keyframes pulse-box {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .diag-line--draw { animation: none; stroke-dashoffset: 0; }
  .diag-pulse { animation: none; }
}
