/*
 * Oryne — company site (oryne.org). Editorial / corporate.
 * White pages, large type, thin rules, text-only lists. No icons, no gradients,
 * sharp edges. Dark ink and plum are used for full-width sections.
 */
:root {
  --ink: #111111;
  --charcoal: #1f1f1f;
  --white: #ffffff;
  --plum: #3b2352;
  --purple: #43305a;
  --orange: #fc771f;

  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 4.5rem;
  --max: 84rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--charcoal); background: var(--white);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--white); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--white); padding: .75rem 1rem; }
.skip:focus { top: 1rem; }

/* ---------- Tones ---------- */
.tone-white { color: var(--charcoal); --muted: rgba(31, 31, 31, .64); --line: rgba(31, 31, 31, .14); --strong-line: var(--charcoal); }
.tone-white { background: var(--white); }
.tone-ink, .tone-purple, .tone-plum { color: var(--white); --muted: rgba(255, 255, 255, .64); --line: rgba(255, 255, 255, .16); --strong-line: var(--white); }
.tone-ink { background: var(--ink); }
.tone-purple { background: var(--purple); }
.tone-plum { background: var(--plum); }
.muted { color: var(--muted); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 768px) { .container { padding-inline: 2.5rem; } }
@media (min-width: 1200px) { .container { padding-inline: 3rem; } }
.section { padding-block: 5rem; }
@media (min-width: 768px) { .section { padding-block: 7.5rem; } }
.cols { display: grid; gap: 2.5rem 3rem; }
@media (min-width: 1024px) {
  .cols { grid-template-columns: 4fr 8fr; }
  .cols > .aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
  .cols.even { grid-template-columns: 1fr 1fr; }
}
.rule-top { border-top: 1px solid var(--strong-line); padding-top: 1.25rem; }

/* ---------- Type ---------- */
.display { font-weight: 600; font-size: clamp(2.75rem, 7vw, 6.25rem); line-height: .98; letter-spacing: -0.05em; }
.h2 { font-weight: 600; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.04em; }
.h3 { font-weight: 600; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.25; letter-spacing: -0.025em; }
.big-text { font-size: clamp(1.375rem, 2.4vw, 2.125rem); line-height: 1.3; letter-spacing: -0.025em; font-weight: 500; }
.lede { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.6; color: var(--muted); }
.body { font-size: .975rem; line-height: 1.7; color: var(--muted); }
.small { font-size: .8125rem; color: var(--muted); }
.mw-12 { max-width: 12ch; } .mw-16 { max-width: 16ch; } .mw-20 { max-width: 20ch; } .mw-prose { max-width: 38rem; }

/* ---------- Buttons and links (text only) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 3.25rem; padding-inline: 1.75rem; border: 1px solid;
  font: 600 .875rem/1 var(--sans); letter-spacing: -0.005em; white-space: nowrap; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-sm { height: 2.5rem; padding-inline: 1.1rem; font-size: .8125rem; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--purple); border-color: var(--purple); }
.btn-line { background: transparent; border-color: currentColor; color: inherit; }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tone-ink .btn-line:hover, .tone-purple .btn-line:hover, .tone-plum .btn-line:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--orange); border-color: var(--orange); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.link { font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: .1rem; transition: opacity .2s; }
.link:hover { opacity: .65; }

/* ---------- Header: full width, thin rule ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid rgba(31, 31, 31, .12); }
.nav { max-width: var(--max); margin-inline: auto; height: var(--header-h); display: flex; align-items: center; gap: 2rem; padding-inline: 1.5rem; }
@media (min-width: 768px) { .nav { padding-inline: 2.5rem; } }
@media (min-width: 1200px) { .nav { padding-inline: 3rem; } }
.nav.is-scrolled { }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 1.45rem; width: auto; }
.nav-links { display: none; margin-left: auto; gap: 2rem; }
.nav-links a { font-size: .9rem; color: rgba(31, 31, 31, .7); padding-block: .4rem; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:hover { color: var(--charcoal); }
.nav-links a[aria-current="page"] { color: var(--charcoal); border-color: var(--charcoal); }
.nav-cta { display: none; }
.nav-toggle {
  margin-left: auto; height: 2.5rem; padding-inline: 1rem; border: 1px solid var(--charcoal); background: transparent;
  font: 600 .8125rem var(--sans); color: var(--charcoal); cursor: pointer;
}
.nav-toggle .i-close { display: none; }
.nav-wrap.is-open .nav-toggle .i-open { display: none; }
.nav-wrap.is-open .nav-toggle .i-close { display: inline; }
@media (min-width: 1024px) { .nav-links { display: flex; } .nav-cta { display: inline-flex; } .nav-toggle { display: none; } }

.mobile-menu { display: none; position: fixed; inset: var(--header-h) 0 0; z-index: 40; overflow-y: auto; padding: 1rem 1.5rem 2.5rem; }
.mobile-menu.is-open { display: flex; flex-direction: column; }
.mobile-menu ul li { border-bottom: 1px solid var(--line); }
.mobile-menu ul a { display: block; padding: 1.25rem 0; font-size: 2rem; font-weight: 600; letter-spacing: -0.035em; color: rgba(255, 255, 255, .55); }
.mobile-menu ul a[aria-current="page"] { color: var(--white); }
.mobile-menu .actions { margin-top: auto; padding-top: 2.5rem; display: grid; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ---------- Home hero ---------- */
.hero .container { padding-block: 5rem 4rem; }
@media (min-width: 768px) { .hero .container { padding-block: 8rem 5.5rem; } }
.hero-foot { display: grid; gap: 2rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .hero-foot { grid-template-columns: 1fr 1fr; align-items: end; margin-top: 5rem; } .hero-foot .actions { justify-content: flex-end; } }

