@font-face {
  font-family: "SuisseIntl";
  src: url("./assets/fonts/suisseIntl/SuisseIntl-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SuisseIntl";
  src: url("./assets/fonts/suisseIntl/SuisseIntl-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SuisseWorks";
  src: url("/assets/fonts/suisseWorks/SuisseWorks-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SuisseWorks";
  src: url("/assets/fonts/suisseWorks/SuisseWorks-RegularItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "SuisseWorks";
  src: url("/assets/fonts/suisseWorks/SuisseWorks-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SuisseWorks";
  src: url("/assets/fonts/suisseWorks/SuisseWorks-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Default to dark theme; JS can flip data-theme for light mode */
  color-scheme: dark;
  --bg: #000000;
  --surface: #303030;
  --text: #ffffff;
  --muted: #e5e5e5;
  --border: rgba(255, 255, 255, 0.2);
  --separator: #3a3a3a;
  --border-strong: rgba(148, 163, 184, 0.38);
  --shadow-soft: 0 20px 50px rgba(2, 6, 23, 0.65);
  --radius-lg: 18px;
  /* Fonts */
  --font-sans: "SuisseIntl", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: "SuisseWorks", Georgia, "Times New Roman", serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --type-display-hero-size: clamp(2.2rem, calc(-4.325rem + 13.594vw), 4.375rem);
  --type-heading-xl-size: clamp(2.1rem, 3vw, 3.05rem);
  --type-heading-l-size: clamp(1.8rem, 2.4vw, 2.625rem);
  --type-heading-m-size: clamp(1.45rem, 2vw, 1.75rem);
  --type-body-size: 1rem;
  --type-body-lg-size: clamp(1rem, 1.1vw, 1.375rem);
  /* type-body-m-size — mid body (reusable) */
  --type-body-m-size: 1.125rem;
  --type-meta-size: 0.86rem;
  --type-meta-strong-size: 0.85rem;
  --type-label-size: 0.75rem;
  --type-list-size: 0.9rem;

  /*
    Responsive layout system

    Breakpoints:
    - Phones: <= 767px (default)
    - Tablets: 768px–1023px
    - Small laptops: 1024px–1279px
    - Desktop: 1280px–1535px
    - Large desktop: >= 1536px (same as desktop; only outer margins grow)
  */
  --container-max: 720px;
  --container-padding: 16px;
  --grid-columns: 1;
  --grid-gap: 16px;
  /* Case study sticky header overlap: matches .site-header .container (14+14 + logo row) */
  --header-height: 65px;

  /* Modal theme tokens (default: dark mode) */
  --modal-frame-bg: #435044;
  --modal-panel-bg: var(--surface);
  --modal-title-color: var(--text);
  --modal-close-bg: #5f6c60;
  --modal-close-bg-hover: #303030;
  --modal-close-icon: #ffffff;
  --modal-user-text: var(--text);
  --modal-ai-text: var(--text);
  --modal-composer-bg: #3a3a3a;
  --modal-composer-border: rgba(255, 255, 255, 0.14);
  --modal-composer-placeholder: rgba(255, 255, 255, 0.6);
  --modal-send-bg: #6c6c6c;
  --modal-send-icon: #ffffff;
  --header-icon-hover-bg: #747474;
  --footer-bg: var(--modal-frame-bg);
  --color-text-primary: var(--text);
  --color-text-secondary: #cacaca;
  --color-text-meta: #b5b5b5;
  --color-text-meta-strong: #d0d0d0;
  --color-text-label: #cacaca;
  --color-text-subtle-icon: #cacaca;
  --color-text-interactive-muted: #cacaca;
}

/* Light mode */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #303030;
  --muted: #303030;
  --border: rgba(0, 0, 0, 0.12);
  --separator: #d8d8d8;
  --border-strong: rgba(0, 0, 0, 0.22);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);

  /* Modal theme tokens (light mode) */
  --modal-frame-bg: #fff9e3;
  --modal-panel-bg: #ffffff;
  --modal-title-color: #303030;
  --modal-close-bg: #cacaca;
  --modal-close-bg-hover: #303030;
  --modal-close-icon: #ffffff;
  --modal-user-text: #303030;
  --modal-ai-text: #303030;
  --modal-composer-bg: #ffffff;
  --modal-composer-border: #f4f4f4;
  --modal-composer-placeholder: rgba(48, 48, 48, 0.55);
  --modal-send-bg: #cacaca;
  --modal-send-icon: #ffffff;
  --header-icon-hover-bg: #eeeeee;
  --footer-bg: #d3dbca;
  --color-text-primary: #303030;
  --color-text-secondary: #757575;
  --color-text-meta: #989898;
  --color-text-meta-strong: #757575;
  --color-text-label: #989898;
  --color-text-subtle-icon: #999999;
  --color-text-interactive-muted: #747474;
}

/* Tablets: 768px–1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --container-max: 960px;
    --container-padding: 24px;
    --grid-columns: 8;
    --grid-gap: 20px;
  }
}

/* Small laptops: 1024px–1279px */
@media (min-width: 1024px) and (max-width: 1279px) {
  :root {
    --container-max: 1200px;
    --container-padding: 48px;
    --grid-columns: 12;
    --grid-gap: 32px;
  }
}

/* Desktop: 1280px–1535px */
@media (min-width: 1280px) and (max-width: 1535px) {
  :root {
    --container-max: 1440px;
    --container-padding: 48px;
    --grid-columns: 12;
    --grid-gap: 32px;
  }
}

/* Large desktop: >= 1536px — frozen layout; only side margins grow past this width */
@media (min-width: 1536px) {
  :root {
    --container-max: 1440px;
    --container-padding: 48px;
    --grid-columns: 12;
    --grid-gap: 32px;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography tokens */
/* Typography utility classes */
.text-display-hero,
.hero-title {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-medium);
  font-size: var(--type-display-hero-size);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.text-heading-xl,
.experience-item h2 {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-medium);
  font-size: var(--type-heading-xl-size);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.text-heading-l,
.education-card h3 {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-medium);
  font-size: var(--type-heading-l-size);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.text-heading-m,
.split-link {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-regular);
  font-size: var(--type-heading-m-size);
  line-height: 1.2;
}

.text-heading-s,
.project-meta h3 {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-medium);
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.text-body-lg,
.chat-modal__messages .chat-message--ai {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-regular);
  font-style: normal;
  font-size: var(--type-body-lg-size);
  line-height: 1.5;
}

.text-body {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-regular);
  font-size: var(--type-body-size);
  line-height: 1.6;
}

.text-body-m {
  font-family: var(--font-sans);
  font-size: var(--type-body-m-size);
  font-weight: 400;
  font-style: normal;
  line-height: 28px;
  color: var(--muted);
}

.text-meta,
.project-meta p,
.education-school,
.education-meta {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-regular);
  font-size: var(--type-meta-size);
  letter-spacing: 0;
  color: var(--color-text-meta);
}

.text-meta-strong,
.experience-meta {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-regular);
  font-size: var(--type-meta-strong-size);
  letter-spacing: 0;
  color: var(--color-text-meta-strong);
}

.text-label,
.split-kicker {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-medium);
  font-size: var(--type-label-size);
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--color-text-label);
}

