/* ==========================================================================
   Dr Giri Prasad C — Law Associates   ·   v3 "White, Black and Bronze"
   Design tokens live in :root. Change them here, the whole site follows.
   Light sections use the :root tokens; anything inside a "dark" block
   (topbar, hero, credentials strip, page headers, CTA, footer, pop-up)
   re-defines the same tokens in black and bronze, so components never
   hard-code a colour. When this moves to WordPress, copy both blocks.
   ========================================================================== */

:root {
  /* Light — white, near-black text */
  --bg:           #FFFFFF;
  --bg-2:         #F6F6F6;
  --bg-3:         #EDEDED;
  --text:         #111111;
  --text-dim:     #3D3D3D;
  --text-faint:   #666666;
  --gold:         #A3652D;   /* bronze, darkened to read as text on white */
  --gold-light:   #CA8646;
  --line:         rgba(202, 134, 70, .38);
  --line-soft:    rgba(202, 134, 70, .18);
  --nav-bg:       rgba(255, 255, 255, .96);
  --shadow:       rgba(0, 0, 0, .12);
  --card-shadow:  0 1px 2px rgba(0, 0, 0, .05), 0 10px 30px -12px rgba(0, 0, 0, .18);

  /* Fixed across both — the bronze fill and the text that sits on it */
  --gold-fill:    #CA8646;
  --gold-fill-hi: #D99A5E;
  --on-gold:      #000000;
  --navy:         #000000;
  --navy-2:       #111111;
  --navy-3:       #000000;
  --whatsapp:     #25D366;

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --gutter:       20px;
  --max:          1180px;
  --section-y:    clamp(56px, 9vw, 110px);

  /* Misc */
  --radius:       3px;
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

/* Dark blocks: pure black and bronze */
.topbar, .hero, .creds, .pagehead, .cta, .footer, .actionbar, .notice, .section--dark {
  --bg:           var(--navy);
  --bg-2:         var(--navy-2);
  --bg-3:         var(--navy-3);
  --text:         #FFFFFF;
  --text-dim:     rgba(255, 255, 255, .80);
  --text-faint:   rgba(255, 255, 255, .58);
  --gold:         #CA8646;
  --gold-light:   #E0A066;
  --line:         rgba(202, 134, 70, .42);
  --line-soft:    rgba(202, 134, 70, .2);
  --nav-bg:       rgba(0, 0, 0, .97);
  --shadow:       rgba(0, 0, 0, .5);
  color-scheme: dark;
  color: var(--text);
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--gold); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--gold-light); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }

p { margin: 0 0 1.1em; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ------------------------------------------------------------ helpers -- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-2); }
.section--dark {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(202, 134, 70, .10), transparent 60%),
    var(--bg);
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9em;
  display: block;
}

.lead  { font-size: 1.12rem; color: var(--text-dim); }
.muted { color: var(--text-faint); }

/* A thin gold rule with a diamond in the middle — echoes the card's frame */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 1.4em auto;
  max-width: 220px;
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.rule span {
  width: 8px; height: 8px;
  transform: rotate(45deg);
  background: var(--gold-fill);
  flex: none;
}

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .3s var(--ease);
  white-space: nowrap;
}

