/* Enki Pharma — "baked clay and river water"
   Primary: Mesopotamian terracotta (hue 40). Ink: deep river blue (hue 250).
   Body: pure white so the clay carries the warmth. */
:root {
  --clay: oklch(0.50 0.151 40);
  --clay-deep: oklch(0.40 0.13 38);
  --clay-soft: oklch(0.93 0.035 45);
  --river: oklch(0.27 0.06 245);
  --river-2: oklch(0.34 0.07 240);
  --water: oklch(0.72 0.08 215);
  --ink: oklch(0.22 0.03 250);
  --ink-2: oklch(0.40 0.025 250);
  --line: oklch(0.88 0.01 250);
  --white: oklch(1 0 0);

  --f-display: "Zodiak", Georgia, "Times New Roman", serif;
  --f-body: "Switzer", "Helvetica Neue", Arial, sans-serif;

  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: clamp(5rem, 10vw, 9rem);
  --wrap: min(1240px, 100% - 2 * clamp(1.25rem, 4vw, 3rem));
  --ease: cubic-bezier(.22, 1, .36, 1);

  --z-sticky: 10; --z-menu: 20; --z-skip: 30;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: var(--z-skip); background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: .4rem; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--water); outline-offset: 3px; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  font-weight: 600; font-size: 1rem; padding: .95rem 1.6rem; border-radius: 999px;
  background: var(--ink); color: var(--white);
  transition: transform .4s var(--ease), background-color .3s;
}
.btn:hover { transform: translateY(-2px); background: var(--river-2); }
.btn-small { padding: .6rem 1.15rem; font-size: .9375rem; }
.btn-light { background: var(--white); color: var(--clay-deep); }
.btn-light:hover { background: var(--clay-soft); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .45rem; align-items: center; }
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-sticky);
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem max(calc((100% - 1240px) / 2), clamp(1.25rem, 4vw, 3rem));
  color: var(--white); transition: background-color .4s, color .4s, box-shadow .4s, padding .4s var(--ease);
}
.nav.is-solid { background: oklch(1 0 0 / .94); color: var(--ink); box-shadow: 0 1px 0 var(--line); padding-block: .7rem; backdrop-filter: saturate(1.4) blur(10px); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.mark { width: 2.1rem; height: 2.1rem; }
.brand-word { font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-word em { font-style: normal; font-weight: 400; }
.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .9688rem; opacity: .9; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav .btn-small { background: var(--white); color: var(--clay-deep); }
.nav.is-solid .btn-small { background: var(--ink); color: var(--white); }
.menu-toggle { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; margin: auto; transition: transform .35s var(--ease); }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: var(--z-menu); background: var(--river); color: var(--white); display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; padding: 2rem clamp(1.25rem, 6vw, 3rem); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--f-display); font-size: 2.2rem; text-decoration: none; }
body.menu-open .nav { color: var(--white); background: transparent; box-shadow: none; z-index: calc(var(--z-menu) + 1); }

@media (max-width: 900px) {
  .nav-links, .nav .btn-small { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--clay); color: var(--white); overflow: hidden; padding-top: clamp(7rem, 14vh, 9rem); isolation: isolate; }
.wedges { position: absolute; inset: 0; width: 100%; height: 100%; color: oklch(1 0 0 / .055); z-index: -1; }
.hero-inner { width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero-tag { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; font-size: .9375rem; padding: .4rem .9rem; border: 1px solid oklch(1 0 0 / .35); border-radius: 999px; margin-bottom: 1.8rem; }
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px oklch(1 0 0 / .2); }
.hero-title { font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 400; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: block; }
.hero-lede { max-width: 36rem; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.6; margin-top: 1.8rem; color: oklch(0.98 0.01 45); }
.hero-lede strong { font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; margin-top: 2.4rem; }

