/* CHROMA LIMITED — site styles */
@font-face { font-family: "Dubai"; src: url("../fonts/Dubai-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Dubai"; src: url("../fonts/Dubai-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Sans SC"; src: url("../fonts/NotoSansSC-Regular-subset.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans SC"; src: url("../fonts/NotoSansSC-Bold-subset.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --navy: #142B36;
  --navy-deep: #0F222B;
  --ivory: #F6F5F1;
  --white: #FFFFFF;
  --teal: #12685F;
  --slate: #647178;
  --ink-soft: #3C4A51;
  --bronze: #B39A63;
  --line: #E1DED5;
  --font: "Dubai", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1400px;
  --pad: clamp(20px, 5vw, 56px);
  --section: clamp(48px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--navy); font-family: var(--font); font-size: 20px; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.lang-ar body { line-height: 1.9; }
.lang-zh body { line-height: 1.85; letter-spacing: 0.02em; }
img, svg { display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.2; text-wrap: balance; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--bronze); color: var(--navy); padding: 10px 16px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--ivory); border-bottom: 1px solid rgba(246, 245, 241, 0.08); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 96px; }
.brand { display: inline-flex; color: inherit; text-decoration: none; }
.brand .logo-svg { height: 46px; width: auto; }
.nav-panel { display: flex; align-items: center; gap: 36px; margin-inline-start: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: 17px; letter-spacing: 0.02em; opacity: 0.86; padding-block: 8px; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.nav .nav-cta { opacity: 1; border: 1px solid rgba(179, 154, 99, 0.7); padding: 8px 18px; color: var(--ivory); }
.nav .nav-cta:hover { background: var(--bronze); color: var(--navy); border-color: var(--bronze); }
.langs { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; padding-inline-start: 28px; border-inline-start: 1px solid rgba(246, 245, 241, 0.18); }
.langs a { display: inline-block; text-decoration: none; font-size: 15px; padding: 6px 8px; opacity: 0.7; }
.langs a:hover { opacity: 1; }
.langs a[aria-current] { opacity: 1; color: var(--bronze); }
.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 1px solid rgba(246, 245, 241, 0.3); color: var(--ivory); font: inherit; font-size: 14px; padding: 8px 14px; min-height: 44px; align-items: center; gap: 10px; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; }
.nav-toggle-bars::before { content: ""; position: absolute; top: 6px; }
.nav-toggle-bars { margin-top: -6px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--ivory); padding-block: clamp(56px, 6vw, 96px) clamp(64px, 6.5vw, 104px); }
.hero-inner { position: relative; z-index: 1; }
.hero-art { position: absolute; inset-inline-end: -6vw; top: 50%; width: min(56vw, 760px); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
.hero-art svg { width: 100%; height: 100%; }
.hero-art rect { fill: none; stroke: rgba(246, 245, 241, 0.09); stroke-width: 0.18; }
.hero-art rect.accent { stroke: rgba(179, 154, 99, 0.55); }
.eyebrow { font-size: 15px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bronze); margin-bottom: 28px; }
.lang-ar .eyebrow, .lang-zh .eyebrow { letter-spacing: 0.12em; }
.hero h1 { font-size: clamp(40px, 6vw, 84px); line-height: 1.08; max-width: 21ch; letter-spacing: -0.01em; }
.lang-ar .hero h1 { line-height: 1.35; max-width: 20ch; letter-spacing: 0; }
.lang-zh .hero h1 { line-height: 1.3; max-width: 14em; letter-spacing: 0.02em; word-break: keep-all; }
.lead { margin-top: 32px; max-width: 58ch; font-size: clamp(19px, 1.6vw, 24px); color: rgba(246, 245, 241, 0.82); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 14px 32px; font: inherit; font-size: 18px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-gold { background: var(--bronze); color: var(--navy); }
.btn-gold:hover { background: #C4AD7A; }
.btn-ghost { border-color: rgba(246, 245, 241, 0.45); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--ivory); background: rgba(246, 245, 241, 0.06); }
.btn-navy { background: var(--navy); color: var(--ivory); }
.btn-navy:hover { background: var(--teal); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Sections */
.section { padding-block: var(--section); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.section-head { display: flex; flex-direction: column; gap: 18px; }
.index { font-size: 15px; letter-spacing: 0.2em; color: var(--teal); font-weight: 700; display: flex; align-items: center; gap: 14px; }
.index::after { content: ""; width: 48px; height: 1px; background: var(--bronze); }
.section h2 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.2; }
.lang-ar .section h2 { line-height: 1.4; }
.prose { display: flex; flex-direction: column; gap: 24px; font-size: clamp(19px, 1.65vw, 24px); color: var(--ink-soft); max-width: 60ch; }
.prose .btn { align-self: flex-start; margin-top: 12px; }
.intro { color: var(--slate); font-size: clamp(19px, 1.5vw, 22px); max-width: 52ch; }
.section-head .intro { margin-top: 6px; }

.about { border-bottom: 1px solid var(--line); }

/* Projects */
.projects { background: var(--white); }
.projects-head { align-items: end; margin-bottom: clamp(28px, 3vw, 40px); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.card { position: relative; padding: 34px 30px 38px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: background .25s; }
.card::before { content: ""; position: absolute; top: -1px; inset-inline: -1px; height: 2px; background: var(--bronze); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
[dir="rtl"] .card::before { transform-origin: right; }
.card:hover { background: var(--ivory); }
.card:hover::before { transform: scaleX(1); }
.card-no { font-size: 15px; color: var(--slate); letter-spacing: 0.1em; margin-bottom: 10px; }
.card-name { font-size: 27px; letter-spacing: 0.16em; text-align: start; }
[dir="rtl"] .card-name, [dir="rtl"] .card-domain { text-align: right; }
.card-domain { font-size: 17px; color: var(--teal); letter-spacing: 0.04em; }
.card-text { margin-top: 8px; font-size: 18px; line-height: 1.65; color: var(--ink-soft); }

/* Partners */
.partners { background: var(--navy); color: var(--ivory); }
.partners .prose { color: rgba(246, 245, 241, 0.84); }
.partners .index { color: var(--bronze); }

/* Contact */
.contact .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 17px; font-weight: 700; color: var(--navy); }
.req { color: var(--teal); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 19px; color: var(--navy); background: var(--white); border: 1px solid #C9C6BC; border-radius: 0; padding: 12px 18px; min-height: 58px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 160px; line-height: 1.7; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 44px; }
[dir="rtl"] .field select { background-position: 16px 50%, 22px 50%; }
[dir="rtl"] .field input[type="email"] { text-align: right; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18, 104, 95, 0.18); }
.field [aria-invalid="true"] { border-color: #A1332B; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.status { font-size: 18px; }
.status.is-ok { color: var(--teal); font-weight: 700; }
.status.is-err { color: #A1332B; font-weight: 700; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--ivory); padding-top: 48px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 36px; }
.footer-brand { display: flex; flex-direction: column; gap: 20px; max-width: 420px; }
.footer-brand .logo-svg { height: 44px; width: auto; }
.footer-brand p { color: rgba(246, 245, 241, 0.8); font-size: 20px; }
.footer-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 19px; color: rgba(246, 245, 241, 0.88); }
[dir="rtl"] .footer-meta li[dir="ltr"] { text-align: right; }
.footer-base { border-top: 1px solid rgba(246, 245, 241, 0.1); padding-block: 22px; font-size: 17px; color: rgba(246, 245, 241, 0.72); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer-base a { color: rgba(246, 245, 241, 0.8); text-decoration: none; }
.footer-base a:hover { color: var(--bronze); }
.form-note { font-size: 17px; color: var(--slate); }
.form-note a { color: var(--teal); }

/* Legal page */
.legal-inner { max-width: 900px; display: flex; flex-direction: column; gap: 20px; }
.legal .back { align-self: flex-start; font-size: 17px; color: var(--teal); text-decoration: none; margin-bottom: 12px; }
.legal .back:hover { text-decoration: underline; }
.legal h1 { font-size: clamp(34px, 4vw, 52px); }
.updated { font-size: 17px; color: var(--slate); }
.legal-intro { font-size: 23px; color: var(--ink-soft); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.legal section { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.legal h2 { font-size: 27px; }
.legal section p { color: var(--ink-soft); }

/* Text blocks: justified, no ragged edges */
.lead, .prose p, .intro, .card-text, .legal section p, .legal-intro { text-align: justify; text-wrap: pretty; hyphens: auto; }
.lang-ar .lead, .lang-ar .prose p, .lang-ar .intro, .lang-ar .card-text, .lang-ar .legal section p, .lang-ar .legal-intro { hyphens: none; }
.footer-brand p { max-width: 44ch; }
.projects-head .intro { max-width: none; }
.card-name a, .card-domain a { text-decoration: none; color: inherit; }
.card-domain a:hover, .card-name a:hover { color: var(--teal); }

/* Large screens */
@media (min-width: 1680px) {
  :root { --wrap: 1560px; }
  body { font-size: 22px; }
  .brand .logo-svg { height: 52px; }
  .header-inner { min-height: 104px; }
  .nav a { font-size: 19px; }
  .langs a { font-size: 16px; }
  .hero h1 { font-size: 96px; }
  .lead { font-size: 26px; }
  .eyebrow { font-size: 16px; }
  .section h2 { font-size: 70px; }
  .prose { font-size: 26px; }
  .intro { font-size: 24px; }
  .card-name { font-size: 31px; }
  .card-domain { font-size: 19px; }
  .card-text { font-size: 21px; }
  .btn { font-size: 20px; min-height: 64px; padding: 16px 36px; }
  .field label { font-size: 19px; }
  .field input, .field select, .field textarea { font-size: 20px; min-height: 64px; }
  .form-note { font-size: 18px; }
  .footer-brand .logo-svg { height: 50px; }
  .footer-brand p { font-size: 22px; }
  .footer-meta { font-size: 21px; }
  .footer-base { font-size: 18px; }
}

/* Responsive */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 8px var(--pad) 28px; border-bottom: 1px solid rgba(246, 245, 241, 0.1); }
  .site-header.is-open .nav-panel { display: flex; }
  .header-inner { position: relative; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(246, 245, 241, 0.08); font-size: 17px; }
  .nav .nav-cta { margin-top: 16px; text-align: center; padding: 12px; }
  .langs { border: 0; padding: 20px 0 0; flex-wrap: wrap; }
  .langs a { font-size: 15px; padding: 8px 10px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 18px; }
  .brand .logo-svg { height: 28px; }
  .split, .contact .split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 32px 24px; }
  .form { grid-template-columns: 1fr; }
  .hero-art { width: 110vw; inset-inline-end: -45vw; opacity: 0.7; }
  .btn { width: 100%; }
  .prose .btn { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
