:root {
  --ui-text:#f2f4f5;
  --ui-muted:#b8bec8;
  --ui-accent:var(--brand-teal-light);
  --ui-glass:#1a2028e8;
  --ui-control:#ffffff0a;
  --ui-control-hover:#ffffff13;
  --ui-line:#ffffff31;
  --ui-active:#ffffff17;
  --ui-cta:#eef2f1;
  --ui-cta-text:#121b21;
  --ui-shadow:0 12px 32px #080c161f;
  --header-liquid:linear-gradient(112deg,#5467639c,#202e2ba8 51%,#495c5979);
  --header-liquid-scrolled:linear-gradient(112deg,#4c5e5bcb,#263331dc 51%,#3c4f4cbd);
}
:root[data-theme="light"] {
  color:#171b23;
  background:#fff;
  --page:#fff;
  --ui-text:#171b23;
  --ui-muted:#505866;
  --ui-accent:var(--brand-teal);
  --ui-glass:#fffffff0;
  --ui-control:#ffffffb8;
  --ui-control-hover:#f0f3f5;
  --ui-line:#c9cfd6;
  --ui-active:#e9edf1;
  --ui-cta:var(--brand-teal);
  --ui-cta-text:#fff;
  --ui-shadow:0 12px 30px #16233109;
  --glass-surface:#ffffffe8;
  --glass-inner:#f5f7fa;
  --glass-shadow:var(--ui-shadow);
  --glass-edge:#dfe4ea;
  --interactive-edge:#929da5;
  --muted:var(--ui-muted);
}
html[data-theme="light"] body::before {opacity:.08}
html[data-theme="light"] body .ambient-backdrop {opacity:.05}
html[data-theme] body :is(h1,h2,h3,.brand strong) {
  font-weight:550;
  color:var(--ui-text);
}
html[data-theme] body :is(.hero h1,.route-title h1) {font-weight:560}
html[data-theme="dark"] body .hero h1 {color:var(--brand-teal-light)}
html[data-theme="dark"] body .journal-glass :is(h2,h3) {color:#f2f4f5}
html[data-theme] body :is(p,button,a,summary,label,input,textarea,select) {font-weight:400}
html[data-theme] body :is(.primary,.header-brief,button[aria-pressed=true],.top nav a[aria-current=page]) {font-weight:500}

html[data-theme] body .site-glass-header {
  min-height:67px;
  gap:clamp(8px,1.3vw,20px);
  background:var(--header-liquid);
  color:var(--ui-text);
  box-shadow:none;
  border:0;
  backdrop-filter:blur(26px) saturate(170%);
}
html[data-header-scrolled][data-theme] body .site-glass-header {
  background:var(--header-liquid-scrolled);
  box-shadow:0 6px 18px #1519240c;
}
html[data-theme] body .site-glass-header :is(nav,.brand) {color:var(--ui-text)}
html[data-theme] body .site-glass-header :is(.desktop-nav nav,.mobile-nav nav) {
  background:transparent;
  box-shadow:none;
}
html[data-theme] body .site-glass-header .mobile-nav nav {
  background:var(--ui-glass);
  box-shadow:var(--ui-shadow);
}
html[data-theme] body .site-glass-header nav a:is(:hover,[aria-current=page]) {
  color:var(--ui-text);
  background:transparent;
  box-shadow:none;
  text-decoration:underline;
  text-underline-offset:7px;
  text-decoration-thickness:1px;
}
html[data-theme] body .site-glass-header .header-actions {gap:7px}
html[data-theme] body :is(
  .ghost,.primary,.hero-slide-controls button,.aurora-controls button,
  .publisher-controls button
) {
  color:var(--ui-text);
  background:var(--ui-control);
  border:1px solid var(--ui-line);
  border-radius:999px;
  box-shadow:none;
}
html[data-theme] body :is(
  .ghost,.primary,.hero-slide-controls button,.aurora-controls button,
  .publisher-controls button
):is(:hover,:focus-visible) {background:var(--ui-control-hover);border-color:var(--ui-accent)}
html[data-theme] body .hero-art .actions a {
  min-height:42px;
  border-radius:999px;
  color:var(--ui-text);
  background:var(--ui-control);
  border-color:var(--ui-line);
  box-shadow:none;
}
html[data-theme] body .hero-art .actions a:is(:hover,:focus-visible) {
  background:var(--ui-control-hover);
  border-color:var(--ui-accent);
}
html[data-theme] body :is(.primary,.hero-art .actions .primary) {
  color:var(--ui-cta-text);
  background:var(--ui-cta);
  border-color:transparent;
}
html[data-theme] body :is(.primary,.hero-art .actions .primary):is(:hover,:focus-visible) {
  color:var(--ui-cta-text);
  background:color-mix(in srgb,var(--ui-cta) 90%,var(--ui-cta-text));
  border-color:var(--ui-accent);
}
html[data-theme] body .hero-art :is(.hero-slide-controls button,.aurora-controls button) {
  color:var(--ui-muted);
  background:transparent;
  border-color:transparent;
  box-shadow:none;
}
html[data-theme] body .hero-art :is(.hero-slide-controls button,.aurora-controls button)[aria-pressed=true] {
  color:var(--ui-text);
  background:var(--ui-active);
}
html[data-theme] body .hero-art .aurora-controls {
  background:var(--ui-glass);
  box-shadow:var(--ui-shadow);
  border-radius:999px;
}
html[data-theme="light"] body .hero-art {
  background:linear-gradient(110deg,#fbfefd,#fff 60%);
  color:var(--ui-text);
}
html[data-theme="light"] body .hero-art :is(.intro,.eyebrow,.subtle) {color:var(--ui-muted)}
html[data-theme="light"] body .hero-art .aurora {
  background:radial-gradient(ellipse at center,#f0f9f764,transparent 70%);
}
html[data-theme="light"] body .hero-art::before {opacity:.26}
html[data-theme="light"] body .hero-art::after {opacity:.26}
html[data-theme] body .hero-art {min-height:clamp(400px,41vw,575px)}
html[data-theme] body .hero-art .hero-copy {padding-block:clamp(28px,4vw,55px)}
.hero-wave-field {
  position:absolute;
  inset:3% 0 8%;
  pointer-events:none;
  mask-image:radial-gradient(ellipse at 49% 46%,#000 21%,transparent 72%);
}
.hero-wave-field .waves__canvas {position:absolute}

html[data-theme="light"] body footer.wrap {background:#ffffffe9}
html[data-theme="light"] body :is(.tech-card,.magazine-card,.story,.article-hero,.cards article) {
  background:var(--ui-glass);
  box-shadow:var(--ui-shadow);
}
html[data-theme="light"] body :is(.journal-copy > span,.story span,.article-hero span) {color:var(--ui-accent)}
html[data-theme="light"] body :is(.journal-copy p,.story p,.article-hero p,.company-block p) {color:var(--ui-muted)}
html[data-theme="light"] body .journal-glass {--paper-ink:var(--ui-text)}
html[data-theme="light"] body .journal-paper-watermark {color:#51617617}
html[data-theme="light"] body .journal-paper-sheet {
  background:linear-gradient(120deg,#fdfffeed,#eaf3f2c7);
  box-shadow:var(--ui-shadow);
}
html[data-theme="light"] body .journal-paper-content p {color:var(--ui-muted)}
html[data-theme="light"] body .journal-paper-content a {color:var(--ui-accent)}
html[data-theme="light"] body .paper-brand-logo .nowruz-logo-day {display:block}
html[data-theme="light"] body .paper-brand-logo .nowruz-logo-dim {display:none}
html[data-theme="light"] body .publisher-slider {
  background:var(--ui-glass);
  box-shadow:var(--ui-shadow);
}
html[data-theme="light"] body .publisher-slide[aria-current=true] {background:#edf2f4}
html[data-theme] body .publisher-dots button {background:transparent;border-color:transparent}
html[data-theme="light"] body .site-loader {
  color:var(--ui-text);
  background:radial-gradient(ellipse at center,#f0f8f6,transparent 59%),#fff;
}
html[data-theme="light"] body .site-loader-intro .site-loader-caption {color:#4b8077}
html[data-theme="light"] body .site-loader-wall {color:#477f7536}
html[data-theme="light"] body .site-loader-emblem .intro-logo-dark {display:none}
html[data-theme="light"] body .site-loader-emblem .intro-logo-light {display:block}
html[data-theme="light"] body .site-loader-track {background:#24283a17}

@media (max-width:760px) {
  html[data-theme] body .hero-art {min-height:0}
  html[data-theme] body .hero-art .hero-copy {padding-block:25px 0}
  html[data-theme] body .hero-art .aurora-widget {height:clamp(205px,56vw,310px)}
}
@media (prefers-reduced-motion:reduce) {
  .hero-wave-field {display:none}
}

html[data-theme="light"] body :is(main,.hero-art) :is(h1,h2,h3) {color:var(--brand-teal)}
html[data-theme="light"] body .hero-art h1 {font-size:clamp(1.85rem,3.75vw,3.65rem)}
html[data-theme="light"] body .route-title h1 {font-size:clamp(1.9rem,4vw,3.5rem)}
html[data-theme="light"] body main h2 {font-size:clamp(1.42rem,2.7vw,2rem)}
html[data-theme="light"] body main h3 {font-size:clamp(1rem,1.5vw,1.23rem)}
html[data-theme="light"] body .hero-art .intro {font-size:clamp(.95rem,1.38vw,1.06rem)}
html[data-theme="light"] body .hero-art .aurora-wordmark {filter:none}

html[data-theme="light"] body .site-glass-header {
  --ui-text:#2c4440;
  --ui-muted:#475d59;
  --ui-accent:#48857c;
  --ui-glass:#fffffff3;
  --header-liquid:linear-gradient(115deg,#fff9,#f4fdfc70 44%,#fff9 76%,#e9f7f472);
  --header-liquid-scrolled:linear-gradient(115deg,#ffffffd9,#f6fefccb 50%,#ffffffdc);
}

html[data-theme] body .site-glass-header :is(.header-actions a,.header-actions button,.mobile-nav summary,[data-theme-toggle]) {
  min-height:44px;
  padding-inline:8px;
  background:transparent;
  border:0;
  border-radius:6px;
  color:var(--ui-text);
  box-shadow:none;
}
html[data-theme] body .site-glass-header :is(.header-actions a,.header-actions button,.mobile-nav summary,[data-theme-toggle]):is(:hover,:focus-visible) {
  color:var(--ui-accent);
  text-underline-offset:5px;
}
html[data-theme] body .site-glass-header :is(.language-link,.header-brief):hover {
  text-decoration:underline;
}
html[data-theme] body .site-glass-header :is(a,button,summary):focus-visible {
  outline:2px solid var(--ui-accent);
  outline-offset:2px;
}

html[data-theme] body .hero-art :is(.hero-slide-controls button,.aurora-controls button) {font-size:.85rem}
html[data-theme] body .aurora-widget[data-shape="wordmark"]>.aurora {visibility:hidden}
.logo-particles {
  position:absolute;
  inset:12% 13% 18%;
  pointer-events:none;
  --particle:#9bcdc57d;
}
html[data-theme="light"] .logo-particles {--particle:#639f946e}
.logo-particles::before,.logo-particles::after {
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 16% 28%,var(--particle) 0 1.4px,transparent 3px),
    radial-gradient(circle at 31% 14%,var(--particle) 0 1px,transparent 2px),
    radial-gradient(circle at 76% 22%,var(--particle) 0 1.5px,transparent 3px),
    radial-gradient(circle at 88% 44%,var(--particle) 0 1px,transparent 2px),
    radial-gradient(circle at 75% 77%,var(--particle) 0 1.8px,transparent 3px),
    radial-gradient(circle at 22% 76%,var(--particle) 0 1.3px,transparent 3px),
    radial-gradient(circle at 36% 89%,var(--particle) 0 1px,transparent 2px);
}
.logo-particles::after {rotate:24deg;opacity:.5;scale:.9}
@media(prefers-reduced-motion:no-preference) {
  .logo-particles::before {animation:nowruz-particles 6s ease-in-out infinite alternate}
  .logo-particles::after {animation:nowruz-particles 8s ease-in-out infinite alternate-reverse}
  [data-paused=true] .logo-particles::before,[data-paused=true] .logo-particles::after {animation-play-state:paused}
  @keyframes nowruz-particles {to {translate:9px -12px;opacity:.35}}
}
.tech-copy h3 {margin-block-start:0}
.cards .service-image {margin-block-end:16px}

.site-ink-trail {
  position:fixed;
  inset:0;
  z-index:-1;
  width:100%;
  height:100%;
  pointer-events:none;
}
@media (prefers-reduced-motion:reduce),(any-pointer:coarse) and (not (any-pointer:fine)) {
  .site-ink-trail {display:none}
}

:root {
  --tile-glass:linear-gradient(145deg,#2b3a37bd,#1b2431af 70%,#1b2234c2);
  --subtle-glass:#ffffff0a;
  --hero-glass-direction:90deg;
}
:root:lang(en) {--hero-glass-direction:270deg}
:root[data-theme="light"] {
  --tile-glass:linear-gradient(145deg,#ffffffc9,#fafefdb8 70%,#f6fffac4);
  --subtle-glass:#ffffff75;
}
html[data-theme] body .hero-art {
  background:linear-gradient(var(--hero-glass-direction),#1b2a2765,#1426359e 48%,#101b29eb 73%);
}
html[data-theme="light"] body .hero-art {
  background:linear-gradient(var(--hero-glass-direction),#f8fefd30,#ffffff69 49%,#ffffffdc 72%);
}
html[data-theme] body main#top > :is(section:not(.hero-art),.route-title) {
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
}
html[data-theme] body main#top > section.motion-surface::before {
  content:none;
}
html[data-theme] body :is(
  .cards article,.tech-card,.magazine-card,.story,.article-hero,main>aside,dialog,
  .publisher-slider,.aurora-controls,.journal-paper-sheet
) {
  background:var(--tile-glass);
  backdrop-filter:blur(13px) saturate(130%);
}
html[data-theme] body :is(.archive-mission,.archive-startups,.archive-press,.archive-office,.company-details>div,.company-block details,.workflow li) {
  background:var(--subtle-glass);
}
html[data-theme="dark"] body .publisher-slider {
  background:linear-gradient(140deg,#ffffffe2,#eff7f6d8);
}
html[data-theme="dark"] body .journal-glass {--paper-ink:#f6fdfc}
html[data-theme="light"] body .journal-glass {--paper-ink:#21312e}
html[data-theme] body .site-glass-header .header-lockup {
  width:clamp(60px,6vw,68px);
}
html[data-theme] body .site-glass-header {
  min-height:90px;
}
@media(max-width:760px) {
  html[data-theme] body .site-glass-header {min-height:70px}
  html[data-theme] body .site-glass-header .header-lockup {width:48px}
}

@media(max-width:760px) {
  :root {--page-gutter:clamp(16px,4.5vw,28px)}
  html[data-theme] body .site-glass-header .header-actions {gap:4px}
  html[data-theme] body .site-glass-header :is(.mobile-nav summary,.theme-button,.language-link) {
    min-inline-size:44px;
  }
  html[data-theme] body .site-glass-header .mobile-nav nav {
    inset-inline:0;
    top:100%;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:4px;
    max-block-size:calc(100dvh - 80px - env(safe-area-inset-bottom,0px));
    overflow-y:auto;
    overscroll-behavior:contain;
    padding:8px max(var(--page-gutter),env(safe-area-inset-right,0px),env(safe-area-inset-left,0px));
    border-radius:0 0 16px 16px;
  }
  .site-glass-header .mobile-nav nav a {
    display:flex;
    align-items:center;
    min-block-size:44px;
    min-inline-size:0;
    padding:6px 8px;
    overflow-wrap:anywhere;
  }
  html[data-theme] body .hero-art {
    flex-direction:column;
    gap:12px;
    padding-block-end:12px;
    --hero-glass-direction:180deg;
  }
  html[data-theme] body .hero-art :is(.hero-copy,.aurora-widget) {order:0}
  html[data-theme] body .hero-art .hero-copy {padding-block:20px 0}
  html[data-theme] body .hero-art h1 {
    font-size:clamp(1.75rem,6.3vw,2.7rem);
    margin-block:0 10px;
    overflow-wrap:anywhere;
  }
  html[data-theme] body .hero-art .intro {max-inline-size:45ch;line-height:1.65}
  .hero-art .hero-slide-copy {min-block-size:8.5rem}
  .hero-art .hero-slide-controls,.hero-art .actions {
    display:grid;
    gap:6px;
  }
  .hero-art .hero-slide-controls {grid-template-columns:repeat(3,minmax(0,1fr))}
  .hero-art .actions {grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-theme] body .hero-art :is(.hero-slide-controls button,.actions a) {
    min-block-size:44px;
    min-inline-size:0;
    line-height:1.4;
    text-align:center;
    padding-inline:6px;
  }
  html[data-theme] body .hero-art .aurora-widget {height:clamp(182px,53vw,300px)}
  html[data-theme] body .hero-art .aurora-controls {
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    width:min(100%,380px);
    inset-inline:0;
    bottom:4px;
    margin-inline:auto;
    transform:none;
  }
  html[data-theme] body .hero-art .aurora-controls button {
    min-block-size:44px;
    min-inline-size:0;
    padding-inline:1px;
    font-size:.75rem;
  }
  html[data-theme] body .aurora-widget .aurora-wordmark {inset-block-end:36px}

  html[data-theme] body main#top > :is(.focus,.tech-section,.approach,.archive-block,.company-block,.group-book,.journal-glass,.magazine-preview) {
    padding-block:24px;
    scroll-margin-block-start:calc(74px + env(safe-area-inset-top,0px));
  }
  main#top .section-head {margin-block-end:14px}
  main#top .section-head h2 {overflow-wrap:anywhere}
  main#top .cards {gap:12px}
  main#top .cards article {min-inline-size:0;padding:14px}
  main#top .cards .service-image {margin-block-end:12px;aspect-ratio:16/10}
  main#top .publisher-controls {gap:4px}
  html[data-theme] body .publisher-controls > button {padding-inline:7px}
  html[data-theme] body .publisher-slide h3 {font-size:.78rem}
  .journal-paper-content > a {display:inline-flex;align-items:center;min-block-size:44px;padding-block:0}
  body.journal-page > main {padding-block:24px 44px}
  body.journal-page > main .lead {font-size:1rem}
  body.journal-page > main .stories {margin-block-start:16px}


  html[data-theme] body dialog {
    width:min(510px,calc(100% - 24px));
    padding:16px;
    max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
    overscroll-behavior:contain;
  }
  dialog .dialog-head button {min-inline-size:44px;min-block-size:44px}
  dialog :is(select,textarea,input) {font-size:1rem;min-inline-size:0}
}

@media (max-width:359px) {
  .hero-art .actions {grid-template-columns:minmax(0,1fr)}
}

html[lang="en"][data-theme] body :is(h1,h2,h3) {
  font-family:"Josefin Sans",system-ui,sans-serif;
  font-weight:400;
  letter-spacing:.015em;
  line-height:1.17;
}
html[lang="fa"][data-theme] body :is(h1,h2,h3) {
  font-family:"Estedad","Vazirmatn Variable",Vazirmatn,Tahoma,sans-serif;
  font-weight:440;
  letter-spacing:normal;
}

/* Keep the original photos and bring the violet-lit imagery into the teal palette. */
html body img:is(
  [src$="/nowruz-service-2.webp"],
  [src$="/technology-ai.webp"],
  [src$="/technology-data.webp"],
  [src$="/technology-flow.webp"],
  [src$="/technology-product.webp"],
  [src$="/journal-cover-2.webp"]
) {
  filter: grayscale(1) sepia(.32) hue-rotate(126deg) saturate(1.55);
}
