/* ---------------------------------------------------------------
   Farid Andika — personal site
   Hero v2: Vantra-faithful composition (frame, display type at the
   bottom-left, status card, ledger strip below the fold).
   --------------------------------------------------------------- */

:root {
  --bone: #F5F4F0;
  --ink: #0A0A0A;
  --ink-deep: #060606;
  --cobalt: #2F5BEA;
  --cobalt-hover: #2448C4;

  --bone-80: rgba(245, 244, 240, 0.82);
  --bone-70: rgba(245, 244, 240, 0.70);
  --bone-55: rgba(245, 244, 240, 0.55);
  --bone-14: rgba(245, 244, 240, 0.14);

  --bone-2: #EEECE6;
  --ink-80: rgba(10, 10, 10, 0.80);
  --ink-70: rgba(10, 10, 10, 0.70);
  --ink-62: rgba(10, 10, 10, 0.62);
  --ink-60: rgba(10, 10, 10, 0.60);

  --display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --frame: 8px;
  --pad: 48px;
  --radius-card: 16px;
  --radius-sm: 8px;
}

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

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }
button { font: inherit; }
svg { display: block; }

::selection {
  background: var(--cobalt);
  color: #fff;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--bone);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip:focus { top: 16px; }

.practices,
.track,
.faq,
.insights { --focus: var(--cobalt); }

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

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--frame) - var(--frame));
  min-height: calc(100svh - var(--frame) - var(--frame));
  margin: var(--frame);
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
}

/* ascii field: a background layer under the hero content, never over the type */
.hero-ascii {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-ascii.is-live { opacity: 1; }

/* portrait: black-backed photograph, screened onto the hero so only the figure reads */
.hero-portrait {
  position: absolute;
  z-index: 1;
  right: var(--pad);
  bottom: 30px;
  width: clamp(300px, 38vw, 620px);
  height: clamp(360px, 45vw, 720px);
  object-fit: cover;
  object-position: 50% 0;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.hero-head {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 26px var(--pad) 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
}

.brand-name {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--bone);
}

.brand-role {
  font-size: 13px;
  line-height: 1.3;
  color: var(--bone-55);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  padding-top: 1px;
  font-size: 15px;
}

.nav a {
  color: var(--bone-70);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.16s ease;
}

.nav a:hover { color: var(--bone); }

.head-end {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--bone-55);
}

.lang a {
  color: var(--bone-55);
  text-decoration: none;
  padding: 4px 1px;
  transition: color 0.16s ease;
}

.lang a:hover { color: var(--bone); }
.lang a[aria-current="page"] { color: var(--bone); font-weight: 600; }

.head-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: var(--radius-sm);
  background: rgba(245, 244, 240, 0.07);
  color: var(--bone);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.16s ease;
}

.head-cta:hover { background: rgba(245, 244, 240, 0.12); }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--bone);
  cursor: pointer;
}

.menu-btn:hover { background: rgba(245, 244, 240, 0.08); }

.menu-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 11px;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}

.menu-icon::before { top: 0; }
.menu-icon::after { bottom: 0; }

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

.hero-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 40px var(--pad) 44px;
}

.hero-standfirst {
  max-width: 320px;
  margin: 0 0 0 auto;
  color: var(--bone-55);
  font-size: 17px;
  line-height: 1.55;
}

.hero-title {
  margin: auto 0 0;
  font-family: var(--display);
  font-size: clamp(3.75rem, 9.1vw, 8.2rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--bone);
}

.hero-title .line {
  display: block;
  white-space: nowrap;
}

.hero-card {
  position: absolute;
  right: var(--pad);
  bottom: 44px;
  width: 320px;
  padding: 18px;
  border-radius: var(--radius-card);
  background: rgba(245, 244, 240, 0.07);
}

.card-label {
  margin: 0 0 12px;
  color: var(--bone-55);
  font-size: 13px;
  line-height: 1.3;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--cobalt);
  color: #fff;
  font-family: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.12s ease;
}

.btn:hover { background: var(--cobalt-hover); }
.btn:active { transform: translateY(1px); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--bone-80);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.16s ease;
}

