/* ============================================================
   Vahram Ornekian, MD — refined editorial / private-practice
   Ink navy · warm ivory · oxblood accent · Fraunces + Albert Sans
   ============================================================ */

:root {
  --ink: #0d1f2b;
  --ink-2: #122936;
  --ink-soft: #2e4453;
  --paper: #f7f3ea;
  --paper-2: #efe9db;
  --oxblood: #8a2e3c;
  --oxblood-soft: #a8505d;
  --gold: #b3946a;
  --line: rgba(13, 31, 43, 0.14);
  --line-light: rgba(247, 243, 234, 0.18);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Albert Sans", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--oxblood); color: var(--paper); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--oxblood);
  color: var(--paper);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}
.topbar-inner {
  max-width: 1240px; margin: 0 auto; padding: 0.45rem 2rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.topbar a { color: var(--paper); text-decoration: none; font-weight: 600; white-space: nowrap; }
.topbar a:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 8px 32px rgba(13, 31, 43, 0.08); }
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0.85rem 2rem;
  display: flex; align-items: center; gap: 2rem;
}
.nav-name { text-decoration: none; display: flex; flex-direction: row; align-items: center; gap: 0.85rem; line-height: 1.15; }
.vo-logo { width: 42px; height: 42px; flex-shrink: 0; overflow: visible; }
.vo-hover { opacity: 0; transition: opacity 0.3s ease; }
.vo-default { transition: opacity 0.3s ease; }
.nav-name:hover .vo-hover { opacity: 1; }
.nav-name:hover .vo-default { opacity: 0; }
.nav-name > span { display: flex; flex-direction: column; }
.nav-name-main { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.01em; }
.nav-name-sub { font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--oxblood); font-weight: 600; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.04em; color: var(--ink-soft);
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--oxblood); border-color: var(--oxblood); }
.nav-cta {
  text-decoration: none; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--paper); background: var(--ink);
  padding: 0.65rem 1.25rem; border-radius: 2px;
  transition: background 0.25s;
}
.nav-cta:hover { background: var(--oxblood); }
.nav-burger { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.95rem 1.9rem; border-radius: 2px;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--gold); color: var(--ink); }
.btn-ghost { border: 1px solid var(--line-light); color: var(--paper); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 600px at 85% 0%, rgba(138, 46, 60, 0.22), transparent 60%),
    radial-gradient(900px 700px at 0% 100%, rgba(179, 148, 106, 0.12), transparent 55%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 60%, #0a1822 100%);
  color: var(--paper);
  overflow: hidden;
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  max-width: 1240px; margin: 0 auto; padding: 5.5rem 2rem 5rem;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: center;
}
.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.4rem;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 6.5vw, 5.25rem);
  line-height: 1.02; letter-spacing: -0.01em; margin-bottom: 1.6rem;
}
.hero-degrees { font-style: italic; font-weight: 300; color: var(--gold); }
.hero-sub { max-width: 34rem; font-size: 1.125rem; font-weight: 300; color: rgba(247,243,234,0.84); margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-boards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  border-top: 1px solid var(--line-light); padding-top: 1.8rem; max-width: 40rem;
}
.hero-board { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-board-label {
  font-size: 0.6563rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
}
.hero-board-name { font-size: 0.8125rem; line-height: 1.45; color: rgba(247,243,234,0.8); }

.hero-portrait { position: relative; justify-self: end; }
.hero-portrait::before {
  content: ""; position: absolute; inset: -16px 16px 16px -16px;
  border: 1px solid var(--gold); border-radius: 2px; opacity: 0.55;
}
.hero-portrait img {
  position: relative; width: min(420px, 100%); aspect-ratio: 4/4.7; object-fit: cover;
  border-radius: 2px; box-shadow: 0 32px 80px rgba(0,0,0,0.45);
}
.hero-portrait figcaption {
  position: relative; margin-top: 0.9rem; font-size: 0.75rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(247,243,234,0.55); text-align: right;
}

/* ---------- Credential strip ---------- */
.strip { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.strip-inner {
  max-width: 1240px; margin: 0 auto; padding: 2.4rem 2rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.strip-item { display: flex; gap: 0.9rem; align-items: baseline; font-size: 0.875rem; line-height: 1.5; color: var(--ink-soft); }
.strip-num { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; color: var(--oxblood); line-height: 1; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: linear-gradient(165deg, var(--ink) 0%, var(--ink-2) 100%); color: var(--paper); }
.section-inner { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }

.kicker {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--oxblood); margin-bottom: 1.1rem;
}
.section-dark .kicker { color: var(--gold); }

.section h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.1; margin-bottom: 1.4rem; letter-spacing: -0.01em;
}
.section h2 em { font-style: italic; color: var(--oxblood); }
.section-dark h2 em { color: var(--gold); }
.section-lede { max-width: 40rem; font-size: 1.125rem; font-weight: 300; margin-bottom: 3rem; }
.section-lede a { color: var(--oxblood); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4.5rem; align-items: start; }
.about-media { position: sticky; top: 110px; display: grid; gap: 0; }
.about-photo img { border-radius: 2px; box-shadow: 0 24px 60px rgba(13,31,43,0.18); }
.about-photo-offset { width: 62%; margin: -18% 0 0 auto; transform: translateX(8%); }
.about-photo-offset img { border: 6px solid var(--paper); box-shadow: 0 24px 50px rgba(13,31,43,0.25); }
.about-text p + p { margin-top: 1.1rem; }
.about-text strong { font-weight: 600; }
.about-creds { display: grid; gap: 1rem; margin-top: 2.4rem; }
.cred {
  display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.3rem;
  background: #fff; border: 1px solid var(--line); border-radius: 2px;
}
.cred img { width: 74px; height: auto; flex-shrink: 0; }
.cred strong { display: block; font-size: 0.9375rem; }
.cred span { font-size: 0.8125rem; color: var(--ink-soft); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.timeline li {
  display: grid; grid-template-columns: 160px 1fr; gap: 2rem; align-items: baseline;
  padding: 1.4rem 0.25rem; border-bottom: 1px solid var(--line);
  transition: background 0.25s, padding-left 0.25s;
}
.timeline li:hover { background: rgba(138,46,60,0.04); padding-left: 0.9rem; }
.tl-years { font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--oxblood); }
.timeline strong { display: block; font-size: 1.0625rem; }
.timeline div span { font-size: 0.9375rem; color: var(--ink-soft); }

/* ---------- Expertise cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 2px;
  padding: 2rem 1.8rem 1.9rem; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--oxblood), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(13,31,43,0.12); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card-num {
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--gold);
  display: block; margin-bottom: 0.9rem;
}
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.9375rem; color: var(--ink-soft); }

.or-photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.5rem;
}
.or-photos figure { margin: 0; overflow: hidden; border-radius: 2px; box-shadow: 0 28px 70px rgba(13,31,43,0.2); }
.or-photos img {
  width: 100%; height: 420px; object-fit: cover; object-position: center 35%;
  display: block; transition: transform 0.6s ease;
}
.or-photos figure:hover img { transform: scale(1.03); }
.or-caption {
  margin-top: 0.9rem; font-size: 0.8125rem; letter-spacing: 0.06em;
  color: var(--ink-soft); font-style: italic;
}
@media (max-width: 720px) { .or-photos { grid-template-columns: 1fr; } .or-photos img { height: 300px; } }

/* ---------- Media ---------- */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.media-frame {
  position: relative; aspect-ratio: 16/9; border-radius: 2px; overflow: hidden;
  background: #000; box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.media-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Click-to-play YouTube facade */
.yt-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; cursor: pointer; background: #000; display: block;
}
.yt-play img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.92;
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.yt-play:hover img { opacity: 1; transform: scale(1.03); }
.yt-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(138, 46, 60, 0.92);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  transition: background 0.25s ease, transform 0.25s ease;
}
.yt-btn::after {
  content: ""; position: absolute; top: 50%; left: 53%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--paper);
}
.yt-play:hover .yt-btn { background: var(--oxblood); transform: translate(-50%, -50%) scale(1.1); }
.yt-play:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.media-item figcaption { margin-top: 1rem; }
.media-item figcaption strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; }
.media-item figcaption span { font-size: 0.875rem; color: rgba(247,243,234,0.65); }
.media-item figcaption a { color: var(--gold); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.4rem; }
.quote {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--oxblood);
  border-radius: 2px; padding: 2.2rem 2.2rem 1.9rem;
  display: flex; flex-direction: column; gap: 1.2rem; justify-content: space-between;
}
.quote:first-child { grid-row: span 2; }
.quote p {
  font-family: var(--serif); font-weight: 300; font-size: 1.35rem; line-height: 1.5;
  letter-spacing: 0.005em;
}
.quote:first-child p { font-size: 1.6rem; }
.quote cite { font-style: normal; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Publications ---------- */
.pubs { list-style: none; counter-reset: pub; max-width: 56rem; border-top: 1px solid var(--line); }
.pubs li {
  counter-increment: pub; position: relative;
  padding: 1.1rem 0 1.1rem 4rem; border-bottom: 1px solid var(--line);
  font-size: 0.9688rem; color: var(--ink-soft); line-height: 1.6;
}
.pubs li::before {
  content: counter(pub, decimal-leading-zero);
  position: absolute; left: 0.25rem; top: 1.15rem;
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold);
}
.pubs li strong { color: var(--ink); font-weight: 600; }
.pubs li em { color: var(--ink); }
.pubs-more { max-width: 56rem; margin-top: 1.8rem; }
.pubs-more summary {
  cursor: pointer; font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.04em;
  color: var(--oxblood); padding: 0.4rem 0;
}
.pubs-more ul { margin: 0.8rem 0 0 1.3rem; font-size: 0.9375rem; color: var(--ink-soft); display: grid; gap: 0.45rem; }

