/* suryateja.pro — dark editorial, soft amber accent. Single CSS file, no webfonts. */

:root {
  --bg: #0e0e12;
  --bg-soft: #131319;
  --surface: #16161b;
  --surface-elev: #1c1c22;
  --border: #26262d;
  --border-strong: #34343d;

  --text: #ededee;
  --text-muted: #a8a8b0;
  --text-dim: #6c6c75;

  --accent: #d4a24c;
  --accent-hover: #e8b765;
  --accent-soft: rgba(212, 162, 76, 0.12);
  --accent-line: rgba(212, 162, 76, 0.32);

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;

  --measure: 64ch;
  --container: 1100px;
  --container-pad: clamp(20px, 4vw, 36px);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --section-y: clamp(72px, 11vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: var(--text);
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover { color: var(--accent-hover); text-decoration-color: var(--accent); }

p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em; margin: 0 0 0.5em; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: #1a1300; padding: 8px 14px;
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { left: 16px; z-index: 100; }

/* Container */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--container-pad); }
.narrow { max-width: 760px; }

/* Eyebrow */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 14px;
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 18, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 18px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--accent-line);
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.primary-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.primary-nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.primary-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 40px; height: 40px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a {
  display: block;
  padding: 12px var(--container-pad);
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  font-family: var(--font-serif);
}
.mobile-nav a:hover { background: var(--surface); }

/* Hero */
.hero {
  padding: clamp(64px, 11vw, 120px) 0 clamp(56px, 9vw, 110px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.lede {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 56ch;
}
.lede a { color: var(--text); text-decoration-color: var(--accent-line); }
.lede a:hover { color: var(--accent-hover); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-portrait {
  margin: 0;
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}
.hero-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
  font-family: var(--font-sans);
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #1a1300; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #1a1300; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent-hover); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Sections */
.section { padding: var(--section-y) 0; border-top: 1px solid var(--border); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }
.section h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}
.section-head h2 { margin: 0 0 12px; }

/* About */
.section-about p {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 1.1em;
}
.about-closer {
  margin-top: 36px !important;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted) !important;
  font-style: italic;
}

/* Ventures */
.venture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.venture-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.venture-card:hover {
  border-color: var(--accent-line);
  background: var(--surface-elev);
  transform: translateY(-2px);
}
.venture-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.venture-head h3 {
  margin: 0;
  font-size: 22px;
}
.venture-role {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.venture-card p {
  color: var(--text-muted);
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.6;
}
.venture-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}
.venture-link:hover { color: var(--accent-hover); }
.venture-link span { transition: transform .15s ease; display: inline-block; }
.venture-link:hover span { transform: translateX(4px); }

/* Stack */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px 28px;
}
.stack-group h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.stack-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.stack-group li {
  font-size: 16px;
  color: var(--text);
  padding: 6px 0;
  font-family: var(--font-serif);
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}
.service-card h3 {
  font-size: 20px;
  margin: 0 0 12px;
}
.service-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
}
.services-disclaimer {
  margin-top: 32px;
  color: var(--text-dim);
  font-size: 14px;
  font-style: italic;
}

/* Contact */
.contact-lede { color: var(--text-muted); max-width: 56ch; }
.contact-form {
  display: grid;
  gap: 18px;
  margin: 12px 0 36px;
}
.field { display: grid; gap: 8px; }
.field.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.field label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  resize: vertical;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-elev);
}
.contact-form button { justify-self: start; }
.form-status {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  min-height: 1.4em;
}
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: #e57373; }

.contact-links {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}
.contact-links a:hover { color: var(--accent-hover); }
.contact-links svg { color: var(--accent); flex-shrink: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy, .footer-brand {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
}
.vyomai-mark {
  color: var(--accent);
  font-size: 14px;
}

/* Now page */
.now-page main { padding: clamp(48px, 8vw, 96px) 0 var(--section-y); }
.now-page .now-meta {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin: 0 0 28px;
}
.now-page h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: -0.018em;
}
.now-page h2 {
  font-size: clamp(20px, 2vw, 24px);
  margin: 36px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.now-page p,
.now-page li {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
}
.now-page ul { padding-left: 1.1em; }
.now-page li { margin-bottom: 8px; }
.now-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}
.now-back:hover { color: var(--accent-hover); }

/* Fade-in observer — progressive enhancement.
   Default is fully visible so the page works without JS or with strict CSP.
   The .js class is added inline in <head> before the stylesheet parses;
   only then do we hide and let main.js fade things in. */
.js .fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.js .fade-in.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .fade-in { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { justify-self: start; max-width: 280px; order: -1; }
  .venture-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: none; }
  .mobile-nav[data-open="true"] { display: flex; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 44px; }
  .section { padding: clamp(56px, 14vw, 80px) 0; }
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Selection */
::selection {
  background: var(--accent);
  color: #1a1300;
}
