/* Super Artificial Intelligence Group — official site, 2026 */

:root {
  --bg: #070605;
  --bg-raised: #0e0c0a;
  --ink: #f4efe6;
  --ink-soft: #d8d0c4;
  --muted: #9a9184;
  --gold: #c9a96e;
  --gold-bright: #e0c58a;
  --gold-dim: rgba(201, 169, 110, 0.28);
  --line: rgba(244, 239, 230, 0.1);
  --serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif-sc: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans-sc: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif-jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --serif-ar: "Noto Naskh Arabic", "Noto Serif", "Times New Roman", serif;
  --sans-ar: "Noto Sans Arabic", "Segoe UI", sans-serif;
  --measure: 38rem;
  --page: 78rem;
  --gutter: clamp(1.4rem, 5.2vw, 5.75rem);
  --header-h: 4.85rem;
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
  hanging-punctuation: first last;
}

html[lang="zh"],
html[lang="ja"] {
  font-size: 16.5px;
}

html[lang="ar"] {
  font-size: 17px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html[lang="zh"] body {
  font-family: var(--sans-sc);
  line-height: 1.85;
  letter-spacing: 0.04em;
}

html[lang="ja"] body {
  font-family: var(--sans-jp);
  line-height: 1.85;
  letter-spacing: 0.02em;
}

html[lang="ar"] body {
  font-family: var(--sans-ar);
  line-height: 1.9;
  letter-spacing: 0;
}

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 600;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100%, var(--page));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-inline: var(--gutter);
  background: transparent;
  color: var(--ink);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(7, 6, 5, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

.brand-name,
.brand-short {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-short {
  display: none;
  letter-spacing: 0.16em;
}

.nav {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
  margin-inline-start: auto;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

html[lang="zh"] .nav a,
html[lang="ja"] .nav a,
html[lang="ar"] .nav a {
  text-transform: none;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold-dim);
}

/* Language */

.lang {
  position: relative;
  flex: 0 0 auto;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.35rem 0.15rem 0.35rem 0.4rem;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  color: var(--gold);
}

.lang-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-inline-end: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.8;
}

[dir="rtl"] .lang-chevron {
  transform: rotate(-45deg) translateY(-1px);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  inset-inline-end: 0;
  margin: 0;
  padding: 0.45rem 0;
  list-style: none;
  min-width: 9.5rem;
  background: #141210;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu li {
  padding: 0.45rem 1rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-transform: none;
}

.lang-menu li:hover,
.lang-menu li:focus-visible {
  color: var(--ink);
  background: rgba(201, 169, 110, 0.08);
}

.lang-menu li[aria-selected="true"] {
  color: var(--gold);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 clamp(4.5rem, 9vh, 8rem);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media picture,
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 6, 5, 0.42) 0%, rgba(7, 6, 5, 0.12) 32%, rgba(7, 6, 5, 0.5) 68%, rgba(7, 6, 5, 0.94) 100%),
    linear-gradient(90deg, rgba(7, 6, 5, 0.5) 0%, rgba(7, 6, 5, 0.08) 58%);
}