/* Moving line of services under the hero */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 1.6rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.04em; white-space: nowrap;
  padding-right: 3rem; color: rgba(31, 31, 31, .22);
}
.marquee-track span:nth-child(4n + 1) { color: var(--charcoal); }
.marquee-track span::after { content: "/"; padding-left: 3rem; color: rgba(31, 31, 31, .22); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Inner page hero ---------- */
.page-hero .container { padding-block: 5rem 3.5rem; }
@media (min-width: 768px) { .page-hero .container { padding-block: 7.5rem 4.5rem; } }
.page-hero .lede { margin-top: 2rem; }
.page-hero .hero-foot { margin-top: 3rem; }

/* ---------- Text-only service index ---------- */
.index { border-top: 1px solid var(--strong-line); }
.index li { border-bottom: 1px solid var(--line); }
.index a, .index .row {
  display: grid; gap: .5rem 2rem; padding: 1.75rem 0; transition: padding .35s var(--ease), background-color .35s var(--ease);
}
@media (min-width: 768px) { .index a, .index .row { grid-template-columns: 1fr 1.1fr auto; align-items: baseline; } }
.index h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 600; letter-spacing: -0.03em; }
.index p { font-size: .95rem; line-height: 1.6; color: var(--muted); }
.index .go { font-size: 1.25rem; transition: transform .35s var(--ease); }
.index a:hover { padding-inline: 1.25rem; background: rgba(17, 17, 17, .04); }
.index a:hover .go { transform: translateX(4px); }
.tone-plum .index a:hover, .tone-ink .index a:hover { background: rgba(255, 255, 255, .06); }

