/* PTIARK — site styles. Self-hosted fonts only; no external requests. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/dm-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #0b0e15;
  --bg-2: #10141d;
  --bg-3: #161b27;
  --panel: #131824;
  --line: rgba(226, 229, 246, .10);
  --line-2: rgba(226, 229, 246, .18);
  --text: #eef0f7;
  --text-2: #b4bacb;
  --text-3: #8189a0;
  --slate: #7584ad;
  --indigo: #8e99ff;
  --lavender: #b9acff;
  --danger: #ffb4a9;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.7 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lavender); color: var(--bg); }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 100; left: 16px; top: -80px; padding: 10px 14px; background: var(--lavender); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--slate); font: 500 .75rem/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; flex: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.06; text-wrap: balance; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.015em; }
.lede { color: var(--text-2); font-size: clamp(1.02rem, 1.3vw, 1.12rem); line-height: 1.75; }
p + p { margin-top: 1em; }

/* Header */
.site-header { position: absolute; z-index: 30; inset: 0 0 auto; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.brand { flex: none; width: 210px; text-decoration: none; }
.brand img { width: 100%; height: auto; }
.nav-links { display: flex; gap: clamp(16px, 2.2vw, 30px); margin-left: auto; }
.nav-links a { color: var(--text-2); font-size: .88rem; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid rgba(142, 153, 255, .45); border-radius: 999px; font-size: .86rem; text-decoration: none; transition: background .2s, border-color .2s; }
.nav-cta:hover { background: rgba(142, 153, 255, .1); border-color: var(--indigo); }

/* Buttons & links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font: 600 .92rem/1 var(--body); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--lavender); color: #10121b; }
.button-primary:hover { background: #cdc4ff; }
.button-ghost { border-color: var(--line-2); color: var(--text); }
.button-ghost:hover { border-color: var(--text-3); background: rgba(255, 255, 255, .03); }
.button[disabled] { opacity: .6; cursor: progress; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 1px solid rgba(185, 172, 255, .4); padding-bottom: 3px; transition: border-color .2s, color .2s; }
.text-link:hover { border-color: var(--lavender); color: var(--lavender); }
.arrow { font-family: var(--body); font-weight: 400; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse 60% 70% at 80% 40%, rgba(142, 153, 255, .09), transparent 70%), var(--bg); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(100deg, transparent 30%, #000 75%); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; min-height: min(780px, 100svh); padding: 140px 0 80px; }
.hero-wordmark { width: min(100%, 470px); height: auto; margin-bottom: 34px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; margin-bottom: 26px; }
.hero h1 span { color: var(--lavender); }
.hero .lede { max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 52px; }
.hero-areas { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .86rem; list-style: none; padding-left: 0; }
.hero-areas li::before { content: "—"; margin-right: 8px; color: var(--slate); }
.hero-art { position: relative; margin-right: calc(-1 * var(--gutter)); }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.hero-art path { fill: none; stroke-width: 1.1; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art path { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.6s cubic-bezier(.45, .05, .25, 1) forwards; }
  .hero-art path:nth-child(odd) { animation-delay: .15s; }
  .hero-art path:nth-child(3n) { animation-delay: .3s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Sections */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 132px) 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }

/* Service index */
.index-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: end; margin-bottom: 56px; }
.index-head .lede { max-width: 460px; }
.service-index { list-style: none; padding: 0; border-top: 1px solid var(--line-2); counter-reset: svc; }
.service-index li { border-bottom: 1px solid var(--line); }
.service-index a { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.2fr) 28px; gap: 24px; align-items: baseline; padding: 26px 0; text-decoration: none; transition: background .25s, padding .25s; }
.service-index a:hover { background: linear-gradient(90deg, rgba(142, 153, 255, .06), transparent 70%); padding-left: 12px; }
.service-index .num { color: var(--slate); font: 500 .85rem var(--display); letter-spacing: .08em; }
.service-index h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.service-index p { color: var(--text-3); font-size: .95rem; line-height: 1.6; }
.service-index .go { color: var(--indigo); justify-self: end; transition: transform .2s; }
.service-index a:hover .go { transform: translateX(4px); }

