/* Wadi Al-Shaam layout and components. Tokens live in theme.css. Logical properties only (RTL and LTR share rules).
   One motif runs the page: the bore's round cross-section (photo masks, bullets, the plate, the process diagram).
   House rules: no gradients, no shadows at rest, no thin rules, five type sizes, one button shape (pill). */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 200 800; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face {
  font-family: "Noto Kufi Arabic"; font-weight: 100 900; font-display: swap;
  src: url("/fonts/noto-kufi-arabic-arabic-wght-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Noto Naskh Arabic"; font-weight: 400 700; font-display: swap;
  src: url("/fonts/noto-naskh-arabic-arabic-wght-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
/* Arial resized toward the web fonts' widths so the swap does not move the layout (tuned by measuring CLS) */
@font-face { font-family: "Display Fallback"; src: local("Arial"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; size-adjust: 104%; ascent-override: 96%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Body Fallback"; src: local("Arial"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
/* --rail is the borehole column; the page keeps the same margin on both sides of it, so the frame stays centred. */
:root { --m: clamp(1rem, 4vw, 2rem); --rail: 0rem; --strata: clamp(4.5rem, 10vw, 9rem); }
@media (min-width: 80rem) { :root { --rail: 10.5rem; } }
body { margin: 0; min-block-size: 100dvh; display: flex; flex-direction: column; background: var(--l0); color: var(--ink); font-family: var(--font-body); font-size: var(--t-body); font-weight: 420; line-height: 1.6; }
html:lang(ar) body, html:lang(ckb) body { line-height: 1.9; }
main { flex: 1; }
.wrap { inline-size: min(100% - 2 * (var(--rail) + var(--m)), 72rem); margin-inline: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus, var(--ink)); outline-offset: 3px; }
.skip-link { position: absolute; inset-inline-start: 1rem; inset-block-start: -4rem; z-index: 40; padding: 0.6rem 1rem; background: var(--accent); color: var(--ink); border-radius: var(--pill); }
.skip-link:focus { inset-block-start: 1rem; }
img { max-inline-size: 100%; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); text-wrap: balance; color: var(--fg); }
h1 { font-size: var(--t-display); font-weight: 800; line-height: 0.95; letter-spacing: -0.035em; }
h2 { font-size: var(--t-head); font-weight: 750; line-height: 1.04; letter-spacing: -0.025em; }
h3 { font-size: var(--t-lead); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
html:lang(ar) :is(h1, h2, h3), html:lang(ckb) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; font-weight: 800; }
html:lang(ar) h1, html:lang(ckb) h1 { font-size: clamp(2.75rem, 1rem + 5vw, 5.5rem); }
html:lang(ar) h2, html:lang(ckb) h2 { font-size: clamp(1.75rem, 1rem + 2.1vw, 2.75rem); }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: var(--t-lead); line-height: 1.35; max-inline-size: 34ch; }
.note { color: var(--fg-muted); max-inline-size: 60ch; }
/* Placeholder wording the owner still has to confirm: a small outlined chip, so it reads as a draft marker, not as copy. */
.note.draft { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0.8rem; border: 1px dashed color-mix(in oklab, currentColor 45%, transparent); border-radius: var(--pill); font-size: var(--t-small); }
.note.draft::before { content: ''; inline-size: 0.4rem; block-size: 0.4rem; border-radius: 50%; background: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-block-size: 2.75rem; padding: 0.65rem 1.3rem; background: var(--btn-bg, var(--accent)); color: var(--btn-fg, var(--ink)); font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; border: 0; border-radius: var(--pill); cursor: pointer; transition: transform 0.25s var(--ease-out), background-color 0.25s var(--ease-out), color 0.25s var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn-large { min-block-size: 3.25rem; padding-inline: 1.7rem; }
.btn-quiet { background: transparent; color: var(--fg); border: 2px solid var(--fg); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ===== Header ===== */
.info-bar { background: var(--l7); color: #C5CAD1; font-size: var(--t-small); position: relative; z-index: 8; }
.info-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.45rem; }
.info-bar ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.callback { padding: 0.3rem 0.9rem; border-radius: var(--pill); background: var(--l4); color: var(--on-dark); font-weight: 650; text-decoration: none; transition: background-color 0.25s, color 0.25s; }
.callback:hover, .callback:focus-visible { background: var(--accent); color: var(--ink); }
@media (max-width: 40rem) { .info-bar li:nth-child(n + 2) { display: none; } }
.site-bar { background: var(--bg); color: var(--fg); position: relative; z-index: 7; }
.bar { display: flex; align-items: center; gap: 0.5rem 1.5rem; padding-block: 0.85rem; }
.logo { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--on-dark); }
.logo-w { fill: none; stroke: currentColor; stroke-width: 9; stroke-linejoin: miter; stroke-miterlimit: 3; }
.logo-well { fill: none; stroke: var(--accent); stroke-width: 3.5; }
.logo-text { font-family: var(--font-display); font-size: var(--t-body); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
html:lang(ar) .logo-text, html:lang(ckb) .logo-text { font-size: var(--t-lead); letter-spacing: 0; }
.site-nav { display: flex; gap: 0 1.1rem; margin-inline-end: auto; }
.site-nav a, .lang a { padding-block: 0.5rem; text-decoration: none; font-weight: 600; white-space: nowrap; }
.lang a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 0.45em; }
.lang { display: flex; gap: 0.25rem; }
.lang a { padding-inline: 0.5rem; color: var(--fg-muted); }
.lang a[aria-current='true'] { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 0.45em; }
.lang-dd { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.7rem; border: 1px solid var(--line, currentColor); border-radius: var(--pill); background: transparent; color: var(--fg); font: 600 var(--t-small)/1 var(--font-body, inherit); cursor: pointer; }
.lang-btn:hover, .lang-btn:focus-visible { border-color: var(--accent); }
.lang-btn .caret { transition: transform 0.25s var(--ease-out); }
.lang-menu { position: absolute; inset-block-start: 100%; inset-inline-end: 0; z-index: 12; min-inline-size: 100%; margin: 0; padding: 0.35rem; list-style: none; background: var(--l5); color: var(--on-dark); border: 1px solid var(--l4); border-radius: 0.75rem; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.2s, transform 0.2s var(--ease-out), visibility 0s linear 0.2s; }
/* The invisible bridge keeps the menu open while the pointer travels from the button to it. */
.lang-menu::before { content: ''; position: absolute; inset-inline: 0; inset-block-end: 100%; block-size: 0.6rem; }
.lang-dd:hover .lang-menu, .lang-dd:focus-within .lang-menu, .lang-dd.open .lang-menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.2s var(--ease-out), visibility 0s; }
.lang-dd:hover .caret, .lang-dd:focus-within .caret, .lang-dd.open .caret { transform: rotate(180deg); }
.lang-menu a { display: block; padding: 0.5rem 0.75rem; border-radius: 0.5rem; text-decoration: none; font-weight: 600; white-space: nowrap; color: var(--on-dark); }
.lang-menu a:hover, .lang-menu a:focus-visible, .lang-menu a[aria-current='true']:hover { background: var(--accent); color: var(--ink); }
.lang-menu a[aria-current='true'] { background: var(--l4); box-shadow: inset 3px 0 0 var(--accent); }
html[dir='rtl'] .lang-menu a[aria-current='true'] { box-shadow: inset -3px 0 0 var(--accent); }
.bar > .btn { flex: none; }
@media (min-width: 52rem) {
  .site-bar { position: sticky; inset-block-start: 0; transition: transform 0.5s var(--ease-out); }
  .site-bar.hide { transform: translateY(-100%); }
  .site-bar.compact .bar { padding-block: 0.5rem; }
}
/* Floating pill header on wide screens: a light rounded bar lifted off the page, as in the SteelNova template. */
@media (min-width: 52rem) {
  .site-bar { background: transparent; padding-block-start: 0.75rem; }
  body:has(.hero) .site-bar { margin-block-end: -4.75rem; }
  .site-bar .bar { inline-size: auto; margin-inline: calc(var(--rail) + var(--m)) var(--m); --fg: var(--ink); --fg-muted: #434C57; background: rgb(250 247 242 / 0.94); color: var(--ink); backdrop-filter: blur(14px); border-radius: var(--pill); padding-block: 0.5rem; padding-inline: 1.5rem 0.5rem; box-shadow: 0 0.9rem 2rem -1rem rgb(0 0 0 / 0.55); }
  .site-bar .logo { color: var(--ink); }
  .site-bar.hide .bar { box-shadow: none; }
}
/* A dark label pill above a section heading. */
.tag { display: inline-flex; align-items: center; gap: 0.5rem; margin-block-end: 1rem; padding: 0.35rem 0.95rem 0.35rem 0.8rem; border-radius: var(--pill); background: var(--ink); color: var(--on-dark); font: 600 var(--t-small)/1.2 var(--font-body); }
.tag::before { content: ''; inline-size: 0.45rem; block-size: 0.45rem; border-radius: 50%; background: var(--accent); }
.f-dark .tag { background: var(--l4); }
@media (max-width: 80rem) { .site-nav { display: none; } }
.burger { display: none; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; margin-inline-start: auto; background: var(--l4); border-radius: 50%; color: var(--on-dark); cursor: pointer; text-decoration: none; }
.burger i, .burger i::before, .burger i::after { display: block; inline-size: 1.1rem; block-size: 2px; background: currentColor; }
.burger i { position: relative; } .burger i::before, .burger i::after { content: ''; position: absolute; } .burger i::before { inset-block-start: -6px; } .burger i::after { inset-block-start: 6px; }
@media (max-width: 80rem) { .burger { display: inline-grid; } }
/* The off-canvas menu only exists where the burger does; on wide screens the bar holds every link. */
@media (min-width: 80.01rem) { html .drawer, html .scrim { display: none; } }
@media (max-width: 52rem) { .bar > .lang-dd, .bar > .btn { display: none; } }
.drawer { position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 30; inline-size: min(22rem, 88vw); padding: 5rem 1.5rem 2rem; background: var(--bg); color: var(--fg); transform: translateX(100%); visibility: hidden; overflow-y: auto; display: flex; flex-direction: column; gap: 1.5rem; transition: transform 0.6s var(--ease-out), visibility 0s linear 0.6s; }
html[dir='rtl'] .drawer { transform: translateX(-100%); }
.drawer.open, .drawer:target { transform: none; visibility: visible; transition: transform 0.6s var(--ease-out), visibility 0s; }
.drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.drawer li a { display: block; padding: 0.6rem 0; font: 650 var(--t-lead)/1.2 var(--font-display); text-decoration: none; }
.drawer .btn { align-self: start; }
.drawer-close { position: absolute; inset-block-start: 1rem; inset-inline-end: 1rem; display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; border-radius: 50%; background: var(--accent); color: var(--ink); font: 700 var(--t-lead)/1 var(--font-display); text-decoration: none; }
.scrim { position: fixed; inset: 0; z-index: 25; background: oklch(0 0 0 / 0.55); opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease-out); }
.scrim.open { opacity: 1; pointer-events: auto; }
.to-top { position: fixed; inset-block-end: 1.25rem; inset-inline-end: 1.25rem; z-index: 20; display: grid; place-items: center; inline-size: 3.5rem; block-size: 3.5rem; border: 0; border-radius: 50%; background: var(--accent); color: var(--ink); cursor: pointer; opacity: 0; transform: translateY(1rem); pointer-events: none; transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 40rem) { .to-top { inset-block-end: 1rem; inset-inline-end: 1rem; inline-size: 3rem; block-size: 3rem; } }
.to-top .ring { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 3; } .to-top .bg { stroke: oklch(0 0 0 / 0.2); } .to-top .fg { stroke: var(--ink); stroke-dasharray: 100; stroke-dashoffset: 100; } .to-top .up { inline-size: 1.2rem; }

/* ===== Borehole column: the page's table of contents, drawn as a well log. A lithology track in the standard
   geological symbols runs beside two log curves; the drill bit marks the current depth, and the rock still below
   the bit stays shaded until it is reached. Wide screens: a fixed edge column. Phones: a slim top bar. ===== */
.borehole { --curve-a: var(--on-dark); --curve-b: var(--accent); background: var(--l5); color: var(--on-dark); }
.borehole[data-tone='light'] { background: var(--l1); color: var(--ink); --curve-a: var(--ink); --curve-b: var(--accent-ink); }
.borehole .depth-now { margin: 0; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.borehole .depth-now small { font-size: var(--t-small); font-weight: 450; }
.borehole .current, .borehole .depth-note { margin: 0; font-size: var(--t-small); }
.well-log .curve { fill: none; stroke: var(--curve-a); stroke-width: 1.5; }
.well-log .curve-res { stroke: var(--curve-b); stroke-width: 2; }
.track { position: relative; }
.litho { display: flex; flex-direction: column; gap: 2px; }
.lith { display: block; min-block-size: 0; flex-basis: 0; background-size: 12px 12px; }
.rock-soil { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Crect width='12' height='12' fill='%23E4D3BC'/%3E%3Cg fill='%23A9805F'%3E%3Ccircle cx='2' cy='3' r='.9'/%3E%3Ccircle cx='8' cy='9' r='.9'/%3E%3Ccircle cx='10' cy='2' r='.6'/%3E%3C/g%3E%3C/svg%3E"); }
.rock-sandstone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Crect width='12' height='12' fill='%23F0C39C'/%3E%3Cg fill='%238C6A50'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='9' cy='9' r='1'/%3E%3C/g%3E%3C/svg%3E"); }
.rock-limestone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Crect width='12' height='12' fill='%23C79A72'/%3E%3Cpath d='M0 .5H12M0 6.5H12M3 0V6M9 6V12' stroke='%236B4E38' stroke-width='1' fill='none'/%3E%3C/svg%3E"); }
.rock-shale { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Crect width='12' height='12' fill='%2356636F'/%3E%3Cpath d='M1 3H6M7 9H11' stroke='%232C3742' stroke-width='1.3' fill='none'/%3E%3C/svg%3E"); }
.rock-dolomite { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Crect width='12' height='12' fill='%238C6A50'/%3E%3Cpath d='M0 .5H12M0 6.5H12M2 0L4 6M8 6L10 12' stroke='%234A3527' stroke-width='1' fill='none'/%3E%3C/svg%3E"); }
.rock-shale-dark { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Crect width='12' height='12' fill='%233B4752'/%3E%3Cpath d='M1 3H6M7 9H11M4 6H8' stroke='%231B232B' stroke-width='1.2' fill='none'/%3E%3C/svg%3E"); }
.rock-siltstone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Crect width='12' height='12' fill='%236E7B86'/%3E%3Ccircle cx='3' cy='3' r='.8' fill='%233B4752'/%3E%3Cpath d='M6 9H11' stroke='%233B4752' stroke-width='1.2' fill='none'/%3E%3C/svg%3E"); }
.rock-oil { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Crect width='12' height='12' fill='%23F26B21'/%3E%3Cg fill='%23B23D0A'%3E%3Ccircle cx='3' cy='3' r='1.2'/%3E%3Ccircle cx='9' cy='9' r='1.2'/%3E%3Ccircle cx='9' cy='3' r='.7'/%3E%3C/g%3E%3C/svg%3E"); }
.lith-0 { flex-grow: 400; } .lith-1 { flex-grow: 250; } .lith-2 { flex-grow: 250; } .lith-3 { flex-grow: 600; } .lith-4 { flex-grow: 300; } .lith-5 { flex-grow: 300; } .lith-6 { flex-grow: 500; } .lith-7 { flex-grow: 400; } .lith-8 { flex-grow: 200; } .lith-9 { flex-grow: 200; }
/* The rock not yet drilled is shaded; it clears as the bit passes. */
.undrilled { position: absolute; background: oklch(0.14 0.02 240 / 0.45); pointer-events: none; transform: scaleY(var(--left, 1)); transform-origin: bottom; }
.borehole[data-tone='light'] .undrilled { background: oklch(0.96 0.01 80 / 0.66); }
.bit { position: absolute; z-index: 1; inline-size: 0.95rem; aspect-ratio: 1; border-radius: 50%; background: var(--accent); border: 3px solid var(--l5); pointer-events: none; }
.borehole[data-tone='light'] .bit { border-color: var(--l1); }
.layers { margin: 0; padding: 0; list-style: none; }
.layers a { display: grid; grid-template-columns: 0.55rem minmax(0, 1fr); column-gap: 0.4rem; align-items: baseline; padding-block: 0.3rem; text-decoration: none; font-size: var(--t-small); line-height: 1.25; }
.layers a::before { content: ''; inline-size: 0.55rem; block-size: 0.55rem; border-radius: 50%; background: currentColor; transition: transform 0.4s var(--ease-out), background-color 0.4s var(--ease-out); }
.layers a:hover { text-decoration: underline; text-decoration-color: var(--curve-b); }
.layers a[aria-current='true'] { font-weight: 700; }
.layers a[aria-current='true']::before { background: var(--curve-b); transform: scale(1.4); }
.layer-depth { grid-column: 2; font-weight: 400; font-variant-numeric: tabular-nums; }
@media (min-width: 80rem) {
  .borehole { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 9; inline-size: var(--rail); display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; column-gap: 0.6rem; padding: 1rem; }
  .borehole .depth-now { grid-column: 1 / -1; margin-block-end: 0.75rem; font-size: var(--t-lead); }
  .borehole .depth-now small { display: block; }
  .borehole .current { display: none; }
  .track { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: 0.9rem 1.4rem; column-gap: 4px; }
  .litho { grid-column: 1; }
  .well-log { grid-column: 2; inline-size: 100%; block-size: 100%; }
  .undrilled { inset-block: 0; inset-inline-start: 0; inline-size: 0.9rem; }
  .bit { inset-block-start: -0.475rem; inset-inline-start: calc(0.45rem - 0.475rem); transform: translateY(var(--y, 0px)); }
  .borehole nav { grid-column: 2; grid-row: 2; min-block-size: 0; }
  .layers { display: flex; flex-direction: column; block-size: 100%; }
  .layers::before { content: ''; flex: 400 1 0; }
  .layers li { flex-basis: 0; min-block-size: 0; }
  .layers li:last-child { flex-grow: 0; flex-basis: auto; margin-block-start: auto; }
  .borehole .depth-note { grid-column: 1 / -1; margin-block-start: 0.75rem; }
}
@media (max-width: 79.99rem) {
  .borehole { position: sticky; inset-block-start: 0; z-index: 6; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 0.35rem 0.75rem; padding: 0.4rem var(--m) 0.5rem; }
  .borehole .depth-now { font-size: var(--t-body); } .borehole .depth-now small { margin-inline-start: 0.4rem; }
  .borehole .current { justify-self: end; }
  .track { grid-column: 1 / -1; block-size: 7px; }
  .litho { flex-direction: row; block-size: 100%; }
  .lith { background-size: 8px 8px; }
  .well-log, .borehole nav, .borehole .depth-note { display: none; }
  .undrilled { inset: 0; transform: scaleX(var(--left, 1)); transform-origin: right; }
  html[dir='rtl'] .undrilled { transform-origin: left; }
  .bit { inset-block-start: calc(50% - 0.45rem); inset-inline-start: -0.45rem; inline-size: 0.9rem; border-width: 2px; transform: translateX(var(--x, 0px)); }
}
@media (prefers-reduced-motion: no-preference) { .borehole { transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out); } }

/* ===== Sections ===== */
.layer, .intro { background: var(--bg); color: var(--fg); padding-block: var(--gap-section); scroll-margin-block-start: 4rem; }

/* Hero: the bore at enormous scale, cropped by the screen edge, holding the crossfading photographs */
.hero { --bore: min(94svh, 48vw); position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-block-size: min(90svh, 58rem); padding-block: 4rem 5rem; background: var(--bg); color: var(--fg); }
.bore { position: absolute; z-index: 0; inset-block-start: 50%; inset-inline-end: calc(var(--bore) * -0.2); inline-size: var(--bore); aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; overflow: hidden; background: var(--accent); }
.bore-photos img, .plate-photos > * { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease-in-out; }
.bore-photos img.on, .plate-photos > .on { opacity: 1; }
.hero-copy { position: relative; z-index: 2; }
/* --room: the width from the copy's start edge to where the circle begins (it shows 80% of its width), less a gap.
   Every line of the hero stays inside it, in every language, so no text ever sits on the photograph. */
.hero-copy { --room: calc(50vw + min(100vw - 2 * (var(--rail) + var(--m)), 72rem) / 2 - 0.8 * var(--bore) - 2.5rem); }
.hero-copy > * { max-inline-size: var(--room); }
/* The headline says what this is, so it is set a step below the display maximum to stay on two lines. */
.hero h1 { max-inline-size: var(--room); font-size: clamp(2.6rem, 0.9rem + 3.9vw, 5rem); line-height: 1; }
.hero .lead { margin-block: 1.75rem 1.5rem; max-inline-size: min(30ch, var(--room)); }
html:lang(ar) .hero h1, html:lang(ckb) .hero h1 { max-inline-size: var(--room); font-size: clamp(2.25rem, 0.6rem + 3.3vw, 4.25rem); }
/* Three short facts under the lead, each led by the bore dot. */
.ticks { list-style: none; margin: 0 0 2.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--fg-muted); font-size: 0.95rem; }
.ticks li { display: flex; align-items: center; gap: 0.5rem; }
.ticks li::before { content: ''; flex: none; inline-size: 0.5rem; block-size: 0.5rem; border-radius: 50%; background: var(--accent); }
/* The caption under the actions: a small bore, then what the photograph shows. One line at a time, crossfading. */
.slide-note { display: grid; margin-block-start: 2.25rem; color: var(--fg-muted); }
.slide-note span { grid-area: 1 / 1; display: flex; align-items: center; gap: 0.6rem; opacity: 0; transition: opacity 1.6s ease-in-out; }
.slide-note span::before { content: ''; flex: none; inline-size: 0.6rem; block-size: 0.6rem; border-radius: 50%; background: var(--accent); }
.slide-note span.on { opacity: 1; }
.hero-stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-canvas { position: absolute; inset: 0; z-index: 1; inline-size: 100%; block-size: 100%; pointer-events: none; }
.hero[data-canvas] .hero-stars { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero .rv { animation: rise 0.9s var(--ease-out) both; }
  .hero .lead.rv { animation-delay: 90ms; } .hero .ticks.rv { animation-delay: 135ms; } .hero .actions.rv { animation-delay: 180ms; }
  .bore { animation: bore-in 1.4s var(--ease-out) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes bore-in { from { opacity: 0; scale: 0.92; } }
@media (max-width: 40rem) {
  .hero { --bore: 96vw; align-items: end; min-block-size: 0; padding-block: calc(var(--bore) * 0.86 + 1.5rem) 3.5rem; }
  .hero-copy { --room: 100%; display: flex; flex-direction: column; }
  /* The primary action belongs on the first screen: it moves up, above the three tick points. */
  .hero-copy .actions { order: 3; }
  .hero-copy .ticks { order: 4; margin: 1.75rem 0 0; }
  .hero-copy .slide-note { order: 5; margin-block-start: 1.5rem; }
  .bore { inset-block-start: -10vw; translate: none; inset-inline-end: -24vw; }
}

/* The band: stage names in a slow marquee, separated by small bores */
.strip { background: var(--accent); color: var(--ink); padding-block: 1rem; }
.strip .wrap { overflow: hidden; }
/* Arabic script rises and falls further than Latin: give each line its full height so nothing is clipped. */
.strip-track > span { line-height: 1.5; }
html:lang(ar) .strip-track > span, html:lang(ckb) .strip-track > span { line-height: 2; }
.strip-track { display: flex; inline-size: max-content; gap: 1.5rem; align-items: center; font: 750 var(--t-body)/1 var(--font-display); }
.strip i { inline-size: 0.5em; block-size: 0.5em; border-radius: 50%; background: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .strip-track { animation: strip 40s linear infinite; }
  html[dir='rtl'] .strip-track { animation-name: strip-rtl; }
}
@keyframes strip { to { transform: translateX(-50%); } } @keyframes strip-rtl { to { transform: translateX(50%); } }

/* Intro: one statement with small round photographs inside the line */
.statement { max-inline-size: 30ch; margin-inline: auto; text-align: center; font: 650 var(--t-lead)/1.35 var(--font-display); letter-spacing: -0.01em; font-size: clamp(1.375rem, 0.9rem + 1.3vw, 2.25rem); }
html:lang(ar) .statement, html:lang(ckb) .statement { letter-spacing: 0; line-height: 1.7; }
.thumb { display: inline-block; inline-size: 1.05em; block-size: 1.05em; margin-inline: 0.08em 0.18em; vertical-align: -0.16em; border-radius: 50%; object-fit: cover; }
@media (max-width: 52rem) { .statement { text-align: start; font-size: 1.3rem; } }

/* Where we invest: the plate (the bore seen from above) beside the stage text */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.plate { position: relative; aspect-ratio: 1; }
.plate-photos { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--l3); }
.clip > * { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.clip video { opacity: 0; transition: opacity 0.4s ease-in-out; } .clip video.live { opacity: 1; }
.plate-ring { position: absolute; inset: 7%; border-radius: 50%; border: 6px solid var(--l0); pointer-events: none; }
.plate-ring::after { content: ''; position: absolute; inset: 47%; border-radius: 50%; background: var(--accent); }
.plate-text { display: flex; flex-direction: column; gap: 1.5rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.tabs[hidden] { display: none; }
.tabs button { padding: 0.5rem 0; font: 650 var(--t-body)/1.3 var(--font-body); color: var(--fg-muted); background: none; border: 0; cursor: pointer; text-decoration: none; text-underline-offset: 0.5em; }
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected='true'] { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.panels { display: grid; gap: 1.75rem; }
.panel { display: grid; gap: 0.5rem; }
.panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .panels[data-ready] .panel { animation: fade 0.5s var(--ease-out); } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 52rem) { .split { grid-template-columns: minmax(0, 1fr); } .plate { inline-size: min(100%, 26rem); } }

/* What we look for: two categories, two columns, a round photo where a bullet would be */
.criteria .note { margin-block-start: 1rem; }
.cat { margin-block-start: 6rem; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-block-end: 2.25rem; }
.cat-head h3 { font-size: var(--t-head); letter-spacing: -0.025em; }
.count { font-variant-numeric: tabular-nums; color: var(--fg-muted); }
.menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem clamp(2rem, 5vw, 4rem); }
.menu li { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.menu b { display: block; margin-block-end: 0.25rem; font: 700 var(--t-body)/1.3 var(--font-display); }
.menu p { max-inline-size: 42ch; }
/* Photo cards for the areas we invest in: the photograph leads, name and one line follow. */
.invest-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem); }
.invest-grid li { display: grid; align-content: start; gap: 0.35rem; }
.invest-grid img { inline-size: 100%; block-size: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 1.25rem; margin-block-end: 0.9rem; background: var(--l1); }
.invest-grid b { font: 700 var(--t-lead)/1.2 var(--font-display); letter-spacing: -0.01em; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); }
.invest-grid p { color: var(--fg-muted); max-inline-size: 34ch; }
@media (max-width: 64rem) { .invest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .invest-grid { grid-template-columns: minmax(0, 1fr); } }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0.75rem 1.25rem; inline-size: fit-content; max-inline-size: 100%; border-radius: var(--pill); background: var(--l1); }
.inline-cta::before { content: ''; flex: none; inline-size: 0.6rem; block-size: 0.6rem; border-radius: 50%; background: var(--accent); }
.inline-cta a { font-weight: 700; color: var(--accent-ink); text-underline-offset: 0.3em; text-decoration-thickness: 2px; }
.bullet { display: block; inline-size: 4rem; block-size: 4rem; border-radius: 50%; object-fit: cover; }
.bullet.ring { border: 6px solid var(--ink); }
.bullet.dot { inline-size: 1.25rem; block-size: 1.25rem; margin: 0.25rem auto 0; background: var(--accent); }
@media (max-width: 52rem) { .menu { grid-template-columns: minmax(0, 1fr); } .menu li { grid-template-columns: 3.25rem minmax(0, 1fr); } .bullet { inline-size: 3.25rem; block-size: 3.25rem; } }

/* How we decide: many proposals pulled into one steady line */
.process-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: 'tag tag' 'title lead'; gap: 1.5rem clamp(2rem, 6vw, 6rem); align-items: start; }
.process-head > .tag { grid-area: tag; justify-self: start; }
.process-head > h2 { grid-area: title; }
.process-head > div { grid-area: lead; }
.process-head .lead { max-inline-size: 30ch; margin-block-end: 1rem; }
.flow-box { margin-block-start: clamp(3rem, 6vw, 5rem); }
.flow { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.flow-tall { display: none; }
html[dir='rtl'] .flow-wide { transform: scaleX(-1); }
.flow .p1 { fill: oklch(0.4 0.02 240); } .flow .p2 { fill: oklch(0.6 0.02 240); } .flow .ac { fill: var(--accent); }
.flow-steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.flow-steps p { margin-block-start: 0.5rem; max-inline-size: 26ch; }
@media (prefers-reduced-motion: no-preference) {
  html[data-js] .flow-box:not([data-gsap]) .flow circle { transform-box: fill-box; transform-origin: center; transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(0.4); opacity: 0; transition: transform 1.1s var(--ease-out) var(--d, 0ms), opacity 0.8s var(--ease-out) var(--d, 0ms); }
  html[data-js] .in .flow-box:not([data-gsap]) .flow circle { transform: none; opacity: 1; }
}
@media (max-width: 40rem) { .process-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'tag' 'title' 'lead'; } }
@media (max-width: 52rem) {
  .flow-box { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.25rem; }
  .flow-wide { display: none; } .flow-tall { display: block; block-size: 100%; }
  .flow-steps { margin: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, auto); }
}

/* Governance and questions: index cards in a drawer, each with a tab stepping across */
.questions .wrap > * { max-inline-size: 58rem; margin-inline: auto; }
.cards { margin-block-start: clamp(2.5rem, 5vw, 4rem); }
.cards details { --i: 0; --th: 2.75rem; padding-block-end: var(--th); --tw: min(11rem, 40%); --tx: calc(var(--i) * min(9.5rem, 15%)); position: relative; padding-block-start: var(--th); background: var(--l2); color: var(--ink);
  clip-path: polygon(0 var(--th), var(--tx) var(--th), var(--tx) 0, calc(var(--tx) + var(--tw)) 0, calc(var(--tx) + var(--tw)) var(--th), 100% var(--th), 100% 100%, 0 100%); }
html[dir='rtl'] .cards details { clip-path: polygon(100% var(--th), calc(100% - var(--tx)) var(--th), calc(100% - var(--tx)) 0, calc(100% - var(--tx) - var(--tw)) 0, calc(100% - var(--tx) - var(--tw)) var(--th), 0 var(--th), 0 100%, 100% 100%); }
.cards details + details { margin-block-start: calc(var(--th) * -1); }
.cards details:nth-child(2) { --i: 1; } .cards details:nth-child(3) { --i: 2; } .cards details:nth-child(4) { --i: 3; } .cards details:nth-child(5) { --i: 4; }
.cards details:nth-child(5n + 2) { background: var(--l3); }
.cards details:nth-child(5n + 3) { background: var(--accent); }
.cards details:nth-child(5n + 4) { background: var(--l1); }
.cards details:nth-child(5n + 5) { background: var(--l3); }
.cards summary { display: block; padding: 1rem 1.5rem 0.75rem; cursor: pointer; list-style: none; }
.cards summary::-webkit-details-marker { display: none; }
.cards summary:focus-visible { outline-offset: -6px; outline-color: var(--ink); }
.tab { position: absolute; inset-block-start: 0; inset-inline-start: var(--tx); inline-size: var(--tw); block-size: var(--th); display: grid; place-items: center; padding-inline: 0.5rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q { display: block; font: 650 var(--t-lead)/1.3 var(--font-display); letter-spacing: -0.01em; }
.q::after { content: '+'; float: inline-end; margin-inline-start: 1rem; transition: transform 0.4s var(--ease-out); }
.cards details[open] .q::after { transform: rotate(45deg); }
.cards details > p { padding: 0 1.5rem 0.75rem; max-inline-size: 56ch; }
.cards summary:hover .q { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
@media (max-width: 52rem) { .cards details { --tw: 8rem; --tx: calc(var(--i) * 2.5rem); } }

/* Leadership: an inset charcoal panel, a statement, and a round photograph cropped by the panel's bottom edge */
.leadership { padding-block: clamp(2rem, 4vw, 3rem); }
.inset { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 5rem); margin-inline: calc(var(--rail) + var(--m)); padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem) 0; background: var(--l4); color: var(--fg); overflow: hidden; }
.inset h2 { max-inline-size: 12ch; }
.lead-photo { display: block; inline-size: min(30rem, 34vw); block-size: auto; aspect-ratio: 1; margin-block: clamp(2.5rem, 5vw, 4rem) calc(min(30rem, 34vw) * -0.2); border-radius: 50%; object-fit: cover; }
.inset-side { display: flex; flex-direction: column; gap: 3rem; padding-block: 0.5rem clamp(2rem, 4vw, 3.5rem); }
.inset-side p { margin-block-start: 0.75rem; max-inline-size: 40ch; }
.inset-side .btn { align-self: start; }
.photo-credit { margin: 0; font-size: var(--t-small); color: var(--fg-muted); }
.lead-photo { object-position: 28% 50%; }
@media (max-width: 40rem) {
  .inset { grid-template-columns: minmax(0, 1fr); margin-inline: 0.625rem; }
  .inset-main { display: contents; } .lead-photo { order: 3; inline-size: 86vw; justify-self: center; margin-block: 0 -21vw; }
}

/* Insights: the same list language, a round accent mark for each entry */
.posts li { grid-template-columns: 2rem minmax(0, 1fr); }
.post-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.post-head time { flex: none; color: var(--fg-muted); font-size: var(--t-small); font-variant-numeric: tabular-nums; }

/* Close: the pumpjack returns inside the bore, cropped by the bottom and start edges */
.cta { position: relative; overflow: hidden; min-block-size: min(90svh, 52rem); display: grid; align-items: center; }
.cta-object { position: absolute; inset-inline-start: -12vw; inset-block-end: -28%; inline-size: min(58vw, 105svh); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--l4); }
.cta-object img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.cta-grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.cta-text { grid-column: 8 / -1; display: grid; gap: 1.25rem; justify-items: start; }
.fact { font: 650 var(--t-lead)/1.3 var(--font-display); color: var(--accent); }
@media (max-width: 40rem) {
  .cta { display: flex; flex-direction: column; padding-block-end: 0; }
  .cta-object { order: 2; }
  .cta-grid { display: block; } .cta-object { position: relative; inset: auto; inline-size: 120vw; margin: 3rem 0 -36vw -10vw; }
  html[dir='rtl'] .cta-object { margin: 3rem -10vw -36vw 0; }
}

/* Entrances: each part of a section rises in turn as the section arrives. The reduced-motion page is the finished page. */
@media (prefers-reduced-motion: no-preference) {
  html[data-js] main > section:not(.hero) .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out) var(--k, 0ms), transform 0.8s var(--ease-out) var(--k, 0ms); }
  html[data-js] main > section.in .rv { opacity: 1; transform: none; }
  .invest-grid img, .lead-photo, .cta-object img { transition: transform 0.6s var(--ease-out); }
  .invest-grid li:hover img { transform: scale(1.03); }
  .cta.in .cta-object img { animation: drift 24s ease-in-out infinite alternate; }
}
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1.5%); } }