.btn--gold    { background: var(--gold-fill); border-color: #CA8646; color: var(--on-gold); box-shadow: 0 6px 18px -6px rgba(202, 134, 70, .55); }
.btn--gold:hover { background: var(--gold-fill-hi); border-color: #CA8646; color: var(--on-gold); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(202, 134, 70, .7); }

.btn--ghost   { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: var(--gold-fill); border-color: #CA8646; color: var(--on-gold); transform: translateY(-2px); }

.btn--wa { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; }
.btn--wa:hover { background: #1fb855; border-color: #1fb855; color: #fff; transform: translateY(-2px); }

.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* --------------------------------------------------------------- nav --- */

.topbar {
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
  color: var(--text-faint);
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a { color: var(--text-dim); }
.topbar a:hover { color: var(--gold); }
.topbar-right { display: flex; gap: 20px; }

.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.nav.is-stuck { box-shadow: 0 6px 30px var(--shadow); }

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 42px; height: 42px;
  flex: none;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 22px; height: 22px; fill: var(--gold); }
.brand-text { line-height: 1.2; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
}
.brand-sub {
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--text-dim);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  position: relative;
  padding-block: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta { display: flex; gap: 10px; }
.nav-cta .btn { padding: 11px 20px; font-size: .72rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--gold);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 110px);
  background:
    radial-gradient(ellipse at 78% 30%, rgba(202, 134, 70, .16), transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(255, 255, 255, .04), transparent 60%),
    linear-gradient(160deg, var(--bg-2), var(--bg) 55%, var(--bg-3));
}

/* faint scales-of-justice watermark behind the hero text */
.hero-watermark {
  position: absolute;
  left: -6%; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: .05;
}
.hero-watermark svg { width: min(560px, 90vw); fill: var(--gold); }

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.hero-text { min-width: 0; }

.hero h1 { margin-bottom: .15em; line-height: 1.04; }
.hero h1 .gold {
  display: block;
  background: var(--gold-fill);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-quals {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--gold-light);
  letter-spacing: .12em;
  margin-bottom: .9em;
}
.hero-role {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--text-dim);
  max-width: 34em;
  margin-bottom: 2em;
}
.hero-role strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-motto {
  margin: 2.6em 0 0;
  padding-top: 1.4em;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
}
.hero-motto span {
  font-family: var(--font-body);
  font-size: .78rem;
  color: var(--text-faint);
  letter-spacing: .04em;
}

.hero-photo {
  position: relative;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  max-width: 460px;
  justify-self: end;
  width: 100%;
}
.hero-photo::before, .hero-photo::after {
  content: "";
  position: absolute;
  width: 34px; height: 34px;
  border: 2px solid var(--gold);
}
.hero-photo::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-photo::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 55%;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.hero-photo figcaption {
  position: absolute;
  left: -18px; bottom: 34px;
  background: var(--gold-fill);
  color: var(--on-gold);
  padding: 12px 18px;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .55);
  display: grid;
  line-height: 1.3;
}
.hero-badge-title { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }
.hero-badge-sub   { font-size: .72rem; letter-spacing: .04em; }

/* ---------------------------------------------------------- creds bar -- */

.creds {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.creds-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.cred {
  background: var(--bg-2);
  padding: 30px 22px;
  text-align: center;
}
.cred-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .25em;
}
.cred-label {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ------------------------------------------------------------- about -- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}

.portrait {
  position: relative;
  border: 1px solid var(--line);
  padding: 14px;
}
.portrait::before, .portrait::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--gold);
}
.portrait::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.portrait::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.portrait { background: var(--bg); box-shadow: var(--card-shadow); }
.portrait img { width: 100%; height: auto; max-width: 100%; object-fit: cover; object-position: 50% 60%; aspect-ratio: 4 / 5; }

.quals { list-style: none; margin: 1.5em 0 0; padding: 0; display: grid; gap: 12px; }
.quals li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--text-dim);
}
.quals li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: .62em;
  flex: none;
  transform: rotate(45deg);
  background: var(--gold);
}

/* ---------------------------------------------------------- practice -- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 22px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius);
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--gold-fill);
  transition: width .45s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 22px 40px -16px rgba(0, 0, 0, .28); }
.card:hover::before { width: 100%; }

.card-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--gold-fill);
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 6px 14px -6px rgba(202, 134, 70, .6);
}
.card-icon svg { width: 22px; height: 22px; fill: var(--on-gold); }
.card h3 { color: var(--text); margin-bottom: .45em; }
.card p  { font-size: .94rem; color: var(--text-dim); margin: 0; }

/* ------------------------------------------------------------ values -- */

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.value {
  background: var(--bg);
  padding: clamp(32px, 4vw, 52px) 28px;
  text-align: center;
}
.value h3 {
  color: var(--gold);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 1.05rem;
}
.value p { font-size: .95rem; color: var(--text-dim); margin: 0; }

/* ----------------------------------------------------------- process -- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 54px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold-light);
}
.step h3 { font-size: 1.1rem; margin-bottom: .35em; }
.step p  { font-size: .94rem; color: var(--text-dim); margin: 0; }

/* ----------------------------------------------------------- offices -- */

.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.office {
  border: 1px solid var(--line);
  padding: 36px 32px;
  background: var(--bg);
  box-shadow: var(--card-shadow);
  border-top: 3px solid var(--gold-light);
  position: relative;
}
.office-tag {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.office-tag svg { width: 15px; height: 15px; fill: var(--gold); }
.office address {
  font-style: normal;
  color: var(--text-dim);
  font-size: .97rem;
  line-height: 1.85;
}

/* ---------------------------------------------------------- contact --- */

.cta {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(202, 134, 70, .13), transparent 62%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 1.8em; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 60px); }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-ico {
  width: 40px; height: 40px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.contact-ico svg { width: 17px; height: 17px; fill: var(--gold); }
.contact-label {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .25em;
}
.contact-value { color: var(--text); font-size: .98rem; line-height: 1.6; }

form { display: grid; gap: 16px; }
.field label {
  display: block;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .6em;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-note { font-size: .8rem; color: var(--text-faint); margin: 0; }

/* ------------------------------------------------------------ footer -- */

.footer { background: var(--bg-3); border-top: 1px solid var(--line); padding-block: clamp(46px, 6vw, 72px) 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr;
  gap: clamp(28px, 4vw, 54px);
  padding-bottom: 46px;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4em;
}
.footer p, .footer li { font-size: .9rem; color: var(--text-faint); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-faint); }
.footer ul a:hover { color: var(--gold); }

.disclaimer {
  border-top: 1px solid var(--line-soft);
  padding-block: 26px;
  font-size: .78rem;
  color: var(--text-faint);
  line-height: 1.8;
}
.copyright {
  border-top: 1px solid var(--line-soft);
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--text-faint);
}