/* Service detail blocks */
.svc { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 96px); }
.svc-head { position: relative; }
.svc-num { display: block; margin-bottom: 18px; color: var(--slate); font: 500 .85rem var(--display); letter-spacing: .12em; }
.svc-head h2 { margin-bottom: 0; }
.svc-body .lede { margin-bottom: 34px; }
.svc-body > p:not(.lede) { color: var(--text-2); }
.deliverables { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; list-style: none; padding: 0; margin: 0 0 36px; border-top: 1px solid var(--line); }
.deliverables li { padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: .95rem; line-height: 1.5; position: relative; }
.deliverables li::before { content: ""; position: absolute; left: 0; top: calc(14px + .75em); width: 10px; height: 1px; background: var(--indigo); }
.note { margin: -6px 0 32px; padding: 16px 18px; border-left: 2px solid var(--slate); background: rgba(117, 132, 173, .07); color: var(--text-2); font-size: .93rem; line-height: 1.65; }

/* Approach steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(56px, 8vw, 88px); border-top: 1px solid var(--line-2); list-style: none; padding: 0; }
.steps li { padding: 28px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps .step-label { display: block; margin-bottom: 14px; color: var(--indigo); font: 500 .8rem var(--display); letter-spacing: .14em; text-transform: uppercase; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--text-3); font-size: .95rem; }

/* Selected work */
.work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.work-copy h2 { margin-bottom: 24px; }
.work-copy .lede { margin-bottom: 28px; }
.work-card { border: 1px solid var(--line-2); background: var(--panel); padding: clamp(22px, 3vw, 34px); }
.work-card .meta { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.work-card .meta b { color: var(--lavender); font-weight: 500; }
.work-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: start; padding: 30px 0 8px; list-style: none; margin: 0; }
.work-flow li { min-width: 0; }
.work-flow strong { display: block; margin-bottom: 6px; font: 500 1.08rem var(--display); }
.work-flow span { color: var(--text-3); font-size: .86rem; line-height: 1.5; }
.work-flow .sep { color: var(--indigo); padding-top: 2px; }

/* Finance visual */
.figure-card { margin-top: 40px; border: 1px solid var(--line); background: var(--panel); padding: 22px 22px 18px; }
.figure-card figcaption { margin-top: 12px; color: var(--text-3); font-size: .82rem; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(220px, .62fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.about-copy h2 { margin-bottom: 28px; }
.about-copy > p { color: var(--text-2); max-width: 640px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 40px 0 0; border-top: 1px solid var(--line-2); }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--slate); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.facts dd { margin: 0; font: 500 1.02rem/1.45 var(--display); }
.portrait { border: 1px solid var(--line-2); background: var(--bg-3); }
.portrait img { width: 100%; height: auto; aspect-ratio: 880 / 1048; object-fit: cover; filter: saturate(.92); }
.portrait figcaption { padding: 12px 14px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .82rem; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 96px); }
.faq-list { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 44px 22px 0; cursor: pointer; list-style: none; font: 500 1.08rem/1.4 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 19px; color: var(--indigo); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 24px 24px 0; color: var(--text-2); font-size: .97rem; }