/* ===== Footer: the name returns at full width ===== */
.site-foot { position: relative; background: var(--bg); color: var(--fg); padding-block: clamp(4rem, 8vw, 7rem) 1.5rem; }
.foot-strata { position: absolute; inset-inline: 0; inset-block-start: calc(-1 * var(--strata)); inline-size: 100%; block-size: calc(var(--strata) + 4px); pointer-events: none; }
main > :last-child { padding-block-end: calc(var(--strata) + 2.5rem); } /* the last section's content ends above the strata */
.foot-strata .s1 { fill: var(--l0); } .foot-strata .s2 { fill: var(--l2); } .foot-strata .s3 { fill: var(--l3); }
.foot-strata .s4 { fill: var(--accent); } .foot-strata .s5 { fill: var(--l4); } .foot-strata .s6 { fill: var(--bg); }
.site-foot a { text-decoration: none; } .site-foot a:hover, .site-foot a:focus-visible { color: var(--accent); }
.foot-name { margin: 0 0 clamp(2.5rem, 5vw, 4rem); font: 800 var(--t-display)/0.9 var(--font-display); letter-spacing: -0.04em; color: var(--fg); }
html:lang(ar) .foot-name, html:lang(ckb) .foot-name { letter-spacing: 0; line-height: 1.2; }
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.foot-tag { margin: 1rem 0 0.75rem; max-inline-size: 26ch; }
.foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; color: var(--fg-muted); }
.foot-contact b { color: var(--fg); font-weight: 650; }
.foot-h { margin: 0 0 1rem; font: 700 var(--t-body)/1.3 var(--font-display); letter-spacing: 0; color: var(--fg); }
.site-foot nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; color: var(--fg-muted); }
.foot-bar { margin-block-start: 3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: var(--t-small); color: var(--fg-muted); }
.foot-dev { flex-basis: 100%; margin: 0; }
.foot-dev b { color: var(--fg); font-weight: 650; }

