/* TARSINTOR - main stylesheet */

@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #141416;
  --ink-deep: #0B0B0D;
  --parch: #F2EDE3;
  --parch-card: #F8F5EE;
  --parch-line: #D9D2C4;
  --red: #A3151E;
  --red-hover: #8A1119;
  --red-dark: #D42A31;
  --steel: #5E6169;
  --steel-light: #A9ACB3;
  --line-dark: rgba(242, 237, 227, 0.14);
  --serif: "Cinzel", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1280px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--parch); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
section[id] { scroll-margin-top: 96px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--parch); color: var(--ink); border-radius: 4px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red-dark); outline-offset: 3px; border-radius: 2px; }

/* Floating header */
.bar { position: fixed; top: 12px; left: 12px; right: 12px; z-index: 50; height: 64px; display: flex; align-items: center; gap: 24px; padding: 0 12px 0 18px; border: 1px solid var(--line-dark); border-radius: 8px; background: rgba(20, 20, 22, 0.5); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); transition: background 0.3s ease; }
.bar.scrolled { background: rgba(20, 20, 22, 0.88); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 28px; margin: 0 auto; }
.nav a { color: var(--steel-light); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.2s ease; }
.nav a:hover { color: var(--parch); }
.bar-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line-dark); border-radius: 6px; }
.lang button, .lang a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-width: 40px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: var(--steel-light); font: 600 13px/1 var(--sans); letter-spacing: 0.06em; cursor: pointer; }
.lang button[aria-pressed="true"], .lang a[aria-current="page"] { background: var(--parch); color: var(--ink); }
.lang a:not([aria-current]):hover { color: var(--parch); }

/* Buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 8px; font: 600 16px/1 var(--sans); text-decoration: none; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.pill:hover { transform: translateY(-1px); }
.pill-small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.pill-red { background: var(--red); color: #FFFFFF; }
.pill-red:hover { background: var(--red-hover); }
.pill-light { background: var(--parch); color: var(--ink); }
.pill-light:hover { background: #FFFFFF; }
.pill-ghost { border: 1px solid rgba(242, 237, 227, 0.45); color: var(--parch); }
.pill-ghost:hover { border-color: var(--parch); }

.glass { border: 1px solid var(--line-dark); border-radius: 8px; background: rgba(242, 237, 227, 0.06); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

.display { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 68px); line-height: 1.06; letter-spacing: 0.005em; text-wrap: balance; }
.section-lede { margin-top: 20px; font-size: clamp(17px, 1.4vw, 19px); }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px 0 clamp(40px, 6vh, 72px); color: var(--parch); background: radial-gradient(70% 80% at 72% 38%, #3A0D11 0%, #1A0F11 38%, var(--ink-deep) 75%); }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-mark { position: absolute; right: 14%; top: 50%; height: min(66vh, 620px); width: auto; transform: translateY(-54%); filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.55)); }
.js .hero-mark { opacity: 0; transform: translateY(-50%) scale(0.98); transition: opacity 1.4s ease 0.15s, transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s; }
.js .hero-mark.in { opacity: 0.92; transform: translateY(-54%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 13, 0.82) 0%, rgba(11, 11, 13, 0.35) 48%, rgba(11, 11, 13, 0) 70%), linear-gradient(0deg, rgba(11, 11, 13, 0.75) 0%, rgba(11, 11, 13, 0) 40%); pointer-events: none; }
.hero-inner { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.hero-copy { max-width: 720px; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; color: var(--steel-light); font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--red-dark); flex-shrink: 0; }
.eyebrow { text-wrap: balance; }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.8vw, 96px); line-height: 1.02; letter-spacing: 0; text-wrap: balance; }
.hero-lede { max-width: 560px; margin-top: 26px; color: #C9CBD0; font-size: clamp(17px, 1.4vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.facts { display: grid; gap: 12px; width: 280px; flex-shrink: 0; }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; }
.fact-label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-light); }
.fact-value { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.15; color: var(--parch); }
.fact-langs { font-size: 25px; white-space: nowrap; }
.fact-text { font-size: 14px; line-height: 1.45; color: var(--steel-light); }

/* Intro + commitments */
.intro { padding: clamp(96px, 11vw, 160px) 0 clamp(64px, 7vw, 96px); }
.intro-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: end; }
.intro-lede { color: var(--steel); font-size: clamp(17px, 1.4vw, 19px); }
.pledges { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--parch-line); }
.pledges-title { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; }
.pledge-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.pledge-list li { font-size: 15px; line-height: 1.5; color: var(--ink); padding-left: 16px; border-left: 1px solid var(--parch-line); }

