/* الجوهرة الثمينة — corporate site v2
   Editorial luxury: ivory paper, black Kufi display, metallic gold used sparingly, full-bleed photography.
   Fonts: Reem Kufi (display) + Almarai (body). RTL. */
@font-face { font-family: 'Reem Kufi'; src: url('../assets/fonts/ReemKufi-Variable.ttf') format('truetype'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Almarai'; src: url('../assets/fonts/Almarai-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Almarai'; src: url('../assets/fonts/Almarai-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Almarai'; src: url('../assets/fonts/Almarai-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Almarai'; src: url('../assets/fonts/Almarai-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --paper: #F7F3EC;
  --ivory: #F0EAE0;
  --white: #FFFFFF;
  --ink: #121212;
  --ink-2: #3F3A33;
  --ink-3: #7E7669;
  --rule: rgba(18, 18, 18, 0.14);
  --rule-2: rgba(18, 18, 18, 0.08);
  --gold: #B48A3C;
  --gold-d: #8C6722;
  --gold-l: #E2C784;
  --metal: linear-gradient(100deg, #8C6420 0%, #C99C48 28%, #F3E0A8 50%, #C99C48 72%, #8C6420 100%);
  --black: #0C0C0C;
  --char: #151412;
  --char-2: #1D1B18;
  --on: #F3EEE4;
  --on-2: #B9B0A1;
  --on-3: #7F786C;
  --rule-d: rgba(243, 238, 228, 0.14);
  --display: 'Reem Kufi', 'Almarai', sans-serif;
  --body: 'Almarai', 'Segoe UI', Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 600ms;
  --gutter: clamp(20px, 5.5vw, 96px);
  --maxw: 1360px;
  --nav-h: 84px;
}
/* light-first brand site: both scheme states resolve to the same tokens */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #F7F3EC; } }
:root[data-theme="dark"] { --paper: #F7F3EC; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--body); font-size: 17px; line-height: 1.85; direction: rtl; text-align: right; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.22; text-wrap: balance; }
h3 { font-weight: 600; }
p { margin: 0; }
::selection { background: var(--gold-l); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal.pre, .reveal-img.pre { opacity: 1 !important; transform: none !important; clip-path: none !important; } .hero-media img { animation: none !important; } .flow { animation: none !important; } .ribbon-track { animation: none !important; } }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; color: var(--gold-d); font-weight: 700; font-size: 12.5px; letter-spacing: 0.18em; }
.eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--gold); }
.dark .eyebrow { color: var(--gold-l); } .dark .eyebrow::before { background: var(--gold-l); }
.h2 { font-size: clamp(32px, 4vw, 58px); margin-top: 18px; max-width: 20ch; }
.lead { color: var(--ink-2); font-size: clamp(16px, 1.2vw, 19px); max-width: 58ch; margin-top: 18px; }
.dark .lead { color: var(--on-2); }
.section { padding: clamp(88px, 12vh, 160px) 0; position: relative; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 24px clamp(32px, 6vw, 120px); align-items: end; margin-bottom: clamp(44px, 7vh, 80px); }
.section-head .lead { margin-top: 0; padding-bottom: 10px; }
@media (max-width: 960px) { .section-head { grid-template-columns: 1fr; } .section-head .lead { padding-bottom: 0; } }
.dark { background: var(--char); color: var(--on); }
.metal { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 32px; border: 1px solid var(--gold); color: var(--ink); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn.solid { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn.solid:hover { background: var(--gold-d); border-color: var(--gold-d); }
.btn.light { border-color: rgba(243, 238, 228, 0.5); color: var(--on); }
.btn.light:hover { border-color: var(--on); }
.btn.on-dark-solid { background: var(--on); color: var(--ink); border-color: var(--on); }
.btn.on-dark-solid:hover { background: #fff; }
.gem { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 3; }

/* reveals */
/* Visible by default — content must never depend on JS to be seen. JS opts elements into the
   hide-then-reveal animation by adding .pre (see js/site.js); if JS never runs, nothing is hidden. */
.reveal { transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.reveal.pre { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img { transition: clip-path 1200ms var(--ease); }
.reveal-img.pre { clip-path: inset(0 0 100% 0); }
.reveal-img.in { clip-path: inset(0 0 0 0); }
.reveal-img img { transition: transform 1600ms var(--ease); }
.reveal-img.pre img { transform: scale(1.08); }
.reveal-img.in img { transform: none; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 60; height: var(--nav-h); display: flex; align-items: center; color: var(--on); transition: background var(--dur), color var(--dur), border-color var(--dur), height var(--dur); border-bottom: 1px solid transparent; padding-top: env(safe-area-inset-top, 0px); }
.nav.scrolled { background: rgba(247, 243, 236, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); border-color: var(--rule-2); height: 72px; }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 46px; width: auto; transition: height var(--dur); }
.nav.scrolled .brand img { height: 40px; }
.brand b { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.3; letter-spacing: 0.01em; }
.brand span { display: block; font-size: 11px; opacity: 0.7; letter-spacing: 0.08em; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; font-size: 14px; font-weight: 700; opacity: 0.82; position: relative; transition: opacity var(--dur); }
.nav-links a::after { content: ''; position: absolute; bottom: 2px; right: 14px; left: 14px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease); }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 22px; font-size: 13.5px; }
.nav:not(.scrolled) .nav-cta .btn { border-color: rgba(243, 238, 228, 0.5); color: var(--on); background: transparent; }
.nav.scrolled .nav-cta .btn { background: var(--ink); border-color: var(--ink); color: var(--on); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid currentColor; background: transparent; cursor: pointer; place-items: center; }
.burger i { display: block; width: 18px; height: 1.5px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.menu { position: fixed; inset: 0; z-index: 55; background: var(--paper); color: var(--ink); display: none; align-items: center; padding: var(--nav-h) var(--gutter) 40px; }
.menu.open { display: grid; }
.menu ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.menu a { font-family: var(--display); font-size: clamp(30px, 8vw, 44px); font-weight: 600; display: block; padding: 8px 0; border-bottom: 1px solid var(--rule-2); }
.menu .menu-foot { margin-top: 26px; color: var(--ink-3); font-size: 14px; display: grid; gap: 6px; }
body.menu-open .nav { background: var(--paper); color: var(--ink); }
@media (max-width: 1080px) { .nav-links, .nav-cta .btn { display: none; } .burger { display: grid; } .brand span { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--on); overflow: hidden; background: var(--black); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; animation: kb 28s ease-out both; }
@keyframes kb { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 12, 12, 0.94) 0%, rgba(12, 12, 12, 0.62) 34%, rgba(12, 12, 12, 0.18) 66%, rgba(12, 12, 12, 0.42) 100%); }
.hero .container { position: relative; padding-top: calc(var(--nav-h) + 10vh); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 14px; color: var(--gold-l); font-weight: 700; font-size: 12.5px; letter-spacing: 0.18em; }
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--gold-l); }
.hero h1 { font-size: clamp(50px, 8vw, 128px); font-weight: 600; line-height: 1.06; margin-top: 26px; max-width: 12ch; }
.hero-lead { max-width: 46ch; font-size: clamp(17px, 1.35vw, 21px); margin-top: 26px; color: rgba(243, 238, 228, 0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-foot { margin-top: clamp(56px, 9vh, 110px); border-top: 1px solid var(--rule-d); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-foot div { padding: 28px 28px 34px; border-inline-start: 1px solid var(--rule-d); }
.hero-foot div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.hero-foot b { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; }
.hero-foot span { display: block; color: var(--on-2); font-size: 14px; margin-top: 6px; }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 34px; display: flex; align-items: center; gap: 12px; color: var(--on-2); font-size: 12px; letter-spacing: 0.16em; writing-mode: vertical-rl; }
.scroll-cue i { display: block; width: 1px; height: 56px; background: linear-gradient(to bottom, var(--gold-l), transparent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 960px) { .hero-foot { grid-template-columns: 1fr; } .hero-foot div { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--rule-d); padding: 18px 0; } .hero-foot div:first-child { border-top: 0; } .scroll-cue { display: none; } .hero-media img { object-position: 42% 60%; } }

/* ---------- ribbon ---------- */
.ribbon { background: var(--black); color: var(--gold-l); overflow: hidden; border-block: 1px solid rgba(226, 199, 132, 0.22); direction: ltr; }
.ribbon-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon span { display: inline-flex; align-items: center; gap: 30px; padding: 15px 15px 15px 30px; font-size: 12.5px; letter-spacing: 0.2em; font-weight: 700; white-space: nowrap; direction: rtl; }
.ribbon .gem { width: 11px; height: 11px; stroke: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.statement { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.55; color: var(--ink); }
.statement::before { content: ''; display: block; width: 56px; height: 2px; background: var(--metal); margin-bottom: 26px; }
.about-text { margin-top: 30px; display: grid; gap: 16px; color: var(--ink-2); font-size: 17px; max-width: 60ch; }
.frame { position: relative; }
.frame::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--gold); transform: translate(-18px, 18px); pointer-events: none; }
.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.frame figcaption { position: absolute; bottom: 0; right: 0; background: var(--ink); color: var(--on); font-size: 12px; letter-spacing: 0.12em; padding: 10px 16px; }
.frame .reveal-img { overflow: hidden; }
.marks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 9vh, 100px); border-top: 1px solid var(--rule); }
.mark { padding: 28px 24px 0; border-inline-start: 1px solid var(--rule-2); }
.mark:first-child { border-inline-start: 0; padding-inline-start: 0; }
.mark b { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; }
.mark b::before { content: ''; display: block; width: 22px; height: 1px; background: var(--gold); margin-bottom: 14px; }
.mark span { display: block; color: var(--ink-2); font-size: 15px; margin-top: 8px; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } .marks { grid-template-columns: 1fr 1fr; } .mark { padding-inline-start: 24px; } .mark:nth-child(2n+1) { border-inline-start: 0; padding-inline-start: 0; } .frame::after { transform: translate(-10px, 10px); } }
@media (max-width: 560px) { .marks { grid-template-columns: 1fr; } .mark { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--rule-2); padding-top: 18px; } .mark:first-child { border-top: 0; } }

