/* ÖZŞAHİN AVUKATLIK — shared styles (mobile-first, same look on every screen) */
:root {
  --gold: #d4a373;
  --gold-dark: #b8864f;
  --navy: #0a0a23;
  --panel: #23233a;
  --cream: #f2e3d4;
  --ink: #111;
  --muted: #555;
  --header-h: 72px;
  --pad: clamp(18px, 5vw, 10%);
  --radius: 10px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body {
  margin: 0; font-family: var(--font); color: #333; background: #f8f9fa;
  padding-top: var(--header-h); line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(16px, 5%, 64px);
  transition: transform .3s ease, height .3s ease, box-shadow .3s ease;
}
.site-header.hidden { transform: translateY(-100%); }
.site-header.shrunk { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #000; font-weight: 700; font-size: 1.15rem; line-height: 1.15; flex-shrink: 0; }
.brand img { width: 42px; height: auto; }
.nav { display: flex; gap: clamp(14px, 2vw, 28px); align-items: center; }
.nav a { text-decoration: none; color: #000; font-size: .98rem; padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav a:hover { border-color: var(--gold); }
.nav a[aria-current="page"] { border-color: var(--gold); font-weight: 600; }
.header-tools { display: flex; align-items: center; gap: 6px; position: relative; }

.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
  font-size: .95rem; font-weight: 600; color: #000; padding: 10px; min-height: 44px; border-radius: 8px;
}
.lang-btn:hover { background: #f3f0ec; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 150px; background: #fff; border: 1px solid #e3ddd5;
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 6px; display: none; z-index: 5;
}
.lang-menu.open { display: block; }
.lang-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 12px 12px; font-size: 1rem; cursor: pointer; border-radius: 6px; }
.lang-menu button:hover, .lang-menu button[aria-checked="true"] { background: #f6efe7; }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; position: relative; border-radius: 8px; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #000; border-radius: 2px; transition: transform .25s, opacity .2s, top .25s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px clamp(16px, 5%, 64px) 18px; border-top: 1px solid #eee; box-shadow: 0 14px 24px rgba(0,0,0,.12);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; }
  .nav a { font-size: 1.1rem; padding: 15px 4px; border-bottom: 1px solid #f0ece6; }
  .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
  .brand { font-size: 1.02rem; } .brand img { width: 36px; }
}
@media (max-width: 380px) { .brand span { font-size: .92rem; } }

/* ---------- Shared bits ---------- */
.small-line { width: 50px; height: 2px; background: var(--gold); margin: 0 auto 12px; }
.small-line.left { margin-left: 0; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 1rem; border: 1px solid transparent; cursor: pointer; transition: background .25s, color .25s, transform .2s; min-height: 44px; }
.btn-outline { color: #fff; border-color: #fff; } .btn-outline:hover { background: #fff; color: var(--navy); }
.btn-gold { background: var(--gold); color: #000; } .btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-dark { background: #000; color: #fff; box-shadow: 0 4px 6px rgba(0,0,0,.2); } .btn-dark:hover { background: #333; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; padding: clamp(48px, 8vw, 100px) var(--pad); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 32px; max-width: 1200px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.15; margin: 0 0 20px; font-weight: 700; }
.hero p { font-size: clamp(1rem, 1.6vw, 1.15rem); margin: 0 0 12px; }
.hero .sub { color: rgba(255,255,255,.75); margin-bottom: 28px; }
.hero-logo { justify-self: center; width: min(100%, 320px); }
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-logo { order: -1; width: 120px; justify-self: start; }
  .hero .btn { width: 100%; text-align: center; }
}

/* Quote band */
.quote-band { background: #14142e; color: #fff; padding: 34px var(--pad); text-align: center; border-top: 1px solid rgba(212,163,115,.25); }
.quote-band blockquote { margin: 0 auto; max-width: 820px; font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.8rem); line-height: 1.4; font-style: italic; }
.quote-band cite { display: block; margin-top: 10px; font-style: normal; color: var(--gold); font-size: .95rem; letter-spacing: .04em; }

/* ---------- Practice-area cards ---------- */
.practice-areas {
  position: relative; text-align: center; background: #fefbf6;
  background-image: linear-gradient(to bottom, #fff, rgba(255,255,255,0)), url('../img/pattern.jpg');
  background-repeat: no-repeat; background-position: center; background-size: cover;
  padding: clamp(40px, 6vw, 56px) var(--pad) 130px;
}
.practice-areas h2 { font-size: clamp(1.6rem, 3.4vw, 2rem); line-height: 1.2; margin: 0 0 10px; color: #333; }
.practice-areas > p, .practice-areas .lead { color: #666; margin: 0 auto 8px; max-width: 640px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px auto 0; max-width: 1200px; }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center;
  padding: 26px 20px; background: #fff; border-radius: var(--radius); box-shadow: 0 4px 8px rgba(0,0,0,.1); text-decoration: none; color: #000;
  transition: transform .3s ease, box-shadow .3s ease; -webkit-tap-highlight-color: transparent;
}
.card::after { content: ""; position: absolute; inset: 0; background: #04010d; opacity: 0; transition: opacity .3s ease; }
.card > * { position: relative; z-index: 2; }
.card i { font-size: 38px; color: var(--gold); margin-bottom: 14px; }
.card h3 { margin: 0; font-size: 1.15rem; color: #000; transition: color .3s; }
.card p { margin: 10px 0 0; color: #555; font-size: .98rem; transition: color .3s; }
@media (hover: hover) {
  .card:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0,0,0,.4); }
  .card:hover::after { opacity: 1; } .card:hover h3, .card:hover p { color: #fff; }
}
.card:active::after, .card:focus-visible::after { opacity: 1; }
.card:active h3, .card:active p, .card:focus-visible h3, .card:focus-visible p { color: #fff; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; gap: 14px; } .card { padding: 22px 18px; } }

/* Marquee */
.marquee { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.72); color: #fff; overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { flex: none; padding-right: 80px; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 600px) { .marquee-track span { font-size: .95rem; } .marquee-track { animation-duration: 30s; } .practice-areas { padding-bottom: 110px; } }

/* ---------- CTA (about teaser) ---------- */
.cta { background: var(--navy); color: #fff; display: grid; grid-template-columns: 40% 1fr; align-items: stretch; }
.cta img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; border-radius: 0 10px 10px 0; }
.cta .text { padding: clamp(28px, 5vw, 60px) clamp(20px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.cta .sub { color: var(--gold); margin: 0 0 6px; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
.cta h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin: 0 0 14px; line-height: 1.25; }
.cta p.description { margin: 0 0 24px; max-width: 520px; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } .cta img { border-radius: 0; min-height: 0; aspect-ratio: 3/2; } }

/* ---------- Parallax ---------- */
.parallax { position: relative; min-height: 360px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 64px var(--pad);
  background: #fff url('../img/parallax.jpg') center / cover no-repeat; }
@media (hover: hover) and (min-width: 1025px) { .parallax { background-attachment: fixed; } }
.parallax h2 { font-size: clamp(1.5rem, 4.2vw, 3rem); margin: 0 0 14px; color: #333; text-shadow: 0 2px 4px rgba(255,255,255,.8); line-height: 1.2; }
.parallax p { font-size: clamp(1rem, 1.8vw, 1.2rem); color: #555; margin: 0 auto 28px; max-width: 720px; text-shadow: 0 1px 3px rgba(255,255,255,.8); }

/* ---------- Inner-page shell ---------- */
.page-bg {
  background-image: linear-gradient(to bottom, #fff, rgba(255,255,255,0) 340px), url('../img/pattern.jpg');
  background-size: cover; background-position: center; background-color: #f4efe6;
  padding: 18px var(--pad) 70px; min-height: calc(100vh - var(--header-h));
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: #555; max-width: 1200px; margin: 0 auto 18px; }
.breadcrumb a { text-decoration: none; color: #555; } .breadcrumb a:hover { color: var(--gold-dark); text-decoration: underline; }
.breadcrumb .sep { color: #999; } .breadcrumb [aria-current] { color: #000; font-weight: 700; }
.sheet { background: #fff; border-radius: var(--radius); box-shadow: 0 4px 12px rgba(0,0,0,.1); padding: clamp(22px, 4vw, 50px); max-width: 1200px; margin: 0 auto; }
.page-title { font-family: var(--serif); font-size: clamp(2.2rem, 5.5vw, 3.4rem); color: #333; text-align: center; margin: 0 0 22px; line-height: 1.1; }
.sheet .body p { font-size: clamp(1rem, 1.5vw, 1.12rem); color: #444; line-height: 1.75; margin: 0 0 1.1em; }
.details-more { margin-top: 36px; padding-top: 26px; border-top: 1px solid #eee; }
.details-more h2 { font-size: 1.1rem; margin: 0 0 14px; color: #333; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { text-decoration: none; padding: 10px 16px; border: 1px solid #e3d6c6; border-radius: 999px; font-size: .95rem; color: #333; background: #fbf7f1; transition: background .2s, color .2s; }
.chip:hover { background: var(--gold); color: #000; }
.chip[aria-current="true"] { background: var(--navy); color: #fff; border-color: var(--navy); pointer-events: none; }
.sheet .cta-row { margin-top: 28px; text-align: center; }

/* ---------- About ---------- */
.about-page { background: #f2e3d4 url('../img/about-bg.jpg') center / cover no-repeat; }
@media (hover: hover) and (min-width: 1025px) { .about-page { background-attachment: fixed; } }
.about-page .page-bg { background: linear-gradient(to bottom, rgba(35,35,58,0) 0%, #f2e3d4 100%); }
.panel { max-width: 1200px; margin: 0 auto; background: rgba(35,35,58,.95); border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,.3); padding: clamp(18px, 4vw, 40px); }
.panel .breadcrumb, .panel .breadcrumb a, .panel .breadcrumb .sep { color: #cfc8dc; } .panel .breadcrumb [aria-current] { color: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: start; }
.about-intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 8px; }
.about-intro img { width: min(100%, 260px); }
.about-intro h1 { margin: 0; color: #fff; font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.15; }
.about-intro .role { color: var(--gold); margin: 0; }
.about-intro .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.stack { display: grid; gap: 22px; }
.info-card { background: #fff; color: #000; border-radius: 10px; padding: 18px 20px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.info-card h2 { display: inline-block; background: #d3a371; color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; margin: 0 0 12px; }
.info-card ul { margin: 0; padding-left: 1.1em; }
.info-card li { margin: 0 0 8px; line-height: 1.55; font-size: .98rem; } .info-card li:last-child { margin-bottom: 0; }
.about-grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; margin-top: 22px; }
.about-art { border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.3); min-height: 180px; background: #e9dcc7 url('../img/pattern.jpg') center / cover no-repeat; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tags li { margin: 0; background: #fbf7f1; border: 1px solid #e3d6c6; border-radius: 999px; padding: 7px 14px; font-size: .92rem; }
@media (max-width: 860px) { .about-grid, .about-grid-2 { grid-template-columns: 1fr; } .about-art { min-height: 160px; order: 2; } }

/* ---------- Articles ---------- */
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 10px; }
.article-card { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 24px; border-radius: var(--radius); background: #fbf7f1; border: 1px solid #eadfce; border-top: 3px solid var(--gold); }
.article-card h2 { font-size: 1.12rem; line-height: 1.4; margin: 0; color: #222; }
.article-card .tag { color: var(--gold-dark); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.article-card .btn { align-self: flex-start; padding: 9px 20px; }

/* ---------- Contact ---------- */
.contact-intro { text-align: center; max-width: 760px; margin: -6px auto 26px; color: #555; font-size: 1.05rem; }
.map { width: 100%; height: clamp(260px, 42vw, 400px); border: 0; border-radius: 8px; display: block; background: #e8e3da; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(22px, 4vw, 48px); margin-top: 30px; }
.contact-info h2, .feedback-form h2 { margin: 0 0 14px; font-size: 1.35rem; color: #222; }
.contact-info p { margin: 0 0 10px; color: #555; }
.contact-info a { color: #000; text-decoration: none; border-bottom: 1px solid var(--gold); }
.contact-info .row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.contact-info .row i { color: var(--gold); margin-top: 5px; width: 18px; text-align: center; }
form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
form { display: flex; flex-direction: column; gap: 10px; }
input, textarea { width: 100%; padding: 13px 12px; border: 1px solid #ddd; border-radius: 8px; font: inherit; font-size: 16px; /* 16px stops iOS zoom */ background: #f9f9f9; outline: none; transition: background .2s, border-color .2s; }
input:focus, textarea:focus { background: #fff; border-color: #666; }
textarea { resize: vertical; min-height: 120px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: #555; line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: #333; }
form button[type=submit] { background: #333; color: #fff; border: 0; padding: 14px; font-size: 1rem; border-radius: 8px; cursor: pointer; transition: background .2s; min-height: 48px; }
form button[type=submit]:hover { background: #555; }
form button[type=submit]:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 0; padding: 12px 14px; border-radius: 8px; font-size: .95rem; display: none; }
.form-status.ok { display: block; background: #e8f5e9; color: #1b5e20; } .form-status.err { display: block; background: #fdecea; color: #8a1c13; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { form .two { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 34px var(--pad) 22px; text-align: center; }
.footer-links { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.site-footer a { color: var(--gold); text-decoration: none; font-size: .95rem; display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .linkedin { font-size: 30px; }
.copy { margin: 18px 0 0; font-size: .8rem; color: #8a8a99; }
@media (min-width: 900px) { .footer-links { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px 32px; } .site-footer .linkedin { order: -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .marquee-track { transform: none; width: auto; justify-content: center; } .marquee-track span:nth-child(2) { display: none; }
}

.info-card ul.tags { padding-left: 0; }

/* ---------- Full-height layout (footer always at the bottom, no stray strip) ---------- */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
main { flex: 1 0 auto; display: flex; flex-direction: column; }
main > * { flex-shrink: 0; }
main > .practice-areas, main > .page-bg { flex: 1 0 auto; }

/* ---------- Article tabs ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 2px solid #eadfce; margin: 0 0 26px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 14px 18px; min-height: 48px; font-size: 1rem; font-weight: 600; color: #555; cursor: pointer; white-space: nowrap; transition: color .2s, border-color .2s, background .2s; }
.tabs button:hover { color: #000; background: #fbf7f1; }
.tabs button[aria-selected="true"] { color: #000; border-bottom-color: var(--gold); }
.tab-panel .tag { color: var(--gold-dark); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.tab-panel h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.25; margin: 0 0 22px; color: #222; }
.article-pending { color: #666; margin: 0 0 22px; }
.article-body { max-width: 780px; font-size: 1.05rem; line-height: 1.8; color: #333; }
.article-body h3 { font-size: 1.25rem; margin: 1.8em 0 .5em; color: #222; }
.article-body p, .article-body li { margin: 0 0 1em; }
.tab-panel[hidden] { display: none; }

.tabs button { -webkit-tap-highlight-color: transparent; border-radius: 0; }
.tabs button:hover { background: none; }
@media (hover: hover) { .tabs button:hover { background: #fbf7f1; } }
.tabs button:focus:not(:focus-visible) { outline: none; }

/* ---------- Single article page ---------- */
.article-page { max-width: 860px; }
.article-page .tag { color: var(--gold-dark); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.article-title { font-family: var(--serif); font-size: clamp(1.7rem, 4.2vw, 2.6rem); line-height: 1.2; margin: 0 0 26px; color: #222; }
.article-body h2 { font-size: 1.5rem; margin: 1.8em 0 .5em; color: #222; }
.article-body blockquote { margin: 1.2em 0; padding: .4em 1.2em; border-left: 3px solid var(--gold); color: #555; font-style: italic; }
.article-body { max-width: none; overflow-wrap: anywhere; }
.article-body table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.article-body td, .article-body th { border: 1px solid #ddd; padding: 8px 10px; }
.article-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid #eee; }
.article-nav a { text-decoration: none; font-weight: 600; color: #333; padding: 10px 0; }
.article-nav a:hover { color: var(--gold-dark); }

/* article text extras */
.article-body h4 { font-size: 1.05rem; margin: 1.4em 0 .4em; color: #333; }
.article-body strong { color: #222; }
.article-body .note { color: #666; font-style: italic; border-top: 1px solid #eee; padding-top: 1em; margin-top: 2em; }
.article-body .ref { font-size: .95rem; }
.article-body a { color: #8a5a2b; text-underline-offset: 2px; }
.article-body sup a { text-decoration: none; padding: 0 1px; }
.article-body .footnotes { margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid #ddd; font-size: .92rem; color: #555; }
.article-body .footnotes .back { text-decoration: none; margin-left: 4px; }
.article-body ul { padding-left: 1.3em; }

.site-footer a.plain { font-size: inherit; color: #8a8a99; display: inline; padding: 0; text-decoration: underline; }
.consent a { color: #8a5a2b; }

/* =========================================================
   Photos, credentials, academic path, polish
   ========================================================= */
.hero { background: radial-gradient(900px 420px at 88% 10%, rgba(212,163,115,.20), transparent 62%), linear-gradient(180deg, #0c0c2a, var(--navy)); }
.hero-logo { filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); }

/* credentials strip */
.creds { background: #fff; border-bottom: 1px solid #eee; }
.creds ul { list-style: none; margin: 0 auto; padding: 0; max-width: 1200px; display: grid; grid-template-columns: repeat(5, 1fr); }
.creds li + li { border-left: 1px solid #eee; }
.creds a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 22px 10px; text-decoration: none; color: #333; transition: background .25s; }
.creds b { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--gold-dark); line-height: 1; }
.creds span { font-size: .86rem; line-height: 1.35; color: #555; }
@media (hover: hover) { .creds a:hover { background: #fbf7f1; } }
@media (max-width: 860px) {
  .creds ul { grid-template-columns: repeat(6, 1fr); }
  .creds li { grid-column: span 2; border-top: 1px solid #eee; } .creds li:nth-child(-n+3) { border-top: 0; }
  .creds li:nth-child(4) { grid-column: 2 / span 2; } .creds li:nth-child(5) { grid-column: 4 / span 2; }
  .creds li:nth-child(4) { border-left: 0; } 
}
@media (max-width: 520px) {
  .creds ul { grid-template-columns: 1fr 1fr; }
  .creds li, .creds li:nth-child(4), .creds li:nth-child(5) { grid-column: auto; border-left: 0; border-top: 1px solid #eee; }
  .creds li:nth-child(-n+2) { border-top: 0; } .creds li:nth-child(even) { border-left: 1px solid #eee; }
  .creds li:nth-child(5) { grid-column: 1 / -1; border-left: 0; }
  .creds a { padding: 16px 8px; }
}

/* portrait */
.portrait { width: min(100%, 280px); aspect-ratio: 1; object-fit: cover; object-position: 50% 22%; border-radius: 50%; border: 4px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.cta img { object-fit: cover; }

/* practice-area detail picture */
.detail-grid { display: grid; grid-template-columns: minmax(230px, 340px) 1fr; gap: clamp(22px, 4vw, 44px); align-items: start; }
.detail-fig { margin: 0; position: sticky; top: calc(var(--header-h) + 18px); }
.detail-fig[hidden] { display: none; }
.detail-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.18); background: #eee; }
@media (max-width: 760px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-fig { position: static; }
  .detail-fig img { aspect-ratio: 4 / 3; }
}

/* "where I studied" strip on About */
.studied { margin-top: 26px; }
.studied-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.studied-head h2 { margin: 0; color: #fff; font-family: var(--serif); font-size: 1.7rem; }
.studied-head a { color: var(--gold); text-decoration: none; font-weight: 600; } .studied-head a:hover { text-decoration: underline; }
.studied-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.studied-card { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.studied-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.studied-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,35,.85), rgba(10,10,35,0) 60%); }
.studied-card .lbl { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; color: #fff; font-weight: 600; font-size: .92rem; line-height: 1.3; }
@media (hover: hover) { .studied-card:hover img { transform: scale(1.06); } }
@media (max-width: 860px) { .studied-grid { grid-template-columns: repeat(2, 1fr); } }

/* academic path: gallery + lightbox */
.tab-panel h2 { font-family: var(--serif); }
.tab-panel .fact { max-width: 780px; color: #444; font-size: 1.05rem; margin: 0 0 22px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery.n1 { grid-template-columns: 1fr; } .gallery.n2 { grid-template-columns: repeat(2, 1fr); }
.shot { position: relative; padding: 0; border: 0; background: #ddd; border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; -webkit-tap-highlight-color: transparent; }
.shot.featured { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shot .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; text-align: left; color: #fff; font-size: .85rem; background: linear-gradient(to top, rgba(0,0,0,.7), transparent); }
@media (hover: hover) { .shot:hover img { transform: scale(1.05); } }
@media (max-width: 760px) {
  .gallery, .gallery.n2 { grid-template-columns: repeat(2, 1fr); }
  .shot.featured { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 420px) { .shot .cap { font-size: .78rem; padding: 20px 8px 8px; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; color: #fff; }
.lightbox::backdrop { background: rgba(6,6,20,.92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; gap: 8px; }
.lightbox figure { margin: 0; max-width: min(92vw, 1100px); text-align: center; }
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: 6px; object-fit: contain; }
.lightbox figcaption { margin-top: 10px; font-size: .95rem; color: #ddd; }
.lb-close, .lb-nav { background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; flex: none; }
.lb-close { position: absolute; top: 14px; right: 14px; } .lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.25); }
@media (max-width: 600px) { .lb-nav { position: absolute; bottom: 18px; } .lb-nav.prev { left: 18px; } .lb-nav.next { right: 18px; } .lightbox img { max-height: 70vh; } }

/* gentle reveal on scroll (only when JS is running) */
.js .reveal:not(.in-view) { opacity: 0; transform: translateY(14px); }
.reveal { transition: opacity .6s ease, transform .6s ease, box-shadow .3s ease; }
@media (prefers-reduced-motion: reduce) { .js .reveal:not(.in-view) { opacity: 1; transform: none; } }
.gallery.n4 { grid-template-columns: repeat(2, 1fr); }

/* --- round 3: hero with photo, listen band, stops --- */
.hero-photo { width: min(100%, 360px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; justify-self: center; border: 3px solid rgba(212,163,115,.7); box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.hero-inner { grid-template-columns: 1fr 1.3fr; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero-photo { width: 190px; }
  .hero-actions { justify-content: center; width: 100%; }
  .hero .small-line.left { margin-left: auto; margin-right: auto; }
  .hero .btn { width: auto; flex: 1 1 140px; }
}
.listen { background: linear-gradient(180deg, #14142e, #0c0c2a); color: #fff; text-align: center; padding: clamp(48px, 8vw, 90px) var(--pad); }
.listen h2 { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.8rem); margin: 0 0 24px; }
.stops-grid { grid-template-columns: repeat(2, minmax(0, 340px)); }
@media (max-width: 560px) { .stops-grid { grid-template-columns: 1fr; } }

/* --- detailed services under the six practice areas --- */
.svc { text-align: left; }
.practice-areas .svc h2.svc-title { font-family: var(--serif); text-align: center; font-size: clamp(1.9rem, 4.4vw, 2.8rem); color: #222; margin: 0 0 14px; }
.svc-quote { margin: 0 auto 34px; max-width: 760px; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.5; color: #555; }
.svc-quote::before, .svc-quote::after { content: ""; display: block; width: 56px; height: 2px; background: var(--gold); margin: 14px auto; }
.svc-group { margin-top: 38px; padding-top: 26px; border-top: 1px solid #e6e0d6; }
.svc-group:first-of-type { margin-top: 0; }
.svc-group-h { font-size: clamp(1.15rem, 2.2vw, 1.4rem); letter-spacing: .06em; color: var(--navy); margin: 0 0 14px; padding-left: 14px; border-left: 4px solid var(--gold); line-height: 1.3; }
.svc-sub { margin-top: 24px; }
.svc-sub h4 { font-size: 1.08rem; color: #8a6d2f; margin: 0 0 8px; }
.svc p { color: #444; line-height: 1.75; margin: 0 0 .9em; font-size: clamp(.98rem, 1.4vw, 1.06rem); }
.svc-list { margin: 0 0 .5em; padding-left: 1.2em; color: #444; line-height: 1.7; }
.svc-list li { margin-bottom: .6em; } .svc-list strong { color: #222; }

/* --- services button + panel (replaces the always-open block) --- */
.svc-wrap { text-align: center; }
.svc-btn { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font: inherit; font-weight: 700; font-size: clamp(1rem, 2vw, 1.15rem); color: #1c1c1c; background: var(--gold); border: 0; border-radius: 999px; padding: 16px 30px; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .2s, box-shadow .2s, background .2s; -webkit-tap-highlight-color: transparent; max-width: 100%; text-align: left; }
.svc-btn i { transition: transform .3s; }
.svc-btn[aria-expanded="true"] i { transform: rotate(180deg); }
@media (hover: hover) { .svc-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); } }
.svc-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.svc[hidden] { display: none; }
.svc { margin-top: 26px; text-align: left; background: #fff; border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,.12); padding: clamp(20px, 4vw, 44px); }
.svc.shown { animation: svcIn .45s ease both; }
@keyframes svcIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .svc.shown { animation: none; } }
.svc h2.svc-title, .practice-areas .svc h2.svc-title { font-family: var(--serif); text-align: center; font-size: clamp(1.7rem, 4vw, 2.5rem); color: #222; margin: 0 0 14px; }
.svc-quote { margin: 0 auto 28px; max-width: 700px; text-align: left; font-style: italic; font-size: clamp(1.02rem, 1.8vw, 1.2rem); line-height: 1.55; color: #444; padding: 14px 20px; background: #faf8f2; border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; }
.svc-group { margin-top: 22px; padding: clamp(16px, 3vw, 26px); background: #fcfbf8; border: 1px solid #ece6d8; border-left: 4px solid var(--gold); border-radius: 8px; }
.svc-group:nth-of-type(3) { border-left-color: #4a4038; }
.svc-group-h { font-size: clamp(1.05rem, 2vw, 1.3rem); letter-spacing: .04em; color: #1c1c1c; margin: 0 0 12px; line-height: 1.3; }
.svc-sub { margin-top: 16px; }
.svc-sub h4 { font-size: 1.05rem; color: #8a6d2f; margin: 0 0 6px; }
.svc p { color: #444; line-height: 1.7; margin: 0 0 .8em; font-size: clamp(.97rem, 1.4vw, 1.04rem); }
.svc-list { margin: 0 0 .4em; padding-left: 1.2em; color: #444; line-height: 1.65; }
.svc-list li { margin-bottom: .55em; } .svc-list strong { color: #1c1c1c; }
/* sub-headings inside the practice-area detail pages */
.sheet .body .d-sub { font-size: 1.15rem; color: #1c1c1c; margin: 28px 0 10px; padding-left: 12px; border-left: 4px solid var(--gold); }
.sheet .body .d-h4 { font-size: 1.04rem; color: #8a6d2f; margin: 20px 0 6px; }
.sheet .body .svc-list { color: #444; font-size: clamp(1rem, 1.5vw, 1.08rem); line-height: 1.7; }

/* hero name on a single line */
.hero h1 { white-space: nowrap; font-size: clamp(1.1rem, 5.3vw, 2.4rem); }
@media (min-width: 961px) { .hero h1 { font-size: min(2.5rem, 3.1vw); } }
.hero-inner > div { min-width: 0; }

/* hero spacing: tagline -> buttons equals name -> tagline */
.hero p { margin-bottom: 0; }
.hero-actions { margin-top: 20px; }