/* ---------- Awards ---------- */
.awards {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 3rem; max-width: 56rem; border-top: 1px solid var(--line);
}
.awards li {
  display: flex; gap: 1.4rem; align-items: baseline;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.awards .aw-year {
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  color: var(--gold); min-width: 5.4rem; flex-shrink: 0;
}
.awards li strong { display: block; font-weight: 600; font-size: 0.9688rem; color: var(--ink); }
.awards li div span { font-size: 0.875rem; color: var(--ink-soft); }
@media (max-width: 720px) { .awards { grid-template-columns: 1fr; } }
.awards-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 4rem; align-items: start; }
.awards-photo { margin: 0; position: sticky; top: 110px; overflow: hidden; border-radius: 2px; box-shadow: 0 28px 70px rgba(13,31,43,0.2); }
.awards-photo img { width: 100%; display: block; }
@media (max-width: 960px) {
  .awards-grid { grid-template-columns: 1fr; }
  .awards-photo { position: static; max-width: 30rem; }
}

/* ---------- Practice ---------- */
.practice-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: start; }
.practice-info > p { max-width: 36rem; font-weight: 300; color: rgba(247,243,234,0.85); }
.practice-details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2.5rem;
  margin: 2.2rem 0; padding: 1.8rem 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
}
.practice-details dt {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.25rem;
}
.practice-details dd { font-size: 0.9688rem; line-height: 1.55; }
.practice-details a { color: var(--paper); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); }
.practice-steps h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-bottom: 0.8rem; }
.practice-steps ol { margin-left: 1.2rem; display: grid; gap: 0.6rem; font-size: 0.9375rem; color: rgba(247,243,234,0.85); }
.practice-steps a { color: var(--gold); }
.practice-info .btn { margin-top: 2.2rem; }
.practice-map { position: sticky; top: 110px; }
.practice-map iframe {
  width: 100%; height: 520px; border: 0; border-radius: 2px;
  filter: grayscale(0.4) contrast(1.02);
  box-shadow: 0 28px 70px rgba(0,0,0,0.4);
}

