/* =========================================================================
   Page-section styles (home, about, business, medical, projects, contact)
   ========================================================================= */

/* ---------- Home hero + stats ---------- */
.home-hero { min-height: 820px; }
.home-hero__inner { position: relative; padding-top: 200px; padding-bottom: 150px; }
.home-hero__title {
  margin-top: 28px; max-width: 820px; font-family: var(--serif); font-weight: 500; color: #FFFFFF;
  font-size: clamp(46px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -.01em; white-space: pre-line; text-wrap: balance;
}
.home-hero__caption {
  position: absolute; right: var(--gutter); bottom: 150px; color: rgba(255, 255, 255, .7);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; writing-mode: vertical-rl;
}
.home-stats { position: relative; z-index: 2; margin-top: -84px; }
.home-stats__card {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  background: #FFFFFF; border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(12, 51, 36, .35), 0 1px 0 rgba(12, 51, 36, .06);
}
.home-stats__item { padding: 38px 36px; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.home-stats__item:first-child { border-left: 0; }
.home-stats__n { font-family: var(--serif); font-size: 50px; font-weight: 500; line-height: 1; color: var(--green-600); }
@media (max-width: 760px) {
  .home-hero { min-height: 700px; }
  .home-hero__inner { padding-top: 150px; padding-bottom: 130px; }
  .home-hero__caption { display: none; }
  .home-stats__item { border-left: 0; border-top: 1px solid var(--line-2); padding: 26px 24px; }
  .home-stats__item:first-child { border-top: 0; }
}

/* ---------- Letter ---------- */
.letter-photos { position: relative; margin-top: 16px; margin-bottom: 48px; }
.letter-photos__main { width: 72%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: 2px; }
.letter-photos__inset {
  position: absolute; right: 0; bottom: -48px; width: 48%; aspect-ratio: 4 / 3;
  object-fit: cover; border: 8px solid var(--paper); border-radius: 2px;
}
.letter-lead { font-size: 19px; line-height: 1.7; color: var(--ink); font-weight: 400; }
.signature { display: flex; align-items: center; gap: 18px; }
.signature img { height: 46px; width: auto; }
.signature__thanks { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--forest-800); line-height: 1.2; font-weight: 500; }
.align-self-start { align-self: flex-start; }
.quote { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.25; color: #FFFFFF; }

/* ---------- Pillar cards ---------- */
.pillar-card { position: relative; display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--line-2); transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.pillar-card:hover { box-shadow: 0 30px 50px -36px rgba(12, 51, 36, .45); transform: translateY(-3px); }
.pillar-card__media { display: block; aspect-ratio: 4 / 3.4; }
.pillar-card__body { padding: 34px 32px 38px; display: flex; flex-direction: column; gap: 16px; flex-grow: 1; }
.pillar-card .h3 a { color: inherit; text-decoration: none; }
.stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.roman { font-family: var(--serif); font-size: 18px; color: var(--brass-500); }
.expand-strip {
  margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  background: var(--sand); border: 1px solid var(--line-2);
}
.expand-strip__lead { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 8px; background: var(--green-600); color: #FFFFFF; }
.expand-strip__label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.expand-strip__item { padding: 32px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line); }

/* ---------- Values ---------- */
.value-item { display: flex; flex-direction: column; gap: 18px; padding-top: 28px; border-top: 2px solid var(--forest-800); }
.value-item__n { font-family: var(--serif); font-size: 64px; line-height: .9; color: var(--green-600); }

/* ---------- Feature (image) card ---------- */
.feature-card { position: relative; overflow: hidden; background: var(--forest-800); min-height: 600px; display: flex; align-items: flex-end; color: #FFFFFF; }
.feature-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-card__body {
  position: relative; width: 100%; padding: clamp(28px, 4vw, 56px);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px;
}
.feature-card__title { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4vw, 56px); line-height: 1.05; }
.feature-card__loc { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .9); }
@media (max-width: 640px) { .feature-card { min-height: 480px; } }
.rule-label { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; color: var(--muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.rule-label__line { display: block; flex-grow: 1; height: 1px; background: var(--line); }

/* ---------- Capability ---------- */
.caption-photo { position: relative; }
.caption-photo__text {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px;
  background: linear-gradient(0deg, rgba(8, 36, 25, .85), rgba(8, 36, 25, 0)); color: #FFFFFF; font-size: 13px; line-height: 1.6;
}
.fin-panel { background: var(--forest-800); color: #FFFFFF; padding: clamp(32px, 4vw, 52px); display: flex; flex-direction: column; gap: 8px; }
.fin-panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.fin-panel__row { display: flex; flex-direction: column; gap: 6px; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.fin-panel__label { font-size: 13px; color: rgba(255, 255, 255, .72); letter-spacing: .02em; }
.fin-panel__value { font-family: var(--serif); font-size: 42px; line-height: 1.05; }
.fin-panel__note { margin-top: 18px; font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .68); }

/* ---------- Partners ---------- */
.partner-grid {
  margin: 0; padding: 0; list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.partner-grid li {
  display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 150px; padding: 32px 36px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .3s;
}
.partner-grid li:hover { background: #FFFFFF; }
.partner-grid__name { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--forest-800); letter-spacing: .01em; }

/* ---------- Direction ---------- */
.circle-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--line-3); }
.circle-list li { display: flex; gap: 26px; align-items: flex-start; padding: 30px 0; border-bottom: 1px solid var(--line-3); }
.circle-list__n {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--green-600);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; color: var(--green-600);
}
.circle-list__text { padding-top: 12px; font-size: 18px; line-height: 1.6; color: var(--ink); }

/* ---------- Contact blocks ---------- */
.contact-art { left: auto; right: -10%; width: 60%; opacity: .1; }
.office-mini { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .9); font-weight: 300; }
.contact-phone { display: inline-flex; align-items: center; gap: 14px; color: #FFFFFF; text-decoration: none; font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.contact-email { display: inline-flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, .9); text-decoration: none; font-size: 16px; }
.contact-phone:hover, .contact-email:hover, .channel:hover { color: var(--brass-300); }
.channel { display: inline-flex; align-items: center; gap: 16px; color: #FFFFFF; text-decoration: none; transition: color .2s; }
.channel__icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 999px; border: 1px solid rgba(217, 192, 143, .6); display: flex; align-items: center; justify-content: center; transition: background-color .25s; }
.channel:hover .channel__icon { background: rgba(217, 192, 143, .12); }
.channel__big { font-size: 30px; line-height: 1.1; }
.channel__value { font-size: 18px; word-break: break-word; }
.office-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); background: #FFFFFF; border: 1px solid var(--line-2); }
.office-card__media { min-height: 240px; }
.office-card__body { padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.pill-radio { position: relative; cursor: pointer; }
.pill-radio .pill { display: inline-flex; align-items: center; }
.pill-radio input:checked + .pill { border-color: var(--green-600); background: var(--green-600); color: #FFFFFF; font-weight: 500; }
.pill-radio input:focus-visible + .pill { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- About ---------- */
.legal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); border-top: 1px solid var(--line); }
.legal-grid > div { display: flex; flex-direction: column; gap: 6px; padding: 24px 28px 24px 0; border-bottom: 1px solid var(--line); }
.legal-grid dd { font-size: 16px; line-height: 1.6; color: var(--ink); }
.dark-values { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .16); }
.dark-values__item { background: var(--forest-800); padding: 34px 30px; display: flex; flex-direction: column; gap: 14px; }
.org-box { display: flex; flex-direction: column; gap: 16px; padding: 30px; border: 1px solid var(--line); background: #FFFFFF; }

/* ---------- Business ---------- */
.glass-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); color: #FFFFFF;
  text-decoration: none; font-size: 13.5px; transition: background-color .25s, color .25s;
}
.glass-chip:hover { background: #FFFFFF; color: var(--forest-800); }
.scale-box { background: var(--forest-800); color: #FFFFFF; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.topline-col { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 2px solid var(--forest-800); }
.org-cell { padding: 18px; border: 1px solid var(--mint-200); background: var(--mint-50); text-align: center; font-size: 14.5px; font-weight: 500; color: var(--forest-800); }
.sand-card { flex-grow: 1; padding: 36px; background: var(--sand); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 14px; }

/* ---------- Medical ---------- */
.group-card { padding: 32px 26px; display: flex; flex-direction: column; gap: 14px; min-height: 200px; }
.spec-card { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--line-2); transition: box-shadow .35s var(--ease); }
.spec-card:hover { box-shadow: 0 24px 40px -32px rgba(12, 51, 36, .4); }
.spec-card__head { padding: 26px 28px 20px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.spec-card__specs { padding: 8px 28px 22px; display: flex; flex-direction: column; }
.spec-card__specs > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; line-height: 1.55; }
.spec-card__specs dt { color: var(--muted-2); }
.spec-card__specs dd { color: var(--ink); }
.catalog-panel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(28px, 4vw, 60px); padding: clamp(28px, 4vw, 48px); background: var(--sand); align-items: start;
}
.catalog-panel + .catalog-panel { margin-top: 14px; }
.js .catalog-panel + .catalog-panel { margin-top: 0; }
.catalog-panel[hidden] { display: none; }
.catalog-panel.is-entering { animation: panel-in .45s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-light { padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line-2); background: #FFFFFF; }
.panel-dark { padding: clamp(28px, 4vw, 44px); background: var(--forest-800); color: #FFFFFF; }
.panel-dark .h2 { color: #FFFFFF; }
.h2--fixed { font-size: 38px; line-height: 1.1; }
.h2--ref { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.1; }

/* ---------- Projects ---------- */
.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1px; margin-top: 28px;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .2); max-width: 860px;
}
.hero-stats > div { background: rgba(8, 36, 25, .72); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; backdrop-filter: blur(4px); }
.hero-stats__n { font-size: 44px; line-height: 1; color: #FFFFFF; }
.hero-stats__l { font-size: 13px; color: rgba(255, 255, 255, .78); }
.feat-title { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.08; color: var(--forest-800); }
.data-table tbody tr.is-hidden { display: none; }

/* Lining figures for numeric displays (Cormorant defaults to old-style numerals) */
.stat__n, .home-stats__n, .value-item__n, .fin-panel__value, .hero-stats__n, .num-big,
.catalog-panel .serif, .group-card .stat__n, .circle-list__n, .numlist__n, .roman { font-variant-numeric: lining-nums; }

/* Topic pills live inside .field: undo the uppercase form-label styling */
.field label.pill-radio { text-transform: none; letter-spacing: normal; font-size: inherit; color: inherit; }

/* ---------- Small-screen refinements ---------- */
@media (max-width: 520px) {
  /* Org charts: two compact columns instead of one long stack */
  .org__branch.grid:has(> .dept), .org-box .grid { --min: 130px !important; }
  .org__branch .dept, .org-box .dept { padding: 14px 12px; font-size: 13.5px; }
  .org-box { padding: 20px; }
}
/* Scrollable tables: edge fade + hint so users know they can swipe */
.table-hint { display: none; margin: 0 0 10px; font-size: 12px; color: var(--muted-2); letter-spacing: .04em; }
@media (max-width: 900px) {
  .table-hint { display: block; }
  .table-wrap { position: relative; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .table-wrap.is-end { mask-image: none; -webkit-mask-image: none; }
}