.card-link:hover {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- ledger strip ---------- */

.ledger-band {
  padding: 40px 0 52px;
  background: var(--bone);
  color: var(--ink);
}

.band-inner {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.band-title {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
}

.ledger-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.ledger-value {
  order: -1;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
}

.ledger-unit {
  margin-right: 0.28em;
  color: var(--ink-60);
  font-size: 0.52em;
  font-weight: 500;
  letter-spacing: 0.01em;
  vertical-align: 0.16em;
}

.ledger-label {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.ledger-note {
  display: block;
  margin-top: 3px;
  color: var(--ink-60);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

/* ---------- menu ---------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 10, 10, 0.9);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.scrim.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s ease, visibility 0s;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 24px;
  right: 24px;
  z-index: 2;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.menu-open .menu-panel { grid-template-rows: 1fr; }

.menu-panel-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 12px;
  border-radius: 16px;
  background: #131312;
  visibility: hidden;
  transition: visibility 0s linear 0.55s;
}

body.menu-open .menu-panel-inner {
  visibility: visible;
  transition: visibility 0s;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}

.menu-nav a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 16px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--bone);
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.35s ease, background-color 0.2s ease;
}

.menu-nav a:hover { background: rgba(245, 244, 240, 0.06); }

.menu-label {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.menu-meta {
  color: var(--bone-55);
  font-size: 13px;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.menu-nav a:hover .menu-meta { color: var(--bone-70); }

.menu-arrow {
  color: var(--bone-55);
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.menu-nav a:hover .menu-arrow {
  color: var(--bone);
  transform: translateX(3px);
}

.menu-cta {
  margin: 14px 0 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.35s ease, background-color 0.18s ease;
}

body.menu-open .menu-nav a,
body.menu-open .menu-cta {
  opacity: 1;
  transform: none;
}

body.menu-open .menu-nav a:nth-child(1) { transition-delay: 0.10s; }
body.menu-open .menu-nav a:nth-child(2) { transition-delay: 0.14s; }
body.menu-open .menu-nav a:nth-child(3) { transition-delay: 0.18s; }
body.menu-open .menu-nav a:nth-child(4) { transition-delay: 0.22s; }
body.menu-open .menu-nav a:nth-child(5) { transition-delay: 0.26s; }
body.menu-open .menu-cta { transition-delay: 0.30s; }

.menu-btn .menu-icon::before,
.menu-btn .menu-icon::after {
  transition: transform 0.3s ease;
}

.menu-btn[aria-expanded="true"] .menu-icon::before {
  transform: translateY(4.75px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-4.75px) rotate(-45deg);
}

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

@media (max-width: 1100px) {
  .head-cta { display: none; }
}

@media (max-width: 1150px) {
  .hero-main {
    padding: 32px var(--pad) 32px;
  }

  .hero-card {
    position: static;
    width: 100%;
    max-width: 430px;
    margin-top: 28px;
    padding: 18px;
  }
}

@media (max-width: 1150px) {
  .hero-portrait {
    right: 24px;
    bottom: auto;
    top: 236px;
    width: clamp(260px, 40vw, 420px);
    height: clamp(320px, 49vw, 520px);
  }
}

@media (max-width: 960px) {
  .hero-portrait {
    right: -18px;
    top: 150px;
    width: clamp(210px, 66vw, 330px);
    height: clamp(250px, 80vw, 400px);
    -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  }
}

@media (max-width: 960px) {
  .hero-head {
    align-items: center;
    padding: 20px 24px 0;
    gap: 16px;
  }

  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .head-end { gap: 14px; }

  .hero {
    --pad: 24px;
    --frame: 5px;
  }

  .hero-title { font-size: clamp(3.75rem, 12.8vw, 5.4rem); }

  .hero-standfirst { max-width: 300px; margin-left: 0; }

  .band-inner { padding-inline: 24px; }
  .ledger-band { padding: 32px 0 40px; }

  .ledger-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ledger-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "label value";
    align-items: start;
    column-gap: 20px;
    padding: 14px 0;
  }

  .ledger-item:first-child { padding-top: 0; }

  .ledger-value {
    grid-area: value;
    justify-self: end;
    font-size: 1.5rem;
    text-align: right;
  }

  .ledger-label { grid-area: label; font-size: 14px; }

  .band-title { margin-bottom: 18px; }
}

@media (max-width: 600px) {
  .brand-name { font-size: 15px; }
  .brand-role { display: none; }

  .hero-main { padding: 28px 24px 26px; }

  .hero-title { font-size: clamp(2.35rem, 12.2vw, 4.8rem); }

  .hero-standfirst { max-width: 280px; font-size: 16px; }

  .hero-card { padding: 16px; margin-top: 24px; }
}

@media (max-width: 380px) {
  .menu-nav a { grid-template-columns: minmax(0, 1fr) 18px; }
  .menu-meta { display: none; }
}

/* ---------- entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-head,
  .hero-standfirst,
  .hero-card,
  .band-title,
  .ledger-item {
    animation: rise-in 0.7s cubic-bezier(0.22, 0.68, 0.2, 1) both;
  }

  .hero-head { animation-delay: 0.05s; }
  .hero-standfirst { animation-delay: 0.1s; }
  .hero-card { animation-delay: 0.3s; }
  .band-title { animation-delay: 0.1s; }
  .ledger-item { animation-delay: 0.12s; }
  .ledger-item:nth-child(2) { animation-delay: 0.16s; }
  .ledger-item:nth-child(3) { animation-delay: 0.2s; }
  .ledger-item:nth-child(4) { animation-delay: 0.24s; }
  .ledger-item:nth-child(5) { animation-delay: 0.28s; }

  .hero-title .line {
    animation: line-rise 0.9s cubic-bezier(0.16, 0.72, 0.2, 1) both;
  }

  .hero-title .line:nth-child(1) { animation-delay: 0.08s; }
  .hero-title .line:nth-child(2) { animation-delay: 0.15s; }
  .hero-title .line:nth-child(3) { animation-delay: 0.22s; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes line-rise {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- practices ---------- */

.practices {
  padding: 104px 0 120px;
  background: var(--bone-2);
  color: var(--ink);
}

.practices-inner {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 60px;
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-meta {
  margin: 0 0 6px;
  color: var(--ink-62);
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.practice { min-width: 0; }

.practice-title {
  max-width: 18ch;
  margin: 0;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.practice-desc {
  max-width: 34em;
  margin: 16px 0 0;
  color: var(--ink-80);
  font-size: 16px;
  line-height: 1.55;
}

.practice-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.practice-list li {
  color: var(--ink-70);
  font-size: 14px;
  line-height: 1.45;
}

.practice-note {
  margin: 18px 0 0;
  color: var(--ink-62);
  font-size: 13px;
  line-height: 1.45;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.also {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  margin-top: 56px;
}

.also-label {
  margin: 0;
  color: var(--ink-62);
  font-size: 13px;
  line-height: 1.4;
}

.also-list {
  max-width: 64ch;
  margin: 0;
  color: var(--ink-70);
  font-size: 15px;
  line-height: 1.6;
}

.also + .section-link { margin-top: 32px; }

@media (max-width: 800px) {
  .also { grid-template-columns: 1fr; gap: 6px; margin-top: 40px; }
}

.section-link span { transition: transform 0.2s ease; }
.section-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.section-link:hover span { transform: translateX(4px); }

@media (max-width: 1000px) {
  .practice-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .section-head { margin-bottom: 44px; }
  .practice-title { max-width: none; }
  .section-meta { font-size: 14px; }
}

@media (max-width: 600px) {
  .practices { padding: 72px 0 88px; }
  .practices-inner { padding-inline: 24px; }
  .section-title { font-size: 2rem; }
  .section-meta { margin-bottom: 0; }
  .practice-title { font-size: 24px; }
  .practice-desc { font-size: 16px; }
  .section-link { margin-top: 40px; }
}

/* ---------- track record ---------- */

.track {
  padding: 104px 0 120px;
  background: var(--bone);
  color: var(--ink);
}

.track-inner {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.track .section-head { margin-bottom: 18px; }

.track-intro {
  max-width: 46em;
  margin: 0 0 40px;
  color: var(--ink-70);
  font-size: 16px;
  line-height: 1.55;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
}

.deal-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--bone);
}

.deal-value {
  margin: 0;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(2.75rem, 4.2vw, 3.75rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums lining-nums;
}

.deal-desc {
  max-width: 34ch;
  margin: 18px 0 0;
  color: var(--bone-70);
  font-size: 16px;
  line-height: 1.55;
}

.dd-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 40px;
  margin-top: 16px;
  padding: 32px;
  border-radius: 16px;
  background: var(--bone-2);
}

.dd-value {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums lining-nums;
}

.dd-label {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.dd-head {
  margin: 0 0 8px;
  color: var(--ink-62);
  font-size: 13px;
  line-height: 1.3;
}

.dd-sectors {
  max-width: 60ch;
  margin: 0;
  color: var(--ink-70);
  font-size: 13px;
  line-height: 1.7;
}

.career { margin-top: 80px; }

.career-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.career-title {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.career-meta {
  margin: 0;
  color: var(--ink-62);
  font-size: 13px;
}

.career-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.career-list li {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  align-items: start;
}

.career-list li:first-child { padding-top: 0; }

.career-years {
  margin: 0;
  padding-top: 4px;
  color: var(--ink-62);
  font-size: 13px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

.career-role {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.career-org {
  margin: 3px 0 0;
  color: var(--ink-70);
  font-size: 14px;
  line-height: 1.4;
}

.career-note {
  max-width: 46ch;
  margin: 5px 0 0;
  color: var(--ink-62);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 800px) {
  .deal-card { padding: 24px; }
  .deal-value { font-size: 2.75rem; }
  .dd-strip { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .dd-value { font-size: 3.5rem; }
  .career { margin-top: 56px; }
}

@media (max-width: 700px) {
  .deal-grid { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 600px) {
  .track { padding: 72px 0 88px; }
  .track-inner { padding-inline: 24px; }
  .track .section-head { margin-bottom: 14px; }
  .track-intro { margin-bottom: 28px; font-size: 15px; }
  .deal-card { padding: 20px; }
  .deal-value { font-size: 2.4rem; }
  .dd-strip { padding: 20px; }
  .career-list li { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .career-list li:first-child { padding-top: 0; }
  .career-years { padding-top: 0; }
  .career-role { font-size: 17px; }
}

/* ---------- faq ---------- */

.faq {
  padding: 104px 0 120px;
  background: var(--bone-2);
  color: var(--ink);
}

.faq-inner {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.faq-intro {
  max-width: 34em;
  margin: 24px 0 0;
  color: var(--ink-70);
  font-size: 16px;
  line-height: 1.55;
}

.faq-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.faq-link span { transition: transform 0.2s ease; }
.faq-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.faq-link:hover span { transform: translateX(4px); }

.faq-list {
  display: flex;
  flex-direction: column;
  margin-top: -14px;
}

.faq-item { padding: 4px 0; }
.faq-item:first-child { padding-top: 0; }

.faq-heading { margin: 0; }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-q:hover,
.faq-item.is-open .faq-q { color: var(--cobalt); }

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease;
}

.faq-icon::before { left: 0; right: 0; top: 6px; height: 1.5px; }
.faq-icon::after { top: 0; bottom: 0; left: 6px; width: 1.5px; }
.faq-item.is-open .faq-icon::after { transform: scaleY(0); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

.faq-a-inner { overflow: hidden; }

.faq-a p {
  max-width: 62ch;
  margin: 0;
  padding-top: 12px;
  color: var(--ink-70);
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .faq-inner { grid-template-columns: 1fr; gap: 32px; }
  .faq-list { margin-top: 0; }
  .faq-intro { max-width: 40em; }
}

@media (max-width: 600px) {
  .faq { padding: 72px 0 88px; }
  .faq-inner { padding-inline: 24px; }
  .faq-q { font-size: 18px; padding: 12px 0; }
  .faq-item { padding: 2px 0; }
  .faq-a p { font-size: 16px; }
}

/* ---------- insights ---------- */

.insights {
  padding: 104px 0 120px;
  background: var(--bone);
  color: var(--ink);
}

.insights-inner {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.insights .section-head { margin-bottom: 18px; }

.insights-intro {
  max-width: 46em;
  margin: 0 0 40px;
  color: var(--ink-70);
  font-size: 16px;
  line-height: 1.55;
}

.insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}

.post-featured {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 32px;
  border-radius: 16px;
  background: var(--bone-2);
}

.post-featured-title {
  max-width: 22ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 2.6vw, 2.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.post-featured-title a,
.post-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-featured-title a:hover,
.post-title a:hover { color: var(--cobalt); }

.post-excerpt {
  max-width: 44ch;
  margin: 16px 0 0;
  color: var(--ink-70);
  font-size: 16px;
  line-height: 1.55;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 28px;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: var(--ink-62);
  font-size: 13px;
  line-height: 1.4;
}

.post-dot { color: var(--ink-62); }

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.post-link span { transition: transform 0.2s ease; }
.post-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-link:hover span { transform: translateX(4px); }

.post-list { display: flex; flex-direction: column; gap: 40px; }

.post-title {
  max-width: 20ch;
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.post .post-excerpt { margin-top: 10px; }
.post .post-meta { margin-top: 14px; }

.insights-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
}

.insights-foot .section-link { margin-top: 0; }

.insights-note {
  max-width: 38em;
  margin: 0;
  color: var(--ink-62);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .insights-grid { grid-template-columns: 1fr; gap: 40px; }
  .post-featured { min-height: 0; }
  .post-featured-title { max-width: none; }
}

@media (max-width: 600px) {
  .insights { padding: 72px 0 88px; }
  .insights-inner { padding-inline: 24px; }
  .insights .section-head { margin-bottom: 14px; }
  .insights-intro { margin-bottom: 28px; font-size: 15px; }
  .post-featured { padding: 24px; }
  .post-featured-title { font-size: 1.75rem; }
  .post-title { font-size: 20px; }
  .post-list { gap: 32px; }
  .insights-foot { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- closing cta ---------- */

.cta {
  padding: 120px 0;
  background: var(--ink);
  color: var(--bone);
}

.cta-inner {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 64px;
  align-items: end;
}

.cta-title {
  margin: 0;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(3rem, 5.2vw, 4.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.cta-lede {
  max-width: 34em;
  margin: 28px 0 0;
  color: var(--bone-70);
  font-size: 18px;
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 36px;
}

.cta-btn {
  width: auto;
  min-height: 52px;
  padding: 0 26px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bone-70);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.16s ease;
}

.cta-link span { transition: transform 0.2s ease; }
.cta-link:hover { color: var(--bone); text-decoration: underline; text-underline-offset: 4px; }
.cta-link:hover span { transform: translateX(4px); }

.cta-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 6px;
}

.cta-email {
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.cta-email:hover {
  text-decoration: underline;
  text-decoration-color: var(--cobalt);
  text-underline-offset: 5px;
}

.cta-line {
  margin: 0;
  color: var(--bone-55);
  font-size: 15px;
  line-height: 1.5;
}

.cta-line a {
  color: var(--bone-70);
  text-decoration: none;
  transition: color 0.16s ease;
}

.cta-line a:hover { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .cta-grid { grid-template-columns: 1fr; gap: 48px; }
  .cta-contact { padding-bottom: 0; }
}

@media (max-width: 600px) {
  .cta { padding: 80px 0 72px; }
  .cta-inner { padding-inline: 24px; }
  .cta-title { font-size: 2.75rem; }
  .cta-lede { margin-top: 22px; font-size: 16px; }
  .cta-actions { margin-top: 28px; gap: 18px; }
  .cta-btn { width: 100%; }
  .cta-email { font-size: 1.35rem; }
}

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

.site-footer {
  padding: 48px 0 32px;
  background: var(--ink-deep);
  color: var(--bone-55);
}

.footer-inner {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.footer-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
}

.footer-name {
  color: var(--bone);
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 15px;
}

.footer-nav a {
  color: var(--bone-70);
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-nav a:hover { color: var(--bone); }

.footer-lang { color: var(--bone-55); }

.footer-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-top: 24px;
  font-size: 13px;
}

.footer-bottom p { margin: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--bone-70);
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-links a:hover { color: var(--bone); }

@media (max-width: 800px) {
  .footer-inner { padding-inline: 24px; }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 32px;
  }

  .footer-name { font-size: 28px; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .section-head { transition-delay: 0.05s; }
.js .practice:nth-child(2) { transition-delay: 0.08s; }
.js .practice:nth-child(3) { transition-delay: 0.16s; }
.js .deal-card:nth-child(2) { transition-delay: 0.06s; }
.js .deal-card:nth-child(3) { transition-delay: 0.12s; }
.js .deal-card:nth-child(4) { transition-delay: 0.18s; }
.js .faq-item:nth-child(2) { transition-delay: 0.06s; }
.js .faq-item:nth-child(3) { transition-delay: 0.12s; }
.js .faq-item:nth-child(4) { transition-delay: 0.18s; }
.js .faq-item:nth-child(5) { transition-delay: 0.24s; }
.js .post-list .post:nth-child(2) { transition-delay: 0.08s; }
.js .cta-contact { transition-delay: 0.08s; }
.js .section-link { transition-delay: 0.06s; }

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