/* Services: media cards */
.services { padding: clamp(40px, 5vw, 64px) 0 clamp(96px, 11vw, 150px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.services .section-lede { color: var(--steel); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; overflow: hidden; min-height: 400px; display: flex; align-items: flex-end; border-radius: var(--radius); color: var(--parch); background: radial-gradient(90% 90% at 80% 20%, #3A1216 0%, #1A1416 45%, var(--ink-deep) 100%); isolation: isolate; }
.card-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 11, 13, 0.92) 0%, rgba(11, 11, 13, 0.4) 45%, rgba(11, 11, 13, 0) 75%); }
.card:hover .card-art { transform: scale(1.04); }
.card-body { padding: clamp(26px, 3vw, 36px); max-width: 520px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; }
.card p { margin-top: 12px; color: #C9CBD0; font-size: 16px; }
.art-soft { fill: rgba(242, 237, 227, 0.16); }
.art-red { fill: var(--red-dark); }
.art-line { fill: none; stroke: rgba(242, 237, 227, 0.22); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art-dash { fill: none; stroke: var(--red-dark); stroke-width: 2.5; stroke-dasharray: 6 8; stroke-linecap: round; }
.card-art pattern circle { fill: rgba(242, 237, 227, 0.22); }
.art-route { fill: none; stroke: rgba(242, 237, 227, 0.5); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.art-red-stroke { fill: none; stroke: var(--red-dark); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }

/* Process: inset dark panel */
.process { padding: 0 clamp(12px, 2vw, 24px); }
.panel { position: relative; overflow: hidden; max-width: 1480px; margin: 0 auto; padding: clamp(72px, 9vw, 130px) clamp(20px, 5vw, 72px); border-radius: 12px; color: var(--parch); background: var(--ink); isolation: isolate; }
.panel-glow { position: absolute; z-index: -1; left: 50%; top: -30%; width: 120%; height: 90%; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(163, 21, 30, 0.38) 0%, rgba(163, 21, 30, 0) 70%); }
.panel-head { max-width: 760px; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; }
.panel-head .section-lede { color: var(--steel-light); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1280px; margin: 0 auto; }
.step { padding: 28px 24px 30px; min-height: 260px; display: flex; flex-direction: column; }
.step-n { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 5vw, 72px); line-height: 1; color: var(--red-dark); margin-bottom: auto; padding-bottom: 28px; }
.step h3 { font-size: 20px; font-weight: 600; }
.step p { margin-top: 8px; color: var(--steel-light); font-size: 15px; line-height: 1.55; }

/* Closing */
.closing { position: relative; overflow: hidden; margin-top: clamp(96px, 11vw, 150px); padding: clamp(110px, 14vw, 190px) 0; color: var(--parch); text-align: center; background: radial-gradient(60% 70% at 50% 100%, #3A0D11 0%, #170E10 45%, var(--ink-deep) 80%); }
.closing-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.closing-lede { max-width: 560px; margin-top: 20px; color: #C9CBD0; font-size: clamp(17px, 1.4vw, 19px); }
.closing-actions { justify-content: center; }
.closing-details { margin-top: 28px; color: var(--steel-light); font-size: 15px; letter-spacing: 0.02em; }

/* Footer */
.foot { padding: 40px 0 48px; background: var(--ink-deep); color: var(--steel-light); border-top: 1px solid var(--line-dark); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.foot-inner img { height: 36px; width: auto; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-nav a { text-decoration: none; font-size: 14px; }
.foot-nav a:hover { color: var(--parch); }
.foot-copy { margin-left: auto; font-size: 14px; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.foot-nav-small { gap: 10px 22px; }
.foot-nav-small a, .foot-legal .foot-copy { font-size: 13px; }
.foot-motto { margin-top: 18px; color: var(--steel); font-family: var(--serif); font-size: 12px; letter-spacing: 0.16em; }

/* 404 */
.nf { position: relative; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; overflow: hidden; padding: 140px 0 80px; color: var(--parch); background: radial-gradient(70% 90% at 72% 40%, #3A0D11 0%, #1A0F11 42%, var(--ink-deep) 80%); }
.nf-mark { position: absolute; right: 8%; top: 50%; height: min(78vh, 720px); width: auto; transform: translateY(-50%); opacity: 0.2; pointer-events: none; }
.nf-inner { position: relative; }
.nf-motto { max-width: 920px; font-family: var(--serif); font-size: clamp(30px, 4.6vw, 64px); line-height: 1.12; text-wrap: balance; }
.nf-langs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1040px; margin-top: clamp(40px, 6vw, 64px); }
.nf-langs li { padding: 20px 22px; border: 1px solid var(--line-dark); border-radius: 8px; background: rgba(20, 20, 22, 0.5); }
.nf-langs span { display: block; color: var(--steel-light); font-size: 15px; }
.nf-langs a { display: inline-block; margin-top: 8px; color: var(--parch); font-weight: 600; text-decoration: none; }
.nf-langs a::after { content: " →"; color: var(--red-dark); }
.nf-langs a:hover { color: #fff; }
@media (max-width: 1000px) { .nf-langs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nf-langs { grid-template-columns: 1fr; } .nf-mark { right: -20%; opacity: 0.14; } }

/* Frequently asked questions */
.faq { padding: clamp(96px, 11vw, 150px) 0 0; scroll-margin-top: 40px; }
.faq-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.faq-head { position: sticky; top: 128px; }
.faq-head .section-lede { color: var(--steel); }
.faq-all { margin-top: 32px; gap: 10px; }
.faq-more { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--parch-line); color: var(--steel); font-size: 15px; }
.faq-more a { color: var(--red); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.faq-more a:hover { color: var(--red-dark); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--parch-line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 26px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--sans); font-size: clamp(17px, 1.45vw, 20px); font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; transition: color 0.2s ease; }
.faq-item summary:hover .faq-q, .faq-item[open] .faq-q { color: var(--red); }
.faq-icon { position: relative; flex-shrink: 0; width: 16px; height: 16px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--red); transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-a { max-width: 68ch; padding: 0 56px 28px 0; color: var(--steel); font-size: 16px; line-height: 1.65; }
.faq-a a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.faq-a a:hover { color: var(--red); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
  .bar-tools { margin-left: auto; }
  .pledge-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { align-items: flex-end; }
  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-mark { right: -6%; top: 34%; height: 56vh; }
  .js .hero-mark.in { opacity: 0.55; }
  .facts { width: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro-head { grid-template-columns: 1fr; gap: 20px; }
  .pledges { grid-template-columns: 1fr; gap: 20px; }
  .faq-inner { grid-template-columns: 1fr; gap: 36px; }
  .faq-head { position: static; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 340px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar { top: 8px; left: 8px; right: 8px; height: 58px; padding: 0 8px 0 12px; }
  .brand img { height: 36px; }
  .bar-tools .pill-small { display: none; }
  .hero { padding-top: 110px; }
  .hero-mark { right: -14%; top: 22%; height: 44vh; }
  .js .hero-mark.in { opacity: 0.32; }
  .eyebrow { font-size: 11px; letter-spacing: 0.12em; gap: 10px; }
  .eyebrow::before { width: 24px; }
  .hero-actions .pill { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr; }
  .fact { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 12px; padding: 14px 16px; }
  .fact-label { flex-basis: 100%; }
  .fact-value { font-size: 24px; }
  .fact-langs { font-size: 22px; }
  .pledge-list { grid-template-columns: 1fr; gap: 14px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step-n { padding-bottom: 16px; }
  .faq-item summary { padding: 22px 0; gap: 20px; }
  .faq-a { padding-right: 0; font-size: 15px; }
  .foot-copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .faq-icon::before, .faq-icon::after, .faq-q { transition: none; }
  .js .hero-mark { transition: none; }
  .pill:hover { transform: none; }
  .card:hover .card-art { transform: none; }
}

/* Readability: line breaks, measure and sizes on small screens */
body { overflow-wrap: break-word; }
p, li, dd, summary, .faq-a, .fact-text { text-wrap: pretty; }
.nw { white-space: nowrap; }
.foot-motto { color: #7D8088; line-height: 1.7; }

@media (max-width: 640px) {
  .eyebrow { font-size: 12px; letter-spacing: 0.14em; line-height: 1.5; }
  .hero-title { font-size: clamp(38px, 11.4vw, 48px); line-height: 1.04; }
  .hero-lede { margin-top: 20px; }
  .display { font-size: clamp(30px, 9.2vw, 38px); line-height: 1.1; }
  .section-lede, .intro-lede { font-size: 17px; line-height: 1.6; }
  .intro { padding: 72px 0 52px; }
  .pledges { margin-top: 40px; }
  .pledges-title { font-size: 26px; }
  .pledge-list li { font-size: 16px; line-height: 1.5; padding-left: 14px; }
  .services { padding: 28px 0 72px; }
  .section-head { margin-bottom: 28px; }
  .card { min-height: 320px; }
  .card-art { opacity: 0.6; }
  .card::after { background: linear-gradient(0deg, rgba(11, 11, 13, 0.97) 0%, rgba(11, 11, 13, 0.88) 42%, rgba(11, 11, 13, 0.25) 78%, rgba(11, 11, 13, 0) 100%); }
  .card h3 { font-size: 26px; line-height: 1.15; }
  .card p { font-size: 16px; line-height: 1.55; color: #D4D6DA; }
  .panel { padding: 64px 20px; }
  .panel-head { margin-bottom: 36px; }
  .step { padding: 24px 22px 26px; }
  .step h3 { font-size: 19px; }
  .step p { font-size: 15.5px; color: #B9BCC2; }
  .faq { padding-top: 72px; }
  .faq-q { font-size: 17px; line-height: 1.4; }
  .faq-a { font-size: 16px; line-height: 1.6; }
  .closing { margin-top: 72px; padding: 88px 0; }
  .closing-lede { font-size: 17px; }
  .closing-details { font-size: 15px; line-height: 1.7; }
  .foot-inner { gap: 20px; }
  .foot-inner .foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; width: 100%; }
  .foot-nav a { font-size: 15px; }
  .foot-legal { gap: 14px; }
  .foot-nav-small { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; width: 100%; }
  .foot-nav-small a, .foot-legal .foot-copy { font-size: 14px; }
  .foot-motto { font-size: 12px; letter-spacing: 0.1em; }
}

@media (max-width: 380px) {
  .bar { gap: 10px; padding: 0 6px 0 10px; }
  .brand img { height: 30px; }
  .lang { padding: 2px; }
  .lang a, .lang button { min-width: 34px; padding: 0 6px; font-size: 12px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
}
