/* Agahi Law — Redesign (brand-aligned with agahi_law_logo_transparent.png) */

:root {
  --brand: #c9a36a;
  --brand-deep: #a8844f;
  --brand-soft: #f3ead9;
  --bronze: #c9a36a;
  --bronze-deep: #a8844f;
  --grey: #8b9199;
  --grey-deep: #5c636c;
  --ink: #0b0d10;
  --ink-elevated: #14181f;
  --ink-line: rgba(255, 255, 255, 0.08);
  --paper: #f4f5f7;
  --paper-warm: #ebecea;
  --line: rgba(11, 13, 16, 0.1);
  --text: #0b0d10;
  --text-muted: #4a5058;
  --text-on-ink: #f4f3f0;
  --text-on-ink-muted: rgba(244, 243, 240, 0.72);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.75rem;
  --max: 72rem;
  --logo-h: 2.6rem;
  --logo-h-lg: 3rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* —— Logo —— */
.brand-logo {
  display: block;
  height: var(--logo-h);
  width: auto;
}

.brand-logo--lg {
  height: var(--logo-h-lg);
}

.footer-logo {
  height: 2.75rem;
  width: auto;
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 0.85rem 1rem 0.35rem;
  background: transparent;
}

/* Home: hero fills viewport from the top; chrome floats over it */
.page-home .site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.page-home .hero {
  margin-top: 0;
  padding-top: calc(var(--nav-h) + 1.5rem);
  min-height: 100vh;
  min-height: 100dvh;
}

.nav-shell {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(11, 13, 16, 0.06);
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 12px 40px rgba(11, 13, 16, 0.07);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.site-nav.is-scrolled .nav-shell {
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 48px rgba(11, 13, 16, 0.1);
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.15rem 0.25rem;
}

.nav-links {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.nav-item {
  position: relative;
  color: var(--grey-deep);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-item:hover {
  color: var(--ink);
  background: rgba(11, 13, 16, 0.04);
}

.nav-item.is-active {
  color: var(--bronze-deep);
  background: var(--brand-soft);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-cta {
  display: none;
  align-items: center;
  padding: 0.7rem 1.2rem;
  background: var(--ink);
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 6px 18px rgba(11, 13, 16, 0.18);
}

.nav-cta:hover {
  background: #1c2129;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 13, 16, 0.22);
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: rgba(11, 13, 16, 0.04);
  color: var(--ink);
  transition: background 0.2s var(--ease);
}

.menu-btn:hover {
  background: rgba(11, 13, 16, 0.08);
}

.menu-btn-lines,
.menu-btn-lines::before,
.menu-btn-lines::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.menu-btn-lines {
  position: relative;
}

.menu-btn-lines::before,
.menu-btn-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn-lines::before {
  top: -5px;
}

.menu-btn-lines::after {
  top: 5px;
}

.menu-btn[aria-expanded="true"] .menu-btn-lines {
  background: transparent;
}

.menu-btn[aria-expanded="true"] .menu-btn-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-btn-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
  max-width: var(--max);
  margin: 0.55rem auto 0;
  padding: 0.65rem;
  flex-direction: column;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(11, 13, 16, 0.06);
  border-radius: 1.25rem;
  box-shadow: 0 18px 50px rgba(11, 13, 16, 0.12);
}

.mobile-menu.is-open {
  display: flex;
  animation: nav-drop 0.35s var(--ease);
}

@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu a {
  color: var(--ink);
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.85rem;
  transition: background 0.2s var(--ease);
}

.mobile-menu a:hover {
  background: rgba(11, 13, 16, 0.04);
}

.mobile-menu .mobile-cta {
  margin-top: 0.35rem;
  text-align: center;
  background: var(--ink);
  color: #fff;
}

.mobile-menu .mobile-cta:hover {
  background: #1c2129;
  color: #fff;
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .menu-btn {
    display: none;
  }
}

@media (max-width: 959px) {
  .nav-shell {
    border-radius: 1.25rem;
    padding-left: 0.85rem;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--text-on-ink);
  overflow: hidden;
  padding-top: 2rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.08) translate(-1%, -0.5%);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.28) 0%, rgba(11, 13, 16, 0.16) 38%, rgba(11, 13, 16, 0.72) 100%),
    linear-gradient(90deg, rgba(11, 13, 16, 0.48) 0%, transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
  width: 100%;
}

.hero-logo {
  height: clamp(3.5rem, 8vw, 5.5rem);
  width: auto;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.1s forwards;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
  background: rgba(255, 255, 255, 0.96);
  padding: 0.65rem 1rem;
  border-radius: 0.35rem;
}

.hero-lead {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-on-ink-muted);
  margin: 0 0 2rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.3s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.45s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.9375rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--bronze);
  color: var(--ink);
}

