/* SrijanTara — styles
   Palette: paper / ink / brass. One typeface (Instrument Sans), used at several weights and widths. */

:root {
  --paper: #F2F1EC;
  --paper-deep: #E8E6DF;
  --ink: #1E1F22;
  --ink-soft: #55565C;
  --line: #D6D4CC;
  --brass: #A07A35;
  --brass-deep: #7E5F26;

  --night: #1E1F22;
  --night-ink: #EDEBE4;
  --night-soft: #9A978F;

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(96px, 13vw, 184px);

  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-h2: clamp(2.125rem, 1.4rem + 3.2vw, 4rem);
  --fs-display: clamp(2.75rem, 1rem + 7vw, 7rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }

::selection { background: var(--ink); color: var(--paper); }

main:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  text-decoration: none;
  font-size: var(--fs-small);
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */

.display {
  font-size: var(--fs-display);
  font-weight: 500;
  font-stretch: 94%;
  line-height: 0.96;
  letter-spacing: -0.042em;
}
.display > span { display: block; }

.h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  font-stretch: 96%;
  line-height: 1.04;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38ch;
  text-wrap: pretty;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 500 0.9375rem/1 var(--font);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: #34353a; border-color: #34353a; }

.btn--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.875rem;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: transparent; border-color: var(--ink); }
.btn--ghost.is-done { border-color: var(--brass); color: var(--brass-deep); }

.link {
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.2s ease;
}
.link:hover { text-decoration-color: var(--ink); }

/* ---------- Navigation ---------- */

.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand__mark {
  width: 16px;
  height: 16px;
  fill: var(--brass);
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 0.9375rem;
}
.nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--ink); }

/* Mobile menu: native <details>, so it works without JavaScript */
.menu { display: none; }

