/* Phan Đình Long Nhật — modern light redesign */
:root {
  --bg: #f6f8fb;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --line: #e4e9f0;
  --line-strong: rgba(3, 105, 161, 0.35);
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #64748b;
  --accent: #0369a1;
  --accent-2: #0284c7;
  --accent-deep: #075985;
  --gold: #b45309;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --max: 1120px;
  --font: "Be Vietnam Pro", "Inter", system-ui, sans-serif;
  --display: "Inter", "Be Vietnam Pro", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body[data-lang="zh"] {
  font-family: "Noto Sans SC", var(--font);
}

/* Background layers */
.bg-root {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 8% -8%, rgba(3, 105, 161, 0.1), transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 8%, rgba(2, 132, 199, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(7, 89, 133, 0.06), transparent 55%),
    var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-deep); }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(1.1);
  background: rgba(246, 248, 251, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 68px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--accent); text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: #fff; }

.header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-glass);
}

.lang-btn {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.42rem 0.65rem;
  cursor: pointer;
  color: var(--muted);
}
.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.7rem;
  justify-content: flex-end;
  order: 3;
  width: 100%;
}

.nav a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.2rem 0;
}
.nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.45rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (min-width: 960px) {
  .nav {
    order: 0;
    width: auto;
    flex: 1;
    margin-left: 1rem;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg, rgba(246, 248, 251, 0.97) 38%, rgba(246, 248, 251, 0.72) 68%, rgba(246, 248, 251, 0.92)),
    url("assets/images/portrait-2025.jpg") center/cover no-repeat;
  filter: saturate(1.05);
  opacity: 0.9;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(45, 212, 191, 0.08);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-role {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-2);
  margin: 0 0 1rem;
}

.hero-lead {
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  max-width: 36rem;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 28px rgba(3, 105, 161, 0.22);
}
.btn-primary:hover { color: #fff; }

.btn-outline {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.hero-stats li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  backdrop-filter: blur(8px);
}
.hero-stats strong {
  display: block;
  font-size: 0.92rem;
  color: var(--accent);
}
.hero-stats span {
  font-size: 0.72rem;
  color: var(--muted);
}

.hero-photo {
  position: relative;
}
.hero-photo img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.2), transparent 50%, rgba(2, 132, 199, 0.15));
  z-index: -1;
  filter: blur(18px);
  opacity: 0.7;
}
.photo-credit {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0.55rem 0 0;
}

/* Sections */
.section {
  padding: 4rem 0;
  position: relative;
}

.section-alt {
  background: #eef2f7;
  border-block: 1px solid var(--line);
}

.section-title {
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 40rem;
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

/* Cards / grids */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.35rem;
  align-items: start;
}

/* Side media column next to text — compact, no overflow gap */
.media-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}
.media-stack figure {
  margin: 0;
  min-width: 0;
}
.media-stack img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  padding: 0.35rem;
  box-sizing: border-box;
}
.media-stack figcaption,
.media-stack .photo-credit {
  margin: 0.3rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

.about-copy p {
  color: var(--ink-soft);
  margin-top: 0;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--accent);
}

.info-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem 0.75rem;
  font-size: 0.88rem;
}
.info-card dt { color: var(--muted); }
.info-card dd { margin: 0; font-weight: 500; }

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.timeline > li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0 0 1.75rem 1.35rem;
  position: relative;
}

.timeline > li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.2);
}

.tl-year {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent);
}

.tl-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.tl-body p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Single photo in timeline — keep full image, no heavy crop */
.inline-figure {
  margin: 0.85rem 0 0;
  max-width: min(100%, 480px);
}
.inline-figure .photo-frame {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f1f5f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
}
.inline-figure img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  border: 0;
  background: transparent;
}
.inline-figure figcaption,
.img-row figcaption,
.gallery-grid figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.3;
}