/* ---------- figures (optional) ---------- */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-block: 1px solid var(--rule); }
.figure { padding: 34px 24px; border-inline-start: 1px solid var(--rule-2); text-align: center; }
.figure:first-child { border-inline-start: 0; }
.figure b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; }
.figure span { display: block; color: var(--ink-3); font-size: 14px; margin-top: 10px; letter-spacing: 0.04em; }

/* ---------- services ---------- */
.services { background: var(--white); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.ring-wrap { position: sticky; top: calc(var(--nav-h) + 24px); }
.ring { width: 100%; height: auto; display: block; overflow: visible; }
.ring .arc { fill: none; stroke: var(--rule); stroke-width: 10; stroke-linecap: butt; transition: stroke var(--dur) var(--ease), stroke-width var(--dur) var(--ease); }
.ring .arc.on { stroke: var(--gold); stroke-width: 14; }
.ring .node circle { fill: var(--white); stroke: var(--rule); stroke-width: 1.5; transition: stroke var(--dur), fill var(--dur); }
.ring .node.on circle { stroke: var(--gold); }
.ring .node .ic { color: var(--ink-3); transition: color var(--dur); }
.ring .node.on .ic { color: var(--gold-d); }
.ring .node text { font-family: var(--display); font-size: 14.5px; font-weight: 600; fill: var(--ink-3); transition: fill var(--dur); }
.ring .node.on text { fill: var(--ink); }
.ring .core { fill: var(--paper); stroke: var(--gold-l); stroke-width: 1; }
.ring .core-t { font-family: var(--display); font-size: 22px; font-weight: 600; fill: var(--ink); }
.ring .core-s { font-family: var(--body); font-size: 12px; fill: var(--ink-3); letter-spacing: 0.06em; }
.ring .core-gem { fill: none; stroke: var(--gold); stroke-width: 1.4; }
.ring .tick { stroke: var(--rule); stroke-width: 1; }
.svc-list { display: grid; border-top: 1px solid var(--rule); }
.svc { display: grid; grid-template-columns: 48px 44px 1fr; gap: 22px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--rule); transition: background var(--dur); position: relative; cursor: default; }
.svc .n { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.1em; padding-top: 8px; direction: ltr; text-align: right; transition: color var(--dur); }
.svc .ico { width: 34px; height: 34px; color: var(--ink-3); margin-top: 4px; transition: color var(--dur); }
.svc h3 { font-size: 26px; font-weight: 600; transition: transform var(--dur) var(--ease); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.svc h3 .code { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--gold-1); border: 1px solid rgba(180, 138, 60, 0.4); border-radius: 999px; padding: 3px 10px; direction: ltr; unicode-bidi: isolate; }
.svc p { color: var(--ink-2); font-size: 15.5px; margin-top: 8px; max-width: 54ch; }
.svc.on .n, .svc:hover .n, .svc.on .ico, .svc:hover .ico { color: var(--gold-d); }
.svc.on h3 { transform: translateX(-6px); }
.svc.on::before { content: ''; position: absolute; top: 0; bottom: -1px; right: -22px; width: 3px; background: var(--metal); }
.svc-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(48px, 7vh, 90px); }
.svc-gallery figure { margin: 0; position: relative; overflow: hidden; }
.svc-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.svc-gallery figcaption { position: absolute; bottom: 0; right: 0; background: var(--ink); color: var(--on); font-size: 12px; letter-spacing: 0.12em; padding: 10px 16px; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr; } .ring-wrap { position: static; max-width: 520px; margin-inline: auto; } .svc.on::before { right: -12px; } }
@media (max-width: 600px) { .svc { grid-template-columns: 36px 1fr; } .svc .ico { display: none; } .svc-gallery { grid-template-columns: 1fr; } }

