/* Wafa & Wafa Law Offices, on the hashimwafa.com template.
   Layout idea: set like an Indian bare act. Each section carries a marginal note
   in a narrow left column, content on the right. White paper, black ink,
   navy for headings, hover and selection. */
:root {
  --paper: #FFFFFF; --surface: #F5F5F3; --ink: #111214; --muted: #5C6166; --line: #DBDDDB;
  --band: #F3F3F1; --mark: #111214; --mark-ink: #FFFFFF; --navy: #1C2C54; --navy-soft: #EEF1F7;
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Literata", Georgia, "Times New Roman", serif;
  --font-note: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1180px; --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 4px; text-decoration-color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
::selection { background: var(--navy); color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.05; color: var(--navy); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 99; }
.skip:focus { left: 8px; top: 8px; }

/* masthead */
.masthead { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: inline-flex; line-height: 0; text-decoration: none; }
.brand svg { height: 40px; width: auto; }
.masthead .wrap { min-height: 68px; }
.foot .brand svg { height: 46px; }
.caption a { text-decoration-thickness: 1px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--navy); color: var(--navy); }
.nav a.btn { padding: 8px 14px; border-bottom: 2px solid var(--ink); color: var(--paper); }
.nav a.btn:hover { color: #fff; border-color: var(--navy); }
.menu-btn { display: none; margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 14px; background: none; border: 2px solid var(--ink); padding: 6px 12px; cursor: pointer; color: var(--ink); }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 2px solid var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 12px; text-align: center; justify-content: center; }
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 15px; font-stretch: 95%; padding: 12px 20px; border: 2px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* hero */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(36px, 5vw, 60px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.eyebrow { font-family: var(--font-note); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.hero h1 { font-weight: 700; font-size: clamp(48px, 8.4vw, 108px); line-height: .98; letter-spacing: -.025em; margin: 14px 0 24px; }
.hero h1 small { display: block; font-size: .36em; font-weight: 600; letter-spacing: -.01em; margin-top: 10px; color: var(--ink); }
.thesis { font-family: var(--font-display); font-weight: 500; color: var(--muted); font-size: clamp(22px, 2.6vw, 31px); line-height: 1.22; max-width: 21em; }
.hero-lead { margin-top: 18px; max-width: 34em; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.portrait { position: relative; aspect-ratio: 4 / 5; background: var(--surface); overflow: hidden; border-bottom: 10px solid var(--mark); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.caption { font-family: var(--font-note); font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(32px, 5vw, 56px); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.facts div { padding: 16px 18px 16px 0; }
.facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.facts b { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.05; color: var(--navy); font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.35; color: var(--muted); }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .portrait { max-width: 380px; } .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { padding-left: 0; border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* sections with marginal notes */
.sec { padding: clamp(44px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.sec-grid { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.note { font-family: var(--font-note); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.note-inner { position: sticky; top: 84px; }
.note b { display: block; font-weight: 500; color: var(--ink); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.note b i { font-style: normal; background: var(--navy); color: #fff; padding: 1px 6px; margin-right: 8px; }
.sec h2 { font-weight: 800; font-stretch: 84%; font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -.01em; max-width: 16em; }
.sec-intro { margin-top: 16px; max-width: 38em; color: var(--muted); }
.body { margin-top: 32px; }
.prose { max-width: 38em; display: grid; gap: 16px; }
.prose h3 { font-weight: 700; font-size: 22px; margin-top: 10px; }
@media (max-width: 820px) { .sec-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } .note-inner { position: static; } }

.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.schedule { border-top: 2px solid var(--ink); margin: 0; }
.schedule div { display: grid; gap: 2px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.schedule dt { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.schedule dd { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* grids of cards (expertise, industries, offices) */
.group + .group { margin-top: 36px; }
.kind { font-family: var(--font-note); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.xgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.xgrid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xgrid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.x { padding: 20px 22px 24px 0; }
.xgrid > .x + .x { padding-left: 22px; border-left: 1px solid var(--line); }
.xgrid:not(.c3):not(.c2) > .x:nth-child(4n+1), .xgrid.c3 > .x:nth-child(3n+1), .xgrid.c2 > .x:nth-child(2n+1) { padding-left: 0; border-left: 0; }
.xgrid:not(.c3):not(.c2) > .x:nth-child(n+5), .xgrid.c3 > .x:nth-child(n+4), .xgrid.c2 > .x:nth-child(n+3) { border-top: 1px solid var(--line); }
.x h3 { font-weight: 700; font-size: 18px; line-height: 1.2; color: var(--ink); }
.x h3 a { text-decoration: none; }
.x h3 a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--navy); }
.x p { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.x address { font-style: normal; margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.x .more { display: inline-block; margin-top: 10px; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; }
@media (max-width: 900px) {
  .xgrid, .xgrid.c3 { grid-template-columns: 1fr 1fr; }
  .xgrid > .x { padding: 18px 16px 20px 0 !important; border-left: 0 !important; border-top: 1px solid var(--line); }
  .xgrid > .x:nth-child(even) { padding-left: 16px !important; border-left: 1px solid var(--line) !important; }
  .xgrid > .x:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 560px) { .xgrid, .xgrid.c3, .xgrid.c2 { grid-template-columns: 1fr; } .xgrid > .x:nth-child(even) { padding-left: 0 !important; border-left: 0 !important; } .xgrid > .x:nth-child(2) { border-top: 1px solid var(--line); } }

.points { display: grid; gap: 10px; max-width: 40em; }
.points li { padding-left: 22px; position: relative; font-size: 16.5px; line-height: 1.45; }
.points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 6px; background: var(--navy); }
.points.cols { grid-template-columns: 1fr 1fr; column-gap: 32px; max-width: none; }
@media (max-width: 640px) { .points.cols { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-block; font-family: var(--font-note); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--ink); border-radius: 999px; white-space: nowrap; }

/* questions */
.faq { border-top: 2px solid var(--ink); max-width: 46em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--ink); position: relative; }
.faq summary:hover { color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-family: var(--font-note); font-size: 20px; color: var(--navy); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 40em; }

/* band, ticket, contact */
.band { background: var(--band); }
.ticket { background: var(--paper); color: var(--ink); padding: 26px; border-top: 8px solid var(--mark); }
.ticket h3 { font-weight: 800; font-stretch: 88%; font-size: 24px; }
.ticket p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.ticket dl { margin: 16px 0 0; }
.ticket dl div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.ticket dt { font-family: var(--font-note); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.ticket dd { margin: 0; }
.ticket .btn { width: 100%; margin-top: 18px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
form { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
input, select, textarea { font: inherit; font-family: var(--font-body); font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-bottom: 2px solid var(--ink); border-radius: 0; padding: 11px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--navy); background: var(--navy-soft); }
textarea { min-height: 130px; resize: vertical; }
.fine { font-size: 14px; color: var(--muted); }
.form-status { border-left: 4px solid var(--navy); padding: 10px 14px; background: var(--navy-soft); font-size: 15px; }
.form-status[hidden] { display: none; }
.direct { border-top: 2px solid var(--ink); margin: 0; }
.direct div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.direct dt { font-family: var(--font-note); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.direct dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.direct dd small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 14.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 820px) { .contact-grid, .row2 { grid-template-columns: 1fr; } }

/* inner page head */
.phead { padding: 28px 0 clamp(36px, 5vw, 64px); }
.crumbs { font-family: var(--font-note); font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.crumbs a { text-decoration-thickness: 1px; }
.phead h1 { font-weight: 700; font-size: clamp(36px, 5.6vw, 72px); line-height: 1.03; letter-spacing: -.02em; margin: 14px 0 22px; max-width: 14em; }
.lead { max-width: 38em; color: var(--muted); font-size: 18px; }
.side { display: grid; gap: 22px; }
.links { border-top: 2px solid var(--ink); }
.links a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 15.5px; text-decoration: none; }
.links a:hover { color: var(--navy); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* footer */
.foot { border-top: 2px solid var(--ink); padding: clamp(40px, 5vw, 64px) 0 28px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: clamp(22px, 4vw, 48px); }
.foot h2 { font-family: var(--font-note); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot ul { display: grid; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { color: var(--navy); text-decoration: underline; }
.foot p { margin-top: 12px; font-size: 15px; color: var(--muted); max-width: 30em; }
.foot-base { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-family: var(--font-note); font-size: 12px; color: var(--muted); }
@media (max-width: 1060px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* Bar Council disclaimer: slim bottom bar, auto-hides, never blocks the page */
.bci-bar { position: fixed; left: 50%; bottom: 16px; z-index: 60; width: min(760px, calc(100% - 24px)); transform: translate(-50%, 20px); opacity: 0; transition: opacity .4s ease, transform .4s ease; display: flex; align-items: center; gap: 14px; background: var(--navy); color: #fff; padding: 10px 12px 10px 16px; box-shadow: 0 8px 28px rgba(17, 18, 20, .22); font-size: 13px; line-height: 1.45; }
.bci-bar.show { opacity: .96; transform: translate(-50%, 0); }
.bci-bar[hidden] { display: none; }
.bci-bar p { margin: 0; flex: 1; color: #fff; }
.bci-bar a { color: #fff; text-decoration: underline; }
.bci-ok { flex: none; background: #fff; color: var(--navy); border: 0; font: inherit; font-weight: 700; padding: 6px 14px; cursor: pointer; }
@media (max-width: 560px) { .bci-bar { font-size: 12px; bottom: 10px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
@media print { .masthead, .notice { display: none; } }

/* ---------- hero carousel ---------- */
.hero .h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 7.6vw, 96px); line-height: .98; letter-spacing: -.025em; margin: 14px 0 24px; color: var(--navy); }
.slider { position: relative; }
.slide[hidden] { display: none; }
.slide.on { animation: slideIn .7s cubic-bezier(.2, .7, .2, 1) both; }
.slide.on .portrait img { animation: kenburns 9s ease-out both; }
@keyframes slideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.slider-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.dots { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.dot { background: none; border: 0; padding: 6px 0; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--muted); border-bottom: 2px solid transparent; }
.dot.on { color: var(--navy); border-bottom-color: var(--navy); }
.dot:hover { color: var(--ink); }
.arrows { display: flex; gap: 8px; }
.arrow { width: 42px; height: 42px; border: 2px solid var(--ink); background: var(--paper); font-size: 18px; cursor: pointer; color: var(--ink); }
.arrow:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.progress { height: 2px; background: var(--line); margin-top: 12px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--navy); }
.progress.run span { animation: prog var(--dur, 7s) linear forwards; }
@keyframes prog { from { width: 0; } to { width: 100%; } }
@media (max-width: 820px) { .hero .h1 { font-size: clamp(42px, 12vw, 64px); } .dot span { font-size: 13px; } }

/* ---------- practice icons and motion ---------- */
.x { position: relative; transition: background .25s, transform .25s; }
.x::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--navy); transition: width .35s ease; }
.xgrid > .x + .x::before { left: 22px; }
.x:hover { background: linear-gradient(var(--navy-soft), var(--navy-soft)) no-repeat; transform: translateY(-3px); }
.x:hover::before { width: calc(100% - 22px); }
.ico { width: 34px; height: 34px; color: var(--navy); margin-bottom: 14px; display: block; }
.ico path { stroke-dasharray: 100; stroke-dashoffset: 0; }
.x:hover .ico path, .core-card:hover .ico path, .reveal.seen .ico path { animation: draw 1.1s ease both; }
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.reveal.seen { animation: rise .6s ease both; animation-delay: var(--d, 0s); }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }

.core { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.core-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 26px 24px 54px; background: var(--surface); border-top: 4px solid var(--ink); text-decoration: none; color: var(--ink); overflow: hidden; transition: background .3s, color .3s, border-color .3s, transform .3s; }
.core-card b { font-family: var(--font-display); font-weight: 800; font-stretch: 88%; font-size: 26px; line-height: 1.05; color: var(--navy); }
.core-card span { font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.core-card i { position: absolute; left: 24px; bottom: 18px; font-style: normal; font-family: var(--font-display); font-weight: 700; color: var(--navy); transition: transform .3s; }
.core-card .ico { width: 42px; height: 42px; }
.core-card:hover { background: var(--navy); border-top-color: var(--navy); transform: translateY(-4px); }
.core-card:hover b, .core-card:hover span, .core-card:hover i, .core-card:hover .ico { color: #fff; }
.core-card:hover i { transform: translateX(6px); }
@media (max-width: 820px) { .core { grid-template-columns: 1fr; } }

.ticker { overflow: hidden; display: flex; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; flex-shrink: 0; gap: 0; padding: 14px 0; animation: tick 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track li { white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); padding: 0 18px; }
.ticker-track li::after { content: "§"; margin-left: 36px; color: var(--navy); font-weight: 400; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-100%); } }

@media (prefers-reduced-motion: reduce) {
  .slide.on, .slide.on .portrait img, .reveal.seen, .x:hover .ico path, .core-card:hover .ico path, .reveal.seen .ico path { animation: none; }
  .ticker-track { animation: none; flex-wrap: wrap; }
  .ticker-track[aria-hidden] { display: none; }
  .x, .core-card, .x::before { transition: none; }
}

/* ---------- pillars ---------- */
.pillars3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillar-card { position: relative; background: var(--surface); border-top: 4px solid var(--navy); padding: 26px 24px 24px; display: grid; gap: 10px; align-content: start; transition: transform .3s, box-shadow .3s; }
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(28, 44, 84, .12); }
.pillar-card .num { position: absolute; right: 20px; top: 14px; font-family: var(--font-display); font-weight: 900; font-size: 54px; line-height: 1; color: var(--navy); opacity: .08; }
.pillar-card .ico { width: 40px; height: 40px; margin-bottom: 4px; }
.pillar-card .kind { margin: 0; }
.pillar-card h3 { font-weight: 800; font-stretch: 88%; font-size: 26px; line-height: 1.05; }
.pillar-card h3 a { text-decoration: none; }
.pillar-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--navy); }
.pillar-card > p:not(.kind) { font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.pillar-card ul { border-top: 1px solid var(--line); margin-top: 6px; }
.pillar-card li a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 15px; text-decoration: none; }
.pillar-card li a::after { content: "→"; color: var(--navy); opacity: 0; transform: translateX(-6px); transition: .2s; }
.pillar-card li a:hover { color: var(--navy); }
.pillar-card li a:hover::after { opacity: 1; transform: none; }
@media (max-width: 900px) { .pillars3 { grid-template-columns: 1fr; } }
.compl { margin-top: 34px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: center; padding: 24px; border: 1px solid var(--line); border-left: 6px solid var(--navy); }
.compl h3 { font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--ink); }
.compl ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.compl li a { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 15px; text-decoration: none; padding: 6px 0; }
.compl li a:hover { color: var(--navy); }
.compl .ico { width: 24px; height: 24px; margin: 0; }
@media (max-width: 760px) { .compl, .compl ul { grid-template-columns: 1fr; } }
.hero .eyebrow { font-weight: 400; font-size: 12.5px; line-height: 1.5; margin: 0; }
.hero .thesis { font-weight: 500; margin: 0; }
.hero .h1 { max-width: 12em; }

/* ---------- maps ---------- */
.map { display: block; margin-top: 14px; aspect-ratio: 16 / 9; border: 1px solid var(--line); overflow: hidden; background: var(--surface); position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.25); }
.map-ph svg { width: 100%; height: 100%; display: block; }
.map-ph span { position: absolute; left: 10px; bottom: 8px; right: 10px; font-family: var(--font-note); font-size: 11.5px; color: var(--muted); background: rgba(255, 255, 255, .85); padding: 4px 8px; }
.map-ph .pin { animation: bob 2.4s ease-in-out infinite; transform-origin: 200px 140px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- news feed ---------- */
.feed { margin: 22px 0 0; border-top: 2px solid var(--ink); }
.item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.item[hidden] { display: none; }
.item time { font-family: var(--font-note); font-size: 12.5px; color: var(--muted); padding-top: 4px; }
.item .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.item h4 { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.2; margin: 0; color: var(--navy); }
.item h4 a { text-decoration: none; }
.item h4 a:hover { text-decoration: underline; }
.item p { margin-top: 6px; font-size: 15.5px; color: var(--muted); max-width: 42em; }
.item .more { display: inline-block; margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; }
.pill.soft { border-color: var(--line); color: var(--muted); }
.chip { font-family: var(--font-display); font-weight: 600; font-size: 14px; padding: 6px 14px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.empty { padding: 22px 0; color: var(--muted); }
.empty[hidden] { display: none; }
@media (max-width: 640px) { .item { grid-template-columns: 1fr; } }
.article h3 { font-size: 22px; margin-top: 14px; }
.byline { font-family: var(--font-note); font-size: 12.5px; color: var(--muted); }

/* ---------- application forms ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
label small { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=file] { padding: 10px; background: var(--paper); border-style: dashed; }
.check { display: flex; gap: 10px; align-items: flex-start; font-family: var(--font-body); font-weight: 400; font-size: 14.5px; color: var(--muted); }
.check input { width: auto; margin-top: 4px; }
.form-status.bad { border-left-color: #9B2C2C; background: #FBEFEF; }
.hero .h1 { font-size: clamp(42px, 5.8vw, 76px); line-height: 1; }
.slide .hero-grid { align-items: center; }

.hero .h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: .98; margin: 12px 0 18px; max-width: none; }
.hero .h1 span { display: block; font-size: .42em; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin-top: 10px; line-height: 1.15; }
.hero .thesis { font-size: clamp(21px, 2.3vw, 28px); color: var(--navy); font-weight: 600; line-height: 1.2; }
.hero .hero-lead { margin-top: 14px; }
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); counter-reset: st; margin-bottom: 26px; }
.steps4 li { counter-increment: st; padding: 20px 20px 22px 0; position: relative; display: grid; gap: 6px; align-content: start; }
.steps4 li + li { padding-left: 20px; border-left: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.steps4 li::before { content: "0" counter(st); font-family: var(--font-display); font-weight: 900; font-size: 34px; line-height: 1; color: var(--navy); }
.steps4 li::after { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--navy); transition: width .6s ease; }
.steps4 li.seen::after { width: 100%; }
.steps4 b { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink); }
.steps4 span { font-size: 15px; line-height: 1.45; color: var(--muted); }
@media (max-width: 820px) { .steps4 { grid-template-columns: 1fr 1fr; } .steps4 li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 480px) { .steps4 { grid-template-columns: 1fr; } .steps4 li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
/* Mobile safety: grid children may shrink; nothing may push the page sideways */
.sec-grid > *, .body, .pillars3 > *, .core > *, .xgrid > * { min-width: 0; }
html, body { overflow-x: clip; }
img, iframe, video { max-width: 100%; }
