@import url("/assets/fonts/fonts.css");

:root {
  --ink: #111827;
  --muted: #5b6573;
  --paper: #ffffff;
  --soft: #f6faff;
  --navy: #11213a;
  --dark: #20252d;
  --blue: #2563eb;
  --cta: #70777f;
  --line: #dbe3ed;
  --radius: 22px;
  --shadow: 0 18px 55px rgba(17, 33, 58, 0.12);
  --content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding-top: 75px; color: var(--ink); background: var(--paper); font-family: "DM Sans", Arial, sans-serif; font-size: 16px; line-height: 1.5; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; background: white; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 500; height: 75px; background: var(--soft); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.header-inner { max-width: 1200px; height: 75px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { color: var(--blue); font-size: 18px; line-height: 1.2; font-weight: 700; letter-spacing: .01em; text-transform: capitalize; white-space: nowrap; }
.desktop-nav { display: flex; align-items: center; gap: 15px; font-size: 16px; }
.desktop-nav a { position: relative; padding: 8px 0; color: #1f2937; }
.desktop-nav a::after { content: ""; position: absolute; inset: auto 0 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: #27303c; }
.mobile-menu[hidden] { display: none; }
.mobile-menu { position: fixed; inset: 75px 0 0; background: rgba(246,250,255,.9); backdrop-filter: blur(10px); }
.mobile-menu-panel { min-height: 100%; padding: 28px 24px; background: rgba(255,255,255,.95); }
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 20px; }
.menu-close { position: absolute; top: 12px; right: 18px; border: 0; background: transparent; font-size: 38px; line-height: 1; cursor: pointer; }
body.menu-open { overflow: hidden; }

.hero { position: relative; min-height: 700px; overflow: clip; background: #35383d; isolation: isolate; }
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media { z-index: -3; background: #35383d var(--hero-poster, none) center/cover no-repeat; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { z-index: -2; background: linear-gradient(90deg, rgba(15,18,23,.65), rgba(15,18,23,.45)); }
.hero-content { width: min(var(--content), calc(100% - 48px)); min-height: 700px; margin: 0 auto; padding: 64px 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; color: white; text-align: center; }
.hero-left .hero-content { align-items: flex-start; text-align: left; }
.eyebrow { margin: 0; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: #dbeafe; }
.hero h1 { max-width: 700px; margin: 0; font-family: Montserrat, sans-serif; font-size: clamp(42px, 3.4vw, 48px); line-height: 1.2; font-weight: 700; text-wrap: balance; }
.hero-content > p:not(.eyebrow) { max-width: 680px; margin: 0; font-size: 17px; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.button { min-height: 52px; padding: 14px 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 50px; font-weight: 600; transition: transform .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { min-width: 165px; padding: 20px 45px; color: white; background: var(--cta); }
.button-primary:hover { background: #5e6670; }
.button-ghost { color: white; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }
.button-outline { color: var(--ink); border-color: var(--ink); background: transparent; }

.section { padding: 64px 24px; }
.section-inner { width: min(var(--content), 100%); margin: 0 auto; }
.section-title { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.section h2 { margin: 0 0 16px; font-family: Montserrat, sans-serif; font-size: clamp(32px, 3vw, 40px); line-height: 1.3; }
.section p { color: var(--muted); }
.section-dark { padding-top: 40px; padding-bottom: 40px; color: white; background: var(--dark); }
.section-dark p { color: #d1d5db; }
.section-light, .section-cta { background: var(--soft); text-align: center; }
.section-join { padding-top: 26px; padding-bottom: 26px; text-align: center; }
.section-join .section-title { margin-bottom: 0; }
.section-cta { padding-top: 84px; padding-bottom: 84px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
.feature-card { overflow: hidden; border-radius: 18px; background: white; color: var(--ink); box-shadow: var(--shadow); }
.feature-card img { width: 100%; height: 248px; object-fit: cover; }
.feature-card-copy { min-height: 124px; padding: 24px 26px; text-align: center; }
.feature-card h3 { margin: 0 0 8px; font-family: Montserrat, sans-serif; font-size: 20px; }
.feature-card p { margin: 0; color: #4b5563; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.portrait-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-items: end; }
.portrait-grid img { width: 100%; height: 430px; object-fit: cover; object-position: center; border-radius: 18px; box-shadow: var(--shadow); }
.portrait-grid img:first-child { transform: translateY(26px); }
.check-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }

.content-shell, .article-shell, .archive-shell, .contact-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 96px; }
.content-shell > h1, .archive-shell > h1, .contact-shell > h1, .article-shell > h1 { margin: 0 0 22px; font-family: Montserrat, sans-serif; font-size: clamp(34px,4vw,52px); line-height: 1.15; }
.article-shell { width: min(760px, calc(100% - 48px)); }
.article-shell .article-hero { width: 100%; max-height: 540px; margin: 28px 0 34px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.article-shell h2 { margin: 42px 0 12px; font-family: Montserrat, sans-serif; font-size: 28px; line-height: 1.3; }
.article-shell h3 { margin: 28px 0 8px; font-family: Montserrat, sans-serif; }
.article-shell p, .article-shell li { color: #374151; line-height: 1.75; }
.article-meta { color: var(--muted); }
.note { margin: 32px 0; padding: 20px 22px; border-left: 4px solid var(--blue); background: var(--soft); }
.faq-list details { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 700; }

.post-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 12px 35px rgba(17,33,58,.08); }
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card-body { padding: 24px; }
.post-card h2, .post-card h3 { margin: 0 0 12px; font-family: Montserrat, sans-serif; font-size: 23px; line-height: 1.35; }
.post-card p { color: var(--muted); }
.post-card time { color: var(--muted); font-size: 14px; }
.archive-intro { max-width: 760px; margin-bottom: 44px; color: var(--muted); }
.archive-list { display: grid; gap: 34px; }
.archive-entry { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.archive-entry img { width: 230px; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; }
.archive-entry h2 { margin: 0 0 10px; font-family: Montserrat, sans-serif; font-size: 24px; line-height: 1.35; }

.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; }
.contact-card, .contact-form { padding: 34px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.contact-actions { display: grid; gap: 12px; margin-top: 26px; }
.contact-actions a { padding: 14px 16px; border-radius: 12px; background: var(--soft); color: var(--blue); font-weight: 700; overflow-wrap: anywhere; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 700; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: white; }
.field textarea { min-height: 140px; resize: vertical; }
.form-status { min-height: 24px; color: var(--muted); }

.site-footer { padding: 48px 24px 24px; color: white; background: var(--navy); }
.footer-grid { width: min(var(--content), 100%); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-logo { width: 60px; height: 60px; border-radius: 16px; }
.footer-grid h2 { margin: 0 0 8px; font-family: Montserrat, sans-serif; font-size: 18px; }
.footer-grid p { margin: 0; color: #cbd5e1; }
.footer-grid a { color: white; text-decoration: underline; text-underline-offset: 4px; }
.copyright { width: min(var(--content), 100%); margin: 44px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); text-align: center; color: #cbd5e1; font-size: 14px; }

.reveal { opacity: 0; transform: translateY(55px); transition: opacity .45s ease, transform .45s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 768px) and (max-width: 900px) {
  .header-inner { gap: 14px; }
  .desktop-nav { gap: 10px; font-size: 14px; }
  .hero, .hero-content { min-height: 400px; }
  .hero-content { padding-top: 38px; padding-bottom: 38px; }
  .hero h1 { font-size: 42px; }
  .split { gap: 34px; }
  .section-dark { padding-top: 30px; padding-bottom: 30px; }
  .section-dark .feature-card img { height: 220px; }
  .section-join { padding-top: 8px; padding-bottom: 8px; }
  .section-light { padding-top: 36px; padding-bottom: 36px; }
  .portrait-grid img { height: 300px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  body { padding-top: 75px; }
  .header-inner { padding: 0 16px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .hero { min-height: 484px; }
  .hero-content { width: min(100% - 32px, 640px); min-height: 484px; padding: 42px 0 36px; gap: 16px; }
  .hero h1 { font-size: clamp(34px, 10vw, 42px); line-height: 1.13; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .section { padding: 54px 18px; }
  .section-dark { padding-top: 38px; padding-bottom: 38px; }
  .section-join { padding-top: 34px; padding-bottom: 34px; }
  .section-cta { padding-top: 32px; padding-bottom: 32px; }
  .feature-grid, .post-grid, .portrait-grid { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-card img { height: 180px; }
  .feature-card-copy { min-height: 120px; padding: 14px 16px; }
  .feature-card h3 { font-size: 17px; }
  .feature-card p { font-size: 14px; line-height: 1.4; }
  .portrait-grid img { height: 330px; }
  .portrait-grid img:first-child { transform: none; }
  .archive-entry { grid-template-columns: 1fr; gap: 18px; }
  .archive-entry img { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .content-shell, .article-shell, .archive-shell, .contact-shell { width: min(100% - 32px, 760px); padding: 52px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-media video { display: none; }
}
