/* Ordiq, v2: landscape photographs with frosted-glass panes over them.
   Tokens: forest, emerald, mist, moss from the logo sheet (logo/A2). */
:root {
  --forest: #0E2A22;
  --forest-2: #163a2f;
  --emerald: #14B87A;
  --emerald-deep: #0E7A52;
  --mist: #EEF2EE;
  --dew: #DDE3DD;
  --moss: #4E5F57;
  --white: #ffffff;

  --glass-light: rgb(238 242 238 / .62);
  --glass-light-strong: rgb(238 242 238 / .8);
  --glass-dark: rgb(14 42 34 / .38);
  --glass-line: rgb(255 255 255 / .55);
  --glass-line-dark: rgb(255 255 255 / .16);
  --blur: blur(18px) saturate(1.3);

  --font-display: "Funnel Display", system-ui, sans-serif;
  --font-text: "Funnel Sans", system-ui, sans-serif;
  --font-logo: "Plus Jakarta Sans", "Funnel Display", system-ui, sans-serif;

  --wrap: min(100% - 2 * var(--gut), 1240px);
  --gut: 40px;
  --r-pane: 28px;
  --r-card: 20px;
  --r-btn: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (max-width: 720px) { :root { --gut: 20px; --r-pane: 22px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; color-scheme: light; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; background: var(--mist); color: var(--forest); font: 400 17px/1.6 var(--font-text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(36px, 4.4vw, 60px); }
h3 { font: 500 19px/1.3 var(--font-text); letter-spacing: -0.01em; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--emerald-deep); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--white); }

.skip { position: fixed; left: 16px; top: 16px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--forest); color: var(--mist); text-decoration: none; transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

/* ---------- glass ---------- */
.glass { background: var(--glass-light); border: 1px solid var(--glass-line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 1px 0 rgb(255 255 255 / .5) inset, 0 24px 60px -30px rgb(14 42 34 / .45); }
.glass--dark { background: var(--glass-dark); border-color: var(--glass-line-dark); color: var(--white);
  box-shadow: 0 1px 0 rgb(255 255 255 / .12) inset, 0 24px 60px -30px rgb(0 0 0 / .6); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-light-strong); }
  .glass--dark { background: rgb(14 42 34 / .82); }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: var(--r-btn);
  font: 500 16px/1 var(--font-text); text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: var(--forest); color: var(--mist); box-shadow: 0 10px 24px -12px rgb(14 42 34 / .7); }
.btn--primary:hover { background: var(--forest-2); }
.btn--glass { background: rgb(255 255 255 / .5); border-color: var(--glass-line); color: var(--forest); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.btn--glass:hover { background: rgb(255 255 255 / .7); }
.btn--light { background: var(--mist); color: var(--forest); }
.btn--light:hover { background: var(--white); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .btn:active { transition: none; transform: none; } }

.link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); }
.link:hover { text-decoration-color: currentColor; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .32em; text-decoration: none; color: inherit; font-size: 24px; }
.logo svg { width: 1.05em; height: 1.05em; flex: none; }
.logo span { font: 800 1em/1 var(--font-logo); letter-spacing: -0.055em; }

/* ---------- nav: a floating glass pill ---------- */
.nav { position: fixed; z-index: 50; top: calc(16px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(100% - 2 * var(--gut), 900px);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px; border-radius: 999px; }
.nav__links { display: flex; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.nav__links a { display: block; padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--forest); transition: background-color .18s var(--ease); }
.nav__links a:hover { background: rgb(255 255 255 / .6); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--glass-line); background: rgb(255 255 255 / .5); color: var(--forest); cursor: pointer; place-items: center; }
.nav__sheet { display: none; }
@media (max-width: 860px) {
  .nav { padding: 6px 6px 6px 18px; top: calc(12px + env(safe-area-inset-top)); }
  .nav__links, .nav .btn { display: none; }
  .nav__toggle { display: grid; margin-left: auto; }
  .nav__sheet { position: fixed; z-index: 49; inset: calc(76px + env(safe-area-inset-top)) var(--gut) auto; overscroll-behavior: contain; padding: 12px; border-radius: 24px; }
  .nav__sheet:not([hidden]) { display: grid; gap: 4px; }
  .nav__sheet a:not(.btn) { display: block; padding: 14px 16px; border-radius: 14px; font-size: 18px; font-weight: 500; text-decoration: none; }
  .nav__sheet a:not(.btn):hover { background: rgb(255 255 255 / .6); }
  .nav__sheet .btn { margin-top: 8px; }
}