/* ---------- Columns of text separated by rules ---------- */
.columns { display: grid; gap: 0; border-top: 1px solid var(--strong-line); }
@media (min-width: 768px) { .columns { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .columns.four { grid-template-columns: repeat(4, 1fr); } .columns.three { grid-template-columns: repeat(3, 1fr); } }
.columns > * { padding: 1.75rem 0 2rem; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) {
  .columns > * { padding: 2rem 2rem 2.5rem; border-bottom: 0; border-left: 1px solid var(--line); }
  .columns > *:first-child { border-left: 0; padding-left: 0; }
  .columns:not(.four):not(.three) > *:nth-child(odd) { border-left: 0; padding-left: 0; }
  .columns:not(.four):not(.three) > *:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
.columns .k { font-size: .8125rem; color: var(--muted); margin-bottom: 2.5rem; display: block; }
.columns h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }
.columns p { font-size: .925rem; line-height: 1.65; color: var(--muted); margin-top: .6rem; }
.columns ul { margin-top: 1.25rem; display: grid; gap: .45rem; font-size: .875rem; color: var(--muted); }
.columns ul li::before { content: "— "; }

/* ---------- Engagement models: a ruled table of three ---------- */
.plans { display: grid; border: 1px solid var(--strong-line); }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { padding: 2.25rem 2rem; display: flex; flex-direction: column; gap: 1.25rem; border-bottom: 1px solid var(--strong-line); }
.plan:last-child { border-bottom: 0; }
@media (min-width: 1024px) { .plan { border-bottom: 0; border-left: 1px solid var(--strong-line); } .plan:first-child { border-left: 0; } }
.plan.featured { background: var(--ink); color: var(--white); --muted: rgba(255, 255, 255, .66); --line: rgba(255, 255, 255, .16); }
.plan h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; }
.plan .tag { font-size: .75rem; font-weight: 600; color: var(--orange); }
.plan p { font-size: .925rem; line-height: 1.6; color: var(--muted); }
.plan ul { border-top: 1px solid var(--line); }
.plan ul li { padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.plan .btn { margin-top: auto; width: 100%; }

/* ---------- Definition list ---------- */
.spec { border-top: 1px solid var(--strong-line); }
.spec div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec dt { color: var(--muted); }
.spec dd { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--strong-line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.5rem 0; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em;
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "Open"; font-size: .8125rem; font-weight: 500; color: var(--muted); flex-shrink: 0; }
.faq details[open] summary::after { content: "Close"; }
.faq details p { padding-bottom: 1.5rem; font-size: .975rem; line-height: 1.7; color: var(--muted); max-width: 42rem; }

/* ---------- Closing band ---------- */
.closing .container { padding-block: 5.5rem; }
@media (min-width: 768px) { .closing .container { padding-block: 8rem; } }
.closing .mail { display: inline-block; margin-top: 2.5rem; font-size: clamp(1.5rem, 3.5vw, 3rem); font-weight: 600; letter-spacing: -0.04em; border-bottom: 2px solid currentColor; transition: color .2s; }
.closing .mail:hover { color: var(--orange); }

/* ---------- Facts ---------- */
.facts { display: grid; border-top: 1px solid var(--strong-line); }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts div { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .facts div { padding: 2rem 1.5rem 0; border-bottom: 0; border-left: 1px solid var(--line); } .facts div:first-child { border-left: 0; padding-left: 0; } }
.facts strong { display: block; font-weight: 600; letter-spacing: -0.05em; font-size: 3rem; line-height: 1; margin-bottom: .75rem; }
.facts span { font-size: .875rem; color: var(--muted); line-height: 1.5; }

/* ---------- Services page detail ---------- */
.detail { padding-block: 3rem; border-top: 1px solid var(--strong-line); }
.detail:last-child { border-bottom: 1px solid var(--strong-line); }
.detail-grid { display: grid; gap: 2rem 3rem; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: 5fr 4fr 3fr; } }
.detail h2 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.detail p { font-size: .975rem; line-height: 1.7; color: var(--muted); margin-top: 1rem; }
.detail h3 { font-size: .8125rem; font-weight: 600; margin-bottom: .75rem; }
.detail ul { border-top: 1px solid var(--line); }
.detail li { padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }

/* ---------- Venture feature ---------- */
.venture { border: 1px solid var(--strong-line); display: grid; }
@media (min-width: 1024px) { .venture { grid-template-columns: 1.2fr 1fr; } }
.venture > div { padding: 2.25rem 2rem; }
@media (min-width: 768px) { .venture > div { padding: 3rem; } }
.venture > div + div { border-top: 1px solid var(--strong-line); }
@media (min-width: 1024px) { .venture > div + div { border-top: 0; border-left: 1px solid var(--strong-line); } }
.status { display: inline-block; font-size: .8125rem; font-weight: 600; }
.status::before { content: ""; display: inline-block; width: .5rem; height: .5rem; background: var(--orange); margin-right: .5rem; vertical-align: .05em; }

/* ---------- Contact ---------- */
.form { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.field { display: grid; gap: .5rem; }
.field label { font-size: .8125rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--charcoal); background: transparent;
  border: 0; border-bottom: 1px solid rgba(31, 31, 31, .35); border-radius: 0; padding: .7rem 0; width: 100%; transition: border-color .2s;
}
.field select { appearance: none; background: transparent; cursor: pointer; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.steps-list { border-top: 1px solid var(--strong-line); }
.steps-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.steps-list h3 { font-size: 1rem; font-weight: 600; }
.steps-list p { font-size: .9rem; color: var(--muted); line-height: 1.6; margin-top: .25rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(31, 31, 31, .12); }
.footer .container { padding-block: 3.5rem 2rem; }
.footer-top { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 4fr 8fr; } }
.footer-top img { height: 1.5rem; width: auto; }
.footer-top p { margin-top: 1rem; max-width: 22rem; font-size: .875rem; line-height: 1.6; color: var(--muted); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-cols h2 { font-size: .8125rem; font-weight: 600; }
.footer-cols ul { margin-top: .9rem; display: grid; gap: .6rem; font-size: .875rem; }
.footer-cols a { color: var(--muted); transition: color .2s; }
.footer-cols a:hover { color: var(--charcoal); }
.footer-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; font-size: .8125rem; color: var(--muted); }
.footer-legal a:hover { color: var(--charcoal); }

/* ---------- Prose ---------- */
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin: 2.5rem 0 .75rem; }
.prose p { font-size: 1rem; line-height: 1.75; color: var(--muted); }
.prose a { color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Utilities ---------- */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 2.5rem; } .mt-6 { margin-top: 3.5rem; }
.mb-5 { margin-bottom: 2.5rem; } .mb-6 { margin-bottom: 3.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
