/* Petrovyx — Strata identity. Static site stylesheet. */

/* Self-hosted fonts (SIL Open Font License) — no third-party requests. */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/dm-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/dm-mono-latin-500-normal.woff2') format('woff2'); }


:root {
  --graphite: #17191C;
  --basalt: #2E3339;
  --shale: #8A8F96;
  --shale-600: #5E646B;
  --shale-deep: #4B5158;
  --shale-200: #B9BDC2;
  --rule: #D8D2C6;
  --limestone: #EFE9DF;
  --white: #FFFFFF;
  --sand: #C8873A;
  --sand-ink: #8F5A1C;

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --text: 'Barlow', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1296px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  color: var(--graphite);
  background: var(--limestone);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--graphite); text-decoration: none; }
a:hover { color: var(--sand-ink); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 0.88; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--sand); color: var(--graphite); padding: 8px 12px; font-weight: 600; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--shale-600); }
.on-dark .eyebrow, .dark .eyebrow { color: var(--shale); }
.bore { display: inline-block; width: 6px; height: 14px; background: var(--sand); vertical-align: middle; margin-right: 12px; }
.lede { font-size: 19px; line-height: 1.5; color: var(--shale-deep); }
.dark .lede { color: var(--shale-200); }
.muted { color: var(--shale-600); }
.mono { font-family: var(--mono); }
.caps { text-transform: uppercase; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; cursor: pointer; }
.btn-sand { background: var(--sand); color: var(--graphite); }
.btn-sand:hover { background: #D09B5B; color: var(--graphite); }
.btn-graphite { background: var(--graphite); color: var(--limestone); }
.btn-graphite:hover { background: var(--basalt); color: var(--limestone); }
.btn-outline-light { border-color: var(--shale); color: var(--limestone); }
.btn-outline-light:hover { border-color: var(--limestone); color: var(--limestone); }
.btn-outline { border-color: var(--graphite); color: var(--graphite); }
.btn-outline:hover { background: var(--graphite); color: var(--limestone); }
.btn svg { width: 18px; height: 18px; }
.link-underline { font-weight: 600; border-bottom: 2px solid var(--sand); padding-bottom: 2px; display: inline-flex; align-items: center; gap: 8px; }
.link-underline svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Utility bar */
.utility { background: var(--graphite); color: var(--shale); font-size: 12px; }
.utility .container { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.utility a { color: var(--shale); margin-right: 24px; }
.utility a:last-child { margin-right: 0; }
.utility a.strong { color: var(--limestone); font-weight: 500; }
.utility nav a:hover { color: var(--limestone); }

/* Header / nav */
.site-header { background: var(--limestone); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 36px; height: 36px; }
.brand .wordmark { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1; letter-spacing: -0.005em; color: var(--graphite); }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav-links a[aria-current="page"] { border-bottom: 2px solid var(--sand); padding-bottom: 2px; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-actions .btn { height: 44px; padding: 0 20px; font-size: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--rule); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--graphite); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--graphite); color: var(--limestone); }
.hero .field { position: absolute; inset: 0; background: url('../img/strata-dark.svg') center / cover no-repeat; opacity: 0.95; }
.hero .shade { position: absolute; left: 0; top: 0; bottom: 0; width: 55%; background: var(--graphite); opacity: 0.6; }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.hero h1 { font-size: clamp(64px, 8.6vw, 128px); letter-spacing: -0.005em; color: var(--limestone); text-transform: uppercase; }
.hero .copy { display: flex; flex-direction: column; gap: 24px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 4px; }
.hero.compact .container { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 72px; }
.hero.compact h1 { font-size: clamp(56px, 7vw, 104px); max-width: 1000px; }

/* App window (illustrative) */
.app-window { background: var(--white); color: var(--graphite); box-shadow: 0 30px 80px rgba(0,0,0,0.5); overflow: hidden; }
.app-window .bar { height: 44px; background: var(--graphite); color: var(--limestone); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 11px; }
.app-window .bar .name { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; }
.app-window .bar .name small { font-family: var(--text); font-weight: 400; font-size: 10px; letter-spacing: 0.06em; color: var(--shale); }
.app-window .bar .case { font-family: var(--mono); color: var(--shale); }
.app-window .body { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.app-window .side { background: var(--limestone); border-right: 1px solid var(--rule); padding: 14px 12px; font-size: 11px; color: var(--shale-deep); display: flex; flex-direction: column; gap: 8px; }
.app-window .side .lbl { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--shale-600); }
.app-window .side .active { color: var(--graphite); font-weight: 600; border-left: 2px solid var(--sand); padding-left: 8px; margin-left: -10px; }
.app-window .main { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.app-window .main .title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.app-window .main .title strong { font-family: var(--display); font-weight: 700; font-size: 16px; }
.app-window .main .title span { font-family: var(--mono); font-size: 10px; color: var(--shale-600); }
.app-window .results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; font-family: var(--mono); font-size: 10px; color: var(--shale-600); border-top: 1px solid var(--rule); padding-top: 8px; }
.app-window .results b { display: block; font-weight: 400; font-size: 13px; color: var(--graphite); }
.app-window .results b.sand { color: var(--sand-ink); }

/* Sections */
.section { padding: 72px 0; }
.section.white { background: var(--white); }
.section.dark { background: var(--graphite); color: var(--limestone); }
.section-head { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 40px 64px; align-items: end; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(36px, 4vw, 56px); text-transform: uppercase; }
.section-head p { font-size: 16px; color: var(--shale-deep); max-width: 560px; }
.section-head p.end { justify-self: end; }
.dark .section-head p { color: var(--shale-200); }
.mark-rule { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 16px; }
.mark-rule i { display: block; width: 6px; height: 12px; background: var(--sand); }
.mark-rule b { display: block; width: 60px; height: 3px; background: var(--graphite); }
.dark .mark-rule b { background: var(--limestone); }