/* ---------- model (dark) ---------- */
.model-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.flows { display: grid; border-top: 1px solid var(--rule-d); margin-top: 34px; }
.flow-row { display: grid; grid-template-columns: 30px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--rule-d); }
.flow-row .gem { width: 15px; height: 15px; stroke: var(--gold-l); margin-top: 8px; }
.flow-row b { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; }
.flow-row span { display: block; color: var(--on-2); font-size: 15px; margin-top: 4px; }
.hub { width: 100%; height: auto; display: block; overflow: visible; }
.hub .nd { fill: var(--char-2); stroke: var(--rule-d); stroke-width: 1; }
.hub .nd-core { fill: var(--on); stroke: var(--gold-l); stroke-width: 1; }
.hub .nt { font-family: var(--display); font-weight: 600; font-size: 20px; fill: var(--on); }
.hub .nt-core { font-family: var(--display); font-weight: 700; font-size: 22px; fill: var(--ink); }
.hub .ns-core { font-family: var(--body); font-size: 11px; fill: var(--ink-3); letter-spacing: 0.08em; }
.hub .base { fill: none; stroke: rgba(243, 238, 228, 0.16); stroke-width: 1.2; }
.hub .flow { fill: none; stroke: var(--gold-l); stroke-width: 1.6; stroke-dasharray: 5 9; animation: flow 1.8s linear infinite; }
.hub .flow.back { stroke: var(--on-2); }
@keyframes flow { to { stroke-dashoffset: -28; } }
.hub .lb { fill: var(--char); stroke: var(--rule-d); stroke-width: 1; }
.hub .lt { font-family: var(--body); font-size: 12px; fill: var(--on); }
.hub .lt.back { fill: var(--on-2); }
.hub-legend { display: flex; gap: 26px; margin-top: 18px; color: var(--on-2); font-size: 13px; flex-wrap: wrap; }
.hub-legend span { display: inline-flex; align-items: center; gap: 10px; }
.hub-legend i { width: 28px; height: 0; border-top: 2px dashed var(--gold-l); }
.hub-legend i.back { border-top-color: var(--on-2); }
@media (max-width: 960px) { .model-grid { grid-template-columns: 1fr; } }

