/* Erol Software, corporate site. Brand values: design_handoff_erol_brand/README.md */
:root {
  --ink: #161310;
  --night: #1C1915;
  --deep: #141210;
  --raised: #221F1A;
  --raised-2: #2A2620;
  --paper: #F6F3ED;
  --paper-2: #EDE9E1;
  --sky: #6ABCE6;
  --sky-dark: #036EAE;
  --stone: #6B675F;
  --ash: #A9A59D;
  --soft: #CFCBC3;
  --body-light: #3D3933;
  --line: #DAD7D2;
  --edge: #2E2A25;
  --edge-2: #3A352F;
  --sans: 'Figtree', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad-x: clamp(20px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--deep); color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--deep);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: var(--sky); text-decoration: none; transition: color .2s, border-color .2s, background-color .2s, transform .2s var(--ease); }
a:hover { color: var(--paper); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; color: var(--ink); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); }
.eyebrow::before { content: ""; width: 18px; height: 3px; background: var(--sky); }

/* ---------- Logo (font-size = mark height S) ---------- */
.logo { display: inline-flex; align-items: center; gap: 0.38em; font-size: 24px; line-height: 1; }
.logo svg { width: 1em; height: 1em; display: block; flex: none; }
.logo .word { font-size: 1.04em; letter-spacing: -0.03em; display: flex; gap: 0.24em; white-space: nowrap; }
.logo .word b { font-weight: 700; color: var(--paper); }
.logo .word span { font-weight: 400; color: var(--ash); }