[dir="rtl"] .hero-media::after {
  background:
    linear-gradient(180deg, rgba(7, 6, 5, 0.42) 0%, rgba(7, 6, 5, 0.12) 32%, rgba(7, 6, 5, 0.5) 68%, rgba(7, 6, 5, 0.94) 100%),
    linear-gradient(270deg, rgba(7, 6, 5, 0.5) 0%, rgba(7, 6, 5, 0.08) 58%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
  max-width: 54rem;
  margin-inline: 0;
}

.eyebrow,
.section-label {
  margin: 0 0 1.15rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

html[lang="zh"] .eyebrow,
html[lang="zh"] .section-label,
html[lang="ja"] .eyebrow,
html[lang="ja"] .section-label,
html[lang="ar"] .eyebrow,
html[lang="ar"] .section-label {
  text-transform: none;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.2rem, 8.6vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink);
}

html[lang="zh"] .hero h1 {
  font-family: var(--serif-sc);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.05;
}

html[lang="ja"] .hero h1 {
  font-family: var(--serif-jp);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.15;
  font-size: clamp(2.6rem, 6.8vw, 5.8rem);
}

html[lang="ar"] .hero h1 {
  font-family: var(--serif-ar);
  font-weight: 500;
  line-height: 1.25;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
}

.lede {
  margin: 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  font-weight: 300;
  line-height: 1.7;
}

.gold-rule {
  display: block;
  width: 4.5rem;
  height: 1px;
  margin-top: 2.25rem;
  background: var(--gold);
  opacity: 0.85;
}

/* Sections */

.section {
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
}

.section-label.light {
  color: var(--gold-bright);
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.4vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

html[lang="zh"] h2,
html[lang="zh"] h3 {
  font-family: var(--serif-sc);
  font-weight: 400;
  letter-spacing: 0.04em;
}

html[lang="ja"] h2,
html[lang="ja"] h3 {
  font-family: var(--serif-jp);
  font-weight: 400;
  letter-spacing: 0.03em;
}

html[lang="ar"] h2,
html[lang="ar"] h3 {
  font-family: var(--serif-ar);
  font-weight: 500;
}

.prose {
  max-width: var(--measure);
}

.prose p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 1.06rem;
  font-weight: 300;
  line-height: 1.8;
}

.prose p:last-child {
  margin-bottom: 0;
}

.thesis {
  border-top: 1px solid var(--line);
}

.thesis-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

/* Work */

.work {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: 0;
}

.work-intro {
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.work-intro h2 {
  max-width: 18ch;
}

.work-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: min(78vh, 46rem);
  align-items: stretch;
  background: var(--bg);
}

.work-panel:nth-child(even) .work-visual {
  order: 2;
}

.work-visual {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  background: #0a0908;
}

.work-visual picture,
.work-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.4s ease;
}

.work-panel:hover .work-visual img {
  transform: scale(1.06);
}

.work-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.6rem, 4.5vw, 4.25rem);
  border-top: 1px solid var(--line);
}

.work-index {
  margin: 0 0 1.1rem;
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
}

.work-copy h3 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.8vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.work-copy p:last-child {
  margin: 0;
  max-width: 32rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.75;
}

/* Approach */

.approach {
  padding: 0 0 clamp(4.5rem, 10vw, 8.5rem);
}

.approach-media {
  position: relative;
  min-height: min(72vh, 42rem);
  overflow: hidden;
}

.approach-media picture,
.approach-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(72vh, 42rem);
  object-fit: cover;
  object-position: 50% 60%;
}

.approach-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 6, 5, 0.15) 0%, rgba(7, 6, 5, 0.25) 45%, rgba(7, 6, 5, 0.92) 100%);
}

.approach-caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding-bottom: clamp(2.2rem, 5vw, 3.5rem);
}

.approach-prose {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

/* Contact */

.contact {
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.contact-block {
  margin-bottom: 2.4rem;
}

.contact-block:last-child {
  margin-bottom: 0;
}

.contact-kicker {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

html[lang="zh"] .contact-kicker,
html[lang="ja"] .contact-kicker,
html[lang="ar"] .contact-kicker {
  text-transform: none;
  letter-spacing: 0.12em;
}

.contact-email {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  word-break: break-word;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold-dim);
}

.office {
  margin: 0;
  font-style: normal;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.7;
}

/* Footer */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem var(--gutter) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.site-footer p {
  margin: 0;
}

/* Responsive */

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-h);
    padding-block: 0.75rem 0.85rem;
    row-gap: 0.45rem;
  }

  .nav {
    display: flex;
    order: 3;
    width: 100%;
    margin-inline: 0;
    gap: 1.15rem;
  }

  .brand-name {
    display: none;
  }

  .brand-short {
    display: inline;
  }

  .thesis-grid,
  .contact-grid,
  .work-panel,
  .work-panel:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .work-panel:nth-child(even) .work-visual {
    order: 0;
  }

  .work-visual,
  .work-visual img,
  .work-visual picture {
    min-height: 16rem;
    height: min(52vw, 22rem);
  }

  .work-copy {
    padding-block: 2rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .brand-name {
    max-width: 14rem;
    white-space: normal;
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .work-visual img,
  .work-panel:hover .work-visual img,
  .site-header {
    transition: none;
    transform: none;
  }
}