/* ---------- journey ---------- */
.journey { background: var(--ivory); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; position: relative; padding-top: 46px; }
.steps::before { content: ''; position: absolute; top: 20px; inset-inline: 10%; height: 1px; background: var(--rule); }
.steps .draw { position: absolute; top: 20px; right: 10%; height: 1px; width: 0; background: var(--metal); transition: width 1800ms var(--ease); }
.steps.in .draw { width: 80%; }
.step { position: relative; }
.step .gem { position: absolute; top: -36px; right: calc(50% - 11px); width: 22px; height: 22px; fill: var(--ivory); stroke: var(--gold); stroke-width: 1.5; }
.step .k { font-family: var(--display); font-size: 13px; letter-spacing: 0.14em; color: var(--gold-d); font-weight: 600; direction: ltr; text-align: center; display: block; }
.step h3 { font-size: 21px; margin-top: 10px; text-align: center; }
.step p { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; text-align: center; }
.step .d { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); text-align: center; font-size: 13px; }
.step .d b { display: block; color: var(--gold-d); font-size: 11px; letter-spacing: 0.14em; font-weight: 700; margin-bottom: 4px; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr; gap: 0; padding-top: 0; padding-right: 34px; } .steps::before { inset-inline: auto; right: 9px; top: 0; bottom: 0; width: 1px; height: auto; } .steps .draw { right: 9px; top: 0; width: 1px; height: 0; transition: height 1800ms var(--ease); } .steps.in .draw { width: 1px; height: 100%; } .step { padding: 18px 0 26px; } .step .gem { top: 22px; right: -34px; } .step .k, .step h3, .step p, .step .d { text-align: right; } }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.work-media { position: sticky; top: calc(var(--nav-h) + 24px); }
.work-media .frame img { aspect-ratio: 3 / 4; }
.work-list { display: grid; border-top: 1px solid var(--rule); }
.work-item { display: grid; grid-template-columns: 84px 1fr; gap: 24px; padding: 36px 0; border-bottom: 1px solid var(--rule); }
.work-item .n { font-family: var(--display); font-weight: 600; font-size: 44px; line-height: 1; color: var(--gold-l); direction: ltr; text-align: right; }
.work-item .tag { display: inline-block; font-size: 11.5px; letter-spacing: 0.14em; font-weight: 700; color: var(--gold-d); border: 1px solid var(--gold-l); padding: 5px 12px; margin-bottom: 14px; }
.work-item h3 { font-size: 30px; }
.work-item p { color: var(--ink-2); font-size: 15.5px; margin-top: 10px; max-width: 60ch; }
@media (max-width: 960px) { .work-grid { grid-template-columns: 1fr; } .work-media { position: static; max-width: 520px; } .work-item { grid-template-columns: 56px 1fr; } .work-item .n { font-size: 32px; } }