.text-list,
.awards-list {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-regular);
  font-size: var(--type-list-size);
  line-height: 1.9;
  color: var(--color-text-primary);
}

a:focus-visible,
button:focus-visible,
textarea:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text) 45%, transparent);
  outline-offset: 2px;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  /*
    Container utility
    - centers content
    - caps width
    - uses responsive left/right padding
  */
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.grid {
  /*
    Grid utility
    - responds via --grid-columns and --grid-gap
  */
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  gap: var(--grid-gap);
}

/* Accessibility helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  width: 100%;
  background: transparent;
}

/*
  Case study pages: sticky transparent header that stacks above the hero.
  Main is pulled up with negative margin so the hero background sits under the header;
  hero padding-top reserves space for the bar + original rhythm.
*/
body.page-case-study .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
}

.site-header-brand {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-header-back.icon-link svg {
  width: 20px;
  height: 20px;
}

body.page-case-study .case-study-main {
  padding-top: 0;
  margin-top: calc(-1 * var(--header-height));
}

/* Case-study header color tokens (supports dark-hero variant in light mode) */
body.page-case-study {
  --case-header-color: var(--text);
  --case-header-icon-color: var(--muted);
  --case-header-icon-hover-color: var(--text);
  --case-header-icon-hover-bg: var(--header-icon-hover-bg);
}

body.page-case-study.header-on-dark-hero {
  --case-header-color: #ffffff;
  --case-header-icon-color: rgba(255, 255, 255, 0.92);
  --case-header-icon-hover-color: #ffffff;
  --case-header-icon-hover-bg: rgba(255, 255, 255, 0.14);
}

body.page-case-study.header-on-light-content {
  --case-header-color: var(--text);
  --case-header-icon-color: var(--muted);
  --case-header-icon-hover-color: var(--text);
  --case-header-icon-hover-bg: var(--header-icon-hover-bg);
}

/* Full-bleed hero: yellow band + image only (intro copy lives in .case-study-intro) */
.case-study-hero {
  width: 100%;
  background: #fff6d6;
  padding-top: calc(clamp(24px, 4vw, 56px) / 2);
  padding-bottom: 0;
  box-sizing: border-box;
}

body.page-case-study .case-study-hero {
  padding-top: calc((var(--header-height) + clamp(24px, 4vw, 56px)) / 2);
  padding-bottom: 0;
}

:root:not([data-theme="light"]) .case-study-hero {
  background: var(--modal-frame-bg);
}

/* Case study hero: brand green band instead of yellow (e.g. Agro Twin) */
.case-study-hero--brand-green {
  background: rgba(142, 211, 167, 1);
}

:root:not([data-theme="light"]) .case-study-hero--brand-green {
  background: rgba(142, 211, 167, 1);
}

.case-study-hero--black {
  background: #000;
}

:root:not([data-theme="light"]) .case-study-hero--black {
  background: #000;
}

.case-study-hero__inner {
  display: flex;
  justify-content: center;
}

.case-study-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin: 0;
  padding: clamp(8px, 2vw, 16px) 0 0;
  border-top: 1px solid var(--separator);
}