/* ---------- photo sections ---------- */
.photo-section { position: relative; isolation: isolate; overflow: hidden; }
.photo-section > .bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }

/* ---------- hero ---------- */
.hero { min-height: max(100svh, 720px); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 132px 0 48px; }
.hero > .bg { object-position: 50% 62%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; z-index: -1; background: linear-gradient(to top, rgb(14 42 34 / .5), transparent); pointer-events: none; }
.hero__inner { display: grid; justify-items: center; gap: 20px; }
.hero h1 { font-size: clamp(44px, 5.4vw, 80px); max-width: none; }
.hero__lead { max-width: 52ch; font-size: clamp(17px, 1.5vw, 19px); color: var(--forest); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* the ticket thread floating on the forest */
.thread { width: min(100%, 560px); margin-top: auto; padding: 20px; border-radius: var(--r-pane); text-align: left; display: grid; gap: 12px; font-size: 15px; line-height: 1.45; }
.hero__inner { margin-bottom: 48px; }
.thread__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgb(14 42 34 / .1); font-size: 14px; color: var(--moss); }
.thread__head b { color: var(--forest); font-weight: 500; }
.thread__head .pill { margin-left: auto; }
@media (max-width: 720px) { .thread__head > span:not(.pill) { display: none; } }
.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 88%; }
.msg p { padding: 10px 14px; border-radius: 16px; background: rgb(255 255 255 / .75); }
.msg--me { margin-left: auto; flex-direction: row-reverse; }
.msg--me p { background: var(--forest); color: var(--mist); }
.avatar { width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 500; }
.avatar--agent { background: var(--forest); }
.avatar--agent svg { width: 18px; height: 18px; }
.avatar--team { background: var(--dew); color: var(--forest); }
.handoff { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgb(20 184 122 / .14); color: var(--forest); font-weight: 500; }
.handoff svg { width: 18px; height: 18px; flex: none; color: var(--emerald-deep); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgb(20 184 122 / .16); color: #0b5a3c; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--person { background: rgb(35 77 120 / .12); color: #234d78; }
.pill--work { background: rgb(176 112 0 / .14); color: #7a4c00; }

/* the one orchestrated moment: the thread plays once on load */
@media (prefers-reduced-motion: no-preference) {
  .js .thread [data-step] { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .js .thread [data-step].is-in { opacity: 1; transform: none; }
}

/* ---------- section scaffold ---------- */
.section { padding: clamp(96px, 12vw, 160px) 0; }
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.head p { max-width: 54ch; color: var(--moss); }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; margin-bottom: 40px; } }

/* ---------- product: a glass app window on a photograph ---------- */
.stage { position: relative; border-radius: var(--r-pane); overflow: hidden; isolation: isolate; padding: clamp(20px, 5vw, 64px) clamp(16px, 5vw, 64px) 0; }
.stage > .bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.app { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: 20px 20px 0 0; border-bottom: 0; overflow: hidden; height: 560px; font-size: 14px; }
.app__bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 16px; border-bottom: 1px solid rgb(14 42 34 / .08); color: var(--moss); font-size: 13px; }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgb(14 42 34 / .18); }
.app__list { margin: 0; padding: 8px; list-style: none; border-right: 1px solid rgb(14 42 34 / .08); overflow: hidden; }
.app__list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 10px; border-radius: 12px; }
.app__list li.is-open { background: rgb(255 255 255 / .7); }
.app__list .avatar { grid-row: span 2; width: 32px; height: 32px; }
.app__list b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__list small { grid-column: 2; color: var(--moss); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__list .pill { grid-row: 1 / span 2; grid-column: 3; }
.app__open { display: grid; align-content: start; gap: 14px; padding: 20px 24px; overflow: hidden; }
.app__open .msg { max-width: 80%; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sources span { padding: 3px 10px; border-radius: 999px; border: 1px solid rgb(14 42 34 / .14); font-size: 13px; color: var(--moss); }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; height: 520px; }
  .app__list { display: none; }
}