/* ---------- why (cinematic) ---------- */
.why { position: relative; color: var(--on); overflow: hidden; background: var(--black); padding: clamp(100px, 14vh, 180px) 0; }
.why-media { position: absolute; inset: 0; }
.why-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.why-shade { position: absolute; inset: 0; background: linear-gradient(to left, rgba(12, 12, 12, 0.92), rgba(12, 12, 12, 0.7) 55%, rgba(12, 12, 12, 0.45)); }
.why .container { position: relative; }
.why-quote { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.6vw, 56px); line-height: 1.35; max-width: 20ch; margin-top: 22px; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 80px); margin-top: clamp(44px, 7vh, 80px); border-top: 1px solid var(--rule-d); }
.why-item { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--rule-d); }
.why-item .n { font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--gold-l); direction: ltr; text-align: right; line-height: 1.2; }
.why-item b { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; }
.why-item span { display: block; color: var(--on-2); font-size: 15px; margin-top: 6px; }
@media (max-width: 800px) { .why-list { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.contact-list { display: grid; margin-top: 30px; border-top: 1px solid var(--rule); }
.ci { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--rule); transition: color var(--dur); }
a.ci:hover { color: var(--gold-d); }
.ci .cico { width: 48px; height: 48px; border: 1px solid var(--gold-l); display: grid; place-items: center; color: var(--gold-d); }
.ci .cico svg { width: 20px; height: 20px; }
.ci b { display: block; font-size: 11.5px; letter-spacing: 0.14em; color: var(--ink-3); font-weight: 700; }
.ci span { display: block; font-size: 17px; margin-top: 3px; unicode-bidi: plaintext; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.socials a { border: 1px solid var(--rule); padding: 9px 18px; font-size: 14px; color: var(--ink-2); }
.socials a:hover { border-color: var(--gold); color: var(--ink); }
.form { display: grid; gap: 22px; padding: 40px; background: var(--white); border: 1px solid var(--rule-2); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 12px; letter-spacing: 0.1em; color: var(--ink-3); font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--rule); padding: 12px 0; color: var(--ink); font-size: 16.5px; transition: border-color var(--dur); border-radius: 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--gold); outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.form-note { color: var(--ink-3); font-size: 13px; }
.form-thanks { padding: 16px 18px; border: 1px solid var(--gold); color: var(--gold-d); font-weight: 700; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } .form { padding: 26px 20px; } }

/* ---------- footer ---------- */
.footer { position: relative; background: var(--black); color: var(--on-2); overflow: hidden; padding: clamp(64px, 9vh, 110px) 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-bg { position: absolute; inset: 0; opacity: 0.55; }
.footer-bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; transform: scaleX(-1); }
.footer-shade { position: absolute; inset: 0; background: linear-gradient(to left, rgba(12, 12, 12, 0.98) 0%, rgba(12, 12, 12, 0.9) 45%, rgba(12, 12, 12, 0.35) 100%); }
.footer .container { position: relative; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr)); gap: 32px; }
.footer .brand { align-items: flex-start; }
.footer .brand img { height: 64px; }
.footer .brand b { color: var(--on); font-size: 17px; }
.footer .brand span { color: var(--on-3); }
.footer-desc { color: var(--on-3); font-size: 14px; margin-top: 18px; max-width: 40ch; }
.footer h4 { color: var(--on); font-size: 14px; letter-spacing: 0.12em; font-weight: 600; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.footer ul a:hover { color: var(--on); }
.footer-bottom { margin-top: clamp(40px, 6vh, 64px); padding-top: 20px; border-top: 1px solid var(--rule-d); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--on-3); }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