.btn-primary:hover {
  background: #d4b37e;
}

.btn-ghost {
  border: 1px solid rgba(244, 243, 240, 0.4);
  color: var(--text-on-ink);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-on-ink-muted);
  animation: bounce 2.2s ease-in-out infinite;
}

.scroll-hint svg {
  width: 1.25rem;
  height: 1.25rem;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* —— Page hero (inner pages) —— */
.page-hero {
  padding: 3.5rem 1.5rem 3.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(201, 163, 106, 0.22), transparent 55%),
    linear-gradient(180deg, #0f1218 0%, var(--ink) 100%);
  color: var(--text-on-ink);
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero .eyebrow {
  color: var(--bronze);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.page-hero p {
  margin: 0;
  max-width: 36rem;
  color: var(--text-on-ink-muted);
  font-size: 1.15rem;
}

/* —— Sections —— */
.section {
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.section--ink {
  background: var(--ink);
  color: var(--text-on-ink);
}

.section--ink .eyebrow {
  color: var(--bronze);
}

.section--ink .section-head p {
  color: var(--text-on-ink-muted);
}

.section--paper {
  background: var(--paper);
}

.section--warm {
  background: var(--paper-warm);
}

.section--white {
  background: #fff;
}

/* —— Services —— */
.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.35s var(--ease);
  align-items: start;
}

@media (min-width: 768px) {
  .service-row {
    grid-template-columns: 12rem minmax(0, 1fr) auto;
    gap: 2rem;
  }
}

.service-row:hover {
  padding-left: 0.5rem;
}

.service-row h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.service-body {
  min-width: 0;
}

.service-text {
  color: var(--text-muted);
  max-width: 40rem;
}

.service-text p {
  margin: 0 0 0.65rem;
}

.service-text p:last-child {
  margin-bottom: 0;
}

.service-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding: 0;
  color: var(--bronze-deep);
  font-size: 0.875rem;
  font-weight: 650;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}

.service-toggle:hover {
  color: var(--bronze);
  gap: 0.55rem;
}

.service-toggle svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.25s var(--ease);
}

.service-toggle[data-expanded="true"] svg {
  transform: rotate(180deg);
}

.service-page-link {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--bronze-deep);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .service-page-link {
    margin-top: 0.15rem;
  }
}

.service-page-link:hover {
  gap: 0.55rem;
}

/* —— Team —— */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.5rem;
}

.team-card figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0.35rem;
  background: var(--ink-elevated);
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.7s var(--ease);
}

.team-card:hover img {
  transform: scale(1.05);
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1rem 0 0.2rem;
}

.team-card .role {
  color: var(--bronze);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
}

.team-card .bio {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-on-ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.team-subhead {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 3rem 0 1.5rem;
}

.team-subhead:first-of-type {
  margin-top: 0;
}

/* —— Quote —— */
.quote-block {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.quote-block blockquote {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
}

.quote-block cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--grey-deep);
  font-weight: 600;
}

.stars {
  color: var(--brand);
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

/* —— Contact —— */
.contact-panel {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .contact-panel {
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
  }
}

.contact-details h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
}

.detail-row {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ink-line);
}

.detail-row:first-of-type {
  border-top: 1px solid var(--ink-line);
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze);
}

.detail-row p,
.detail-row a {
  margin: 0;
  color: var(--text-on-ink);
}

.map-frame {
  min-height: 320px;
  border-radius: 0.35rem;
  overflow: hidden;
  border: 1px solid var(--ink-line);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* —— Article / practice pages —— */
.article-wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.article-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  margin: 2.75rem 0 1rem;
  letter-spacing: -0.015em;
}

.article-wrap p {
  color: var(--text-muted);
  margin: 0 0 1.1rem;
}

.article-wrap a {
  color: var(--brand);
  font-weight: 600;
}

