/* elaatmani.com shared styles for inner pages (monochrome editorial) */
:root {
  --bg: #FAFAFA;
  --ink: #121212;
  --ink-2: #404040;
  --muted: #6B6B6B;
  --line: #E2E2E2;
  --line-2: #D4D4D4;
  --card: #FFFFFF;
  --dark: #0D0D0D;
  --dark-2: #171717;
  --radius: 24px;
  --max: 1400px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: #000; color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid #000; outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; margin: 0 auto; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(250,250,250,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; display: inline-flex; align-items: center; }
.brand::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #000; margin-left: 4px; transition: transform .2s; }
.brand:hover::after { transform: scale(1.5); }
.nav { display: flex; align-items: center; gap: 4px; padding: 4px; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.nav a { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: #525252; padding: 8px 16px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; transition: border-color .2s, color .2s; }
.nav a:hover { color: #000; border-color: var(--line); }
.nav a[aria-current="page"] { color: #000; border-color: var(--line-2); }
.header-cta { display: inline-flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.mobile-nav { display: none; }
@media (max-width: 1023px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-cta .btn { display: none; }
  .mobile-nav.open { display: block; border-top: 1px solid var(--line); background: var(--bg); }
  .mobile-nav a { display: block; padding: 14px var(--gutter); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; text-decoration: none; border-bottom: 1px solid #F0F0F0; }
  .mobile-nav a.cta { background: #000; color: #fff; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; min-height: 44px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .25s var(--ease), background-color .2s, border-color .2s, color .2s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #262626; }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: #E5E5E5; }
.btn-line { border-color: var(--line-2); color: #000; background: transparent; }
.btn-line:hover { border-color: #000; }
.btn-line-dark { border-color: #525252; color: #fff; background: transparent; }
.btn-line-dark:hover { border-color: #fff; }
.btn svg { width: 14px; height: 14px; }

/* Page hero */
.page-hero { padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(40px, 8.5vw, 128px); font-weight: 800; text-transform: uppercase; line-height: .9; letter-spacing: -.03em; margin: 14px 0 0; }
.page-hero h1 .metal, .metal {
  background: linear-gradient(180deg, #1A1A1A 0%, #4A4A4A 35%, #8E8E8E 60%, #BDBDBD 85%, #E5E5E5 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.page-hero .lede { max-width: 640px; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); margin: 28px 0 0; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.crumbs { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #000; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #A3A3A3; }

/* Sections */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-dark { background: var(--dark); color: #fff; }
.section-dark .eyebrow { color: #A3A3A3; }
.section h2 { font-size: clamp(30px, 4.6vw, 56px); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; margin: 10px 0 0; }
.section .intro { max-width: 640px; color: var(--ink-2); margin: 18px 0 0; }
.section-dark .intro { color: #C4C4C4; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }

/* Grids & cards */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 28px; transition: border-color .25s, transform .25s var(--ease); }
a.card { text-decoration: none; display: flex; flex-direction: column; }
a.card:hover { border-color: #000; transform: translateY(-2px); }
.card .num { font-size: 11px; color: var(--muted); }
.card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; margin: 10px 0 10px; line-height: 1.15; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .more { margin-top: auto; padding-top: 22px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card-dark { background: var(--dark-2); border-color: #2A2A2A; color: #fff; }
.card-dark p { color: #BDBDBD; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding: 0; list-style: none; }
.tags li { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: #F5F5F5; }

/* Lists */
.check { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.check li { position: relative; padding-left: 28px; }
.check li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; border-top: 1px solid #333; padding-top: 18px; }
.section:not(.section-dark) .steps li { border-top-color: var(--line-2); }
.steps li::before { content: "0" counter(step); display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em; color: #8A8A8A; margin-bottom: 8px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; text-transform: uppercase; font-weight: 800; }
.steps p { margin: 0; font-size: 15px; color: #BDBDBD; }
.section:not(.section-dark) .steps p { color: var(--ink-2); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line-2); border-radius: 24px; padding: 4px 24px; transition: border-color .2s; }
.faq details[open] { border-color: #000; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; transition: transform .25s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--ink-2); }
.faq details > div p { margin: 0 0 10px; }

/* Project rows */
.project { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; padding: 36px 0; border-top: 1px solid var(--line-2); }
@media (min-width: 900px) { .project { grid-template-columns: 1.1fr 1fr; gap: 56px; } .project:nth-child(even) .project-media { order: 2; } }
.project-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: #EFEFEF; aspect-ratio: 16 / 10; }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s var(--ease); }
.project:hover .project-media img { transform: scale(1.02); }
.project h3 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; margin: 6px 0 12px; line-height: 1; }
.project p { color: var(--ink-2); margin: 0 0 12px; }
.project .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Prose (blog + legal) */
.prose { font-size: 18px; line-height: 1.75; color: #1F1F1F; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; margin: 2.2em 0 .6em; text-transform: none; }
.prose h3 { font-size: 20px; font-weight: 800; margin: 1.8em 0 .5em; line-height: 1.3; }
.prose p { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid #000; color: var(--ink-2); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.4em 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.prose th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: #F2F2F2; }
.prose code { font-size: .88em; background: #EFEFEF; padding: 2px 6px; border-radius: 6px; }
.answer { background: #fff; border: 1px solid var(--line-2); border-radius: 20px; padding: 20px 24px; margin: 0 0 2em; font-size: 17px; }
.answer strong:first-child { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); margin-top: 22px; }
.post-hero h1 { font-size: clamp(34px, 5.5vw, 68px); line-height: 1.02; text-transform: none; letter-spacing: -.025em; }
.author-box { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; margin-top: 48px; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #EEE; filter: grayscale(1); flex-shrink: 0; }
.author-box p { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.toc { background: #fff; border: 1px solid var(--line-2); border-radius: 20px; padding: 18px 24px; margin: 0 0 2em; font-size: 15px; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.inline-cta { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 28px; margin: 2.4em 0; }
.inline-cta p { margin: 0 0 16px; color: #D4D4D4; font-size: 16px; }
.inline-cta strong { color: #fff; display: block; font-size: 20px; margin-bottom: 6px; }
.inline-cta a.btn { text-decoration: none; }

/* Blog list */
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card h2, .post-card h3 { font-size: 22px; font-weight: 800; line-height: 1.2; margin: 0; text-transform: none; letter-spacing: -.01em; }
.post-card .meta { font-size: 12px; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.field label, .field legend { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; color: #262626; }
.field .opt { font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=url], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; cursor: pointer; transition: all .2s; }
.chips input:checked + span { background: #000; color: #fff; border-color: #000; }
.chips input:focus-visible + span { outline: 2px solid #000; outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: #000; flex-shrink: 0; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 16px; padding: 14px 18px; font-size: 15px; display: none; }
.alert.show { display: block; }
.alert-ok { background: #F0FDF4; border: 1px solid #86EFAC; color: #14532D; }
.alert-err { background: #FEF2F2; border: 1px solid #FCA5A5; color: #7F1D1D; }
.contact-side { display: grid; gap: 14px; align-content: start; }
.contact-side .card a { text-decoration: none; font-weight: 700; word-break: break-word; }
.contact-side .card a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--dark); color: #fff; padding: clamp(56px, 8vw, 96px) 0 40px; }
.site-footer .big { display: block; text-align: center; font-size: clamp(56px, 12vw, 168px); font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: -.03em; text-decoration: none;
  background: linear-gradient(180deg, #FFFFFF 0%, #a8a8a8 50%, #444444 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; transition: filter .3s; }
.site-footer .big:hover { filter: brightness(1.2); }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 56px; }
.footer-cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); padding: 40px 0; border-top: 1px solid #222; }
.footer-cols h2 { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #8A8A8A; margin: 0 0 12px; font-weight: 700; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.footer-cols a { text-decoration: none; color: #D4D4D4; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid #222; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8A8A8A; font-weight: 600; }

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.contact-grid { display: grid; gap: 28px; align-items: start; grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