.case-study-meta-grid__item {
  margin: 0;
}

.case-study-meta-grid__item dt {
  margin: 0 0 4px;
}

.case-study-meta-grid__item dd {
  margin: 0;
}

.case-study-tags {
  align-items: start;
  padding-top: clamp(8px, 2vw, 12px);
}

.case-study-tags__title {
  margin: 0 0 8px;
}

.case-study-tags__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-study-tags__list li {
  margin: 0 0 6px;
}

.case-study-tags__col {
  grid-column: 1 / -1;
}

.case-study-hero__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.case-study-section {
  padding: clamp(40px, 6vw, 100px) 0;
}

.case-study-section--tight {
  padding-top: 0;
}

/* Reusable case-study media wrappers for grouped hierarchy */
.section--highlight,
.section--media-group {
  background: #f5f5f5;
}

.section--highlight {
  padding-top: clamp(80px, 10vw, 120px);
  padding-bottom: clamp(80px, 10vw, 120px);
}

.section--media-group {
  margin-top: clamp(40px, 5vw, 60px);
  padding: clamp(60px, 8vw, 100px);
}

.case-study-media-group__grid {
  gap: clamp(24px, 4vw, 48px);
}

.case-study-media-tile {
  padding: clamp(24px, 3vw, 40px);
  box-sizing: border-box;
  background: #f5f5f5;
}

.case-study-media-tile--vcenter {
  display: flex;
  align-items: center;
}