.menu__toggle {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.menu__toggle::-webkit-details-marker { display: none; }
.menu__toggle:hover,
.menu[open] .menu__toggle { border-color: var(--ink); }
.menu__label-close,
.menu[open] .menu__label-open { display: none; }
.menu[open] .menu__label-close { display: inline; }

.menu__panel {
  position: absolute;
  top: 100%;
  left: var(--gutter);
  right: var(--gutter);
  display: grid;
  padding-block: 4px 12px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.menu__panel a {
  display: block;
  padding: 14px 0;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.menu__panel a + a { border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(calc(100vh - 80px), 860px);
  min-height: min(calc(100svh - 80px), 860px);
  padding-block: clamp(48px, 6vw, 96px) clamp(72px, 9vw, 128px);
  overflow: hidden;
}

.hero__field {
  position: absolute;
  top: 0;
  bottom: 0;
  right: max(-6vw, -96px);
  width: min(62vw, 980px);
}
.hero__field canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__inner { position: relative; z-index: 1; }

.hero__copy {
  display: grid;
  gap: 28px;
  justify-items: start;
}

.hero__copy .display { margin-bottom: 8px; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 12px;
}

/* Ideas → Products → Possibilities, drawn as connectors */
.sequence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.1875rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.sequence i {
  position: relative;
  display: block;
  width: clamp(28px, 4vw, 56px);
  height: 1px;
  background: var(--line);
}
.sequence i::before,
.sequence i::after {
  content: "";
  position: absolute;
  top: 0;
}
.sequence i::before {
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform-origin: left center;
}
.sequence i::after {
  right: -2px;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
}

@media (prefers-reduced-motion: no-preference) {
  .sequence i::before { animation: draw 0.9s cubic-bezier(.65,0,.35,1) both; }
  .sequence i::after  { animation: appear 0.4s ease both; }
  .sequence i:nth-of-type(1)::before { animation-delay: 0.9s; }
  .sequence i:nth-of-type(1)::after  { animation-delay: 1.7s; }
  .sequence i:nth-of-type(2)::before { animation-delay: 1.8s; }
  .sequence i:nth-of-type(2)::after  { animation-delay: 2.6s; }
}

@keyframes draw   { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* ---------- What we build ---------- */

.build { padding-block: var(--section); }

.build__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.build__title {
  position: sticky;
  top: 48px;
  max-width: 9ch;
}

.area {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 8px 28px;
  align-items: start;
  padding-block: 32px 36px;
  border-top: 1px solid var(--line);
}
.area:last-child { border-bottom: 1px solid var(--line); }

.area__glyph { width: 48px; height: 48px; margin-top: -10px; }
.area__name {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.area__text {
  color: var(--ink-soft);
  max-width: 34ch;
}

/* Shared glyph strokes/fills */
.g-stroke { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; }
.g-faint  { stroke: var(--ink-soft); opacity: 0.45; }
.g-dash   { stroke-dasharray: 1.5 4; opacity: 0.6; }
.g-ink    { fill: var(--ink); }
.g-brass  { fill: var(--brass); }
.g-hollow { fill: none; stroke: var(--ink); stroke-width: 1.1; opacity: 0.55; }
.g-trace  { fill: var(--ink); opacity: 0.18; }

/* ---------- About / creed ---------- */

.about {
  background: var(--night);
  color: var(--night-ink);
  padding-block: var(--section);
}

.creed {
  font-size: clamp(2.4rem, 1rem + 5.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-stretch: 94%;
}
.creed__line { display: block; }
.creed__line + .creed__line { margin-top: 0.08em; }

/* The idea becomes more solid with each line */
.creed__line--1 { font-weight: 400; color: #7C7A74; }
.creed__line--2 { font-weight: 500; color: #B4B1A9; }
.creed__line--3 { font-weight: 650; color: var(--night-ink); }

.creed__dot {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  margin-left: 0.06em;
  border-radius: 50%;
  background: var(--brass);
  vertical-align: baseline;
}

.about__text {
  max-width: 42ch;
  margin-top: clamp(48px, 7vw, 96px);
  margin-left: auto;
  margin-right: clamp(0px, 8vw, 120px);
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--night-soft);
  text-wrap: pretty;
}

/* ---------- Status ---------- */

.status { padding-block: var(--section) 0; }

.status__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
}

.status__glyph { width: clamp(88px, 11vw, 132px); height: auto; }

.status__text {
  margin-top: 20px;
  max-width: 40ch;
  font-size: var(--fs-lead);
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */

.contact { padding-block: var(--section); }

.display--contact {
  font-size: clamp(2.5rem, 1rem + 5.6vw, 6rem);
  max-width: 13ch;
  text-wrap: balance;
}

.contact__lead {
  margin-top: clamp(28px, 4vw, 44px);
  font-size: var(--fs-lead);
  color: var(--ink-soft);
}

.contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 12px;
}

.email {
  font-size: clamp(1.5rem, 0.9rem + 3vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-color: var(--line);
  overflow-wrap: anywhere;
  transition: text-decoration-color 0.2s ease;
}
.email:hover { text-decoration-color: var(--brass); }

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 32px;
  padding-block: 32px 40px;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.footer__brand { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.footer__name { color: var(--ink); font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; }

/* Hairline aligned with the content column, not the viewport */
.footer { position: relative; }
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}

/* ---------- 404 ---------- */

.lost {
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
  display: grid;
  align-content: center;
  gap: 24px;
  padding-block: 64px 120px;
}

/* ---------- Responsive ---------- */

@media (min-width: 761px) {
  .display > span { white-space: nowrap; }
}

@media (max-width: 1024px) {
  .hero__field { width: 70vw; right: -18vw; opacity: 0.85; }
  .build__grid { grid-template-columns: 1fr; }
  .build__title { position: static; max-width: none; }
  .area { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.3fr); }
}

@media (max-width: 760px) {
  :root { --fs-body: 1rem; }

  .nav { min-height: 68px; gap: 16px; }
  .nav__links,
  .nav__cta { display: none; }
  .menu { display: block; }

  .hero {
    display: block;
    min-height: 0;
    padding-block: 0 72px;
  }
  .hero__field {
    position: relative;
    right: auto;
    width: auto;
    height: min(86vw, 380px);
    margin-inline: calc(var(--gutter) * -0.5);
    opacity: 1;
  }
  .hero__copy { gap: 22px; }
  .hero__copy .display { margin-bottom: 4px; }
  .display { letter-spacing: -0.038em; line-height: 0.98; }
  .lead { max-width: none; }
  .hero__actions { gap: 14px 24px; }

  .area {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 6px 18px;
    padding-block: 26px 28px;
  }
  .area__glyph { width: 40px; height: 40px; margin-top: -6px; grid-row: span 2; }
  .area__text { grid-column: 2; }

  .creed { font-size: clamp(2rem, 9.2vw, 2.6rem); letter-spacing: -0.035em; line-height: 1.05; }
  .about__text { margin-left: 0; margin-right: 0; }

  .status__inner { grid-template-columns: 1fr; gap: 28px; }

  .contact__row { flex-direction: column; align-items: flex-start; }

  .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .sequence { gap: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