.hero-figure { position: relative; margin: 0; justify-self: end; width: min(100%, 460px); }
.arch { border-radius: 999px 999px 1.2rem 1.2rem; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -30px oklch(0.25 0.1 40 / .6); }
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.seal { position: absolute; left: -2.2rem; bottom: 2.5rem; width: 8.5rem; height: 8.5rem; border-radius: 50%; background: var(--river); color: var(--white); display: grid; place-items: center; }
.seal svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 32s linear infinite; }
.seal text { fill: currentColor; font: 600 9.4px var(--f-body); letter-spacing: .18em; }
.seal-mark { width: 2.6rem; height: 2.6rem; color: var(--water); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid oklch(1 0 0 / .25); width: var(--wrap); margin-inline: auto; }
.hero-strip li { padding: 1.4rem 1rem 1.6rem 0; font-size: .9375rem; color: oklch(0.96 0.02 45); }
.hero-strip li + li { padding-left: 1.4rem; border-left: 1px solid oklch(1 0 0 / .25); }
.hero-strip span { display: block; font-family: var(--f-display); font-size: 1.6rem; color: var(--white); line-height: 1.2; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { justify-self: center; width: min(100%, 360px); }
  .seal { left: -1rem; width: 7rem; height: 7rem; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-strip li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-strip li:nth-child(n+3) { border-top: 1px solid oklch(1 0 0 / .25); }
}

/* ---------- story ---------- */
.story { padding: var(--s6) 0 0; position: relative; }
.story-grid { width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); }
.story-title { font-size: clamp(2.1rem, 4.2vw, 3.6rem); color: var(--clay-deep); position: sticky; top: 7rem; align-self: start; }
.story-body { display: grid; gap: 1.4rem; max-width: 40rem; color: var(--ink-2); }
.story-body .big { font-family: var(--f-display); font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.42; color: var(--ink); }
.water { margin-top: var(--s6); height: 120px; color: var(--water); }
.water svg { width: 100%; height: 100%; }
.water path { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.water .w2 { opacity: .55; } .water .w3 { opacity: .3; }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-title { position: static; }
}

/* ---------- work ---------- */
.work { background: var(--river); color: var(--white); padding: var(--s6) 0; display: grid; grid-template-columns: var(--wrap); justify-content: center; gap: var(--s5); }
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; }
.work-head h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.work-head p { max-width: 24rem; color: oklch(0.86 0.03 230); font-size: 1.125rem; }
.work-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid oklch(1 0 0 / .18); }
.work-item { padding: 2.2rem 2.5rem 2.6rem 0; border-bottom: 1px solid oklch(1 0 0 / .18); display: grid; gap: .8rem; align-content: start; }
.work-item:nth-child(even) { padding-left: 2.5rem; padding-right: 0; border-left: 1px solid oklch(1 0 0 / .18); }
.work-item h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--white); }
.work-item h3::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .5em; background: var(--clay); clip-path: polygon(0 0, 100% 0, 50% 100%); vertical-align: .08em; }
.work-item p { color: oklch(0.88 0.025 230); max-width: 34rem; }
.work-photo { margin: 0; border-radius: 1.2rem; overflow: hidden; aspect-ratio: 21 / 9; }
.work-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .work-list { grid-template-columns: 1fr; }
  .work-item, .work-item:nth-child(even) { padding: 1.8rem 0; border-left: 0; }
  .work-photo { aspect-ratio: 4 / 3; }
}

