/* NADIRION site styles */
:root {
  --bg: #F1F3F2;
  --surface: #FFFFFF;
  --ink: #161A1D;
  --mute: #4E595F;
  --rule: #DCE1E2;
  --leader: #A9B2B6;
  --action: #0D5C63;
  --action-ink: #FFFFFF;
  --bay: #2B5A6E;
  --bay-ink: #FFFFFF;
  --bay-mute: #D5E3E8;
  --night: #161A1D;
  --night-ink: #F1F3F2;
  --night-mute: #B9C2C6;
  --wrap: 80rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1416; --surface: #151C1F; --ink: #E8EDEE; --mute: #9AA7AC; --rule: #273136;
    --leader: #4A575D; --action: #4FB3BB; --action-ink: #06191B; --bay: #1E4352;
    --night: #0B0F11; --night-ink: #E8EDEE; --night-mute: #9AA7AC;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1416; --surface: #151C1F; --ink: #E8EDEE; --mute: #9AA7AC; --rule: #273136;
  --leader: #4A575D; --action: #4FB3BB; --action-ink: #06191B; --bay: #1E4352;
  --night: #0B0F11; --night-ink: #E8EDEE; --night-mute: #9AA7AC;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(5rem + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--action); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 200; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: var(--bg); padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.25rem; padding: 0 2rem; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 400; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--action); color: var(--action-ink); }
.btn-solid:hover { color: var(--action-ink); filter: brightness(1.08); }
.btn-line { border-color: var(--leader); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #FFFFFF; color: #13343F; }
.btn-light:hover { color: #13343F; background: #E8F0F2; }
.btn-ghost-light { border-color: rgba(255,255,255,.85); color: #FFFFFF; }
.btn-ghost-light:hover { color: #FFFFFF; background: rgba(255,255,255,.1); }
.btn-sm { min-height: 2.75rem; padding: 0 1.4rem; font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top, 0px); }
.bar { display: flex; align-items: center; gap: 2rem; min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 300; font-size: 1rem; letter-spacing: .34em; white-space: nowrap; }
.brand svg { width: 1.75rem; height: 1.75rem; flex: none; }
.brand .dot { fill: var(--action); }
.is-home .site-header .brand .dot { fill: #FFFFFF; }
.brand:hover { color: inherit; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; font-size: .9rem; }
.nav a { text-decoration: none; color: var(--mute); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.lang { font-size: .875rem; color: var(--mute); white-space: nowrap; }
.lang a { text-decoration: none; }
.menu-btn { display: none; margin-left: auto; min-height: 2.75rem; padding: 0 1.1rem; border-radius: 999px; border: 1px solid currentColor; background: none; color: inherit; font: inherit; font-size: .9rem; cursor: pointer; }
.nav .only-mobile { display: none; }

/* Home: header over the hero */
.is-home .site-header { position: absolute; left: 0; right: 0; background: transparent; border-bottom-color: rgba(255,255,255,.18); backdrop-filter: none; -webkit-backdrop-filter: none; color: #FFFFFF; }
.is-home .site-header .nav a, .is-home .site-header .lang { color: var(--bay-mute); }
.is-home .site-header .nav a:hover { color: #FFFFFF; }
.is-home .site-header .btn-line { border-color: rgba(255,255,255,.85); color: #FFFFFF; }

/* Hero */
.hero { position: relative; background: var(--bay); color: var(--bay-ink); min-height: min(100svh, 56rem); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner { width: 100%; margin-top: auto; padding-top: 9rem; padding-bottom: clamp(4rem, 9vw, 7rem); }
.hero h1 { font-size: clamp(3.2rem, 7.4vw, 6rem); line-height: .98; letter-spacing: -.03em; max-width: 11ch; }
.hero .lead { margin-top: 1.75rem; max-width: 32rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #E1ECF0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
.hero-note { position: absolute; right: var(--gutter); bottom: 1.25rem; font-size: .75rem; color: rgba(255,255,255,.55); }
.tick-ring { transform-origin: 980px 400px; animation: turn 240s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.pulse { animation: pulse 2.8s ease-in-out infinite; transform-origin: 980px 400px; }
@keyframes pulse { 0%, 100% { opacity: .9; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tick-ring, .pulse { animation: none; } }

/* Page hero (interior pages) */
.page-hero { position: relative; background: var(--bay); color: var(--bay-ink); overflow: hidden; isolation: isolate; }
.page-hero .wrap { padding-top: clamp(4rem, 9vw, 6.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); }
.page-hero .lead { margin-top: 1.25rem; max-width: 38rem; font-size: 1.15rem; color: #E1ECF0; }
.page-hero svg { position: absolute; right: -6rem; top: 50%; transform: translateY(-50%); width: 34rem; height: 34rem; z-index: -1; opacity: .7; }

/* Sections */
.section { padding-top: clamp(5rem, 10vw, 8rem); padding-bottom: clamp(5rem, 10vw, 8rem); }
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 3rem; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
.section-head p { max-width: 34rem; color: var(--mute); }
.band { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* Rate card */
.ratecard { max-width: 56rem; margin: 0 auto; }
.ratecard h2 { text-align: center; font-size: clamp(2.2rem, 4vw, 2.75rem); }
.ratecard > p { text-align: center; color: var(--mute); margin: 1rem auto 3rem; max-width: 34rem; }
.rate-row { display: flex; align-items: baseline; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.rate-row:hover { color: inherit; }
.rate-row:hover .rate-name { color: var(--action); }
.rate-icon { flex: none; align-self: center; width: 2.25rem; height: 2.25rem; color: var(--action); }
.rate-name { font-size: 1.3rem; font-weight: 400; transition: color .2s; }
.rate-sub { display: block; font-size: .875rem; color: var(--mute); margin-top: .1rem; }
.leader { flex: 1 1 2rem; border-bottom: 1px dotted var(--leader); transform: translateY(-.4rem); min-width: 1.5rem; }
.rate-price { font-size: 1.3rem; white-space: nowrap; }
.rate-price small { font-size: .85rem; color: var(--mute); margin-right: .35rem; }
.ratecard .fine { text-align: center; font-size: .875rem; color: var(--mute); margin-top: 2rem; }

/* Steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.steps li::before { content: counter(step); display: block; font-size: .875rem; color: var(--action); margin-bottom: .9rem; }
.steps strong { display: block; font-weight: 400; font-size: 1.1rem; margin-bottom: .35rem; }
.steps span { font-size: .95rem; color: var(--mute); }

/* Files */
.files { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 5rem; align-items: start; }
.files h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
.files p { color: var(--mute); margin-bottom: 1.75rem; }
.formats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.formats li { border: 1px solid var(--leader); border-radius: 999px; padding: .35rem 1rem; font-size: .9rem; }

/* Credentials */
.creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
.creds h3 { font-size: 1.15rem; font-weight: 400; letter-spacing: 0; margin: 1.25rem 0 .4rem; }
.creds p { font-size: .95rem; color: var(--mute); }
.creds svg { width: 2.5rem; height: 2.5rem; color: var(--action); }

/* Note teaser */
.note-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem 4rem; padding: 2.5rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; }
.note-card:hover { color: inherit; }
.note-card:hover h3 { color: var(--action); }
.note-card .meta { font-size: .9rem; color: var(--mute); }
.note-card h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); transition: color .2s; }
.note-card p { margin-top: .9rem; color: var(--mute); max-width: 40rem; }

/* CTA */
.cta { background: var(--night); color: var(--night-ink); text-align: center; }
.cta .wrap { padding-top: clamp(5rem, 10vw, 8rem); padding-bottom: clamp(5rem, 10vw, 8rem); display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 16ch; }
.cta p { margin: 1.5rem 0 2.5rem; color: var(--night-mute); max-width: 32rem; font-size: 1.1rem; }
.cta .actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.cta .contact-line { margin-top: 1.75rem; font-size: .95rem; color: var(--night-mute); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: center; }
.cta .contact-line a { color: var(--night-ink); }

/* Services page */
.svc { display: grid; grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 1.5rem 3rem; padding: 3rem 0; border-top: 1px solid var(--rule); }
.svc:last-child { border-bottom: 1px solid var(--rule); }
.svc svg { width: 3rem; height: 3rem; color: var(--action); }
.svc h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.svc .price { margin-top: 1rem; color: var(--mute); }
.svc .price strong { font-weight: 400; color: var(--ink); font-size: 1.2rem; }
.svc dl { margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.svc dt { font-size: .875rem; color: var(--mute); }
.svc dd { margin: .15rem 0 0; }
.svc .more { display: inline-block; margin-top: 1.5rem; color: var(--action); }

/* Rates page */
.rate-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem 4rem; padding: 3rem 0; border-top: 1px solid var(--rule); }
.rate-block h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.rate-block .sub { margin-top: .6rem; color: var(--mute); font-size: .95rem; max-width: 22rem; }
.rate-table { width: 100%; border-collapse: collapse; }
.rate-table th, .rate-table td { padding: 1rem 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.rate-table th { text-align: left; font-weight: 300; }
.rate-table td { text-align: right; white-space: nowrap; font-weight: 400; padding-left: 1.5rem; }
.terms { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.terms li { padding-left: 1.5rem; position: relative; color: var(--mute); }
.terms li::before { content: ""; position: absolute; left: 0; top: .75em; width: .75rem; border-top: 1px solid var(--action); }

/* Prose (article, credentials) */
.prose { max-width: 42rem; }
.prose p { margin-bottom: 1.25rem; font-size: 1.125rem; line-height: 1.75; }
.prose h2 { font-size: 2rem; margin: 3rem 0 1rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem 5rem; }
.split h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-bottom: 1.5rem; }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.5rem 0; font-size: 1.25rem; font-weight: 400; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: .9rem; height: .9rem; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.75rem; color: var(--mute); max-width: 44rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem 5rem; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.5rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; color: var(--mute); }
.field .hint { font-size: .8rem; color: var(--mute); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 300; color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule); border-radius: .5rem; padding: .85rem 1rem; min-height: 3.25rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px color-mix(in srgb, var(--action) 20%, transparent); }
.form .btn { justify-self: start; }
.aside-contact { border-top: 1px solid var(--ink); padding-top: 1.5rem; display: grid; gap: 1rem; }
.aside-contact h2 { font-size: 1.6rem; }
.aside-contact a { font-size: 1.1rem; }
.honey { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); font-size: .925rem; color: var(--mute); padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-top: 4rem; padding-bottom: 3rem; }
.foot h3 { font-size: .95rem; font-weight: 400; letter-spacing: 0; color: var(--ink); margin-bottom: .75rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot a { text-decoration: none; }
.foot .brand { color: var(--ink); margin-bottom: 1rem; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 2rem; border-top: 1px solid var(--rule); font-size: .85rem; }

/* Responsive */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav, .bar > .lang, .bar > .btn { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav.open { display: flex; flex-direction: column; gap: 1.1rem; position: absolute; left: 0; right: 0; top: 100%; padding: 1.5rem var(--gutter) 2rem; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--rule); }
  .nav.open a { color: var(--ink); font-size: 1.15rem; }
  .nav.open .only-mobile { display: flex; }
  .is-home .nav.open a { color: var(--ink); }
  .files, .split, .contact-grid, .rate-block, .note-card { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .page-hero svg { right: -14rem; opacity: .45; }
}
@media (max-width: 600px) {
  .steps, .creds, .foot { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .rate-row { flex-wrap: wrap; }
  .rate-row .leader { display: none; }
  .rate-row .rate-price { width: 100%; padding-left: 3.25rem; font-size: 1.1rem; }
  .hero-note { display: none; }
  .hero .actions .btn { flex: 1 1 100%; }
}
@media (max-width: 600px) { .hero-art .scenes { opacity: .08; } }
.form-error { display: none; grid-column: 1 / -1; margin: 0; padding: 1rem 1.25rem; border-radius: .5rem; border: 1px solid #B42318; color: #8A1C12; background: #FDF1EF; }
.form-error:target { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-error { color: #FFB4A8; background: #2A1614; border-color: #E5685A; } }