.section--media-group--compact {
  max-width: min(920px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: clamp(28px, 4vw, 44px);
}

.section--dark-feature {
  background: #f5f5f5;
  padding-top: clamp(80px, 10vw, 120px);
  padding-bottom: clamp(80px, 10vw, 120px);
}

.case-study-media-featured {
  width: 100%;
  max-width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

/*
  Case study layout shell (reusable):
  — `.container` > `.case-study-section-grid` (12-col) >
      text block: 8 cols centered (cols 3–10; 2 empty left + 2 empty right)
      media block: full 12 cols
*/
.case-study-section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: clamp(24px, 4vw, 48px);
}

.case-study-section .container > .case-study-section-grid + .case-study-section-grid {
  margin-top: clamp(40px, 6vw, 72px);
}

.case-study-text-block {
  grid-column: 1 / -1;
}

.case-study-media-block {
  grid-column: 1 / -1;
  min-width: 0;
}

.case-study-media-block--centered-10 {
  grid-column: 1 / -1;
}

.case-study-media-block > .grid {
  width: 100%;
}

@media (min-width: 768px) {
  .case-study-text-block {
    grid-column: 3 / span 8;
  }

  .case-study-media-block {
    grid-column: 1 / span 12;
  }

  .case-study-media-block--centered-10 {
    grid-column: 2 / span 10;
  }

  .section--media-group--compact {
    max-width: min(760px, 100%);
  }
}

/* Intro: white band below hero (sharp transition from yellow) */
.case-study-intro {
  width: 100%;
  background: #ffffff;
  padding: clamp(48px, 7vw, 100px) 0 clamp(40px, 6vw, 80px);
  box-sizing: border-box;
}

:root:not([data-theme="light"]) .case-study-intro {
  background: var(--bg);
}

.case-study-intro__block + .case-study-intro__block {
  margin-top: clamp(14px, 2vw, 20px);
}

.case-study-intro__cta {
  margin-top: clamp(18px, 3vw, 28px);
}

.case-study-intro__cta a {
  color: inherit;
  text-decoration: underline;
}

.case-study-intro__cta a:hover {
  opacity: 0.82;
}

.case-study-kicker {
  margin-bottom: 12px;
}

.case-study-title {
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

.case-study-intro .case-study-title {
  margin-bottom: clamp(16px, 3vw, 24px);
}

.case-study-meta {
  margin-bottom: 28px;
}

.case-study-heading {
  margin-bottom: 16px;
  color: var(--color-text-primary);
}

.case-study-block {
  margin-top: 0;
  margin-bottom: 0;
}

.case-study-block + .case-study-block,
.case-study-heading + .case-study-block {
  margin-top: 16px;
}

.case-study-lede {
  margin-top: 8px;
}

.case-study-lede__col {
  grid-column: 1 / -1;
}

.case-study-figure {
  margin: 0;
}

.case-study-figure--mt {
  margin-top: clamp(24px, 4vw, 48px);
}

.case-study-img {
  display: block;
  width: 100%;
  height: auto;
}

.case-study-step__title {
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

.case-study-objectives-label {
  margin: 20px 0 10px;
}

.case-study-objectives {
  margin: 0;
  padding-left: 1.25em;
  max-width: none;
}

.case-study-objectives li {
  margin-bottom: 10px;
}

.case-study-objectives li strong {
  font-weight: var(--font-weight-medium);
}

.case-study-bullet-list {
  margin: 0;
  padding-left: 1.25em;
  max-width: none;
}

.case-study-bullet-list li {
  margin-bottom: 12px;
}

.case-study-bullet-list li strong {
  font-weight: var(--font-weight-medium);
}

.case-study-media--gap {
  margin-top: clamp(24px, 4vw, 40px);
}

.case-study-media-block .case-study-media--gap {
  margin-top: 0;
}

.case-study-media--after-list {
  margin-top: clamp(28px, 5vw, 48px);
}

.case-study-media-block .case-study-media--after-list {
  margin-top: 0;
}

.case-study-media--2 {
  grid-template-columns: 1fr;
}

.case-study-media--3 {
  grid-template-columns: 1fr;
}

.case-study-media--quad {
  grid-template-columns: 1fr;
}

/* 0.2 Design Thinking: top row two equal (6+6), bottom row full width */
.case-study-media--workshops {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1fr;
}

/* 0.3 / Interactive / Gamification: top full width, bottom row split (6+6) */
.case-study-media--full-split {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1fr;
}

/* Stacked media groups (e.g. Agro Twin “Web application” with multiple blocks in one section) */
.case-study-media-stack {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
  width: 100%;
}

/* Product shots on brand green */
.case-study-media--green-block {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: clamp(24px, 4vw, 48px);
  box-sizing: border-box;
  background: rgba(30, 159, 78, 0.8);
}

.case-study-media--green-block .case-study-img {
  width: 100%;
  max-width: min(980px, 100%);
  height: auto;
}

/* Light cards for paired UI screenshots and split rows on neutral background */
.case-study-media-card {
  margin: 0;
  padding: clamp(12px, 2vw, 20px);
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--separator);
}

:root[data-theme="light"] .case-study-media-card {
  background: #ffffff;
}

/* Web application two-up: muted panel instead of bordered cards */
.case-study-media--webapp-pair {
  padding: clamp(16px, 3vw, 28px);
  border-radius: 4px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
}

:root[data-theme="light"] .case-study-media--webapp-pair {
  background: #f7f7f7;
}

.case-study-media--webapp-pair .case-study-media-card {
  border: none;
  background: transparent;
}

:root[data-theme="light"] .case-study-media--webapp-pair .case-study-media-card {
  background: transparent;
}

/* Muted panel: very light grey only — no border (use instead of case-study-media-card when borders are unwanted) */
.case-study-media--muted-panel {
  margin: 0;
  padding: clamp(12px, 2vw, 20px);
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 4px;
}

:root[data-theme="light"] .case-study-media--muted-panel {
  background: #f7f7f7;
}

/* Full-split left column: same very light grey as webapp pair (bordered card override) */
.case-study-figure.case-study-media--full-split__left.case-study-media-card {
  border: none;
  background: rgba(255, 255, 255, 0.06);
}

:root[data-theme="light"] .case-study-figure.case-study-media--full-split__left.case-study-media-card {
  background: #f7f7f7;
}

/* 0.4 Engaging environment: 2×2 equal square colored cards (designed tiles, not edge-to-edge gallery) */
.case-study-media--grid-2x2 {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1fr;
}

.case-study-env-card {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: 4px;
  margin: 0;
  box-sizing: border-box;
  min-width: 0;
}

.case-study-env-card .case-study-img {
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.case-study-env-card--lavender {
  background: #e9d9f2;
}

.case-study-env-card--coral {
  background: #f7d6d0;
}

.case-study-env-card--pale-yellow {
  background: #f6e7c8;
}

.case-study-env-card--light-blue {
  background: #dce6f5;
}

/*
  Case study mosaic (12-col: left 6 + right 6 with nested 3+3 / 6)
  — Mobile: stack 1–4 (display:contents on right wrapper)
*/
.case-study-mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.case-study-mosaic__right {
  display: contents;
}

.case-study-mosaic .case-study-figure {
  margin: 0;
  min-height: 0;
}

.case-study-banner {
  width: 100%;
  background: color-mix(in srgb, var(--footer-bg) 55%, #fce4ec 45%);
  padding: clamp(32px, 5vw, 64px) 0;
  box-sizing: border-box;
}

.case-study-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.case-study-figure--flush {
  width: 100%;
  margin: 0;
}

.case-study-banner__img {
  max-width: min(980px, 100%);
  margin: 0 auto;
}

.case-study-section--conclusion {
  padding-top: clamp(48px, 8vw, 100px);
}

.case-study-split {
  align-items: start;
}

.case-study-split__cell {
  grid-column: 1 / -1;
}

.case-study-trio {
  margin-top: clamp(24px, 4vw, 40px);
}

.case-study-trio__cell {
  grid-column: 1 / -1;
}

.case-study-lede .text-body-m {
  max-width: none;
}

@media (min-width: 768px) {
  .case-study-mosaic {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto;
    align-items: stretch;
  }

  .case-study-mosaic__right {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: var(--grid-gap);
    grid-column: 7 / span 6;
    grid-row: 1 / span 2;
    align-self: stretch;
  }

  .case-study-mosaic__1 {
    grid-column: 1 / span 6;
    grid-row: 1 / span 2;
  }

  .case-study-mosaic__img2 {
    grid-column: 1 / span 3;
    grid-row: 1;
  }

  .case-study-mosaic__img3 {
    grid-column: 4 / span 3;
    grid-row: 1;
  }

  .case-study-mosaic__img4 {
    grid-column: 1 / span 6;
    grid-row: 2;
  }

  .case-study-lede {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-study-lede__col {
    grid-column: auto;
  }

  .case-study-tags__col {
    grid-column: auto;
  }

  .case-study-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-study-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-study-split__cell {
    grid-column: auto;
  }

  .case-study-trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .case-study-trio__cell {
    grid-column: auto;
  }

  .case-study-media--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-study-media--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .case-study-media--quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-study-media--workshops {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .case-study-media--workshops__5 {
    grid-column: 1 / span 6;
    grid-row: 1;
  }

  .case-study-media--workshops__6 {
    grid-column: 7 / span 6;
    grid-row: 1;
  }

  .case-study-media--workshops__7 {
    grid-column: 1 / span 12;
    grid-row: 2;
  }

  .case-study-media--full-split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .case-study-media--full-split__full {
    grid-column: 1 / -1;
  }

  .case-study-media--full-split__left {
    grid-column: 1 / span 6;
  }

  .case-study-media--full-split__right {
    grid-column: 7 / span 6;
  }

  .case-study-media--grid-2x2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .case-study-media--quad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Desktop+: cap hero image width; container width frozen from global tokens at >= 1280px */
@media (min-width: 1280px) {
  .case-study-hero__img {
    max-width: 980px;
  }
}

:root:not([data-theme="light"]) .site-header {
  background: transparent;
}

:root:not([data-theme="light"]) {
  --modal-panel-bg: #000000;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
  width: 100%;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-logo svg path {
  fill: var(--text);
}

body.page-case-study .site-logo svg path {
  fill: var(--case-header-color);
}

.site-header-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  padding: 0;
  color: var(--muted);
}

body.page-case-study .site-header .icon-link {
  color: var(--case-header-icon-color);
}

.theme-toggle {
  -webkit-appearance: none;
  appearance: none;
}

.icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.theme-toggle svg {
  fill: none;
  stroke: currentColor;
}

.icon-link:hover {
  color: var(--text);
  text-decoration: none;
  border: none;
  background: var(--header-icon-hover-bg);
}

body.page-case-study .site-header .icon-link:hover {
  color: var(--case-header-icon-hover-color);
  background: var(--case-header-icon-hover-bg);
}

.icon-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text) 45%, transparent);
  outline-offset: 2px;
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.icon-lg {
  width: 36px;
  height: 36px;
}

.site-main {
  padding: 28px 0 0;
}

.hero {
  padding: clamp(34px, 5vw, 72px) 0;
  border-bottom: none;
}

.hero-title {
  margin: 0;
  max-width: 24ch;
}

.hero-chat {
  margin-top: 55px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid var(--modal-composer-border);
  background: var(--modal-composer-bg);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.11);
  gap: 16px;
}

.hero-chat-input {
  flex: 1;
  width: 100%;
  height: 1.5em;
  min-height: 1.5em;
  max-height: 1.5em;
  resize: none;
  border: none;
  background: transparent;
  color: var(--modal-ai-text);
  padding: 0;
  font-family: "SuisseIntl", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: none;
  align-self: center;
  overflow: hidden;
}

.hero-chat-input::placeholder {
  color: var(--modal-composer-placeholder);
}

.hero-chat-input:focus,
.hero-chat-input:focus-visible,
.chat-modal__input:focus,
.chat-modal__input:focus-visible {
  outline: none;
  box-shadow: none;
}

.hero-send {
  position: static;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--modal-send-bg);
  color: var(--modal-send-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.hero-send svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero-send:hover {
  background: color-mix(in srgb, var(--modal-send-bg) 90%, #000 10%);
}

.hero-suggestions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-suggestions .pill {
  border-radius: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text-interactive-muted);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.4;
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  width: -moz-fit-content;
  width: fit-content;
  align-self: flex-start;
}

.hero-suggestions .pill::before {
  content: "↳";
  opacity: 0.7;
}

.hero-suggestions .pill:hover {
  color: var(--color-text-interactive-muted);
}

@media (max-width: 767px) {
  .hero-chat {
    padding: 16px 16px;
    border-radius: 12px;
  }

  .chat-modal__frame {
    padding: 10px;
  }

  .chat-modal__panel {
    border-radius: 0;
    padding: 12px;
  }

  .chat-modal__messages .chat-message--ai {
    padding: 2px 20px;
  }

  .chat-modal__composer {
    padding: 16px 16px;
    border-radius: 12px;
  }
}

.hero-chat-log {
  margin-top: 18px;
  display: none;
}

.landing-section {
  width: 100%;
}

.projects-section {
  padding: 80px 0 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

a.project-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.project-card:hover {
  text-decoration: none;
}

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

.project-card--large {
  grid-column: 1 / span 8;
  grid-row: 1;
}

.project-card--sphere {
  grid-column: 10 / span 3;
  grid-row: 1;
  align-self: end;
  margin-bottom: 44px;
}

.project-card--green {
  grid-column: 5 / span 4;
  grid-row: 2;
}

.project-card-media--sphere {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
}

.project-card-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-card--green img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.project-meta {
  margin-top: 10px;
}

.project-card--large .project-meta {
  padding-left: 40px;
}

.project-meta h3 {
  margin: 0;
  color: var(--color-text-primary);
}

.project-meta p {
  margin-top: 2px;
  max-width: none;
}

.experience-section {
  padding: 120px 0;
}

.experience-list {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-left: 0;
  padding-right: 0;
}

.experience-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding-bottom: 40px;
}

.experience-logo {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  transform: translateX(-8px);
}

.icon-logo-storm {
  width: 25px;
  height: 30px;
}

.icon-logo-ef {
  width: 49px;
  height: 26px;
}

.education-card {
  position: relative;
}

.experience-item h2 {
  margin: 0;
  max-width: none;
}

.experience-meta {
  margin-top: 4px;
  max-width: none;
}

.experience-item p:last-child {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--color-text-meta);
  max-width: 62ch;
}

.experience-item > div:last-child {
  max-width: none;
  width: 100%;
}

.education-section {
  border-top: 1px solid var(--separator);
}

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

.education-card {
  border-right: 1px solid var(--separator);
  padding: 32px 24px 24px;
}

.education-card:last-child {
  border-right: none;
}

.education-card h3 {
  margin: 0;
}

.education-icon {
  margin-top: 48px;
  display: flex;
  justify-content: flex-end;
  color: var(--color-text-subtle-icon);
}

.education-school,
.education-meta {
  margin-top: 14px;
  max-width: none;
}

.education-meta {
  margin-top: 0px;
}

.split-section {
  border-top: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
}

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

.split-panel {
  padding: 32px 40px 56px;
}

.split-panel:first-child {
  border-right: 1px solid var(--separator);
}

.split-panel--awards {
  margin-bottom: 120px;
}

.split-kicker {
  margin: 0;
  max-width: none;
}

.split-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.split-link {
  color: var(--color-text-primary);
  text-decoration: none;
}

.split-link--article {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.split-link-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-subtle-icon);
  display: inline-flex;
}

.split-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.split-link:hover {
  text-decoration: underline;
}

.awards-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.footer-section {
  --footer-pad-x: 40px;
  --footer-grid-gap: 28px;
  --footer-portrait-width: 241px;
  background: var(--footer-bg);
  padding: 70px var(--footer-pad-x) 24px;
  position: relative;
  overflow: hidden;
}

.footer-top,
.footer-bottom {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: var(--footer-grid-gap);
}

.footer-top {
  margin-bottom: 80px;
}

.footer-col p {
  color: var(--color-text-primary);
  max-width: none;
}

.footer-col--name p {
  font-size: 1rem;
  line-height: 1.2;
}

.footer-belief {
  margin: 0;
  max-width: none;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-weight: var(--font-weight-medium);
  font-size: clamp(1.75rem, 2.2vw, 2.1875rem);
  line-height: 1;
  letter-spacing: -0.005em;
}

.footer-belief__em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--font-weight-regular);
}

.footer-links {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.footer-links a svg {
  display: block;
}

.footer-bottom {
  margin-top: 0;
  align-items: end;
  color: var(--color-text-primary);
  font-size: 0.82rem;
  position: relative;
  z-index: 2;
}

.footer-bottom__portrait {
  align-self: end;
  justify-self: start;
  width: var(--footer-portrait-width);
  margin-left: calc(-1 * var(--footer-pad-x));
}

.footer-bottom__date {
  justify-self: start;
}

.footer-bottom__arrow {
  justify-self: start;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}

.footer-bottom__arrow:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

.footer-bottom__arrow:focus-visible {
  outline: 2px solid color-mix(in srgb, #303030 35%, transparent);
  outline-offset: 4px;
}

.footer-bottom__signature {
  justify-self: start;
}

.footer-portrait {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/*
  Case study — minimal footer, full-width fluid 12-col grid (no 1440px cap).
  Theming: same tokens as the rest of the site (--bg, --color-text-primary, --separator).
*/
.case-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  background: var(--bg);
  color: var(--color-text-primary);
  /* Space above footer (separator sits below this, inside padded inner) */
  padding-top: clamp(32px, 5vw, 56px);
}

.case-footer__line {
  display: block;
  width: 100%;
  margin: 0 0 clamp(24px, 4vw, 40px);
  border: 0;
  border-top: 1px solid var(--separator);
}

.case-footer__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  padding-bottom: clamp(36px, 5vw, 64px);
}

.case-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  align-items: start;
}

.case-footer__block {
  min-width: 0;
}

.case-footer__block--1,
.case-footer__block--2,
.case-footer__block--3 {
  text-align: left;
}

.case-footer__block--4 {
  text-align: right;
}

.case-footer__name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  color: inherit;
}