/* Chain */
.chain-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.chain-head h2 { font-size: 28px; text-transform: uppercase; }
.chain-head p { font-size: 13px; color: var(--shale-600); }
.chain svg { width: 100%; height: auto; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.pillar { border-top: 2px solid var(--graphite); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.pillar svg { width: 32px; height: 32px; }
.pillar h3 { font-size: 24px; line-height: 0.95; text-transform: uppercase; }
.pillar p { font-size: 14px; color: var(--shale-deep); }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.product { background: var(--limestone); border-top: 3px solid var(--graphite); padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 12px; min-height: 250px; }
.product.roadmap { border-top-color: var(--shale); }
.product.vision { background: var(--graphite); color: var(--limestone); border-top-color: var(--sand); }
.product.vision p { color: var(--shale-200); }
.product svg { width: 44px; height: 44px; }
.product h3 { font-size: 34px; line-height: 0.85; text-transform: uppercase; }
.product h3 em, .x { color: var(--sand); font-style: normal; }
.product p { font-size: 13px; color: var(--shale-deep); }
.product .status { margin-top: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--shale-600); }
.product .status.live { color: var(--sand-ink); }
.product.vision .status { color: var(--shale); }
.product:hover { color: inherit; }

/* Statement band */
.statement { position: relative; overflow: hidden; background: var(--graphite); color: var(--limestone); }
.statement .field { position: absolute; inset: 0; background: url('../img/strata-dark.svg') right center / cover no-repeat; opacity: 0.7; }
.statement .container { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 80px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.statement h2 { font-size: clamp(40px, 5vw, 72px); text-transform: uppercase; max-width: 820px; }
.statement p { font-size: 15px; color: var(--shale-200); margin-bottom: 18px; }
.statement .btn { background: var(--limestone); color: var(--graphite); height: 48px; }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 40px; text-transform: uppercase; margin: 40px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--text); font-weight: 600; font-size: 19px; line-height: 1.3; margin: 28px 0 8px; }
.prose p { margin-bottom: 14px; color: var(--shale-deep); }
.prose ul { padding-left: 20px; color: var(--shale-deep); margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 64px; align-items: start; }
.aside { border-top: 3px solid var(--graphite); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--shale-deep); }
.aside h4 { font-size: 22px; text-transform: uppercase; }
.aside .kv { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); padding: 8px 0; }
.aside .kv span:last-child { font-family: var(--mono); font-size: 13px; color: var(--graphite); }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--shale-deep); }
.table th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--shale-600); padding: 0 12px 8px 0; border-bottom: 1px solid var(--graphite); }
.table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table td strong { color: var(--graphite); font-weight: 600; }
.table .sand { color: var(--sand-ink); }

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; max-width: 760px; }
.form .full { grid-column: 1 / -1; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--shale-600); }
.field-group input, .field-group select, .field-group textarea { font-family: var(--text); font-size: 15px; color: var(--graphite); background: var(--white); border: 1px solid var(--rule); padding: 12px 14px; min-height: 44px; }
.field-group input:focus, .field-group select:focus, .field-group textarea:focus { outline: 2px solid var(--sand); outline-offset: 0; border-color: var(--sand); }
.field-group textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--shale-600); }

/* Footer */
.site-footer { background: var(--graphite); color: var(--shale); border-top: 1px solid var(--basalt); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 340px repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-grid h4 { font-size: 16px; text-transform: uppercase; color: var(--limestone); margin-bottom: 4px; }
.footer-grid a { display: block; color: var(--shale); font-size: 13px; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--limestone); }
.footer-brand .brand { display: flex; margin-bottom: 0; }
.footer-brand p { font-size: 13px; max-width: 280px; margin: 18px 0; }
.footer-brand .brand .wordmark { color: var(--limestone); font-size: 26px; }
.footer-brand .addr { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; }
.footer-legal { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 24px; margin-top: 40px; border-top: 1px solid var(--basalt); font-size: 12px; }
.footer-legal a { color: var(--shale); margin-left: 24px; }

/* 404 */
.notfound { min-height: 70vh; display: flex; align-items: center; }

/* Responsive */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero .container { grid-template-columns: 1fr; }
  .hero .shade { width: 100%; opacity: 0.55; }
  .app-window { max-width: 640px; }
  .two-col, .statement .container, .section-head { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .utility nav { display: none; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav-links { display: flex; position: absolute; left: 0; right: 0; top: 80px; flex-direction: column; align-items: flex-start; gap: 0; background: var(--limestone); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px; }
  .site-header.open .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .site-header.open .nav-links a[aria-current="page"] { border-bottom: 1px solid var(--rule); color: var(--sand-ink); }
  .hero .container { padding-top: 56px; padding-bottom: 56px; }
  .hero h1 { font-size: clamp(52px, 15vw, 88px); }
  .section { padding: 48px 0; }
  .pillars, .products, .form { grid-template-columns: 1fr; }
  .product { min-height: 0; }
  .app-window .body { grid-template-columns: 1fr; }
  .app-window .side { display: none; }
  .app-window .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .chain-head h2 { font-size: 24px; }
  .chain .scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .chain .scroll svg { min-width: 900px; }
  .app-window .bar .case { display: none; }
  .prose h2 { font-size: 32px; }
}
