/* ============================================================
   risheek.tech — warm paper, Playfair italics, lime/coral blocks.
   Single committed light theme.
   ============================================================ */

:root {
  --ink: #101113;
  --paper: #f4f0e9;
  --lime: #c9ff41;
  --coral: #ff745c;
  --blue: #86a8ff;
  --muted: #73716c;
  --hair: #c8c3b9;
  --pop: var(--coral); /* per-panel accent; overridden on .lime/.coral/.blue */

  --display: 'Playfair Display', Georgia, serif;
  --body: Manrope, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font: 500 12px/1 var(--mono);
  text-decoration: none;
}

.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

.section { padding: 140px 0; }

.eyebrow {
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #4d4c48;
  margin: 0;
}

/* Playfair italic is the signature — used on every emphasised phrase. */
h1 em,
h2 em {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.07em;
}

/* ---- Nav --------------------------------------------------- */

.nav {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 4;
}

.wordmark {
  font: 700 38px/1 var(--display);
  text-decoration: none;
}

.wordmark span { color: var(--coral); }

#menu { display: flex; gap: 30px; }

#menu a,
footer a {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.02em;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

#menu a:hover,
footer a:hover { border-bottom-color: currentColor; }

.menu-button {
  display: none;
  border: 0;
  background: none;
  color: inherit;
  font: 500 12px/1 var(--mono);
  cursor: pointer;
  padding: 8px 0;
}

.menu-button span { font-size: 18px; margin-left: 4px; }

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

.hero {
  min-height: calc(100vh - 94px);
  padding: 10vh 0 60px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero h1 {
  font-size: clamp(56px, 9.4vw, 138px);
  font-weight: 700;
  line-height: 0.91;
  letter-spacing: -0.075em;
  margin: clamp(70px, 13vh, 140px) 0 0;
  max-width: 950px;
}

.hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-top: auto;
  padding-top: 90px;
}

.intro {
  font-size: 18px;
  line-height: 1.5;
  max-width: 380px;
  margin: 0;
}

.round-link {
  width: 130px;
  height: 130px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  font: 500 12px/1.4 var(--mono);
  text-align: center;
  transition: transform 0.3s;
}

.round-link b {
  position: absolute;
  right: 24px;
  bottom: 18px;
  font-size: 20px;
  font-weight: 400;
}

.round-link:hover { transform: rotate(10deg) scale(1.06); }

.hero-orbit {
  position: absolute;
  right: 7%;
  top: 26%;
  width: 120px;
  height: 120px;
  border: 1px solid #c2bdb3;
  border-radius: 50%;
  animation: spin 16s linear infinite;
}

.hero-orbit span {
  display: block;
  font: 500 9px var(--mono);
  letter-spacing: 2px;
  position: absolute;
  top: 12px;
  left: 18px;
  transform: rotate(-18deg);
  width: 220px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Section headings -------------------------------------- */

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 30px;
  margin-bottom: 42px;
}

.section-heading > p:last-child {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  max-width: 40ch;
}

/* ---- Projects ---------------------------------------------- */

.project-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 550px;
  margin: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project:hover .project-visual { transform: scale(0.985); }

.lime  { background: var(--lime);  --pop: var(--coral); }
.coral { background: var(--coral); --pop: var(--lime); }
.blue  { background: var(--blue);  --pop: var(--lime); }

.visual-number,
.project-type {
  position: absolute;
  z-index: 1;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.visual-number { top: 22px; left: 24px; }
.project-type { bottom: 22px; right: 24px; }

.build-svg {
  width: 78%;
  max-width: 460px;
  height: auto;
}

.s-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}

.s-pop { fill: var(--pop); stroke: none; }

.s-dash {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-dasharray: 11 7;
  animation: march 3.4s linear infinite;
}

.s-beam {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 4 8;
  opacity: 0.55;
  animation: march 5s linear infinite;
}

@keyframes march { to { stroke-dashoffset: -36; } }

.project-info {
  display: flex;
  justify-content: space-between;
  gap: 44px;
  padding: 26px 0 56px;
}

.project-info h2 {
  font-size: 45px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.project-info > div > p {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.6;
  margin: 14px 0 0;
  color: var(--muted);
}

.project-info.compact { padding-bottom: 0; }
.project-info.compact h2 { font-size: 34px; }

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.project-grid .project-visual { height: 430px; }

/* Spec list — the datasheet detail, kept quiet. */
.spec { margin: 0; flex: none; width: 300px; }

.compact .spec { width: auto; margin-top: 20px; }

.spec div {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid rgba(16, 17, 19, 0.16);
}

.spec div:last-child { border-bottom: 1px solid rgba(16, 17, 19, 0.16); }

.spec dt {
  flex: none;
  width: 76px;
  font: 500 10px/1.6 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec dd { margin: 0; font: 400 12px/1.6 var(--mono); }

/* ---- Also built -------------------------------------------- */

.notes { padding-top: 0; }

.note {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 27px 0;
  border-top: 1px solid var(--hair);
}

.note:last-child { border-bottom: 1px solid var(--hair); }

.note time,
.note p {
  font: 500 11px/1.5 var(--mono);
  color: var(--muted);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.note h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 8px;
  border: 1px solid var(--coral);
  border-radius: 2px;
  font: 500 10px/1.3 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b8422c;
  vertical-align: middle;
  white-space: nowrap;
}

/* ---- Skills ------------------------------------------------ */

.skills { padding-top: 0; }

.params { margin: 0; }

.params div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 8px 30px;
  padding: 16px 0;
  border-top: 1px solid var(--hair);
}

.params div:last-child { border-bottom: 1px solid var(--hair); }

.params dt {
  font: 500 11px/1.7 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.params dd { margin: 0; font: 400 14px/1.7 var(--mono); }

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

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

.about .eyebrow { color: #aaa8a1; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.about h2 {
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.055em;
  max-width: 860px;
}

.about-copy {
  font-size: 16px;
  line-height: 1.65;
  max-width: 560px;
  margin: 30px 0 0;
  color: #c5c2bb;
}

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

.contact {
  background: var(--coral);
  padding: 130px 0 115px;
}

.contact h2 {
  font-size: clamp(34px, 4.6vw, 66px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 60px 0 65px;
}

.email {
  display: inline-block;
  font-size: clamp(20px, 3vw, 43px);
  font-weight: 600;
  letter-spacing: -0.05em;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 9px;
  word-break: break-word;
}

.email span { font-size: 0.62em; margin-left: 8px; }

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

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  font: 500 11px/1.6 var(--mono);
  color: #55534e;
}

footer div { display: flex; gap: 24px; }

/* ---- Motion ------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible { opacity: 1; transform: none; }

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}

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

@media (max-width: 900px) {
  .project-info { display: block; }
  .spec { width: auto; margin-top: 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .params div { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 700px) {
  .wrap { width: min(100% - 40px, 1200px); }

  .nav { height: 74px; }

  .menu-button { display: block; }

  #menu {
    display: none;
    position: absolute;
    top: 66px;
    right: 0;
    background: var(--ink);
    padding: 20px 24px;
    flex-direction: column;
    gap: 18px;
  }

  #menu.open { display: flex; }
  #menu a { color: var(--paper); }

  .hero { min-height: 650px; padding-top: 55px; }
  .hero h1 { margin-top: 75px; }

  .hero-bottom { padding-top: 55px; align-items: center; }
  .intro { font-size: 15px; max-width: 230px; }

  .round-link { width: 92px; height: 92px; font-size: 10px; }
  .round-link b { right: 14px; bottom: 9px; font-size: 16px; }

  .hero-orbit { width: 80px; height: 80px; right: 0; top: 30%; opacity: 0.7; }

  .section { padding: 85px 0; }

  .section-heading { display: block; margin-bottom: 26px; }
  .section-heading > p:last-child { margin-top: 12px; }

  .project-visual { height: 360px; }
  .project-grid { grid-template-columns: 1fr; gap: 42px; }
  .project-grid .project-visual { height: 320px; }

  .project-info { padding: 18px 0 42px; }
  .project-info h2,
  .project-info.compact h2 { font-size: 32px; }

  .note {
    grid-template-columns: 60px 1fr;
    gap: 8px 14px;
    align-items: start;
  }

  .note p { grid-column: 2; }
  .note h3 { font-size: 18px; }
  .badge { margin: 6px 0 0; display: block; width: fit-content; }

  .about h2 { font-size: 34px; }

  .contact { padding: 85px 0; }
  .contact h2 { margin: 43px 0; }

  footer { flex-direction: column; align-items: start; gap: 22px; }
  footer div { gap: 15px; flex-wrap: wrap; }
}