/* ===== Inner pages: proposal form, error pages, breadcrumb ===== */
.page { padding-block: clamp(2.5rem, 6vw, 5rem); }
.page h1 { font-size: var(--t-head); margin-block-end: 1rem; }
.page .lead { margin-block: 1rem 1.75rem; max-inline-size: 40ch; }
.form { display: grid; gap: 1.1rem; max-inline-size: 40rem; }
.field { display: grid; gap: 0.35rem; }
.field > label { font-weight: 650; }
.field input:not([type='checkbox']), .field select, .field textarea { inline-size: 100%; min-block-size: 2.9rem; padding: 0.7rem 0.8rem; font: inherit; color: var(--ink); background: #fff; border: 2px solid #6B7280; border-radius: 0.75rem; }
.field textarea { min-block-size: 9rem; resize: vertical; }
.field [aria-invalid='true'] { border-color: var(--error); }
.consent label { display: flex; align-items: flex-start; gap: 0.7rem; font-weight: 420; }
.consent input { inline-size: 1.3rem; block-size: 1.3rem; margin-block-start: 0.25rem; accent-color: var(--ink); }
.error { margin: 0; color: var(--error); font-weight: 650; }
.hp { position: absolute; inset-inline-start: -9999px; }
.notice { max-inline-size: 40rem; margin-block-end: 1.25rem; padding: 1rem 1.25rem; background: var(--l2); }
.notice h2 { font-size: var(--t-lead); }
.notice.error { background: oklch(0.93 0.05 27); color: var(--ink); }
.next-title { margin-block: 1.5rem 0.35rem; }
.status { padding-block: clamp(3rem, 10vw, 7rem); }
.status-code { margin: 0 0 0.5rem; font: 800 var(--t-display)/0.9 var(--font-display); letter-spacing: -0.04em; color: var(--accent-ink); }
.status .actions { margin-block-start: 1.5rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: var(--t-small); color: var(--fg-muted); }
.crumbs li + li::before { content: '/'; margin-inline-end: 0.4rem; } .crumbs a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  .drawer, .scrim, .to-top, .site-bar, .btn, .bore-photos img, .plate-photos > * { transition: none; }
}