.article-wrap a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-lead {
  font-size: 1.2rem;
  color: var(--text) !important;
  line-height: 1.7;
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--grey) !important;
  margin-top: 2rem !important;
}

.notice {
  background: #fff8e8;
  border-left: 4px solid #e0a800;
  padding: 1.15rem 1.25rem;
  border-radius: 0 0.35rem 0.35rem 0;
  margin: 0 0 2rem;
  color: #6b5200;
  font-size: 0.95rem;
}

.notice strong {
  display: block;
  margin-bottom: 0.35rem;
}

/* —— Blog —— */
.blog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .blog-toolbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.blog-search {
  position: relative;
  width: 100%;
  max-width: 22rem;
}

.blog-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
}

.blog-search svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--grey);
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-filters button {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--grey-deep);
}

.blog-filters button.is-active,
.blog-filters button:hover {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--ink);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(11, 13, 16, 0.08);
}

.blog-card img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.25rem;
}

.blog-card-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  color: var(--grey);
}

.blog-card-cat {
  background: var(--brand-soft);
  color: var(--bronze-deep);
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.blog-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .read-more {
  color: var(--brand);
  font-weight: 650;
  font-size: 0.875rem;
}

.related-links {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .related-links {
    grid-template-columns: 1fr 1fr;
  }
}

.related-links a {
  color: var(--brand);
  font-weight: 650;
}

.related-links a:hover {
  text-decoration: underline;
}

.admin-link {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.75rem;
}

.admin-link a {
  color: var(--grey);
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: var(--text-on-ink-muted);
  padding: 3.5rem 1.5rem 2rem;
  border-top: 1px solid var(--ink-line);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  margin: 1rem 0 0;
  max-width: 22rem;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: var(--text-on-ink);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--bronze);
}

.footer-bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
  font-size: 0.8rem;
  text-align: center;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--brand-soft);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 3rem auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* —— Team cards & modal —— */
.team-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ink-line);
  border-radius: 0.5rem;
  overflow: hidden;
  padding-bottom: 1.25rem;
}

.team-card .card-body {
  padding: 0 1.15rem;
}

.team-card .langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-on-ink-muted);
}

.team-card .lang-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(201, 163, 106, 0.18);
  color: var(--bronze);
  font-weight: 600;
  font-size: 0.72rem;
}

.team-card .card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-card .read-more-btn {
  color: var(--bronze);
  font-weight: 650;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.team-card .read-more-btn:hover {
  color: #d4b37e;
}

.email-reveal-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(201, 163, 106, 0.2);
  color: var(--bronze);
  font-size: 0.85rem;
  font-weight: 650;
  border: 1px solid rgba(201, 163, 106, 0.35);
  cursor: pointer;
}

.email-reveal-btn:hover {
  background: rgba(201, 163, 106, 0.35);
}

.email-reveal-btn--light {
  background: var(--brand-soft);
  color: var(--bronze-deep);
  border-color: rgba(168, 132, 79, 0.35);
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(201, 163, 106, 0.2);
  border: 1px solid rgba(201, 163, 106, 0.45);
  color: var(--bronze);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: rise 1s var(--ease) 0.05s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.2vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 38rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.2s forwards;
}

.hero-title em {
  font-style: normal;
  color: var(--bronze);
}

.hero-tagline {
  display: inline-block;
  margin: 0 0 1.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--bronze);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  color: var(--text-on-ink);
  opacity: 0;
  animation: rise 1s var(--ease) 0.32s forwards;
}

.team-member-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 9999;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
}

.team-member-modal .modal-container {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  width: 100%;
  max-width: 48rem;
  margin: 2rem auto;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.team-member-modal .modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  color: var(--ink);
}

.team-member-modal .modal-grid {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .team-member-modal .modal-grid {
    flex-direction: row;
  }
}

.team-member-modal .modal-photo {
  width: 100%;
  min-height: 16rem;
  max-height: 22rem;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 768px) {
  .team-member-modal .modal-photo-wrap {
    width: 36%;
    flex-shrink: 0;
  }
  .team-member-modal .modal-photo {
    height: 100%;
    max-height: none;
    min-height: 100%;
  }
}

.team-member-modal .modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: 70vh;
}

@media (min-width: 768px) {
  .team-member-modal .modal-body {
    width: 64%;
    max-height: 80vh;
  }
}

.team-member-modal h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 0.25rem;
}