.case-footer__links {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.case-footer__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}

.case-footer__links a:hover {
  opacity: 0.82;
}

.case-footer__date {
  display: inline-block;
  font-size: 0.82rem;
  color: inherit;
}

.case-footer__signature {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--font-weight-regular);
  font-size: 0.82rem;
  color: inherit;
}

.case-footer__arrow {
  color: inherit;
}

.case-footer .footer-bottom__arrow:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-text-primary) 35%, transparent);
  outline-offset: 4px;
}

@media (min-width: 768px) {
  .case-footer__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    row-gap: var(--grid-gap);
    align-items: stretch;
  }

  .case-footer__block--1 {
    grid-column: 1 / span 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    min-height: 0;
  }

  .case-footer__block--1 .case-footer__links {
    margin-top: 0;
  }

  .case-footer__block--2 {
    grid-column: 4 / span 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    align-self: stretch;
    min-height: 0;
  }

  .case-footer__block--3 {
    grid-column: 7 / span 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    align-self: stretch;
    min-height: 0;
  }

  .case-footer__block--4 {
    grid-column: 10 / span 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    align-self: stretch;
    min-height: 0;
  }
}

@media (min-width: 1024px) {
  .footer-section {
    padding-bottom: 24px;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .experience-list {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .experience-item {
    grid-column: 5 / span 6;
  }

  .experience-item h2 {
    font-size: 2.45rem;
  }

  .education-card {
    padding: 28px 20px 20px;
  }

  .education-card h3 {
    font-size: 2.2rem;
  }

  .split-panel {
    padding: 28px 24px 44px;
  }

  .split-link {
    font-size: 1.4rem;
  }

  .footer-section {
    --footer-pad-x: 40px;
    --footer-grid-gap: 20px;
    --footer-portrait-width: 171px;
    padding: 56px var(--footer-pad-x) 20px;
  }

  .footer-top {
    gap: 20px;
  }
}

@media (min-width: 1280px) and (max-width: 1535px) {
  .experience-list {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .experience-item {
    grid-column: 5 / span 6;
  }

  .split-panel {
    padding: 32px 32px 56px;
  }

  .footer-section {
    --footer-pad-x: 40px;
    --footer-grid-gap: 28px;
    --footer-portrait-width: 241px;
    padding: 70px var(--footer-pad-x) 24px;
  }
}

@media (min-width: 1536px) {
  .experience-list {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .experience-item {
    grid-column: 5 / span 6;
  }
}

@media (max-width: 1023px) {
  .education-grid,
  .split-grid,
  .footer-top,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .experience-item {
    grid-template-columns: 1fr;
  }

  .education-card,
  .split-panel {
    border-right: none;
    border-top: 1px solid var(--separator);
  }

  .education-card:first-child,
  .split-panel:first-child {
    border-top: none;
  }

  .footer-section {
    --footer-pad-x: 20px;
    padding: 48px var(--footer-pad-x) 20px;
  }

/*  .footer-bottom {
    gap: 8px;
  }*/

  .footer-bottom__portrait {
    margin-left: 0;
    width: min(100%, 180px);
  }

  .footer-bottom__date,
  .footer-bottom__arrow,
  .footer-bottom__signature {
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .project-meta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .project-card--large .project-meta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .split-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .experience-item {
    padding: 0 16px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-card--large,
  .project-card--sphere,
  .project-card--green {
    grid-column: 1;
    grid-row: auto;
  }
}

.chat-message {
  padding: 10px 12px;
  border-radius: 14px;
  max-width: 80%;
}

.chat-message--user {
  align-self: flex-end;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--border-strong);
}

.chat-message--ai {
  align-self: flex-start;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
}

body.chat-modal--open {
  overflow: hidden;
}

.chat-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.chat-modal.chat-modal--visible,
.chat-modal.chat-modal--animating {
  pointer-events: auto;
}

.chat-modal[aria-hidden="true"] {
  visibility: hidden;
}

.chat-modal__backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(7, 10, 20, 0.18);
  transition: opacity 280ms ease;
}

.chat-modal--visible .chat-modal__backdrop {
  opacity: 1;
}

.chat-modal__dialog {
  position: relative;
  height: 100%;
  width: 100%;
  padding: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 240ms ease, transform 280ms ease;
}

.chat-modal--visible .chat-modal__dialog {
  opacity: 1;
  transform: translateY(0);
}

.chat-modal__frame {
  height: 100%;
  width: 100%;
  padding: 30px;
  border-radius: 0;
  background: var(--modal-frame-bg);
}

.chat-modal__panel {
  height: 100%;
  width: 100%;
  background: var(--modal-panel-bg);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  padding: 0 0 16px;
  overflow: hidden;
  position: relative;
}

.chat-modal__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--modal-panel-bg) 88%, transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.chat-modal__body {
  min-height: 0;
  overflow-y: auto;
  width: 100%;
  padding-top: 84px;
}

.chat-modal__title {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: var(--modal-title-color);
}

.chat-modal__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--modal-close-bg);
  color: var(--modal-close-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.chat-modal__close svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.chat-modal__close:hover {
  background: var(--modal-close-bg-hover);
}

.chat-modal__close:hover svg {
  transform: rotate(360deg);
}

.chat-modal__messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 770px;
  margin: 0 auto;
  padding-right: 0;
}

.chat-modal__messages .chat-message--user {
  align-self: flex-end;
  background: transparent;
  color: var(--modal-user-text);
  border: none;
  border-radius: 10px;
  box-shadow: none;
  max-width: min(75%, 760px);
}

.chat-modal__messages .chat-message--ai {
  align-self: flex-start;
  background: transparent;
  color: var(--modal-ai-text);
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 2px 0;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .chat-modal__messages .chat-message--ai {
    font-size: 1.375rem;
  }
}

.chat-modal__messages .chat-message--thinking {
  padding: 2px 0;
}

.chat-followup-row {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-top: 14px;
}

.chat-followup-chip {
  border-radius: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text-interactive-muted);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.4;
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  width: -moz-fit-content;
  width: fit-content;
  align-self: flex-start;
  transition: transform 0.2s ease;
}

.chat-followup-chip::before {
  content: "↳";
  opacity: 0.7;
}

.chat-followup-chip:hover {
  color: var(--color-text-interactive-muted);
  transform: translateY(-1px);
}

.chat-followup-chip:disabled {
  opacity: 0.6;
  cursor: default;
}

:root:not([data-theme="light"]) .hero-suggestions .pill,
:root:not([data-theme="light"]) .chat-followup-chip {
  color: var(--color-text-interactive-muted);
}

.chat-thinking-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chat-thinking-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--modal-ai-text) 45%, transparent);
  animation: chat-dot-jump 900ms ease-in-out infinite;
}