/* ---------- Buttons ---------- */
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 22px; font-size: 15px; font-weight: 600; line-height: 1; border: 1px solid transparent; border-radius: 999px; white-space: nowrap; }
.btn svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--solid { background: var(--paper); color: var(--ink); }
.btn--solid:hover { background: #fff; color: var(--ink); }
.btn--line { border-color: var(--edge-2); color: var(--paper); background: rgba(255,255,255,.02); }
.btn--line:hover { border-color: var(--ash); color: var(--paper); }
.btn--accent { background: var(--accent); color: var(--accent-ink, #fff); }
.btn--accent:hover { filter: brightness(1.08); color: var(--accent-ink, #fff); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(20, 18, 16, .72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid rgba(255,255,255,.06); }
.top .wrap { height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 14.5px; }
.nav a { color: var(--ash); }
.nav a:hover { color: var(--paper); }
.nav .btn { padding: 10px 16px; font-size: 14px; color: var(--ink); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--deep); }
.hero::before {
  content: ""; position: absolute; 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: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; left: 50%; top: -280px; width: 1100px; height: 640px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(106,188,230,.16), transparent);
}
.hero-inner { position: relative; z-index: 1; padding-top: clamp(64px, 10vw, 128px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hero h1 { margin: 0; font-size: clamp(44px, 7.6vw, 104px); font-weight: 700; line-height: .98; letter-spacing: -0.045em; text-wrap: balance; max-width: 1040px; }
.hero h1 span { color: var(--ash); }
.hero-lead { margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--soft); max-width: 640px; text-wrap: pretty; }
.hero .btns { justify-content: center; margin-top: 6px; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border: 1px solid var(--edge); border-radius: 999px; background: rgba(34,31,26,.6); color: var(--paper); font-size: 14px; font-weight: 600; }
.chip img { width: 26px; height: 26px; }
.chip:hover { border-color: var(--edge-2); background: var(--raised); color: var(--paper); }

/* Showcase: the products stand on the base, as in the mark */
.showcase { position: relative; z-index: 1; margin-top: clamp(56px, 8vw, 96px); perspective: 2000px; }
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 22px); transform: rotateX(14deg); transform-origin: 50% 100%; }
.shelf a { display: block; color: var(--paper); }
.shelf figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.shelf .shot { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); background: var(--raised); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); transition: transform .35s var(--ease), border-color .35s; }
.shelf a:hover .shot { transform: translateY(-8px); border-color: rgba(255,255,255,.22); }
.shelf img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; width: 100%; }
.shelf figcaption { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.shelf figcaption img { width: 22px; height: 22px; aspect-ratio: auto; }
.shelf figcaption small { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .06em; color: var(--ash); }
.ground { height: 14px; background: var(--sky); margin-top: clamp(18px, 2vw, 26px); position: relative; }
.ground-label { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0 clamp(56px, 7vw, 88px); font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }
@media (max-width: 860px) {
  .shelf { grid-template-columns: repeat(2, 1fr); transform: none; }
  .ground-label span:last-child { display: none; }
}

/* ---------- Sections ---------- */
.section { position: relative; }
.section-pad { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); }
.section-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px 72px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head > div { display: flex; flex-direction: column; gap: 18px; }
.section h2 { margin: 0; font-size: clamp(36px, 4.8vw, 60px); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.section-head p { margin: 0; font-size: 18px; color: var(--soft); max-width: 560px; text-wrap: pretty; }

/* ---------- Product showcases ---------- */
.products { background: var(--night); border-top: 1px solid var(--edge); overflow: clip; }
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--edge); }
.product:first-of-type { border-top: 0; padding-top: 0; }
.product:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.product:nth-of-type(even) .product-copy { order: 2; }
.product-copy { display: flex; flex-direction: column; gap: 20px; }
.product-id { display: flex; align-items: center; gap: 14px; }
.product-id img { width: 52px; height: 52px; }
.product-id strong { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.product-id small { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ash); margin-top: 3px; }
.product h3 { margin: 4px 0 0; font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.product p { margin: 0; color: var(--soft); text-wrap: pretty; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15.5px; line-height: 1.5; color: var(--paper); }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent);
}
.ticks li { position: relative; }
.ticks li::after { content: ""; position: absolute; left: 5px; top: 6px; width: 8px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.product .btns { margin-top: 8px; align-items: center; }
.stores { display: flex; gap: 16px; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.stores a { color: var(--ash); }
.stores a:hover { color: var(--paper); }

.frame-wrap { position: relative; }
.frame-wrap::before { content: ""; position: absolute; inset: -12% -10%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 38%, transparent), transparent 72%); filter: blur(10px); pointer-events: none; }
.frame { position: relative; border-radius: 14px; overflow: hidden; background: #0f0e0c; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4); }
.frame-bar { display: flex; align-items: center; gap: 14px; padding: 11px 14px; background: #1a1815; border-bottom: 1px solid rgba(255,255,255,.07); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a362f; }
.url { flex: 1; max-width: 340px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 5px 12px; border-radius: 7px; background: #26231e; font-size: 12.5px; color: var(--ash); }
.url svg { width: 11px; height: 11px; opacity: .7; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

@media (max-width: 900px) {
  .product, .product:nth-of-type(even) { grid-template-columns: 1fr; }
  .product:nth-of-type(even) .product-copy { order: 0; }
}

/* ---------- Approach (light) ---------- */
.light { background: var(--paper); color: var(--ink); color-scheme: light; }
.light a { color: var(--sky-dark); }
.light a:hover { color: var(--ink); }
.light .eyebrow { color: var(--stone); }
.light .eyebrow::before { background: var(--sky-dark); }
.light .section-head p { color: var(--body-light); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.principle { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(26px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.principle .num { font-family: var(--mono); font-size: 12px; color: var(--sky-dark); letter-spacing: .08em; }
.principle h3 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.principle p { margin: 0; font-size: 16px; color: var(--body-light); }
.principle::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--sky-dark); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.principle:hover::after { transform: scaleX(1); }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 0 32px; margin: clamp(56px, 7vw, 88px) 0 0; }
.figures div { padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column-reverse; gap: 8px; }
.figures dd { margin: 0; font-size: clamp(56px, 7vw, 96px); font-weight: 700; letter-spacing: -0.05em; line-height: .9; color: var(--ink); }
.figures dd sup { font-size: .4em; vertical-align: top; position: relative; top: .25em; color: var(--sky-dark); margin-left: 2px; }
.figures dt { font-size: 15px; color: var(--body-light); line-height: 1.5; max-width: 240px; }

/* ---------- About ---------- */
.about { background: var(--night); overflow: clip; }
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-copy { display: flex; flex-direction: column; gap: 22px; }
.about-copy p { margin: 0; font-size: 18px; color: var(--soft); text-wrap: pretty; max-width: 620px; }
.founder { position: relative; border-radius: 18px; padding: clamp(28px, 3vw, 40px); background: linear-gradient(180deg, var(--raised-2), var(--raised)); border: 1px solid var(--edge-2); overflow: hidden; display: flex; flex-direction: column; gap: 26px; }
.founder-top { display: flex; align-items: center; gap: 18px; }
.monogram { width: 64px; height: 64px; border-radius: 16px; background: var(--ink); border: 1px solid var(--edge-2); display: grid; place-items: center; flex: none; }
.monogram svg { width: 30px; height: 30px; }
.founder-name { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.founder-role { font-size: 15px; color: var(--ash); margin-top: 4px; }
.founder dl { margin: 0; }
.founder dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--edge-2); font-size: 15px; }
.founder dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ash); padding-top: 3px; }
.founder dd { margin: 0; text-align: right; }
.founder-base { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--sky); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--deep); border-top: 1px solid var(--edge); overflow: hidden; }
.contact-panel { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.contact-panel::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 500px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(106,188,230,.12), transparent); pointer-events: none; }
.contact-panel > * { position: relative; }
.contact-panel h2 { margin: 0; }
.contact-panel p { margin: 0; font-size: 18px; color: var(--soft); max-width: 560px; }
.mail { font-size: clamp(36px, 7.4vw, 104px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--paper); padding-bottom: 10px; background-image: linear-gradient(var(--sky), var(--sky)); background-size: 0% 4px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .45s var(--ease), color .2s; word-break: break-word; }
.mail:hover { color: var(--paper); background-size: 100% 4px; }
.contact-note { font-size: 14px !important; color: var(--ash) !important; }