/* ---------- bridge ---------- */
.bridge { width: var(--wrap); margin-inline: auto; padding: var(--s6) 0; }
.bridge-title { font-size: clamp(2.3rem, 5vw, 4.2rem); max-width: 14ch; margin-bottom: var(--s5); }
.bridge-grid { display: grid; grid-template-columns: 1fr 60px 1fr; gap: clamp(1rem, 3vw, 3rem); }
.bridge-side { display: grid; gap: 1rem; align-content: start; padding: 2.4rem; border-radius: 1.2rem; }
.bridge-side.uk { background: oklch(0.96 0.012 245); }
.bridge-side.iq { background: var(--clay-soft); }
.place { font-family: var(--f-display); font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.1; }
.uk .place { color: var(--river-2); } .iq .place { color: var(--clay-deep); }
.bridge-side h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.125rem; letter-spacing: 0; }
.bridge-side p:not(.place):not(.domain) { color: var(--ink-2); }
.domain { margin-top: .6rem; font-weight: 600; font-size: .9375rem; }
.bridge-line { color: var(--water); align-self: stretch; position: relative; }
.bridge-line svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bridge-line path { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 6 8; vector-effect: non-scaling-stroke; animation: flow 3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
@media (max-width: 760px) {
  .bridge-grid { grid-template-columns: 1fr; }
  .bridge-line { display: none; }
}

/* ---------- group ---------- */
.group { background: var(--ink); color: var(--white); padding: var(--s6) 0; }
.group-inner { width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.group-copy { display: grid; gap: 1.3rem; }
.group-copy h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
.group-copy p { color: oklch(0.86 0.015 250); max-width: 36rem; }
.link-arrow.on-dark { color: oklch(0.85 0.09 45); margin-top: .5rem; }
.group-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid oklch(1 0 0 / .16); border-radius: 1.2rem; overflow: hidden; }
.group-facts div { padding: 1.8rem 1.6rem; border: .5px solid oklch(1 0 0 / .12); }
.group-facts dt { font-family: var(--f-display); font-size: clamp(2.2rem, 3.6vw, 3rem); color: oklch(0.80 0.11 45); line-height: 1; }
.group-facts dd { margin: .6rem 0 0; color: oklch(0.86 0.015 250); font-size: .9688rem; }
@media (max-width: 900px) { .group-inner { grid-template-columns: 1fr; } }

/* ---------- process ---------- */
.process { width: var(--wrap); margin-inline: auto; padding: var(--s6) 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) clamp(2rem, 6vw, 6rem); }
.process-head { grid-column: 1 / -1; display: grid; gap: .8rem; }
.process-head h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); color: var(--clay-deep); }
.process-head p { color: var(--ink-2); font-size: 1.125rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.4rem 1fr; column-gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: span 2; font-family: var(--f-display); font-size: 2.4rem; line-height: 1; color: var(--clay); }
.steps h3 { font-size: 1.5rem; }
.steps p { color: var(--ink-2); margin-top: .35rem; }
.process-photo { margin: 0; border-radius: 1.2rem; overflow: hidden; align-self: stretch; min-height: 22rem; }
.process-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr; } .process-photo { min-height: 16rem; } }

/* ---------- contact ---------- */
.contact { background: var(--clay); color: var(--white); padding: var(--s6) 0; position: relative; overflow: hidden; }
.contact-inner { width: var(--wrap); margin-inline: auto; }
.contact h2 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 400; letter-spacing: -0.035em; }
.contact-lede { max-width: 38rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); margin-top: 1.2rem; color: oklch(0.97 0.015 45); }
.contact-ways { margin-top: var(--s5); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid oklch(1 0 0 / .3); }
.contact-way { text-decoration: none; padding: 1.6rem 1.5rem 1.6rem 0; display: grid; gap: .35rem; transition: background-color .3s; }
.contact-way + .contact-way { padding-left: 1.5rem; border-left: 1px solid oklch(1 0 0 / .3); }
.contact-way .label { font-size: .9375rem; color: oklch(0.94 0.03 45); }
.contact-way .value { font-family: var(--f-display); font-size: clamp(1.25rem, 2vw, 1.6rem); overflow-wrap: anywhere; }
.contact-way:hover .value { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
@media (max-width: 860px) {
  .contact-way + .contact-way { padding-left: 0; border-left: 0; border-top: 1px solid oklch(1 0 0 / .3); }
}

/* ---------- footer ---------- */
.foot { background: var(--ink); color: oklch(0.84 0.015 250); padding: 3rem 0; font-size: .9375rem; }
.foot-inner { width: var(--wrap); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; }
.foot-brand { display: flex; align-items: center; gap: .8rem; color: var(--white); }
.foot-brand p { color: oklch(0.84 0.015 250); line-height: 1.45; }
.foot-brand strong { color: var(--white); font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; }

/* ---------- motion ---------- */
.js .hero-title .line > span { transform: translateY(105%); }
.js.ready .hero-title .line > span { transform: none; transition: transform 1.1s var(--ease); }
.js.ready .hero-title .line:nth-child(2) > span { transition-delay: .1s; }
.js.ready .hero-title .line:nth-child(3) > span { transition-delay: .2s; }
.js .arch img { transform: scale(1.18); }
.js.ready .arch img { transform: scale(1.04); transition: transform 1.8s var(--ease); }
.js .water path { stroke-dasharray: 1600; stroke-dashoffset: 1600; }
.js .water.in path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease); }
.js .water.in .w2 { transition-delay: .2s; } .js .water.in .w3 { transition-delay: .4s; }
.js .steps li { opacity: .001; transform: translateY(18px); }
.js .steps.in li { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .steps.in li:nth-child(2) { transition-delay: .1s; } .js .steps.in li:nth-child(3) { transition-delay: .2s; } .js .steps.in li:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-title .line > span, .js .arch img, .js .steps li { transform: none; opacity: 1; }
  .js .water path { stroke-dashoffset: 0; }
}