/* ------------------------------------------------------- sticky bar --- */

.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: none;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.actionbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 11px 6px;
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.actionbar a svg { width: 19px; height: 19px; fill: var(--gold); }
.actionbar a.wa svg { fill: var(--whatsapp); }

/* ------------------------------------------------------- page header -- */

.pagehead {
  padding-block: clamp(56px, 8vw, 100px);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, var(--line-soft), transparent 62%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: .76rem; color: var(--text-faint); letter-spacing: .1em; }

/* ------------------------------------------------------------ reveal -- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------- responsive - */

@media (max-width: 980px) {
  .creds-grid { grid-template-columns: repeat(2, 1fr); }
  .steps      { grid-template-columns: repeat(2, 1fr); }
  .values     { grid-template-columns: 1fr; }
  .split, .offices, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portrait { max-width: 400px; margin-inline: auto; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-cta    { display: none; }

  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
  }
  .nav-links.is-open { max-height: 420px; }
  .nav-links li { border-bottom: 1px solid var(--line-soft); }
  .nav-links a { display: block; padding: 16px var(--gutter); }
  .nav-links a::after { display: none; }

  .actionbar { display: flex; }
  body { padding-bottom: 62px; }

  .topbar-right { display: none; }
}

@media (max-width: 560px) {
  .creds-grid { grid-template-columns: 1fr; }
  .steps      { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}

/* ------------------------------------------------- BCI entry notice --- */
/* Shown on first visit; main.js removes [hidden] until the visitor agrees. */

.notice {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top, 0px)) var(--gutter) max(20px, env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}

.notice-box {
  width: 100%;
  max-width: 620px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 48px);
  position: relative;
  text-align: center;
}
.notice-box::before, .notice-box::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--gold);
}
.notice-box::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.notice-box::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.notice-box h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 0; }
.notice-box p  { color: var(--text-dim); font-size: .95rem; text-align: left; }

.notice-box ul {
  list-style: none;
  margin: 0 0 1.6em;
  padding: 0;
  display: grid;
  gap: 10px;
  text-align: left;
}
.notice-box li {
  display: flex;
  gap: 12px;
  font-size: .9rem;
  color: var(--text-faint);
  line-height: 1.65;
}
.notice-box li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: .6em;
  flex: none;
  transform: rotate(45deg);
  background: var(--gold);
}

.notice-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.notice[hidden] { display: none; }
body.notice-open { overflow: hidden; }

@media (max-width: 560px) {
  .notice-actions .btn { width: 100%; }
}

/* ----------------------------------------------- home: motto panel --- */

.motto-panel {
  --text-faint: rgba(255, 255, 255, .6);
  --gold: #CA8646;
  --line: rgba(202, 134, 70, .42);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(202, 134, 70, .14), transparent 60%),
    var(--navy);
  color: #FFFFFF;
  padding: clamp(32px, 5vw, 52px);
  text-align: center;
  position: relative;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .5);
}
.motto-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.motto-panel-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.2;
  margin-bottom: .3em;
  background: var(--gold-fill);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.motto-panel-sub { font-size: .85rem; color: var(--text-faint); margin: 0; }
.motto-facts { margin: 0; display: grid; gap: 14px; text-align: left; position: relative; }
.motto-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(202, 134, 70, .2);
}
.motto-facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.motto-facts dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding-top: .2em; }
.motto-facts dd { margin: 0; text-align: right; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: center; max-width: 340px; order: -1; }
}
@media (max-width: 560px) {
  .hero-photo figcaption { left: 8px; right: 8px; bottom: 22px; }
  .hero-photo { max-width: 300px; padding: 8px; }
  .hero-photo img { aspect-ratio: 1 / 1; object-position: 50% 70%; }
  .hero-photo figcaption { padding: 8px 12px; bottom: 16px; }
  .hero-badge-title { font-size: 1rem; }
  .motto-facts div { flex-direction: column; gap: 2px; }
  .motto-facts dd { text-align: left; }
}