.team-member-modal .modal-role {
  color: var(--bronze-deep);
  font-weight: 650;
  margin: 0 0 1.25rem;
}

.team-member-modal h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.team-member-modal .modal-section {
  margin-bottom: 1.15rem;
}

.team-member-modal .lang-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--bronze-deep);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0.35rem 0.35rem 0;
}

.team-member-modal .modal-bio p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* —— Notice / blog post —— */
.notice-box {
  margin: 0 0 2rem;
  padding: 1.25rem 1.35rem;
  border-left: 4px solid var(--bronze);
  background: var(--brand-soft);
}
.notice-box h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.notice-box p { margin: 0; color: var(--text-muted); line-height: 1.65; }
.post-body { color: var(--text); line-height: 1.75; }
.post-body h2, .post-body h3 { font-family: var(--font-display); margin-top: 1.75rem; }
.post-body img { max-width: 100%; height: auto; }
.post-body a { color: var(--bronze-deep); font-weight: 600; }

/* —— Admin —— */
.page-admin {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(201, 163, 106, 0.18), transparent 55%),
    var(--paper);
}
.admin-shell {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(11, 13, 16, 0.06);
}
.admin-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.admin-card-head h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
}
.admin-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.admin-card-body { padding: 1.5rem; }
.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.admin-brand img { height: 2.5rem; width: auto; }
.admin-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.admin-login {
  max-width: 26rem;
  margin: 0 auto;
}
.admin-login .admin-card-head {
  background: var(--ink);
  color: var(--text-on-ink);
  justify-content: center;
  text-align: center;
  flex-direction: column;
}
.admin-field { margin-bottom: 1.15rem; }
.admin-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}
.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font: inherit;
  background: #fff;
}
.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  outline: 2px solid rgba(201, 163, 106, 0.45);
  outline-offset: 1px;
  border-color: var(--bronze);
}
.admin-error {
  display: none;
  color: #b42318;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.admin-error.is-visible { display: block; }
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-table td {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(243, 234, 217, 0.35); }
.admin-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  background: var(--brand-soft);
  color: var(--bronze-deep);
}
.admin-status {
  border: none;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
}
.admin-status.is-published {
  background: #e8f5e9;
  color: #1b5e20;
}
.admin-status.is-draft {
  background: #fff8e1;
  color: #8a6d00;
}
.admin-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}
.admin-row-actions a,
.admin-row-actions button {
  color: var(--grey-deep);
  background: none;
  border: none;
  padding: 0.2rem;
  cursor: pointer;
}
.admin-row-actions a:hover,
.admin-row-actions button:hover { color: var(--bronze-deep); }
.admin-row-actions .is-danger:hover { color: #b42318; }
.admin-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.admin-grid-2 {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 768px) {
  .admin-grid-2 { grid-template-columns: 1fr 1fr; }
}
.admin-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 650;
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: #e8e9eb; }
.admin-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--line);
  border-top-color: var(--bronze);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 3rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
}
.editor-toolbar button {
  padding: 0.3rem 0.5rem;
  border-radius: 0.3rem;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}
.editor-toolbar button:hover,
.editor-toolbar button.active {
  background: #e5e7eb;
  color: var(--bronze-deep);
}
.editor-content {
  min-height: 400px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0 0 0.5rem 0.5rem;
  outline: none;
  overflow-y: auto;
  background: #fff;
}
.editor-content:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 2px rgba(201, 163, 106, 0.2);
}
.editor-content blockquote {
  border-left: 4px solid var(--line);
  margin: 1rem 0;
  padding-left: 1rem;
  color: var(--text-muted);
}
.editor-content h1 { font-size: 2em; font-weight: bold; margin: 0.67em 0; }
.editor-content h2 { font-size: 1.5em; font-weight: bold; margin: 0.83em 0; }
.editor-content h3 { font-size: 1.17em; font-weight: bold; margin: 1em 0; }
.editor-content ul { list-style-type: disc; padding-left: 2em; }
.editor-content ol { list-style-type: decimal; padding-left: 2em; }
.editor-content table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.editor-content th,
.editor-content td { border: 1px solid var(--line); padding: 0.5rem; }
.editor-content th { background: var(--paper); font-weight: bold; }
.editor-html {
  display: none;
  width: 100%;
  min-height: 400px;
  font-family: ui-monospace, monospace;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}