/* Side-by-side photos — equal frames, show full image (contain) */
.img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.85rem;
  align-items: stretch;
}
.img-row figure {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.img-row .photo-frame {
  flex: 1 1 auto;
  min-height: 200px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  overflow: hidden;
}
.img-row img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
  display: block;
  border: 0;
  border-radius: 6px;
  background: transparent;
}
.img-row figcaption {
  margin-top: 0.4rem;
  min-height: 2.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cards grid */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.card h3 { margin: 0 0 0.3rem; font-size: 1rem; min-height: 1.4em; }
.card .meta {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.45rem;
}
.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Career */
.career-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 0.85rem;
}
.career-item.featured {
  display: flex;
  gap: 1.1rem;
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.08), #fff);
  border-color: var(--line-strong);
}
.career-logo img { width: 64px; height: auto; }
.career-item h3 { margin: 0 0 0.3rem; }
.career-item .meta {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.career-item p { margin: 0; color: var(--ink-soft); }

.plain-list {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}
.plain-list.check {
  list-style: none;
  padding: 0;
}
.plain-list.check li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}
.plain-list.check li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 0.15rem;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th {
  background: #f1f5f9;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.data-table tr:last-child td { border-bottom: 0; }
.note { font-size: 0.82rem; color: var(--muted); margin: 0.75rem 0 0; }

/* Press */
.press-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

.press-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  align-items: stretch;
}

.press-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  transition: border-color 0.15s;
}
.press-card:hover { border-color: var(--line-strong); }
.press-card.hot {
  border-color: rgba(180, 83, 9, 0.28);
  background: linear-gradient(160deg, rgba(254, 243, 199, 0.55), #fff);
}

.press-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(45, 212, 191, 0.12);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}
.press-card.hot .press-tag {
  color: var(--gold);
  background: rgba(240, 198, 116, 0.12);
}

.press-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  line-height: 1.35;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.press-card .meta {
  font-size: 0.8rem;
  color: var(--accent-2);
  font-weight: 600;
  margin: 0 0 0.45rem;
}
.press-card p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0 0 0.7rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-link { font-weight: 600; font-size: 0.88rem; }
.press-card .text-link { margin-top: auto; }
.product-card .text-link { margin-top: auto; }

/* Milestones — compact horizontal cards */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  align-items: stretch;
}

.ig-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: stretch;
  min-height: 108px;
  height: auto;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  color: inherit;
}
.ig-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.ig-card > img,
.ig-card .ig-thumb {
  width: 108px;
  height: 100%;
  min-height: 108px;
  max-height: none;
  flex: none;
  object-fit: cover;
  object-position: center;
  background: #e2e8f0;
  display: block;
}
.ig-card-body {
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  min-height: 0;
}
.ig-card h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.3;
  min-height: 0;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ig-card p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}