/* ---------- Footer ---------- */
.footer { background: #0a1822; color: rgba(247,243,234,0.75); }
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 3rem 2rem 1.5rem;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap;
}
.footer-name { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--paper); }
.footer-tag { font-size: 0.8125rem; letter-spacing: 0.08em; color: rgba(247,243,234,0.55); }
.footer-links { display: flex; gap: 1.8rem; }
.footer-links a {
  text-decoration: none; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.footer-links a:hover { border-color: var(--gold); }
.footer-dirs {
  max-width: 1240px; margin: 0 auto; padding: 0 2rem 1.6rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; align-items: baseline;
  font-size: 0.75rem; color: rgba(247,243,234,0.45);
}
.footer-dirs a {
  color: rgba(247,243,234,0.6); text-decoration: none;
  border-bottom: 1px solid rgba(247,243,234,0.2); transition: color 0.2s, border-color 0.2s;
}
.footer-dirs a:hover { color: var(--gold); border-color: var(--gold); }
.footer-fine { border-top: 1px solid rgba(247,243,234,0.1); }
.footer-fine p {
  max-width: 1240px; margin: 0 auto; padding: 1.2rem 2rem 2rem;
  font-size: 0.75rem; line-height: 1.6; color: rgba(247,243,234,0.45);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-portrait { justify-self: start; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { position: static; max-width: 480px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .quote:first-child { grid-row: auto; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-map { position: static; }
  .practice-map iframe { height: 380px; }
}

@media (max-width: 720px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .nav-inner { gap: 1rem; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 0.5rem 2rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: none; border: 0; cursor: pointer; padding: 6px;
  }
  .nav-burger span { width: 22px; height: 2px; background: var(--ink); }
  .section { padding: 4rem 0; }
  .hero-inner { padding: 3.5rem 1.5rem; }
  .hero-boards { grid-template-columns: 1fr; gap: 1rem; }
  .section-inner, .topbar-inner, .nav-inner { padding-left: 1.5rem; padding-right: 1.5rem; }
  .strip-inner { grid-template-columns: 1fr; gap: 1.2rem; padding: 2rem 1.5rem; }
  .cards { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 0.2rem; }
  .pubs li { padding-left: 3rem; }
  .practice-details { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
