/* ============================================================
   The Practice — Shared Stylesheet
   Design System: Editorial / Elegant Beauty
   ============================================================ */

:root{
  /* Color Palette — Refined editorial */
  --ink: #0A1628;
  --ink-2: #13243C;
  --ink-3: #1F4F4F;
  --teal: #3A7575;
  --teal-2: #5C9B9B;
  --paper: #F5F2EA;
  --paper-2: #EBE6D8;
  --paper-3: #FDFBF6;
  --line: #C8B98E;
  --gold: #9C7B3F;
  --gold-bright: #C9A659;
  --bronze: #A87246;
  --silver: #7B8794;
  --mute: #6B6452;
  --rose: #B68B7E;
  --warn: #A04545;

  /* Typography */
  --serif-en: 'Cormorant Garamond', serif;
  --serif-jp: 'Noto Serif JP', serif;
  --sans-jp: 'Noto Sans JP', sans-serif;
  --italic-en: 'Cormorant', serif;
  --mono: 'JetBrains Mono', monospace;

  /* Spacing & Layout */
  --header-h: 84px;
  --max-w: 1280px;
  --max-w-narrow: 920px;
  --max-w-text: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans-jp);
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: .02em;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .3s ease, opacity .3s ease; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================================
   HEADER (shared across all pages)
   ============================================================ */
.tp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(245, 242, 234, 0);
  backdrop-filter: blur(0);
  transition: background .4s ease, backdrop-filter .4s ease, box-shadow .4s ease;
}
.tp-header.scrolled {
  background: rgba(245, 242, 234, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 30px rgba(10, 22, 40, .06);
}
.tp-header .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tp-logo {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: .04em;
  color: var(--paper);
  transition: color .4s ease;
  line-height: 1;
}
.tp-logo .practice { font-family: var(--italic-en); }
.tp-header.scrolled .tp-logo { color: var(--ink); }
.tp-logo small {
  display: block;
  font-family: var(--serif-jp);
  font-style: normal;
  font-weight: 400;
  font-size: 9px;
  letter-spacing: .32em;
  margin-top: 4px;
  opacity: .7;
}

.tp-nav { display: flex; align-items: center; gap: 36px; }
.tp-nav a {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--paper);
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color .4s ease;
}
.tp-nav a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%; bottom: 0;
  height: 1px;
  background: var(--gold-bright);
  transition: left .3s ease, right .3s ease;
}
.tp-nav a:hover::after,
.tp-nav a.active::after {
  left: 0; right: 0;
}
.tp-header.scrolled .tp-nav a { color: var(--ink-2); }
.tp-nav a .jp {
  display: block;
  font-family: var(--serif-jp);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .12em;
  margin-top: 2px;
  opacity: .7;
}

.tp-nav-cta {
  font-family: var(--serif-jp) !important;
  font-style: normal !important;
  font-size: 12px !important;
  padding: 10px 20px !important;
  background: var(--gold);
  color: var(--paper) !important;
  letter-spacing: .12em;
  transition: background .3s ease;
}
.tp-nav-cta::after { display: none; }
.tp-nav-cta:hover { background: var(--ink); }
.tp-header.scrolled .tp-nav-cta { color: var(--paper) !important; }

/* Mobile menu trigger */
.tp-menu-btn {
  display: none;
  width: 40px; height: 40px;
  position: relative;
}
.tp-menu-btn span {
  position: absolute;
  left: 8px;
  width: 24px;
  height: 1px;
  background: var(--paper);
  transition: background .4s ease, transform .3s ease, opacity .3s ease;
}
.tp-menu-btn span:nth-child(1) { top: 14px; }
.tp-menu-btn span:nth-child(2) { top: 20px; }
.tp-menu-btn span:nth-child(3) { top: 26px; }
.tp-header.scrolled .tp-menu-btn span { background: var(--ink); }

/* ============================================================
   FOOTER (shared)
   ============================================================ */