/* ===== Print: readable on paper, no decoration ===== */
@media print {
  .borehole, .info-bar, .strip, .bore, .hero-stars, .hero-canvas, .to-top, .burger, .drawer, .scrim, .site-nav, .lang, .callback, .flow, .cta-object, .plate { display: none !important; }
  .site-bar { position: static; } body { display: block; }
  .hero, .layer, .intro, .site-foot, .site-bar, .inset { background: #fff !important; color: #000 !important; margin: 0 !important; min-block-size: 0 !important; padding-block: 1rem !important; }
  h1, h2, h3, p, .logo, .tab, .q { color: #000 !important; }
  .cards details { clip-path: none; background: #fff !important; padding-block-start: 0; }
  .tab { position: static; display: inline; }
  a { text-decoration: underline; }
}

/* Track record: readouts like well-log gauges, then one core-sample ring per holding. Values come from the strings file. */
.record .note { margin-block: 0.75rem 2.5rem; }
/* A photograph with an orange panel laid over its lower edge; the gauge dials sit in the panel. */
.record-stage { position: relative; margin-block-end: clamp(3rem, 6vw, 5rem); }
.record-photo { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 1.5rem; }
.readouts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(1rem, 3vw, 2.5rem); }
.record-panel { position: relative; z-index: 1; inline-size: min(100% - 2rem, 62rem); margin-block: -4.5rem 0; margin-inline: 1rem 0; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 1.5rem; background: var(--accent); color: var(--ink); box-shadow: 0 1.5rem 3rem -1.5rem rgb(18 26 34 / 0.45); }
.readouts > div { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 1rem; }
.readouts dt { font-size: var(--t-small); font-weight: 600; max-inline-size: 16ch; }
/* A gauge dial: a quarter of the ring is lit until a real figure sets the reading. */
.readouts dd { margin: 0; inline-size: clamp(5rem, 7vw, 6.5rem); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 0.5rem solid rgb(18 26 34 / 0.2); border-block-start-color: var(--ink); border-inline-end-color: var(--ink); font: 800 clamp(1.5rem, 1rem + 1.4vw, 2.25rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
@media (max-width: 52rem) {
  .record-photo { aspect-ratio: 4 / 3; }
  .record-panel { inline-size: auto; margin-block: -3rem 0; margin-inline: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3rem); }
.cores li { display: grid; justify-items: start; gap: 0.5rem; }
.cores .core { box-sizing: border-box; inline-size: 5.5rem; block-size: 5.5rem; border-radius: 50%; margin-block-end: 0.75rem; background: var(--l3); border: 1.1rem solid var(--l2); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.cores b { font: 700 var(--t-body)/1.3 var(--font-display); }
.cores p { color: var(--fg-muted); }
@media (max-width: 52rem) { .cores { grid-template-columns: 1fr; } }

/* ===== Journey: from reservoir to the world =====
   Without the 3D scene: an ordered list in alternating rows, each stage with its round photograph (the page's one
   motif). With the scene (data-live, set by client/journey.ts): the section pins, the scene fills it, and the list
   becomes the caption rail along the bottom; the active stage's sentence sits above the rail. */
.journey-head { display: grid; gap: 1rem; }
.journey-lead { margin: 0; max-inline-size: 46ch; font-size: var(--t-lead); line-height: 1.4; color: var(--fg-muted); }
.journey-steps { list-style: none; padding: 0; margin-block: clamp(3rem, 6vw, 5rem) 0; display: grid; gap: clamp(3rem, 6vw, 5rem); }
.journey-step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); }
.journey-step:nth-child(even) .journey-photo { order: 2; }
.journey-photo { justify-self: center; inline-size: 100%; max-inline-size: 24rem; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--l4); }
.journey-copy { display: grid; gap: 0.6rem; }
.journey-copy p { margin: 0; max-inline-size: 38ch; color: var(--fg-muted); }
@media (max-width: 40rem) {
  .journey-step { grid-template-columns: minmax(0, 1fr); }
  .journey-step:nth-child(even) .journey-photo { order: 0; }
  .journey-photo { max-inline-size: 15rem; justify-self: start; }
}

/* Live: the pinned 3D journey */
.journey[data-live] { padding-block: 0; }
.journey[data-live] .journey-stage { position: relative; block-size: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding-block: clamp(5rem, 11vh, 7.5rem) clamp(1.25rem, 4vh, 2.5rem); }
.journey-view { display: none; }
.journey[data-live] .journey-view { display: block; position: relative; grid-row: 2 / 4; grid-column: 1; margin-block-start: 1rem; min-block-size: 0; } /* below the heading: the title never sits on the scene */
.journey-view canvas { position: absolute; inset: 0; display: block; inline-size: 100%; block-size: 100%; }
.journey[data-live] .journey-head, .journey[data-live] .journey-steps { position: relative; z-index: 1; }
.journey[data-live] .journey-head h2 { max-inline-size: 16ch; }
.journey[data-live] .journey-photo { display: none; }
.journey[data-live] .journey-steps { grid-row: 3; grid-column: 1; margin-block: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.6rem; padding: 1rem 1.25rem 1.1rem; border-radius: 1.25rem; background: oklch(0.17 0.02 240 / 0.86); } /* a neutral scrim so the captions read over the scene */
.journey[data-live] .journey-step { display: block; }
.journey[data-live] .journey-step::before { content: ''; display: block; block-size: 6px; margin-block-end: 0.7rem; border-radius: 3px; background: oklch(1 0 0 / 0.16); transition: background-color 0.4s var(--ease-out); }
.journey[data-live] .journey-step.past::before, .journey[data-live] .journey-step[aria-current='step']::before { background: var(--accent); }
.journey[data-live] .journey-copy h3 { font-size: var(--t-small); color: var(--fg-muted); transition: color 0.4s var(--ease-out); }
.journey[data-live] .journey-step[aria-current='step'] h3 { color: var(--fg); }
.journey[data-live] .journey-copy p { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.journey[data-live] .journey-step[aria-current='step'] p { inset-block-end: calc(100% + 1.25rem); inset-inline-start: 0; inline-size: auto; block-size: auto; max-inline-size: 32ch; overflow: visible; clip-path: none; white-space: normal; padding: 0.9rem 1.25rem; border-radius: 1.25rem; background: oklch(0.17 0.02 240 / 0.86); font: 650 var(--t-lead)/1.3 var(--font-display); color: var(--fg); }
@media (max-width: 40rem) {
  .journey[data-live] .journey-steps { gap: 0.3rem; }
  .journey[data-live] .journey-step:not([aria-current='step']) h3 { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .journey[data-live] .journey-step[aria-current='step'] h3 { position: absolute; inset-inline-start: 1.25rem; inset-block-start: 0.9rem; white-space: nowrap; color: var(--accent); }
  .journey[data-live] .journey-steps { padding-block-start: 2.6rem; }
  .journey[data-live] .journey-step[aria-current='step'] p { font-size: var(--t-body); }
  .journey[data-live] .journey-step::before { margin-block-end: 0; }
}
/* In the live layout the rail must not carry the reveal's transform: it would become the caption's containing block */
.journey[data-live] .journey-step.rv { opacity: 1; transform: none; transition: none; }

/* Motion layer styles (loaded after styles.css). Hidden starting states live only inside
   prefers-reduced-motion: no-preference; the reduced page is the finished page. */

/* Lenis smooth scrolling (its own stylesheet, inlined here because the CSP allows only this origin) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* The WebGL production scene floats in the hero where the photo circle sits; once it has drawn, the circle and its
   photographs step aside. Without the scene (or before it is ready) the photo circle is the hero picture. */
.bore-scene { position: absolute; inset: 0; z-index: 1; inline-size: 100%; block-size: 100%; opacity: 0; transition: opacity 1.4s ease-in-out; }
.bore-photos { transition: opacity 1.2s ease-in-out; }
.hero[data-scene="on"] .bore-scene { opacity: 1; }
.hero[data-scene="on"] .bore { overflow: visible; border-radius: 0; background: transparent; }
.hero[data-scene="on"] .bore-photos { opacity: 0; }

/* Split headings: each line rises out of its own mask. The mask is padded so Arabic script is never clipped. */
.split-line-mask { padding-block: 0.12em; margin-block: -0.12em; }

/* Buttons fill from where the pointer enters, as a circle (the page's one shape). */
.btn { position: relative; isolation: isolate; overflow: hidden; }
.btn::before { content: ''; position: absolute; z-index: -1; left: var(--px, 50%); top: var(--py, 50%); inline-size: 260%; aspect-ratio: 1; border-radius: 50%; background: var(--fg); transform: translate(-50%, -50%) scale(0); transition: transform 0.6s var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: translate(-50%, -50%) scale(1); }
.btn:hover, .btn:focus-visible { color: var(--bg); }

/* Navigation links draw their underline in from the reading start. */
.site-nav a { position: relative; text-decoration: none; }
.site-nav a::after { content: ''; position: absolute; inset-inline: 0; inset-block-end: 0.15rem; block-size: 3px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out); }
.site-nav a:hover::after, .site-nav a[aria-current='true']::after { transform: scaleX(1); transform-origin: left; }
html[dir='rtl'] .site-nav a::after { transform-origin: left; }
html[dir='rtl'] .site-nav a:hover::after, html[dir='rtl'] .site-nav a[aria-current='true']::after { transform-origin: right; }


/* Page to page: the bore circle carries over between the home page and the proposal page. */
@view-transition { navigation: auto; }
.bore, .page-bore { view-transition-name: bore; }
::view-transition-group(bore) { animation-duration: 0.7s; animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }

/* Proposal page: the form beside the bore, with what happens next. */
.page-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem clamp(2.5rem, 6vw, 6rem); align-items: start; }
.page-aside { position: sticky; inset-block-start: 6rem; display: grid; gap: 1.5rem; }
.page-bore { position: relative; inline-size: min(100%, 26rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--l4); }
.page-bore img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.page-bore::after { content: ''; position: absolute; inset: 7%; border-radius: 50%; border: 6px solid var(--l0); }
.page-aside h2 { font-size: var(--t-lead); margin-block-end: 0.6rem; }
.page-aside .fact { margin-block-start: 0.25rem; color: var(--accent-ink); }
@media (max-width: 52rem) { .page-split { grid-template-columns: minmax(0, 1fr); } .page-aside { position: static; } .page-bore { inline-size: min(70vw, 20rem); } }
/* Proposal received: the bore strikes oil, one orange pulse. */
.struck { inline-size: 3.5rem; block-size: 3.5rem; margin-block-end: 1rem; border-radius: 50%; background: var(--accent); }

/* 404, the dry hole: a drill line descends into an empty bore. */
.dry { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: center; }
.dry-bore { position: relative; inline-size: min(100%, 22rem); aspect-ratio: 1; justify-self: center; border-radius: 50%; background: var(--l1); }
.dry-bore::before { content: ''; position: absolute; inset: 7%; border-radius: 50%; border: 6px solid var(--ink); }
.dry-bore::after { content: ''; position: absolute; inset: 46%; border-radius: 50%; background: var(--fg-muted); }
.dry-drill { position: absolute; inset-inline-start: calc(50% - 3px); inset-block-start: -40%; inline-size: 6px; block-size: 90%; background: var(--accent); transform-origin: top; }
.dry-depth { margin-block: 0 1rem; font: 700 var(--t-lead)/1.2 var(--font-display); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 40rem) { .dry { grid-template-columns: minmax(0, 1fr); } .dry-bore { inline-size: 60vw; } }

@media (prefers-reduced-motion: no-preference) {
  .struck { animation: strike 1.6s var(--ease-out) both; }
  .dry-drill { animation: drill 1.6s var(--ease-out) both; }
  .dry-bore::after { animation: settle 0.6s var(--ease-out) 1.4s both; }
}
@keyframes strike { 0% { transform: scale(0); } 55% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes drill { from { transform: scaleY(0); } }
@keyframes settle { from { transform: scale(0); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .btn::before, .site-nav a::after, .bore-scene { transition: none; }
}

/* Footer strata drift sideways at different speeds, like slow ground swell */
@media (prefers-reduced-motion: no-preference) {
  .foot-strata path { animation: swell 60s linear infinite; }
  .foot-strata .s2 { animation-duration: 75s; animation-direction: reverse; }
  .foot-strata .s3 { animation-duration: 52s; }
  .foot-strata .s4 { animation-duration: 90s; animation-direction: reverse; }
  .foot-strata .s5 { animation-duration: 68s; }
  .foot-strata .s6 { animation-duration: 110s; animation-direction: reverse; }
}
@keyframes swell { from { transform: translateX(0); } to { transform: translateX(-1440px); } }