.chat-thinking-dot:nth-child(2) {
  animation-delay: 120ms;
}

.chat-thinking-dot:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes chat-dot-jump {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.chat-scroll-anchor {
  width: 1px;
  height: 1px;
}

.chat-modal__composer {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: calc(100% - 40px);
  max-width: 770px;
  margin-left: auto;
  margin-right: auto;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid var(--modal-composer-border);
  background: var(--modal-composer-bg);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.11);
}

.chat-modal__input {
  flex: 1;
  width: 100%;
  min-height: 0;
  resize: none;
  border: none;
  background: transparent;
  color: var(--modal-ai-text);
  padding: 0;
  font-family: "SuisseIntl", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.chat-modal__input::placeholder {
  color: var(--modal-composer-placeholder);
}

.chat-modal__send {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--modal-send-bg);
  color: var(--modal-send-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-modal__send svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.chat-fly {
  position: fixed;
  margin: 0;
  pointer-events: none;
  z-index: 260;
  transform-origin: top left;
  will-change: transform, opacity;
}

.chat-modal--animating .chat-modal__composer {
  opacity: 0;
}

.section {
  padding: 28px 0;
  border-bottom: 1px solid var(--separator);
}

.section.hero {
  border-bottom: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-medium);
  line-height: 1.15;
  margin: 0 0 10px;
}

h1 {
  letter-spacing: -0.03em;
}

h2 {
  letter-spacing: -0.02em;
}

h3 {
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  color: var(--muted);
  max-width: 65ch;
}

/* Keep this mobile override at file end so it wins cascade */
@media (max-width: 767px) {
  .chat-modal__frame {
    padding: 10px;
  }

  .chat-modal__panel {
    border-radius: 0;
  }

  .chat-modal__messages .chat-message--ai {
    padding: 2px 20px;
  }

  .chat-followup-chip {
    padding-left: 20px;
    padding-right: 20px;
  }
}