/* ---------- escalation: three glass steps over the valley ---------- */
.escalate { color: var(--white); min-height: max(100svh, 760px); display: flex; align-items: stretch; }
.escalate > .bg { object-position: 50% 40%; }
.escalate::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 15% 20%, rgb(14 42 34 / .7), transparent 70%), linear-gradient(180deg, rgb(14 42 34 / .35), rgb(14 42 34 / .05) 45%, rgb(14 42 34 / .55)); }
.escalate .wrap { display: flex; flex-direction: column; justify-content: space-between; gap: 64px; }
.escalate h2 { max-width: 18ch; }
.escalate .lede { max-width: 46ch; margin-top: 20px; color: var(--white); text-shadow: 0 1px 12px rgb(14 42 34 / .5); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { padding: 28px; border-radius: var(--r-card); display: grid; align-content: start; gap: 10px; }
.step__n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .4); font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.step p { color: rgb(255 255 255 / .84); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- approach: the statement in the fog ---------- */
.approach { min-height: max(90svh, 680px); display: flex; align-items: center; }
.approach > .bg { object-position: 50% 50%; }
.statement { max-width: 820px; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-pane); }
.statement p { font: 400 clamp(28px, 3.4vw, 46px)/1.14 var(--font-display); letter-spacing: -0.025em; }
.statement p + p { margin-top: 24px; font: 400 17px/1.6 var(--font-text); letter-spacing: 0; color: var(--moss); max-width: 52ch; }

/* ---------- questions ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 64px; }
.faq-grid .side { display: grid; align-content: start; gap: 20px; }
.faq-grid .side p { color: var(--moss); max-width: 34ch; }
.faq { margin: 0; }
.faq div { padding: 24px 0; border-top: 1px solid rgb(14 42 34 / .12); }
.faq div:last-child { border-bottom: 1px solid rgb(14 42 34 / .12); }
.faq dt { font: 500 19px/1.3 var(--font-text); }
.faq dd { margin: 8px 0 0; color: var(--moss); max-width: 56ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- footer: the close over the valley, the name in a glass slab ---------- */
.footer { color: var(--white); padding: clamp(120px, 14vw, 200px) 0 24px; }
.footer > .bg { object-position: 50% 60%; }
.footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(238 242 238 / .35), transparent 35%, rgb(14 42 34 / .45)); }
.close { color: var(--forest); display: grid; justify-items: center; text-align: center; gap: 20px; margin-bottom: clamp(96px, 12vw, 160px); }
.close h2 { max-width: 16ch; }
.close p { max-width: 44ch; color: var(--forest); }
.close .btn { margin-top: 8px; }
.slab { border-radius: var(--r-pane); padding: 28px 32px 0; overflow: hidden; }
.slab__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-bottom: 20px; border-bottom: 1px solid rgb(255 255 255 / .2); font-size: 15px; }
.slab__row nav { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-left: auto; }
.slab__row a { text-decoration: none; color: rgb(255 255 255 / .9); padding: 10px 0; }
.slab__row a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.slab__word { font: 800 clamp(96px, 25vw, 360px)/.8 var(--font-logo); letter-spacing: -0.065em; margin: 16px 0 0 -0.04em; padding-bottom: .06em; color: rgb(255 255 255 / .92); white-space: nowrap; user-select: none; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 20px; font-size: 13px; color: rgb(255 255 255 / .8); }
.legal a { color: inherit; }
