/* Photeknia — site styles v1.0 (2026-11-27)
   Static site: no scroll or entrance animations. Tokens follow brand book v0.2.
   Breakpoints: 1100px (tablet / narrow laptop) and 760px (phone). */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/manrope-400.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/manrope-500.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/manrope-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/plex-mono-500.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --black: #0A0C10;                    /* page background */
  --ink: #10131A;                      /* tiles */
  --line: rgba(201, 205, 214, 0.16);   /* hairlines */
  --line-strong: rgba(201, 205, 214, 0.32);
  --paper: #F5F4F0;                    /* main text */
  --mist: #C9CDD6;                     /* secondary text */
  --laser: #D9480F;                    /* the one orange */
  --indigo-light: #9B7BE0;             /* tags on dark */
  --max: 1440px;
  --gutter: 64px;
  --nav-h: 68px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--black); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--black); color: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--laser); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); color: var(--black); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

/* Faint technical grid (static) */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(201, 205, 214, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201, 205, 214, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
}

/* ---------- Type ---------- */
h1 { font-size: clamp(44px, 7.2vw, 108px); line-height: .98; font-weight: 500; letter-spacing: -0.045em; margin: 22px 0 28px; }
h2 { font-size: clamp(30px, 3.6vw, 54px); line-height: 1.08; font-weight: 500; letter-spacing: -0.035em; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -0.02em; }
h1 em, h2 em { font-style: normal; color: var(--laser); }
.lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--mist); max-width: 600px; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.label .idx { color: var(--laser); margin-right: 10px; }
.body p { color: var(--mist); font-size: 17px; margin-bottom: 20px; }
.body p:last-child { margin-bottom: 0; }
.body em { font-style: italic; color: var(--paper); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); }
.logo svg { width: 26px; height: 26px; flex-shrink: 0; }
.logo span { font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.logo .dot { fill: currentColor; }
.logo .beam { stroke: var(--laser); }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(10, 12, 16, 0.92); border-bottom: 1px solid var(--line); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav { background: rgba(10, 12, 16, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.nav-links a:hover, .nav-links a.active { color: var(--paper); }
.nav-links a.active { box-shadow: inset 0 -2px 0 var(--laser); padding-bottom: 4px; }
.nav-links a.nav-cta { border: 1px solid var(--line-strong); padding: 10px 16px; color: var(--paper); box-shadow: none; }
.nav-links a.nav-cta:hover, .nav-links a.nav-cta.active { border-color: var(--laser); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--paper); border-radius: 2px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; z-index: 1; min-height: calc(88vh - var(--nav-h)); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 40px; padding-top: 80px; padding-bottom: 80px; }
.hero--short .wrap { min-height: 0; padding-top: 120px; padding-bottom: 100px; }
/* Graphic layer: fades in from the right, behind the text */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-repeat: no-repeat; background-position: right -4% center; background-size: auto 118%;
  -webkit-mask-image: linear-gradient(to right, transparent 36%, #000 74%); mask-image: linear-gradient(to right, transparent 36%, #000 74%); }
.hero--round .hero-bg { background-size: auto 92%; background-position: right 4% center; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 24px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; border: 1px solid transparent; }
.btn--primary { background: var(--laser); color: var(--black); }
.btn--primary:hover { background: var(--paper); }
.btn--ghost { border-color: var(--line-strong); color: var(--paper); }
.btn--ghost:hover { border-color: var(--laser); }
.arrow-link { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper); padding-bottom: 4px; box-shadow: inset 0 -2px 0 var(--laser); }
.arrow-link:hover { color: var(--laser); }

/* ---------- Sections ---------- */
.section { padding: 120px 0; border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.sec-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px 96px; align-items: start; }
.mb-56 { margin-bottom: 56px; }
.mb-48 { margin-bottom: 48px; }

/* Background art behind a section's content, faded on every side */
.section--art { position: relative; overflow: hidden; }
.section--art > .wrap { position: relative; z-index: 1; }
.section--art .sec-head::after { display: none; }
.section-bg { position: absolute; z-index: 0; pointer-events: none; top: 0; bottom: 0; right: -6%; width: 62%;
  background-repeat: no-repeat; background-position: right center; background-size: cover; opacity: .24;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 65% 50%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 65% 50%, #000 30%, transparent 75%); }
.section--art-left .section-bg { right: auto; left: -6%; background-position: left center;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 35% 50%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 35% 50%, #000 30%, transparent 75%); }
.section--bgcenter .section-bg { left: 50%; right: auto; width: 100%; transform: translateX(-50%); background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 60% 65% at 50% 50%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse 60% 65% at 50% 50%, #000 20%, transparent 78%); }
.section--bgcenter .section-bg, .section--vcenter .section-bg { opacity: .14; }
.section--vcenter .split { align-items: center; }

/* ---------- Tiles (focus areas, contact) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; background: var(--ink); border: 1px solid var(--line); padding: 24px 24px 28px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; text-align: center; }
.tile::before, .tile::after { content: ""; position: absolute; width: 12px; height: 12px; border: 0 solid var(--laser); }
.tile::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.tile::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.tile-img { width: 100%; height: 230px; object-fit: contain; margin-bottom: 6px; }
.tile .top { display: flex; justify-content: center; width: 100%; }
.tile .top .label { position: absolute; top: 18px; right: 20px; }
.tile p { color: var(--mist); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; padding-top: 6px; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo-light); border: 1px solid rgba(155, 123, 224, 0.45); padding: 4px 8px; }

.contact-tile { min-height: 260px; padding: 40px; align-items: flex-start; text-align: left; }
.contact-tile .label { position: absolute; top: 32px; left: 40px; }
.contact-tile .big { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.15; font-weight: 500; letter-spacing: -0.03em; overflow-wrap: anywhere; }
a.contact-tile:hover .big { color: var(--laser); }
.contact-tile .go { position: absolute; top: 24px; right: 24px; font-family: var(--mono); font-size: 22px; color: var(--laser); }

/* ---------- Steps (Technology: approach) ---------- */
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 140px minmax(0, 4fr) minmax(0, 6fr); gap: 32px; align-items: baseline; padding: 34px 0; border-bottom: 1px solid var(--line); }
.step .n { font-family: var(--mono); font-size: 44px; line-height: 1; letter-spacing: -0.04em; color: var(--paper); }
.step .n::before { content: "/"; color: var(--laser); margin-right: 4px; }
.step p { color: var(--mist); font-size: 17px; }

/* ---------- Pipeline (Technology: research roots) ---------- */
.pipeline { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 64px; }
.pipeline li { position: relative; padding: 32px 32px 0 0; display: flex; flex-direction: column; gap: 8px; }
.pipeline li::before { content: ""; position: absolute; z-index: 1; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--black); border: 2px solid var(--paper); }
.pipeline li:not(:last-child)::after { content: ""; position: absolute; z-index: 0; top: 7px; left: 8px; width: 100%; height: 2px; background: var(--laser); }
.pipeline .pv { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.pipeline .pd { color: var(--mist); font-size: 15.5px; }

/* ---------- Call to action ---------- */
.cta { padding: 140px 0; border-bottom: 1px solid var(--line); }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: end; }
.cta h2 { font-size: clamp(40px, 6vw, 92px); line-height: .98; margin-top: 22px; }
.cta .arrow-wrap { margin-top: 28px; }

/* ---------- Footer ---------- */
.footer { padding-top: 72px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 48px; }
.footer-tag { margin-top: 16px; max-width: 380px; color: var(--mist); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 80px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.footer-col a { font-size: 15px; color: var(--mist); }
.footer-col a:hover { color: var(--paper); box-shadow: inset 0 -2px 0 var(--laser); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 72px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); }
.footer-bottom span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }

/* ---------- Tablet / narrow laptop ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-bottom: 300px; }
  .hero-bg { background-position: center bottom -90px; background-size: 100% auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 50%, #000 82%); mask-image: linear-gradient(to bottom, transparent 50%, #000 82%); }
  .hero--short .hero-bg, .hero--round .hero-bg { background-size: auto 270px; background-position: center bottom 10px; }
  .split, .cta .wrap { grid-template-columns: 1fr; }
  .tile-img { height: 180px; }
  .section-bg { width: 100%; right: -20%; }
  .step { grid-template-columns: 90px minmax(0, 1fr); }
  .step p { grid-column: 2; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; background: var(--black); border-bottom: 1px solid var(--line); }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 14px 0; font-size: 13px; }
  .nav-links a.active { padding-bottom: 14px; }
  .nav-links a.nav-cta { margin-top: 8px; text-align: center; }

  .hero .wrap { padding-top: 56px; padding-bottom: 250px; }
  .hero--short .wrap { padding-top: 64px; }
  .hero-bg { background-position: center bottom 0; background-size: 130% auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 45%, #000 85%); mask-image: linear-gradient(to bottom, transparent 45%, #000 85%); }
  .hero--short .hero-bg, .hero--round .hero-bg { background-size: auto 230px; background-position: center bottom 10px; }

  .section { padding: 72px 0; }
  .cta { padding: 80px 0; }
  .section-bg { width: 120%; right: -40%; opacity: .18; }
  .section--art-left .section-bg { left: -40%; }
  .section--bgcenter .section-bg, .section--vcenter .section-bg { opacity: .11; }

  .tiles, .tiles--2 { grid-template-columns: 1fr; }
  .tile { padding: 20px 20px 24px; }
  .tile-img { height: 190px; }
  .contact-tile { min-height: 200px; padding: 28px; }
  .contact-tile .label { top: 24px; left: 28px; }
  .contact-tile .big { font-size: 24px; }

  .step { grid-template-columns: 1fr; gap: 10px; }
  .step p { grid-column: auto; }
  .step .n { font-size: 32px; }

  .pipeline { grid-template-columns: 1fr; margin-top: 40px; }
  .pipeline li { padding: 0 0 32px 40px; }
  .pipeline li:not(:last-child)::after { top: 8px; left: 7px; width: 2px; height: 100%; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .nav, .hero-bg, .section-bg { display: none; } body { background: #fff; color: #000; } }