/* ---------- Footer ---------- */
.foot { background: var(--deep); border-top: 1px solid var(--edge); }
.foot-main { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 40px 48px; padding-top: 56px; padding-bottom: 48px; }
.foot-brand { display: flex; flex-direction: column; gap: 16px; }
.foot-brand p { margin: 0; font-size: 14.5px; color: var(--ash); max-width: 340px; }
.foot-col { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.foot-col .h { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ash); margin-bottom: 4px; }
.foot-col a { color: var(--soft); display: inline-flex; align-items: center; gap: 10px; }
.foot-col a img { width: 18px; height: 18px; }
.foot-col a:hover { color: var(--paper); }
.foot-legal { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--edge); font-size: 13px; color: var(--ash); }
.foot-legal a { color: var(--ash); }
.foot-legal a:hover { color: var(--paper); }
.page-base { height: 8px; background: var(--sky); }
@media (max-width: 760px) { .foot-main { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll (CSS only, progressive) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .8s var(--ease) both; }
  .hero-inner > *:nth-child(2) { animation-delay: .06s; }
  .hero-inner > *:nth-child(3) { animation-delay: .12s; }
  .hero-inner > *:nth-child(4) { animation-delay: .18s; }
  .hero-inner > *:nth-child(5) { animation-delay: .24s; }
  .showcase { animation: rise 1s .3s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

/* ---------- 404 ---------- */
.notfound .hero-inner { min-height: 62vh; justify-content: center; padding-bottom: 96px; }
@media (max-width: 560px) {
  .hero .eyebrow { display: block; text-align: center; line-height: 1.7; }
  .hero .eyebrow::before { display: none; }
  .hero .btns .btn { width: 100%; }
}