/* Contact */
.contact { background: radial-gradient(ellipse 50% 80% at 0% 100%, rgba(142, 153, 255, .10), transparent 70%), var(--bg-2); }
.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact-copy h2 { margin-bottom: 22px; }
.contact-copy .lede { margin-bottom: 34px; }
.email-direct { display: inline-block; max-width: 100%; color: var(--text); font: 500 clamp(1.15rem, 2.4vw, 1.7rem)/1.3 var(--display); text-decoration: none; border-bottom: 1px solid var(--indigo); padding-bottom: 6px; overflow-wrap: anywhere; transition: color .2s, border-color .2s; }
.email-direct:hover { color: var(--lavender); border-color: var(--lavender); }
.contact-small { margin-top: 18px; color: var(--text-3); font-size: .9rem; }
.contact-form { padding: clamp(20px, 3vw, 34px); border: 1px solid var(--line-2); background: var(--bg); }
.contact-form h3 { margin-bottom: 6px; font-size: 1.35rem; }
.contact-form .form-intro { margin-bottom: 26px; color: var(--text-3); font-size: .92rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; color: var(--text-2); font-size: .86rem; font-weight: 500; }
.field input, .field select, .field textarea { display: block; width: 100%; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-2); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field select option { background: var(--bg); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(142, 153, 255, .18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field { margin-bottom: 8px; }
.field .err { display: block; min-height: 1.5em; margin-top: 4px; color: var(--danger); font-size: .84rem; line-height: 1.5; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 22px; color: var(--text-3); font-size: .86rem; line-height: 1.55; }
.consent a { color: var(--text-2); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.form-status { margin-top: 18px; padding: 0; font-size: .95rem; line-height: 1.55; }
.form-status:empty { display: none; }
.form-status.ok { padding: 14px 16px; border-left: 2px solid var(--lavender); background: rgba(185, 172, 255, .08); }
.form-status.error { padding: 14px 16px; border-left: 2px solid var(--danger); background: rgba(255, 180, 169, .07); }
.form-status a { color: var(--lavender); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { padding: 48px 0 32px; border-top: 1px solid var(--line); background: #080a10; color: var(--text-3); font-size: .88rem; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-brand { display: block; width: 190px; margin-bottom: 14px; }
.footer-brand img, .brand img { width: 100%; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-nav a, .footer-legal a { color: var(--text-2); text-decoration: none; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--text); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 22px; line-height: 1.6; }
.footer-legal p { margin: 0; }
.footer-legal nav { display: flex; gap: 20px; }

/* Legal page */
.legal-page { padding: 140px 0 100px; }
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 18px; }
.legal-page h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 64px 0 18px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.legal-page h3 { margin: 32px 0 10px; font-size: 1.1rem; }
.legal-page p, .legal-page li { color: var(--text-2); }
.legal-page ul { padding-left: 1.2em; margin: .6em 0 1em; }
.legal-page li + li { margin-top: .35em; }
.legal-page dl { display: grid; grid-template-columns: minmax(160px, .5fr) 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.legal-page dt, .legal-page dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal-page dt { color: var(--text-3); padding-right: 16px; }
.legal-page .updated { color: var(--text-3); font-size: .9rem; }

/* Reveal motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .hero-layout { grid-template-columns: 1fr; min-height: 0; padding-top: 128px; gap: 8px; }
  .hero-art { order: -1; margin: 0 calc(-1 * var(--gutter)); max-height: 220px; overflow: hidden; }
  .hero-art svg { margin-top: -40px; }
  .index-head, .svc, .work, .about, .faq, .contact-layout { grid-template-columns: 1fr; }
  .svc { gap: 28px; }
  .about .portrait { max-width: 360px; order: -1; }
}
@media (max-width: 720px) {
  .nav { min-height: 68px; gap: 12px; }
  .brand { width: 168px; }
  .nav-cta { padding: 8px 12px; font-size: .82rem; }
  .hero-layout { padding-top: 96px; padding-bottom: 64px; }
  .hero-art { max-height: 170px; }
  .hero-wordmark { width: min(100%, 320px); margin-bottom: 26px; }
  .service-index a { grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 6px 14px; padding: 22px 0; }
  .service-index a:hover { padding-left: 0; }
  .service-index p { grid-column: 2 / 3; }
  .service-index .go { grid-column: 3; grid-row: 1; }
  .deliverables, .facts, .form-row { grid-template-columns: 1fr; }
  .form-row { gap: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .work-flow { grid-template-columns: 1fr; gap: 16px; }
  .work-flow .sep { display: none; }
  .form-foot .button { width: 100%; }
  .footer-main { grid-template-columns: 1fr; }
  .legal-page { padding-top: 110px; }
  .legal-page dl { grid-template-columns: 1fr; }
  .legal-page dt { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 380px) {
  .brand { width: 140px; }
  .nav-cta { font-size: .78rem; }
}
.nav-cta.push { margin-left: auto; }
.back-link { margin-top: 48px; }
.field:not(:has(.err)) { margin-bottom: 18px; }
