/* Self-hosted fonts (SIL Open Font License). No third-party requests. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }

/* Layout idea: one ray of light, cast from the foot of the F, sets every diagonal on the page;
   everything else is square, hairline-ruled and still. Single theme by choice. */
:root {
  color-scheme: light;
  --navy: #0f172a;
  --gold: #c29546;
  --bronze: #86652a;      /* gold darkened for small text on light grounds */
  --paper: #f8fafc;
  --white: #ffffff;
  --line: #e2e8f0;
  --slate: #475569;       /* body text on light */
  --mist: #a9b4c6;        /* body text on navy */
  --navy-line: rgba(248, 250, 252, 0.14);
  --display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
svg { display: block; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--paper);
}
.hero-art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(56vw, 680px);
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.hero-art .outline { fill: none; stroke: var(--navy-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-art .fan line {
  stroke: var(--navy-line); stroke-width: 1; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: draw 1.6s cubic-bezier(.2,.7,.2,1) both;
}
.hero-art .fan line:nth-child(2) { animation-delay: .12s; }
.hero-art .fan line:nth-child(3) { animation-delay: .24s; }
.hero-art .fan line:nth-child(4) { animation-delay: .36s; }
.hero-art .fan line:nth-child(5) { animation-delay: .48s; }
.hero-art .beam { fill: var(--gold); animation: rise 1.4s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }

.hero .wrap { position: relative; }
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--navy-line);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--paper);
}
.logo svg { width: 54px; height: 54px; flex: none; }
.wordmark { display: grid; gap: 7px; }
.wordmark .name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
}
.wordmark .suffix {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.46em;
  color: var(--gold);
  white-space: nowrap;
}
.wordmark .suffix::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: .55; }

.thesis {
  display: grid;
  gap: 28px;
  max-width: 640px;
  padding: clamp(64px, 11vw, 132px) 0 clamp(72px, 12vw, 148px);
}
.thesis .eyebrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; color: var(--gold); }
.thesis .eyebrow [lang="ar"] {
  font-size: 1.5rem; font-weight: 400; letter-spacing: 0; line-height: 1; text-transform: none;
}
.thesis h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.thesis h1 span { display: block; }
.thesis h1 em { font-style: italic; color: var(--gold); }
.thesis .lede { max-width: 46ch; color: var(--mist); font-size: 1.0625rem; }

/* ---------- About ---------- */
.about { padding: clamp(80px, 12vw, 152px) 0; background: var(--white); border-bottom: 1px solid var(--line); }
.about .wrap { display: grid; justify-items: center; gap: 30px; text-align: center; }
.about .eyebrow { color: var(--bronze); }
.about .rule { width: 1px; height: 56px; background: var(--gold); }
.about h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; max-width: 18ch; }
.about p.copy {
  max-width: 62ch;
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--slate);
}

/* ---------- Split sections ---------- */
.sections { display: grid; gap: clamp(32px, 5vw, 56px); padding: clamp(56px, 8vw, 104px) 0; }
.split {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -36px rgba(15, 23, 42, 0.35);
  background: var(--white);
  border: 1px solid var(--line);
}
.strip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
}
.strip h2 {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.split--portfolio .strip { background: var(--navy); color: var(--paper); }
.split--values .strip { background: var(--gold); color: var(--navy); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);   /* shows through the gaps as hairlines */
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(28px, 3.4vw, 48px) clamp(24px, 3vw, 40px) clamp(36px, 4vw, 56px);
  background: var(--white);
  position: relative;
}
.card::before {            /* gilded top edge, grows on hover */
  content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 48px; background: var(--gold);
  transition: width .35s ease;
}
.card:hover::before { width: 100%; }
.card .num {
  font-family: var(--display);
  font-size: 2.875rem;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--line);
  -webkit-text-stroke: 1px var(--gold);
}
.card h3 { font-size: 1.625rem; line-height: 1.15; }
.card h3 small {
  display: block;
  margin-top: 8px;
  font-family: var(--body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
}
.card h3 small [lang="ar"] { font-size: 1rem; letter-spacing: 0; font-weight: 400; }
.card p { color: var(--slate); font-size: 0.9688rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--mist); font-size: 0.875rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 36px 48px;
  padding: 64px 0 48px;
}
.footer-brand { display: flex; align-items: center; gap: 16px; color: var(--paper); align-self: start; }
.footer-brand svg { width: 48px; height: 48px; flex: none; }
.footer-brand strong { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.04em; }
.footer h3 {
  font-family: var(--body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.footer address { font-style: normal; }
.footer a { color: var(--paper); text-decoration-color: var(--gold); text-underline-offset: 4px; overflow-wrap: anywhere; }
.footer .reg { font-variant-numeric: tabular-nums; }
.footer-base { padding: 22px 0 30px; border-top: 1px solid var(--navy-line); font-size: 0.8125rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-art { opacity: .4; width: min(86vw, 560px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .split { grid-template-columns: 1fr; }
  .strip { justify-content: flex-start; padding: 18px 24px; }
  .strip h2 { writing-mode: horizontal-tb; transform: none; font-size: 1.5rem; letter-spacing: 0.08em; white-space: normal; }
  .footer-grid { grid-template-columns: 1fr; padding-top: 48px; }
  .logo svg { width: 46px; height: 46px; }
  .wordmark .name { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art .fan line, .hero-art .beam { animation: none; }
  .card::before { transition: none; }
}

/* ---------- Utilities ---------- */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 404 page ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr; }
.notfound .thesis { align-content: center; padding: clamp(48px, 9vw, 96px) 0; }
.notfound .code { font-family: var(--display); font-size: clamp(5rem, 16vw, 9rem); line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--gold); font-variant-numeric: lining-nums; }
.btn { display: inline-block; justify-self: start; padding: 14px 28px; border: 1px solid var(--gold); color: var(--paper); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s; }
.btn:hover { background: var(--gold); color: var(--navy); }