.tp-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 40px 36px;
  position: relative;
  overflow: hidden;
}
.tp-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-bright) 50%, transparent 100%);
}
.tp-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.tp-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(245, 242, 234, .12);
}
.tp-footer-brand .logo {
  font-family: var(--serif-en);
  font-size: 38px;
  letter-spacing: .04em;
  font-weight: 300;
  line-height: 1;
}
.tp-footer-brand .logo em {
  font-family: var(--italic-en);
  font-style: italic;
  color: var(--teal-2);
}
.tp-footer-brand .tagline {
  font-family: var(--italic-en);
  font-style: italic;
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--gold-bright);
  margin-top: 16px;
}
.tp-footer-brand .desc {
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(245, 242, 234, .65);
  margin-top: 20px;
  max-width: 360px;
}
.tp-footer-col h4 {
  font-family: var(--italic-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 400;
}
.tp-footer-col ul { list-style: none; }
.tp-footer-col ul li {
  font-size: 12.5px;
  line-height: 2.2;
  color: rgba(245, 242, 234, .75);
}
.tp-footer-col ul li a:hover { color: var(--gold-bright); }
.tp-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(245, 242, 234, .45);
  text-transform: uppercase;
}

/* ============================================================
   COMMON SECTION COMPONENTS
   ============================================================ */
.tp-section {
  padding: 120px 40px;
  position: relative;
}
.tp-section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.tp-section-inner.narrow { max-width: var(--max-w-narrow); }
.tp-section-inner.text { max-width: var(--max-w-text); }

.tp-section.bg-paper-2 { background: var(--paper-2); }
.tp-section.bg-paper-3 { background: var(--paper-3); }
.tp-section.bg-ink { background: var(--ink); color: var(--paper); }
.tp-section.bg-ink p { color: rgba(245, 242, 234, .8); }

.tp-section-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.tp-section-mark .num {
  font-family: var(--italic-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--gold);
  text-transform: uppercase;
}
.tp-section-mark .line {
  width: 60px;
  height: 1px;
  background: rgba(156, 123, 63, .5);
}
.tp-section.bg-ink .tp-section-mark .num { color: var(--gold-bright); }
.tp-section.bg-ink .tp-section-mark .line { background: rgba(201, 166, 89, .35); }

h1.tp-h1 {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.45;
  letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: 14px;
}
h1.tp-h1-en {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: .06em;
  color: var(--ink-3);
  margin-bottom: 36px;
}
h2.tp-h2 {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: 8px;
}
.tp-h2-en {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: .06em;
  color: var(--mute);
  margin-bottom: 28px;
}
.tp-section.bg-ink h2.tp-h2 { color: var(--paper); }
.tp-section.bg-ink .tp-h2-en { color: var(--teal-2); }

p.tp-lead {
  font-size: 16px;
  line-height: 2;
  color: var(--ink-2);
  margin-bottom: 18px;
}
p.tp-body {
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-2);
  margin-bottom: 14px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.tp-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-family: var(--serif-jp);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}
.tp-btn::after {
  content: "→";
  font-family: var(--serif-en);
  font-size: 16px;
  transition: transform .3s ease;
}
.tp-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
}
.tp-btn:hover::after { transform: translateX(4px); }

.tp-btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.tp-btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.tp-btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--paper);
}
.tp-btn-gold:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.tp-btn-light {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}
.tp-btn-light:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ============================================================
   SUB-PAGE HERO (used in About, School, Faculty, etc.)
   ============================================================ */
.tp-subhero {
  padding: 180px 40px 100px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 60%, var(--ink-3) 100%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.tp-subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(92, 155, 155, .18) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(156, 123, 63, .14) 0%, transparent 45%);
  pointer-events: none;
}
.tp-subhero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.tp-subhero .crumb {
  font-family: var(--italic-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.tp-subhero h1 {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.3;
  letter-spacing: .04em;
  color: var(--paper);
  margin-bottom: 16px;
}
.tp-subhero .en {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: .06em;
  color: var(--teal-2);
  margin-bottom: 28px;
}
.tp-subhero .desc {
  font-size: 15px;
  line-height: 2;
  color: rgba(245, 242, 234, .85);
  max-width: 640px;
}

/* ============================================================
   COMMON UTILITIES
   ============================================================ */
.tp-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
.tp-fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}
.tp-fade-in.delay-1 { transition-delay: .15s; }
.tp-fade-in.delay-2 { transition-delay: .3s; }
.tp-fade-in.delay-3 { transition-delay: .45s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .tp-header .inner { padding: 0 24px; }
  .tp-nav { display: none; }
  .tp-menu-btn { display: block; }
  .tp-section { padding: 80px 24px; }
  .tp-subhero { padding: 130px 24px 70px; }
  .tp-footer { padding: 60px 24px 28px; }
  .tp-footer-top { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .tp-logo { font-size: 22px; }
  .tp-logo small { font-size: 8px; }
}