.ig-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, rgba(3, 105, 161, 0.08), rgba(2, 132, 199, 0.06));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.ig-banner img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px;
}
.ig-banner h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.ig-banner p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* Products strip */
.product-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
  align-items: stretch;
}
.product-card {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.product-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--accent);
}
.product-card p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Video */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.video-card h3 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1rem;
}
.video-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}
.gallery-grid figure {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.gallery-grid img {
  width: 100%;
  height: 130px;
  flex: 0 0 130px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s;
}
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  padding: 0.4rem 0.55rem 0.55rem;
  margin: 0;
  min-height: 0;
  font-size: 0.72rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Quotes */
.quote-section {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #0c4a6e 100%);
  border: 0;
  color: #fff;
}
.quote-section blockquote {
  margin: 0 0 1.5rem;
  max-width: 42rem;
}
.quote-section blockquote:last-child { margin-bottom: 0; }
.quote-section p {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}
.quote-section cite {
  font-style: normal;
  font-size: 0.88rem;
  opacity: 0.85;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.75rem;
}
.contact-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.contact-list li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.contact-list strong {
  color: var(--muted);
  font-weight: 500;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  align-content: start;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
}
.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.back-top { font-weight: 600; align-self: flex-start; margin-top: 0.35rem; }

.mt-2 { margin-top: 1.75rem; }

/* Logo variants */
.logo-short { display: none; }
.logo-full { display: inline; }

/* Mobile dock — hidden until phone breakpoint */
.mobile-dock { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .media-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .media-stack img {
    max-height: 180px;
  }
  .img-row .photo-frame {
    min-height: 170px;
  }
  .img-row img {
    max-height: 190px;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .cards-3,
  .press-list,
  .press-featured,
  .video-grid,
  .ig-grid,
  .product-row {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .timeline > li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    gap: 0.15rem;
    max-height: min(70vh, 420px);
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a {
    font-size: 0.95rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    color: var(--ink);
  }
  .nav a:hover,
  .nav a:active {
    background: #f1f5f9;
    color: var(--accent);
  }
  .header-inner { position: relative; }
}

/* ---------- Phone (primary mobile redesign) ---------- */
@media (max-width: 640px) {
  body {
    font-size: 16px;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
  }

  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  /* Header: compact logo + easier menu */
  .site-header {
    position: sticky;
    top: 0;
  }
  .header-inner {
    min-height: 56px;
    gap: 0.4rem;
    flex-wrap: nowrap;
  }
  .logo {
    font-size: 0.88rem;
    gap: 0.4rem;
    min-width: 0;
    flex: 1;
  }
  .logo img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
  .logo-full { display: none; }
  .logo-short {
    display: inline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-right {
    flex-shrink: 0;
    gap: 0.4rem;
  }
  .lang-btn {
    padding: 0.4rem 0.55rem;
    font-size: 0.7rem;
  }
  .nav-toggle {
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
  }

  /* Full-width drawer-style nav links in 2 columns */
  .nav.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    padding: 0.85rem;
    max-height: min(75vh, 520px);
  }
  .nav a {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    padding: 0.75rem 0.4rem;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  /* Hero: photo first, readable type, full-width CTAs */
  .hero {
    padding: 1.25rem 0 1.75rem;
  }
  .hero-bg {
    opacity: 0.35;
  }
  .hero-grid {
    gap: 1.1rem;
  }
  .hero-photo {
    order: -1;
  }
  .hero-photo img {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
  }
  .hero-photo::before {
    inset: -6px;
    border-radius: 18px;
    filter: blur(10px);
    opacity: 0.45;
  }
  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.6rem;
    margin-bottom: 0.55rem;
  }
  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 0.4rem;
  }
  .hero-role {
    font-size: 0.98rem;
    margin-bottom: 0.65rem;
  }
  .hero-lead {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1rem;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-bottom: 1rem;
  }
  .hero-actions .btn {
    width: 100%;
    padding: 0.8rem 0.75rem;
    font-size: 0.88rem;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .hero-stats li {
    padding: 0.65rem 0.7rem;
  }
  .hero-stats strong {
    font-size: 0.9rem;
  }
  .hero-stats span {
    font-size: 0.7rem;
    line-height: 1.3;
  }
  .photo-credit {
    font-size: 0.68rem;
  }

  /* Sections: tighter vertical rhythm, clearer hierarchy */
  .section {
    padding: 2rem 0;
  }
  .section-title {
    font-size: 1.4rem;
    line-height: 1.25;
    margin-bottom: 0.35rem;
  }
  .section-lead {
    font-size: 0.92rem;
    margin-bottom: 1.15rem;
    line-height: 1.6;
  }
  .section-kicker {
    font-size: 0.68rem;
    margin-bottom: 0.35rem;
  }

  .about-copy p {
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
  }
  .glass-card,
  .info-card {
    padding: 1rem;
  }
  .info-card dl {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }
  .info-card dt {
    margin-top: 0.45rem;
    font-size: 0.75rem;
  }
  .info-card dd {
    font-size: 0.95rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--line);
  }
  .info-card dd:last-child {
    border-bottom: 0;
  }

  /* Timeline: year as chip, readable body */
  .timeline {
    border-left-width: 2px;
    margin-left: 0.15rem;
  }
  .timeline > li {
    padding: 0 0 1.35rem 1rem;
    gap: 0.35rem;
  }
  .tl-year {
    display: inline-block;
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(3, 105, 161, 0.1);
    border: 1px solid var(--line-strong);
    width: fit-content;
  }
  .tl-body h3 {
    font-size: 1.02rem;
    line-height: 1.35;
  }
  .tl-body p {
    font-size: 0.92rem;
    line-height: 1.65;
  }
  .inline-figure {
    max-width: 100%;
  }

  /* Single column stacks for easier scanning */
  .cards-3,
  .press-list,
  .press-featured,
  .video-grid,
  .ig-grid,
  .product-row,
  .gallery-grid,
  .img-row,
  .social-grid,
  .media-stack {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .img-row .photo-frame {
    min-height: 180px;
  }
  .img-row img {
    max-height: 200px;
  }
  .media-stack img {
    max-height: 200px;
  }

  /* Milestone cards: slightly larger thumb + text */
  .ig-card {
    grid-template-columns: 92px 1fr;
    min-height: 96px;
  }
  .ig-card > img,
  .ig-card .ig-thumb {
    width: 92px;
    min-height: 96px;
  }
  .ig-card-body {
    padding: 0.7rem 0.8rem;
    gap: 0.25rem;
  }
  .ig-card h3 {
    font-size: 0.9rem;
  }
  .ig-card p {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
  }

  .product-card,
  .card,
  .press-card,
  .career-item {
    padding: 1rem;
  }
  .product-card h3,
  .card h3,
  .press-card h3 {
    font-size: 1rem;
  }
  .product-card p,
  .card p,
  .press-card p {
    font-size: 0.9rem;
  }

  .ig-banner {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.9rem;
  }
  .ig-banner .btn {
    width: 100%;
    margin-left: 0 !important;
  }

  /* Awards table → readable cards via scroll */
  .table-wrap {
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .data-table {
    font-size: 0.82rem;
    min-width: 520px;
  }
  .data-table th,
  .data-table td {
    padding: 0.7rem 0.75rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }
  .gallery-grid img {
    height: 120px;
    flex-basis: 120px;
  }
  .gallery-grid figcaption {
    font-size: 0.68rem;
    padding: 0.35rem 0.45rem 0.5rem;
  }

  .video-grid {
    gap: 1rem;
  }
  .video-card h3 {
    font-size: 0.98rem;
  }

  .quote-section {
    padding: 1.75rem 0;
  }
  .quote-section p {
    font-size: 1.05rem;
    line-height: 1.55;
  }
  .quote-section cite {
    font-size: 0.82rem;
  }
  .quote-section blockquote {
    margin-bottom: 1.15rem;
  }

  .contact-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding: 0.7rem 0;
  }
  .contact-list strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .contact-list a,
  .contact-list span {
    font-size: 0.98rem;
    word-break: break-word;
  }
  .social-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .social-btn {
    min-height: 48px;
    font-size: 0.85rem;
    padding: 0.7rem 0.5rem;
  }

  .career-item.featured {
    flex-direction: column;
  }

  .btn {
    min-height: 44px;
  }

  .site-footer {
    padding: 1.5rem 0 5.5rem; /* room for sticky bottom bar */
    font-size: 0.78rem;
  }

  /* Sticky quick links for phone reading flow */
  .mobile-dock {
    display: flex;
    position: fixed;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    z-index: 90;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    overflow: hidden;
  }
  .mobile-dock a {
    flex: 1;
    text-align: center;
    padding: 0.7rem 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink-soft);
    text-decoration: none;
    border-right: 1px solid var(--line);
  }
  .mobile-dock a:last-child {
    border-right: 0;
    color: var(--accent);
  }
  .mobile-dock a:active {
    background: #f1f5f9;
  }
}
