/* Design 0700: preserve its palette, type, spacing, cards, and artwork. */
:root {
  --navy: #02233a;
  --navy-secondary: #0d355e;
  --blue: #0759bd;
  --blue-hover: #054a9c;
  --bright-blue: #118df0;
  --light-blue: #4da8f5;
  --blue-soft: #0759bd12;
  --blue-line: #0759bd33;
  --white: #feffff;
  --gray: #f1f2f2;
  --text: #475569;
  --heading-font: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body-font: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --label-font: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { font-family: var(--heading-font); color: var(--navy); }
h2 {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
button { font: inherit; }
svg { display: block; flex-shrink: 0; }
figure { margin: 0; min-width: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
/* Lists retain explicit list roles in HTML for Safari/VoiceOver. */
:focus-visible { outline: 3px solid var(--bright-blue); outline-offset: 4px; }
main:focus { outline: none; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section-inner { padding-block: clamp(5rem, 10vw, 8rem); display: flex; flex-direction: column; gap: 3rem; }
.section-heading { display: flex; flex-direction: column; gap: 1rem; max-width: 680px; }
.section-heading > p:not(.eyebrow) { font-size: 1.0625rem; }
.eyebrow { font-family: var(--label-font); font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 100; padding: .75rem 1rem; border-radius: .5rem; background: var(--white); color: var(--navy); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

/* Sticky header and progressively enhanced mobile navigation. */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(254,255,255,.88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(2,35,58,.08); }
.header-inner { position: relative; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--blue); font-family: var(--heading-font); font-weight: 700; font-size: 1.0625rem; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.main-navigation { display: flex; align-items: center; gap: .25rem; font-size: .9375rem; font-weight: 500; }
.main-navigation a { color: #334155; text-decoration: none; padding: .5rem .875rem; min-height: 44px; border-radius: 999px; transition: background .2s, color .2s; }
.main-navigation a:hover { background: var(--gray); color: var(--navy); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .75rem 1.5rem; border-radius: 12px; background: var(--blue); color: #fff; font-size: 1rem; font-weight: 600; text-decoration: none; transition: filter .2s, transform .2s; }
.button:hover { color: #fff; filter: brightness(.92); transform: translateY(-1px); }
.header-cta { min-height: 44px; padding: .5rem 1.125rem; border-radius: 10px; font-size: .9375rem; white-space: nowrap; }
.menu-toggle { display: none; min-height: 44px; padding: .5rem .75rem; background: var(--white); border: 1px solid #cbd5e1; border-radius: 10px; color: var(--navy); font-weight: 600; cursor: pointer; }
.menu-toggle[hidden] { display: none; }
.mobile-nav-cta, .menu-icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-close { display: block; }

/* Hero. */
.hero { position: relative; overflow: hidden; }
.hero-dots { position: absolute; inset: 0 0 0 auto; width: 58%; pointer-events: none; background-image: radial-gradient(circle, #b4c3d6 1.3px, transparent 1.6px); background-size: 22px 22px; background-position: right top; -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.85) 35%, transparent 100%); mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.85) 35%, transparent 100%); }
.hero-layout { position: relative; z-index: 1; padding-block: clamp(4rem, 9vw, 7rem) clamp(4.5rem, 9vw, 7rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: clamp(3rem, 6vw, 5rem); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 1.75rem; min-width: 0; }
h1 { font-size: clamp(2.625rem, 5.8vw, 4.625rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; }
h1 > span { color: var(--bright-blue); }
.hero-intro { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.65; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; padding-top: .25rem; }
.hero-cta { min-height: 54px; padding-inline: 1.625rem; box-shadow: 0 10px 24px -10px #0759bd73; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.hero-illustration { padding: clamp(1.25rem, 3vw, 2rem); border-radius: 24px; background: var(--white); border: 1px solid #dce3ec; box-shadow: 0 1px 2px rgba(2,35,58,.05), 0 40px 80px -44px rgba(2,35,58,.35); display: flex; flex-direction: column; }
.figure-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.hero-illustration > .figure-heading { padding-bottom: 1.25rem; }
.figure-title { font-family: var(--heading-font); font-weight: 700; font-size: .9375rem; color: var(--navy); }
.badge { font-family: var(--label-font); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text); background: var(--gray); border-radius: 999px; padding: .1875rem .625rem; flex-shrink: 0; }
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.inquiry-node, .node-row { display: flex; align-items: center; gap: .875rem; }
.inquiry-node, .crm-node, .booking-node { padding: 1rem 1.125rem; border-radius: 16px; }
.inquiry-node { border: 1px solid #e2e8f0; background: #fff; }
.inquiry-icon, .crm-icon, .booking-icon { width: 42px; height: 42px; border-radius: 12px; }
.inquiry-icon { background: #e7f3fe; color: var(--bright-blue); }
.node-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .4375rem; }
.node-label { font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.skeleton-line { display: block; height: 8px; width: 74%; border-radius: 999px; background: #e2e8f0; }
.node-pill { height: 22px; width: 54px; border-radius: 999px; background: var(--gray); flex-shrink: 0; }
.dash-connector { display: block; width: 0; height: 22px; border-left: 2px dashed #9cc9f5; margin-inline: auto; }
.crm-node, .booking-node { display: flex; flex-direction: column; gap: .875rem; }
.crm-node { background: var(--navy); }
.crm-node .node-label { color: #cbd5e1; }
.crm-node .skeleton-line { width: 58%; background: rgba(254,255,255,.2); }
.crm-icon { background: rgba(17,141,240,.18); color: var(--light-blue); }
.mini-pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.mini-pipeline > div { display: flex; flex-direction: column; gap: .375rem; padding: .5rem; border-radius: 8px; background: rgba(254,255,255,.06); }
.mini-pipeline span:first-child { height: 5px; width: 60%; border-radius: 999px; background: rgba(254,255,255,.3); }
.mini-pipeline span:last-child { height: 18px; border-radius: 5px; background: rgba(254,255,255,.1); }
.mini-pipeline > .active { background: rgba(17,141,240,.18); outline: 1px solid rgba(77,168,245,.6); }
.mini-pipeline > .active span:first-child { background: var(--light-blue); }
.booking-node { border: 1.5px solid var(--blue); background: var(--blue-soft); gap: .75rem; }
.booking-icon { background: var(--blue); color: #fff; }
.booking-node .node-label { color: #063f82; }
.booking-node .skeleton-line { width: 50%; background: #a9c3e6; }
.mini-calendar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .375rem; padding-left: 56px; }
.mini-calendar > span { height: 28px; border-radius: 7px; background: var(--white); border: 1px solid #dce3ec; }
.mini-calendar > .selected { background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; }
figcaption { font-size: .875rem; color: #64748b; line-height: 1.6; }
.hero-illustration figcaption { padding-top: 1.125rem; }

/* Cards and alternating sections. */
.card-grid { display: grid; gap: 1rem; }
.problem-grid, .steps-grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.card { display: flex; flex-direction: column; min-width: 0; }
.card p { line-height: 1.65; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.problems { background: var(--navy); color: #cbd5e1; }
.problems-inner { gap: 3.5rem; }
.problems .eyebrow, .book .eyebrow { color: var(--light-blue); }
.problems h2, .problems h3, .book h2 { color: var(--white); }
.problem-card { gap: 1.125rem; padding: 2rem; border-radius: 20px; background: rgba(254,255,255,.04); border: 1px solid rgba(254,255,255,.12); }
.problem-icon { width: 46px; height: 46px; border-radius: 13px; background: rgba(17,141,240,.16); color: var(--light-blue); }
.card-letter { font-family: var(--label-font); font-size: .8125rem; font-weight: 600; color: rgba(254,255,255,.6); }
.problem-card h3 { font-weight: 700; font-size: 1.3125rem; line-height: 1.3; }
.problem-closing { padding-top: 2.25rem; border-top: 1px solid rgba(254,255,255,.12); font-family: var(--heading-font); font-weight: 700; font-size: clamp(1.375rem, 2.6vw, 1.875rem); line-height: 1.3; letter-spacing: -.02em; color: var(--white); }
.problem-closing > span { color: var(--light-blue); }
.how { background: var(--gray); }
.step-card { gap: .875rem; padding: 1.875rem; background: var(--white); border: 1px solid #e2e5e8; border-radius: 20px; }
.step-icon { width: 48px; height: 48px; border-radius: 14px; background: #e7f3fe; color: var(--bright-blue); }
.step-number { font-family: var(--label-font); font-size: .875rem; font-weight: 600; color: var(--blue); text-transform: uppercase; }
.step-card h3 { margin-top: .375rem; font-weight: 700; font-size: 1.4375rem; line-height: 1.25; letter-spacing: -.02em; }

/* The reference's five-stage illustration; steps stack on narrow screens. */
.workflow-figure { background: var(--white); border: 1px solid #e2e5e8; border-radius: 24px; overflow: hidden; }
.workflow-figure > .figure-heading { flex-wrap: wrap; padding: 1.125rem clamp(1.25rem, 3vw, 1.75rem); border-bottom: 1px solid #e5e9f0; }
.workflow-figure .figure-title { font-size: 1.0625rem; }
.workflow-body { padding: clamp(1.25rem, 3vw, 2rem); }
.workflow-list { --workflow-gap: 2rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--workflow-gap); }
.workflow-step { position: relative; display: flex; flex-direction: column; gap: .75rem; padding: 1.125rem; border-radius: 16px; border: 1.5px solid var(--navy-secondary); background: var(--white); min-width: 0; }
.workflow-step:not(:last-child)::after { content: ''; position: absolute; width: 1.25rem; height: 1.25rem; left: calc(100% + var(--workflow-gap) / 2); top: 50%; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23118df0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16m-6-6 6 6-6 6'/%3E%3C/svg%3E"); transform: translate(-50%, -50%); pointer-events: none; }
.workflow-step-tinted { border: 1px solid var(--blue-line); background: var(--blue-soft); }
.workflow-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--gray); color: var(--navy-secondary); }
.workflow-step-tinted .workflow-icon { background: var(--blue); color: #fff; }
.workflow-number { font-family: var(--label-font); font-size: .75rem; font-weight: 600; color: #64748b; }
.workflow-name { font-weight: 700; color: var(--navy); font-size: 1rem; overflow-wrap: anywhere; }
.workflow-figure figcaption { padding: .875rem clamp(1.25rem, 3vw, 1.75rem); border-top: 1px solid #e5e9f0; color: var(--text); }

/* Services and the professional credibility panel. */
.services-grid { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.service-card { gap: .75rem; padding: 1.75rem; background: var(--white); border: 1px solid #e5e9f0; border-radius: 20px; transition: box-shadow .25s, transform .25s, border-color .25s; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(2,35,58,.25); border-color: #c9d4e1; }
.service-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--light-blue); margin-bottom: .375rem; }
.service-card h3 { font-weight: 700; font-size: 1.1875rem; line-height: 1.35; }
.about-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 24px; background: #e7f3fe; }
.about-copy { display: flex; flex-direction: column; gap: 1.125rem; min-width: 0; }
.about-copy > p:not(.eyebrow) { font-size: 1.0625rem; line-height: 1.65; }
.about-label { display: flex; align-items: center; gap: .5rem; color: var(--navy); }
.about-copy h3 { font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -.02em; }
.about-portrait { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; width: 100%; max-width: 420px; }
.portrait-frame { width: 100%; max-width: 320px; padding: .75rem; border: 1px solid #dce3ec; border-radius: 20px; background: #e7f3fe; box-shadow: 0 1px 2px rgba(2,35,58,.05); }
.about-portrait img { display: block; width: 100%; height: auto; border-radius: 12px; }
.portrait-identity { display: flex; flex-direction: column; align-items: center; gap: .25rem; max-width: 100%; font-family: var(--body-font); text-align: center; }
.portrait-name { color: var(--navy); font-family: var(--heading-font); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.portrait-title { color: var(--text); font-size: .875rem; font-weight: 400; line-height: 1.5; }

/* Final booking section and footer. The provider owns the iframe contents. */
.navy-grid { background-color: var(--navy-secondary); background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(160deg, #0d355e 0%, #0a2e52 100%); background-size: 48px 48px, 48px 48px, 100% 100%; }
.booking-inner { align-items: center; text-align: center; gap: 1.375rem; }
.booking-copy { display: flex; flex-direction: column; align-items: center; gap: 1.375rem; }
.book h2 { max-width: 800px; font-size: clamp(2.125rem, 4.8vw, 3.75rem); line-height: 1.03; }
.booking-copy > p:not(.eyebrow) { max-width: 580px; font-size: 1.125rem; line-height: 1.65; color: #cbd5e1; }
.booking-widget { width: 100%; }
.booking-widget iframe { display: block; width: 100%; }
.booking-fallback { color: #cbd5e1; font-size: .875rem; }
.booking-fallback a { color: #fff; text-underline-offset: .2em; }
.book :focus-visible { outline-color: var(--white); }
.landing-booking-cta { margin-top: 1.5rem; background: var(--white); color: var(--navy); }
.landing-booking-cta:hover { color: var(--navy); }
/* Dedicated booking page: reuse branding without a sticky layer above the widget. */
.booking-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.booking-page .site-header { position: static; }
.booking-page .header-inner { justify-content: flex-start; flex-wrap: nowrap; }
.booking-page .header-inner .brand { flex: none; }
.booking-page main { flex: 1; min-width: 0; }
.booking-page-inner { padding-block: clamp(2rem, 5vw, 4rem); }
.booking-page h1 { color: var(--white); font-size: clamp(2.125rem, 4.8vw, 3.75rem); line-height: 1.03; }
.site-footer { background: var(--navy); color: #a9b6c8; }
.footer-inner { padding-block: 3.5rem 2rem; display: flex; flex-direction: column; gap: 2.5rem; }
.footer-brand { display: flex; flex-direction: column; gap: .75rem; }
.site-footer .brand { color: var(--white); }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .875rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-top: .5rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: #cbd5e1; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }

/* Legal documents reuse the simplified branding and retain readable mobile reflow. */
.legal-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.legal-page .site-header { position: static; }
.legal-page .header-inner { justify-content: flex-start; flex-wrap: nowrap; }
.legal-page .header-inner .brand { flex: none; }
.legal-main { flex: 1; min-width: 0; }
.legal-document { width: 100%; max-width: 48rem; margin-inline: auto; padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem); line-height: 1.75; overflow-wrap: anywhere; }
.legal-heading { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.legal-heading h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; letter-spacing: -.035em; }
.legal-effective { color: var(--text); }
.legal-document > p + p { margin-top: 1rem; }
.legal-section { display: grid; gap: 1rem; margin-top: 2rem; min-width: 0; }
.legal-section h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.legal-document ul { list-style: disc; padding-left: 1.5rem; }
.legal-document li + li { margin-top: .375rem; }
.legal-document strong { font-weight: 600; }
.legal-document a { text-underline-offset: .2em; }

/* Content stays visible if JavaScript, animation, or the observer is unavailable. */
[data-reveal] { transition: opacity .6s ease-out, transform .6s cubic-bezier(.25,.8,.35,1); }
[data-reveal].reveal-pending { opacity: 0; transform: translate3d(0,12px,0); }

@media (min-width: 1046px) {
  .booking-widget { margin-top: -45px; }
}

@media (max-width: 1000px) {
  .workflow-list { --workflow-gap: 1.5rem; }
  .workflow-step { padding: .875rem; }
}

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; gap: .75rem; padding-block: .75rem; }
  .header-cta { margin-left: auto; }
  .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; }
  .main-navigation { order: 4; flex-basis: 100%; justify-content: center; flex-wrap: wrap; }
  .main-navigation[hidden] { display: none; }
  .portfolio-header .header-cta { display: none; }
  .portfolio-header .menu-toggle:not([hidden]) { justify-content: center; width: 44px; height: 44px; margin-left: auto; padding: .5rem; }
  .portfolio-header .main-navigation { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .portfolio-header .main-navigation .mobile-nav-cta { display: flex; justify-content: center; margin-top: .5rem; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 600; }
  .hero-dots { width: 100%; opacity: .5; }
  .workflow-list { grid-template-columns: 1fr; }
  .workflow-step { padding: 1.125rem; }
  .workflow-step:not(:last-child)::after { left: 50%; top: calc(100% + var(--workflow-gap) / 2); transform: translate(-50%, -50%) rotate(90deg); }
  .workflow-name { overflow-wrap: normal; }
}

@media (max-width: 600px) {
  .hero-layout { gap: 3rem; }
  .figure-heading { flex-wrap: wrap; }
  .problem-card, .step-card { padding: 1.5rem; }
  .about-panel { padding: 1.25rem; }
}

@media (max-width: 420px) {
  .header-inner { column-gap: .5rem; }
  .brand { gap: .5rem; font-size: 1rem; }
  .header-cta { padding-inline: .75rem; }
  .menu-toggle { padding-inline: .625rem; }
  h1 { font-size: clamp(2.25rem, 10vw, 2.625rem); }
  .inquiry-node, .crm-node, .booking-node { padding: .875rem; }
  .node-pill { width: 26px; }
}

@media (max-width: 360px) {
  .header-inner .brand { flex: 1 0 calc(100% - 76px); }
  .header-cta { order: 3; margin-left: 0; width: 100%; }
  html { scroll-padding-top: 10rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  [data-reveal].reveal-pending { opacity: 1; transform: none; }
  .service-card:hover, .button:hover { transform: none; }
}
