/* =========================================================
   Beranda: komposisi "hero penulis" (prompt4.md) yang diterjemahkan ke
   HTML, CSS, dan JS biasa. Warna mengikuti tema situs (terang, gelap, aksen
   dari admin). Nama raksasa, potret, kartu buku tiga dimensi (projek unggulan),
   catatan yang menulis sendiri, splash tinta, kursor tinta, dan lampu sorot.
   ========================================================= */
.ea-hero {
  --ea-page: var(--bg);
  --ea-ink: var(--fg);
  --ea-accent: var(--ac);
  --ea-muted: var(--mut);
  --ea-paper: color-mix(in srgb, var(--bg) 88%, var(--fg));
  --ea-sheet: var(--card);
  --ea-mono: var(--mono);
  --ea-display: "Inter", ui-sans-serif, system-ui, sans-serif;
  --ea-par: 0.8; --ea-fs1: 302; --ea-fs2: 225; --ea-cap1: 220; --ea-cap2: 164; --ea-n1: 2.86; --ea-n2: 4.4;
  --ea-ease: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  background: var(--ea-page);
  color: var(--ea-ink);
  font-family: var(--ui);
}
.ea-hero :where(a) { color: inherit; text-decoration: none; }
.ea-hero :where(ul) { margin: 0; padding: 0; list-style: none; }
.ea-hero :where(p, h1, figure, hr) { margin: 0; }
.ea-hero :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.ea-display { font-family: var(--ea-display); font-weight: 900; }
.ea-hero .sr-only { position: absolute; }
.inline-block { display: inline-block; }

.ea-logo { font-family: var(--ea-display); color: var(--ea-accent); overflow-y: clip; line-height: 1; font-weight: 900; letter-spacing: -0.045em; text-transform: uppercase; }
.ea-logo > span { display: block; }
.ea-nav-link { color: var(--ea-ink); font-weight: 500; text-transform: uppercase; display: inline-flex; min-height: 40px; align-items: center; gap: 8px; }
.ea-nav-link[aria-current="page"] { color: var(--ea-accent); }
.ea-nav-cta { display: flex; align-items: center; gap: 10px; }
.ea-theme { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid color-mix(in srgb, var(--ea-ink) 35%, transparent) !important; border-radius: 50%; }
.ea-theme:hover { border-color: var(--ea-ink) !important; }
.ea-theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ea-theme .m { display: none; }
html[data-theme="dark"] .ea-theme .s { display: none; }
html[data-theme="dark"] .ea-theme .m { display: block; }
.ea-name-first { color: var(--ea-accent); }
.ea-name-last { color: var(--ea-ink); }
.ea-name { font-family: var(--ea-display); font-weight: 900; text-transform: uppercase; }
.inline-block { display: inline-block; white-space: nowrap; }
.ea-intro-roles { color: var(--ea-ink); font-weight: 500; text-transform: uppercase; }
.ea-intro-roles i { color: var(--ea-accent); font-style: normal; }
.ea-intro-headline { color: var(--ea-ink); font-weight: 500; }
.ea-intro-headline span { display: block; }
.ea-intro-rule { background: var(--ea-accent); transform-origin: left; border: 0; }
.ea-intro-description { color: var(--ea-muted); font-weight: 300; }
.ea-socials { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ea-ink); flex-wrap: wrap; }
.ea-socials .sl { color: var(--ea-accent); }
.ea-book-label { margin-right: auto; color: var(--ea-ink); font-size: 15px; font-weight: 500; white-space: nowrap; }
.ea-book-topics { color: var(--ea-muted); font-size: 13px; white-space: nowrap; }
.ea-book-topics i { color: var(--ea-accent); font-style: normal; }
.ea-book-caption { display: flex; align-items: center; }
.ea-book-arrow { position: relative; flex: none; border-radius: 50%; }
.ea-book-arrow::after { content: ""; position: absolute; inset: -8px; }
.ea-book-frame { display: block; width: 100%; overflow: hidden; }
.ea-letter-eyebrow, .ea-letter-meta { margin: 0; }
.ea-letter-greeting, .ea-letter-field { font-family: var(--ea-mono); }
.ea-letter-sheet { background: var(--ea-sheet); }
.ea-letter-field { color: var(--ea-ink); }
.ea-letter-greeting { color: var(--ea-ink); }
.ea-book-frame { background: var(--ea-paper); }
.ea-book-inside-title { font-family: var(--ea-display); }
.ea-book-title { font-family: var(--ea-display); }
.ea-wax-seal { font-family: var(--ea-display); }
.ea-book-page { background: linear-gradient(to right, rgb(0 0 0 / 0.12), transparent 14%), #fbf9f5; }
.ea-book-cover-inside { background: linear-gradient(to left, rgb(0 0 0 / 0.12), transparent 14%), #fbf9f5; }
.ea-book-page-text, .ea-book-inside-title { color: #1a1613; }
.ea-hero svg.ea-filters { position: absolute; width: 0; height: 0; }

/* ---------- Bagian dari prompt4.md ---------- */
/**
 * The navbar and the composition share one centred container with a 16, 24 then 40px gutter; the hero is the
 * size container they measure it from. On the wide composition the container fills the screen's width up to
 * 1440px (--ea-w) and the design scales with it; past that nothing grows and the extra space goes to the sides.
 */
.ea-hero {
  --ea-gutter: 16px;
  --ea-nav-h: 60px;
  --ea-w: min(100cqw - 2 * var(--ea-gutter), 1440px);
  container-type: inline-size;
  min-height: 100svh;
  overflow: clip;
}

@media (min-width: 640px) {
  .ea-hero {
    --ea-gutter: 24px;
  }
}

@media (min-width: 1024px) {
  .ea-hero {
    --ea-gutter: 40px;
  }
}

.ea-wrap {
  width: var(--ea-w);
  margin-inline: auto;
}

/**
 * Navbar below 1024px: the logo centred on the first row with the contact button at its right end, and the four
 * links spread across the second row with equal space between them (the two link lists dissolve into the grid,
 * which spaces its four columns evenly). From 1024px it becomes a single row.
 */
.ea-nav {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  align-items: center;
  row-gap: 6px;
  padding-block: 14px 6px;
}

.ea-nav-logo {
  grid-row: 1;
  grid-column: 1 / -1;
  justify-self: center;
}

.ea-nav-cta {
  grid-row: 1;
  grid-column: 1 / -1;
  justify-self: end;
}

.ea-nav-left,
.ea-nav-right {
  display: contents;
  white-space: nowrap;
}

.ea-nav-left > li,
.ea-nav-right > li {
  grid-row: 2;
}

/**
 * Below 1024px (phones and tablets) the contact button is its arrow disc alone; its label stays for screen
 * readers. On a desktop it shows the label beside the disc.
 */
@media (max-width: 1023px) {
  .ea-nav-cta .ea-cta {
    gap: 0;
    padding: 4px;
  }

  .ea-nav-cta .ea-cta-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* The note at the navbar's left edge: shown from 1024px, where it balances the contact button */
.ea-nav-status {
  display: none;
}

/* Rolling labels: the visible copy slides up and out as its twin slides up into place */
.ea-roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  line-height: 1.25;
}

.ea-roll > span {
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ea-roll > span + span {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
}

@media (hover: hover) {
  .ea-nav-link:hover .ea-roll > span:first-child {
    transform: translateY(-100%);
  }

  .ea-nav-link:hover .ea-roll > span + span {
    transform: translateY(0);
  }
}

/* Menu type: medium capitals with open tracking; the current page is marked with a small orange dot */
.ea-nav-link {
  font-size: clamp(12px, 3.4vw, 13px);
  letter-spacing: 0.06em;
}

.ea-nav-link[aria-current='page']::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.ea-nav-logo {
  font-size: 28px;
}

/**
 * From 640px the navbar is one row: the wordmark in the exact centre and the four links mirroring each other
 * around it with one equal gap (--ea-nav-gap); the contact button ends on the right edge. Type and spacing
 * follow the screen only within set limits, tighter on a tablet so everything fits on the row.
 */
@media (min-width: 640px) {
  .ea-nav {
    --ea-nav-u: calc(100cqw / 1280);
    --ea-nav-gap: clamp(16px, 2.6vw, 28px);
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: 'left logo right';
    justify-content: normal;
    height: var(--ea-nav-h);
    padding-block: 0;
  }

  .ea-nav-logo {
    grid-area: logo;
  }

  .ea-nav-left,
  .ea-nav-right {
    display: flex;
  }

  .ea-nav-left {
    grid-area: left;
    justify-self: end;
    gap: var(--ea-nav-gap);
    margin-right: var(--ea-nav-gap);
  }

  .ea-nav-right {
    grid-area: right;
    justify-self: start;
    gap: var(--ea-nav-gap);
    margin-left: var(--ea-nav-gap);
  }

  .ea-nav-cta {
    grid-area: right;
  }

  .ea-nav-link {
    font-size: clamp(13px, 14 * var(--ea-nav-u), 15px);
  }

  .ea-nav-logo {
    font-size: clamp(26px, 29 * var(--ea-nav-u), 32px);
  }
}

@media (min-width: 1024px) {
  .ea-nav {
    --ea-nav-gap: clamp(36px, 64 * var(--ea-nav-u), 80px);
  }
}

/* The navbar's status note needs the room a wider screen gives, so it appears from 1280px */
@media (min-width: 1280px) {
  .ea-nav-status {
    grid-area: left;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ea-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  /* A live dot: a soft ring breathes out from it, slowly, so it reads as present without pulling focus */
  .ea-nav-status-dot {
    position: relative;
    width: 7px;
    height: 7px;
    margin-right: 2px;
    border-radius: 50%;
    background: var(--ea-accent);
  }

  .ea-nav-status-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--ea-accent);
    animation: ea-breathe 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  }
}

/**
 * The ink button (CONTACT and the letter's actions): an outlined pill with an orange arrow disc at its end. On
 * hover or keyboard focus a circle of ink grows out of the disc until it fills the pill, the label turns to
 * the page colour, and the arrow leaves its disc as a fresh one arrives from the other side.
 */
.ea-cta {
  --ea-cta-mark: 34px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding-inline: 20px 5px;
  overflow: hidden;
  border: 1px solid rgb(23 20 18 / 0.4);
  border-radius: 999px;
  color: var(--ea-ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* The ink starts as a dot at the disc's centre; scaled up 14 times it covers any of these pills */
.ea-cta::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 50%;
  right: calc(5px + var(--ea-cta-mark) / 2);
  width: var(--ea-cta-mark);
  height: var(--ea-cta-mark);
  margin: calc(var(--ea-cta-mark) / -2) calc(var(--ea-cta-mark) / -2) 0 0;
  border-radius: 50%;
  background: var(--ea-ink);
  transform: scale(0);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.ea-cta-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--ea-cta-mark);
  height: var(--ea-cta-mark);
  overflow: hidden;
  border-radius: 50%;
  background: var(--ea-accent);
  color: var(--ea-page);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ea-cta-arrow {
  position: absolute;
  width: 44%;
  height: 44%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ea-cta-arrow-in {
  transform: translateX(-160%);
}

.ea-cta-diagonal .ea-cta-arrow-in {
  transform: translate(-160%, 160%);
}

.ea-cta:disabled {
  opacity: 0.4;
}

@media (hover: hover) {
  .ea-cta:not(:disabled):hover {
    border-color: var(--ea-ink);
    color: var(--ea-page);
  }

  .ea-cta:not(:disabled):hover::before {
    transform: scale(14);
  }

  .ea-cta:not(:disabled):hover .ea-cta-mark {
    transform: scale(1.06);
  }

  .ea-cta:not(:disabled):hover .ea-cta-arrow-out {
    transform: translateX(160%);
  }

  .ea-cta-diagonal:not(:disabled):hover .ea-cta-arrow-out {
    transform: translate(160%, -160%);
  }

  .ea-cta:not(:disabled):hover .ea-cta-arrow-in {
    transform: translate(0, 0);
  }
}

.ea-cta:focus-visible {
  border-color: var(--ea-ink);
  color: var(--ea-page);
  outline: 2px solid var(--ea-accent);
  outline-offset: 3px;
}

.ea-cta:focus-visible::before {
  transform: scale(14);
}

/**
 * Phones and tablets: the name and portrait form one framed figure, the portrait standing on a sheet of paper;
 * the introduction, the writing pad, the book and the social links follow it
 */
.ea-stage {
  padding-block: 12px 40px;
}

.ea-canvas {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    'figure'
    'intro'
    'pad'
    'book'
    'socials';
  row-gap: 40px;
}

.ea-figure {
  grid-area: figure;
  position: relative;
  container-type: inline-size;
}

/* The name and portrait layers only matter on the wide composition; on smaller screens they leave no box */
.ea-layer {
  display: contents;
}

/* The ink spotlight's twins: the name as outlined type, the portrait through the ink duotone filter */
.ea-ink-first,
.ea-ink-last {
  color: var(--ea-accent);
  filter: url(#ea-ink-outline);
}

.ea-ink-last {
  color: var(--ea-ink);
}

.ea-ink-portrait {
  filter: url(#ea-ink-duotone);
}

.ea-name {
  position: relative;
  display: flex;
  flex-direction: column;
  line-height: 0.8;
}

/* Set on each line, not the heading, so the em resolves against the giant size rather than 16px */
.ea-name-first,
.ea-name-last {
  letter-spacing: 0.02em;
}

/**
 * Each letter of the name is revealed inside a mask that hugs the capitals (overshoot included) rather than the
 * line box, so a letter in motion only ever shows within its own line and never crosses the other one
 */
.ea-name {
  --ea-mask-top: 0.015em;
  --ea-mask-bottom: 0.015em;
}

.ea-letter-mask {
  clip-path: inset(var(--ea-mask-top) -0.25em var(--ea-mask-bottom) -0.25em);
}

/**
 * Inter's capitals start 0.039em inside their box and MONROE's box ends 0.05em past its last stroke (its
 * trailing letter-spacing included), so the margins put the ink itself on the container edges
 */

.ea-name-first {
  font-size: calc(100cqw / var(--ea-n1));
  margin-left: -0.039em;
}

.ea-name-last {
  align-self: flex-end;
  font-size: calc(100cqw / var(--ea-n2));
  margin-right: -0.05em;
}

/* The paper the portrait stands on, where the composition's desk sits on a wide screen */
.ea-figure::after {
  content: '';
  display: block;
  width: 64cqw;
  height: 60cqw;
  margin: 3cqw 0 0 auto;
  border-radius: 10px 10px 0 0;
  background: var(--ea-paper);
}

.ea-portrait {
  position: absolute;
  z-index: 1;
  top: 9cqw;
  left: -3cqw;
  height: calc(100% - 9cqw);
  width: auto;
  max-width: none;
}

.ea-intro {
  grid-area: intro;
}

.ea-intro-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}

.ea-intro-headline {
  font-size: 24px;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.ea-intro-rule {
  width: 52px;
  height: 2px;
  margin-bottom: 22px;
}

.ea-intro-description {
  max-width: 260px;
  font-size: 15px;
  line-height: 1.55;
}

.ea-book {
  grid-area: book;
}

.ea-book-frame {
  position: relative;
  aspect-ratio: 324 / 207;
  border-radius: 10px;
  background: var(--ea-paper);
  container-type: size;
}

.ea-book-caption {
  margin-top: 12px;
}

.ea-socials {
  grid-area: socials;
}

@media (min-width: 640px) {
  .ea-canvas {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      'figure figure'
      'intro book'
      'pad pad'
      'socials socials';
    column-gap: 32px;
  }

  .ea-figure::after {
    height: 48cqw;
  }
}

/**
 * The letter to tomorrow. The area holds one view at a time: the letter sheet, the sealed envelope, the sent note,
 * the waiting envelope, or the opened letter. The sheet is the paper, tipped slightly as if just set down.
 */
.ea-pad {
  grid-area: pad;
  position: relative;
}

.ea-pad-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 380px;
}

.ea-letter-sheet,
.ea-letter-envelope-view {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.ea-letter-sheet {
  padding: 24px 22px 18px;
  border-radius: 4px;
  background: #fbf9f5;
  box-shadow: 0 18px 40px -18px rgb(23 20 18 / 0.45);
}

.ea-letter-eyebrow {
  padding-right: 64px;
  color: var(--ea-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.ea-letter-stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 0 0 0 0.16em;
  border: 2px solid var(--ea-accent);
  border-radius: 50%;
  color: var(--ea-accent);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(12deg);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s,
    color 0.3s,
    opacity 0.4s;
}

/* Dim while the letter is being typed, full once it is finished, and pressed flat in orange as it seals */
.ea-letter-stamp {
  opacity: 0.35;
}

.ea-letter-stamp.is-ready {
  opacity: 1;
}

.ea-letter-stamp.is-pressed {
  background: var(--ea-accent);
  color: var(--ea-page);
  transform: rotate(0deg) scale(0.86);
}

.ea-letter-greeting {
  display: block;
  margin-top: 20px;
  color: var(--ea-ink);
  font-family: var(--ea-mono);
  font-size: 17px;
}

.ea-letter-field {
  flex: 1;
  width: 100%;
  min-height: 84px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ea-ink);
  caret-color: var(--ea-accent);
  font-family: var(--ea-mono);
  font-size: 17px;
  line-height: 1.65;
  resize: none;
  outline: none;
}

.ea-letter-read {
  white-space: pre-wrap;
}

/* The typewriter's caret: an orange block that blinks after the last typed character */
.ea-letter-caret {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 2px;
  background: var(--ea-accent);
  vertical-align: -0.2em;
  animation: ea-caret 1s steps(2, jump-none) infinite;
}

@keyframes ea-caret {
  50% {
    opacity: 0;
  }
}

.ea-letter-meta {
  margin-top: auto;
  color: var(--ea-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ea-letter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: auto;
}

.ea-letter-row .ea-letter-meta {
  margin-top: 0;
}

/* The sealing view: its label above the envelope, both centred in the letter's space at every width */
.ea-letter-envelope-view {
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

/* The label here has no stamp to clear, so it drops the sheet's right inset and stays truly centred */
.ea-letter-envelope-view .ea-letter-eyebrow {
  padding-right: 0;
}

/**
 * The envelope from the back: paper body, two side folds and a bottom fold meeting under a top flap that is
 * hinged at the top edge. Sized in its own width (cqw) so the seal and postmark keep their proportions.
 */
.ea-envelope {
  position: relative;
  display: block;
  width: min(100%, 320px);
  aspect-ratio: 1.62;
  border-radius: 6px;
  background: #e6dccb;
  box-shadow:
    0 22px 40px -22px rgb(23 20 18 / 0.55),
    0 2px 6px -2px rgb(23 20 18 / 0.18);
  container-type: inline-size;
  perspective: 900px;
}

.ea-envelope > span {
  position: absolute;
}

/* The letter being packed: a folded sheet with a few typed lines, slid down behind the folds */
.ea-envelope-letter {
  inset: 6% 7% auto;
  height: 86%;
  border-radius: 3px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 9cqw, rgb(23 20 18 / 0.22) 9cqw 9.6cqw) 12% 22% / 62% 40%
      no-repeat,
    #fbf9f5;
  box-shadow: 0 2px 6px rgb(23 20 18 / 0.15);
}

.ea-envelope-side {
  inset: 0;
  border-radius: 6px;
  background: #ece3d4;
}

.ea-envelope-left {
  clip-path: polygon(0 0, 52% 56%, 0 100%);
}

.ea-envelope-right {
  clip-path: polygon(100% 0, 48% 56%, 100% 100%);
}

.ea-envelope-bottom {
  inset: 0;
  border-radius: 6px;
  background: #f4eee4;
  clip-path: polygon(0 100%, 50% 47%, 100% 100%);
}

/* The flap's soft shadow comes from a filter on its wrapper, since a clip-path would cut a box-shadow off */
.ea-envelope-flap {
  inset: 0 0 auto;
  height: 60%;
  filter: drop-shadow(0 3px 3px rgb(23 20 18 / 0.18));
  transform-origin: top center;
}

.ea-envelope-flap-shape {
  position: absolute;
  inset: 0;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(to bottom, #ddd0bb, #e3d7c4);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* The wax seal, pressed where the flap's tip meets the folds: a slightly domed disc with a raised rim */
.ea-wax-seal {
  top: 60%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 17cqw;
  aspect-ratio: 1;
  margin: -8.5cqw 0 0 -8.5cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff7457, var(--ea-accent) 55%, #c9361c);
  box-shadow:
    0 3px 6px rgb(23 20 18 / 0.3),
    inset 0 0 0 0.9cqw rgb(255 255 255 / 0.16);
  color: rgb(246 244 240 / 0.9);
  font-size: 7.5cqw;
  font-weight: 900;
  line-height: 1;
}

/* A round postmark on the bottom fold, with cancellation bars running off to its left */
.ea-postmark {
  right: 7%;
  bottom: 9%;
  display: grid;
  place-items: center;
  align-content: center;
  width: 23cqw;
  aspect-ratio: 1;
  border: 0.5cqw solid var(--ea-accent);
  border-radius: 50%;
  color: var(--ea-accent);
  font-size: 2.6cqw;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.88;
}

.ea-postmark::before {
  content: '';
  position: absolute;
  inset: 7%;
  border: 0.25cqw solid currentColor;
  border-radius: 50%;
}

.ea-postmark::after {
  content: '';
  position: absolute;
  top: 30%;
  right: 100%;
  width: 26cqw;
  height: 40%;
  background: repeating-linear-gradient(to bottom, currentColor 0 0.4cqw, transparent 0.4cqw 2.2cqw);
  opacity: 0.7;
}

.ea-postmark-date {
  font-family: var(--ea-mono);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/**
 * Landscape screens from 1024px: the design's composition, measured on a 1280px grid in units of --ea-u, so
 * it scales with the container (1.0625px at 1440, never more). The canvas fills the hero below the navbar.
 */
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .ea-hero {
    display: grid;
    grid-template-rows: auto 1fr;
  }

  /**
   * Never shorter than the name, the introduction and the social links need at their smallest scale, so nothing
   * can collide; only a very short window scrolls
   */
  .ea-stage {
    position: relative;
    min-height: calc(var(--ea-w) * 621 / 1600 + 40px);
    padding: 0;
  }

  /**
   * --ea-slack is the height beyond the composition's minimum. A small share opens above the name and the rest
   * lengthens the portrait and the writing pad, which both run to the bottom edge. The portrait stops at
   * 738 units (784px at 1440, never under 640px); past that the name moves down so the head stays over ELIAS.
   */
  /**
   * --ea-u follows the width, but on a wide, short window it follows the height instead (the name, introduction
   * and social links need 621 units plus 40px), so the design still fits one screen while staying anchored to
   * both edges; it never drops below 80% of the width's unit
   */
  .ea-canvas {
    --ea-u: max(min(100cqw / 1280, (100cqh - 40px) / 830), 100cqw / 1600);
    --ea-slack: max(0px, 100cqh - 685 * var(--ea-u));
    --ea-head: calc(55 * var(--ea-u));
    --ea-portrait-max: 100cqh;

    /* The portrait keeps its place against MONROE (which is set from the right edge), never nearer than 221px */
    --ea-portrait-left: max(100cqw - 1070 * var(--ea-u), 221px);
    --ea-top: calc(var(--ea-slack) * 0.02 + 16px);
    --ea-portrait-h: min(100cqh - var(--ea-top) - var(--ea-head), var(--ea-portrait-max));
    /* The name's two lines: ELIAS's cap top, then MONROE's, then MONROE's baseline */
    --ea-last-top: calc(var(--ea-top) + 242 * var(--ea-u));
    --ea-last-base: calc(var(--ea-last-top) + var(--ea-cap2) * var(--ea-u));
    position: absolute;
    inset: 0;
    display: block;
    container-type: size;
  }

  .ea-figure {
    display: contents;
  }

  /**
   * Each layer covers the composition exactly, so the twins inside it land on the same pixels as the originals.
   * The originals are masked to everything outside the spotlight and the twins to the inside. The twins reach
   * 1px past the originals' soft edge, so no seam of page shows between them; at a radius of 0 the originals
   * show whole and the twins not at all.
   */
  .ea-layer {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
  }

  .ea-layer-name {
    z-index: 0;
  }

  .ea-layer-portrait {
    z-index: 2;
  }

  .ea-layer-base {
    --ea-spot: radial-gradient(
      circle var(--ea-spot-r, 0px) at var(--ea-spot-x, 0px) var(--ea-spot-y, 0px),
      transparent calc(var(--ea-spot-r, 0px) - 1px),
      #000 calc(var(--ea-spot-r, 0px) + 1px)
    );
    mask-image: var(--ea-spot);
    -webkit-mask-image: var(--ea-spot);
  }

  .ea-layer-ink {
    --ea-spot: radial-gradient(
      circle var(--ea-spot-r, 0px) at var(--ea-spot-x, 0px) var(--ea-spot-y, 0px),
      #000 calc(var(--ea-spot-r, 0px) + 1px),
      transparent calc(var(--ea-spot-r, 0px) + 2px)
    );
    mask-image: var(--ea-spot);
    -webkit-mask-image: var(--ea-spot);
  }

  /* At a line height of 1 the capitals sit 0.124em below the box top and end 0.124em above its bottom */
  .ea-name {
    --ea-mask-top: 0.115em;
    --ea-mask-bottom: 0.115em;
    position: static;
    display: block;
    line-height: 1;
  }

  /**
   * Placed by their cap tops (0.136em is the gap Inter leaves above a capital at a line height of 1): ELIAS
   * 220px tall and 881px wide, MONROE 164px tall and 1008px wide, with the ink on the container edges
   */
  .ea-name-first,
  .ea-name-last {
    position: absolute;
    white-space: nowrap;
  }

  .ea-name-first {
    top: calc(var(--ea-top) + (220 - var(--ea-cap1)) * var(--ea-u) - 0.136em);
    left: -0.039em;
    margin: 0;
    font-size: calc(var(--ea-fs1) * var(--ea-u));
  }

  .ea-name-last {
    top: calc(var(--ea-last-top) - 0.136em);
    right: -0.05em;
    margin: 0;
    font-size: calc(var(--ea-fs2) * var(--ea-u));
  }

  .ea-figure::after {
    display: none;
  }

  /* Fills the space under MONROE, sharing the book's right edge; the letter inside runs off the bottom edge */
  .ea-pad {
    position: absolute;
    z-index: 1;
    top: calc(var(--ea-last-base) + 16 * var(--ea-u));
    left: calc(620 * var(--ea-u));
    width: calc(100% - 620 * var(--ea-u));
    height: calc(100% - var(--ea-last-base) - 16 * var(--ea-u));
  }

  /**
   * The letter starts clear of the portrait's coat, which reaches the full width of the cut-out (1072 of its
   * 1336px height) and drifts up to 14px with the cursor; the inset is measured from the portrait's real size
   */
  .ea-pad-inner {
    min-height: 0;
    padding: calc(14 * var(--ea-u)) calc(18 * var(--ea-u)) 0
      max(
        120 * var(--ea-u),
        var(--ea-portrait-left) + var(--ea-portrait-h) * var(--ea-par) - 620 * var(--ea-u) + 14px + 24 * var(--ea-u)
      );
  }

  .ea-letter-sheet {
    padding: calc(24 * var(--ea-u)) calc(26 * var(--ea-u)) calc(18 * var(--ea-u));
    border-radius: 4px 4px 0 0;
  }

  .ea-letter-eyebrow,
  .ea-letter-meta {
    font-size: max(10px, 11 * var(--ea-u));
  }

  .ea-letter-stamp {
    top: calc(16 * var(--ea-u));
    right: calc(18 * var(--ea-u));
    width: max(64px, 78 * var(--ea-u));
    height: max(64px, 78 * var(--ea-u));
    font-size: max(9px, 10.5 * var(--ea-u));
  }

  .ea-letter-greeting {
    margin-top: calc(22 * var(--ea-u));
    font-size: max(14px, 18 * var(--ea-u));
  }

  .ea-letter-field {
    min-height: 0;
    font-size: max(14px, 18 * var(--ea-u));
  }

  .ea-envelope {
    width: min(100%, 330 * var(--ea-u));
  }

  /**
   * Stands on the bottom edge with the top of its head 55px under the top of ELIAS. Its left edge stays put as
   * it grows, never nearer than 221px, so the coat clears the social links and leaves MONROE's M readable
   */
  .ea-portrait {
    z-index: 2;
    top: calc(100% - var(--ea-portrait-h));
    left: var(--ea-portrait-left);
    height: var(--ea-portrait-h);
  }

  .ea-intro {
    position: absolute;
    z-index: 3;
    top: calc(var(--ea-last-top) + 44 * var(--ea-u));
    left: 0;
    width: calc(250 * var(--ea-u));
  }

  /* Spacing grows down the stack: label to heading, then heading to rule and rule to description */
  .ea-intro-roles {
    gap: 0.4em 0.55em;
    font-size: max(10px, 11 * var(--ea-u));
    letter-spacing: 0.15em;
    margin-bottom: calc(18 * var(--ea-u));
  }

  .ea-intro-headline {
    font-size: max(17px, 21 * var(--ea-u));
    line-height: 1.14;
    margin-bottom: calc(26 * var(--ea-u));
  }

  .ea-intro-rule {
    width: calc(52 * var(--ea-u));
    margin-bottom: calc(26 * var(--ea-u));
  }

  .ea-intro-description {
    max-width: calc(240 * var(--ea-u));
    font-size: max(14px, 15.5 * var(--ea-u));
    line-height: 1.6;
    text-wrap: pretty;
  }

  /* Its image spans ELIAS's upper 200px and its caption ends just above MONROE */
  .ea-book {
    position: absolute;
    z-index: 1;
    top: var(--ea-top);
    right: 0;
    width: calc(344 * var(--ea-u));
  }

  .ea-book-frame {
    border-radius: calc(12 * var(--ea-u));
  }

  .ea-book-frame {
    height: calc(200 * var(--ea-u));
    aspect-ratio: auto;
  }

  .ea-book-caption {
    gap: calc(10 * var(--ea-u));
    margin-top: calc(8 * var(--ea-u));
  }

  .ea-book-label {
    font-size: max(12px, 14 * var(--ea-u));
  }

  .ea-book-topics {
    font-size: max(11px, 12.5 * var(--ea-u));
  }

  .ea-socials {
    position: absolute;
    z-index: 3;
    font-size: max(13px, 13 * var(--ea-u));

    /* Near the bottom edge, or just under the introduction when the screen is too short for that */
    top: max(var(--ea-last-top) + 44 * var(--ea-u) + max(305 * var(--ea-u), 280px), 100% - 78 * var(--ea-u) - 40px);
    left: 0;
  }
}

/**
 * Hover feedback, only where the device can hover: a hairline drawn in from the left and wiped out to the
 * right, the contact button filling with ink from below, and the book's arrow swapping for a fresh one
 */
.ea-link {
  position: relative;
}

/**
 * The book's arrow is the CONTACT disc at a smaller size, shrinking with the composition on a smaller desktop
 * so the caption always clears the top of MONROE (--ea-u exists only there; elsewhere it stays 28px)
 */
.ea-book-arrow .ea-cta-mark {
  --ea-cta-mark: clamp(22px, 28 * var(--ea-u, 1px), 28px);
}

@media (hover: hover) {
  .ea-link::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: calc(50% - 0.95em);
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .ea-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .ea-book:hover .ea-book-arrow .ea-cta-arrow-out {
    transform: translate(160%, -160%);
  }

  .ea-book:hover .ea-book-arrow .ea-cta-arrow-in {
    transform: translate(0, 0);
  }
}

/* The splash's name fills most of the width but never grows past its 1440 size, and keeps clear of the edges */
.ea-splash-name {
  width: min(88vw, 130svh);
  max-height: 70%;
  height: auto;
  overflow: visible;
}

/* With reduced motion the splash never shows, even for the moment before the script decides to skip it */
@media (prefers-reduced-motion: reduce) {
  .ea-splash {
    display: none;
  }
}

/* The custom cursor stands in for the system one everywhere in the hero, links and the splash included */
.ea-has-cursor,
.ea-has-cursor * {
  cursor: none;
}

/**
 * The code-built hardcover, sized from its frame (cqh) so it keeps its proportion at every width. It is a box:
 * back, page edges, orange spine, the first page, and a cover hinged on its left edge so it can swing open.
 */
/**
 * Holds one book while it slides in or out, so the book's own turning and opening stay independent of the swap.
 * Each fills the card, so the leaving and arriving books share the same place as they pass.
 */
.ea-book-slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

/* Left-aligned like a printed page, rather than centred like the button the book sits in */
.ea-book-stage {
  position: absolute;
  inset: 0;
  text-align: left;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.ea-book-shadow {
  position: absolute;
  bottom: 9cqh;
  width: 46cqh;
  height: 7cqh;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(23 20 18 / 0.35), transparent);
  filter: blur(4px);
}

.ea-book-3d {
  --ea-book-depth: 9cqh;
  position: relative;
  display: block;
  height: 74cqh;
  aspect-ratio: 0.72;
  transform-style: preserve-3d;
}

.ea-book-3d > span {
  position: absolute;
}

.ea-book-back {
  display: block;
  inset: 0;
  border-radius: 2px 5px 5px 2px;
  background: color-mix(in srgb, var(--ea-cover, #171412) 78%, black);
  transform: translateZ(calc(var(--ea-book-depth) / -2));
}

/* The page block's fore-edge, finely ruled like stacked leaves */
.ea-book-edge {
  display: block;
  top: 2%;
  right: 0;
  width: var(--ea-book-depth);
  height: 96%;
  background: repeating-linear-gradient(to right, #f3eee6 0 1.5px, #ddd5c8 1.5px 2.5px);
  transform: translateX(50%) rotateY(90deg);
}

.ea-book-spine {
  top: 0;
  left: 0;
  width: var(--ea-book-depth);
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ea-spine, var(--ea-accent));
  transform: translateX(-50%) rotateY(-90deg);
}

.ea-book-spine > span {
  color: var(--ea-cover-type, var(--ea-ink));
  font-size: 3.4cqh;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(90deg);
}

.ea-book-page {
  inset: 2% 3% 2% 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5cqh;
  padding: 0 10% 0 14%;
  background: linear-gradient(to right, rgb(23 20 18 / 0.12), transparent 14%), #fbf9f5;
  transform: translateZ(calc(var(--ea-book-depth) / 2 - 2px));
}

.ea-book-page-chapter {
  color: var(--ea-accent);
  font-size: 3cqh;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ea-book-page-text {
  color: #2a2522;
  font-size: 3.8cqh;
  line-height: 1.5;
}

.ea-book-folio {
  position: absolute;
  bottom: 6%;
  left: 0;
  right: 0;
  color: var(--ea-muted);
  font-size: 3cqh;
  text-align: center;
}

/* Motion writes the cover's whole transform as it swings, so the front-face depth lives on this wrapper */
.ea-book-hinge {
  inset: 0;
  transform: translateZ(calc(var(--ea-book-depth) / 2));
  transform-style: preserve-3d;
}

.ea-book-cover {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
}

/* The cover's two faces: the dark front, and the inside that faces the reader once the cover has swung over */
.ea-book-cover-front,
.ea-book-cover-inside {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
}

.ea-book-cover-front {
  justify-content: space-between;
  padding: 11% 10% 9%;
  border-radius: 2px 5px 5px 2px;
  overflow: hidden;
  background: var(--ea-cover, var(--ea-ink));
  color: var(--ea-cover-type, var(--ea-page));
  box-shadow: inset 3px 0 0 rgb(255 255 255 / 0.25);
}

.ea-book-cover-inside {
  justify-content: center;
  gap: 2.5cqh;
  padding: 0 12%;
  border-radius: 5px 2px 2px 5px;
  background: linear-gradient(to left, rgb(23 20 18 / 0.12), transparent 14%), #fbf9f5;
  transform: rotateY(180deg);
}

.ea-book-inside-title {
  color: var(--ea-ink);
  font-size: 8cqh;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.ea-book-title {
  font-size: 9.6cqh;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.ea-book-byline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 2.8cqh;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* The cover's pastel illustration fills the board behind the title and byline */
.ea-book-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.ea-book-title,
.ea-book-byline {
  position: relative;
}

@keyframes ea-breathe {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ea-nav-status-dot::after,
  .ea-letter-caret {
    animation: none;
  }
}


/* ---------- Penyesuaian untuk versi HTML biasa ---------- */
.ea-layer-ink { display: none !important; }
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .ea-spot-on .ea-layer-ink { display: block !important; }
}

/* Keadaan awal dan akhir gerakan masuk. Jeda (--d) dan lama (--t) diisi dari JS. */
.ea-hero [data-in] { transition: opacity var(--t, 0.8s) var(--ea-ease) var(--d, 0s), transform var(--t, 0.8s) var(--ea-ease) var(--d, 0s), clip-path var(--t, 0.8s) var(--ea-ease) var(--d, 0s), scale var(--t, 0.8s) var(--ea-ease) var(--d, 0s); }
.ea-pre [data-in="rise"] { opacity: 0; transform: translateY(8px); }
.ea-pre [data-in="fade"] { opacity: 0; }
.ea-pre [data-in="slide"] { opacity: 0; transform: translateX(-12px); }
.ea-pre [data-in="write"] { opacity: 0; transform: translateY(0.45em); clip-path: inset(0% 0% 100% 0%); }
.ea-pre [data-in="rule"] { transform: scaleX(0); }
.ea-pre [data-in="frame"] { clip-path: inset(0% 0% 100% 0%); }
.ea-pre [data-in="pad"] { clip-path: inset(0% 0% 0% 100%); }
.ea-pre [data-in="pop"] { transform: scale(0) rotate(-90deg); }
.ea-pre [data-in="portrait"] { clip-path: inset(100% 0% 0% 0%); scale: 1.06; }
.ea-pre [data-in="logo"] { transform: translateY(105%); }
.ea-pre [data-in="drop"] { opacity: 0; translate: 0 18%; }
.ea-go [data-in="write"] { clip-path: inset(-20% -5% -35% -5%); }
.ea-go [data-in="pad"] { clip-path: inset(-10% -10% 0% -10%); }
.ea-go [data-in="frame"] { clip-path: inset(0% 0% 0% 0%); }
.ea-go [data-in="portrait"] { clip-path: inset(0% 0% 0% 0%); }
.ea-letter-mask > span { display: inline-block; transition: transform 1.05s var(--ea-ease) var(--d, 0s); }
.ea-pre .ea-letter-mask > span { transform: translateY(var(--from, 105%)); }

.ea-hero.ea-pre .ea-pad, .ea-hero.ea-pre .ea-book-frame { will-change: clip-path; }
.ea-portrait { transform-origin: bottom; }
.ea-name-first, .ea-name-last { will-change: translate; }

/* Kursor tinta */
.ea-cursor { position: absolute; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; }
.ea-cursor > div { position: absolute; top: 0; left: 0; opacity: 0; will-change: transform; }
.ea-cursor.on > div { opacity: 1; }
.ea-cursor .ring { position: absolute; border: 1.5px solid var(--ea-accent); border-radius: 50%; transform: scale(0.2); opacity: 0; transition: transform 0.35s var(--ea-ease), opacity 0.35s var(--ea-ease); }
.ea-cursor .disc { position: absolute; display: grid; place-items: center; border-radius: 50%; background: var(--ea-accent); color: var(--ea-page); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; transform: scale(0); opacity: 0; transition: transform 0.4s var(--ea-ease), opacity 0.4s var(--ea-ease); }
.ea-cursor .dot { position: absolute; border-radius: 50%; background: var(--ea-accent); box-shadow: 0 0 0 2px var(--ea-page); transition: transform 0.3s var(--ea-ease); }
.ea-cursor.link .ring { transform: scale(1); opacity: 1; }
.ea-cursor.link .dot { transform: scale(0.5); }
.ea-cursor.read .disc { transform: scale(1); opacity: 1; }
.ea-cursor.read .dot { transform: scale(0); }

/* Splash tinta */
.ea-splash { position: fixed; top: 0; left: 0; z-index: 50; display: flex; flex-direction: column; width: 100%; height: 100svh; background: var(--ea-ink); }
.ea-splash-row { display: flex; align-items: center; height: 76px; flex: none; width: var(--ea-w, calc(100% - 32px)); margin-inline: auto; }
.ea-splash-roles { display: flex; gap: 0.6em; color: color-mix(in oklab, var(--ea-page) 70%, transparent); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0; transition: opacity 0.8s ease 0.2s; }
.ea-splash.tracing .ea-splash-roles { opacity: 1; }
.ea-splash-roles i { color: var(--ea-accent); font-style: normal; }
.ea-splash-mid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ea-splash-name { font-family: var(--ea-display); font-weight: 900; }
.ea-splash-wipe { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.ea-splash.tracing .ea-splash-wipe { transform: scaleX(1); transition: transform var(--draw-dur, 0.75s) var(--ea-ease) var(--draw-at, 0.1s); }

/* Catatan: pergantian lembar dan amplop */
.ea-pad-inner { position: relative; }
.ea-letter-sheet.in { animation: ea-sheet-in 0.75s var(--ea-ease) both; }
.ea-letter-sheet.out { animation: ea-sheet-out 0.75s var(--ea-ease) both; }
.ea-letter-sheet, .ea-letter-envelope-view { transform: rotate(-1.4deg); }
.ea-letter-envelope-view { transform: none; }
.ea-letter-envelope-view.in { animation: ea-fade 0.9s ease both; }
.ea-letter-envelope-view.out { animation: ea-env-out 0.9s cubic-bezier(0.6, 0, 0.35, 1) both; }
@keyframes ea-sheet-in { from { opacity: 0; transform: translateY(28px) rotate(-1.4deg); } to { opacity: 1; transform: translateY(0) rotate(-1.4deg); } }
@keyframes ea-sheet-out { to { opacity: 0; transform: translateY(40px) scale(0.94) rotate(-1.4deg); } }
@keyframes ea-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ea-env-out { to { opacity: 0; transform: translateX(70%) rotate(8deg); } }
.ea-envelope-letter { animation: ea-env-letter 1.05s var(--ea-ease) 0.2s both; }
.ea-envelope-flap { animation: ea-env-flap 0.95s var(--ea-ease) 1.2s both; }
.ea-wax-seal { animation: ea-env-seal 0.55s var(--ea-ease) 2.25s both; }
.ea-postmark { animation: ea-env-mark 0.55s var(--ea-ease) 2.75s both; }
@keyframes ea-env-letter { from { transform: translateY(-78%); } to { transform: translateY(6%); } }
@keyframes ea-env-flap { from { transform: rotateX(180deg); opacity: 0; } to { transform: rotateX(0); opacity: 1; } }
@keyframes ea-env-seal { from { transform: scale(2.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ea-env-mark { from { transform: scale(1.7) rotate(-34deg); opacity: 0; } to { transform: scale(1) rotate(-12deg); opacity: 0.88; } }
.ea-letter-sheet { display: flex; }

/* Buku: slot, warna sampul dari aksen projek, seni sampul */
.ea-book-slot { transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
.ea-book-3d { transition: opacity 1.1s var(--ea-ease), translate 1.1s var(--ea-ease); }
.ea-book-art .v1 { fill: var(--v1); } .ea-book-art .v2 { fill: var(--v2); } .ea-book-art .v3 { fill: var(--v3); }
.ea-book-art .v4 { fill: var(--v4); } .ea-book-art .v5 { fill: var(--v5); } .ea-book-art .v6 { fill: var(--v6); }
.ea-book-art .st3 { stroke: var(--v3); fill: none; }
.ea-book-title { max-width: 100%; }
.ea-book-byline span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Header situs: baru muncul setelah beranda terlewati */
body.ea-on .top { position: fixed; left: 0; right: 0; transform: translateY(-100%); transition: transform 0.35s var(--ea-ease); }
body.ea-on.ea-past .top { transform: none; }

/* Gerak dikurangi: tanpa transisi dan tanpa splash */
@media (prefers-reduced-motion: reduce) {
  .ea-hero [data-in], .ea-letter-mask > span, .ea-book-slot, .ea-book-3d, .ea-cursor * { transition: none !important; }
  .ea-letter-sheet, .ea-letter-envelope-view, .ea-envelope > span { animation: none !important; }
}

.ea-cta-arrow { display: block; }
.ea-cta-arrow svg { display: block; width: 100%; height: 100%; }

/* Stempel di sudut kanan atas tidak boleh menimpa baris pertama catatan */
.ea-letter-field::before { content: ""; float: right; width: 72px; height: 34px; }

/* Lembar catatan adalah kertas: tulisannya tetap gelap di tema gelap */
.ea-letter-sheet { --ea-ink: #171412; --ea-muted: #77716e; background: #fbf9f5; }
@media (max-width: 1500px) { .ea-nav-status { display: none !important; } }
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) { .ea-socials { gap: 5px; font-size: 12.5px; flex-wrap: nowrap; } }
/* Layar kecil: kepala potret hanya menutupi bagian bawah nama belakang, supaya nama tetap terbaca */
@media (max-width: 1023px), (max-aspect-ratio: 1249/1000) {
  .ea-portrait { top: 31cqw; left: -3cqw; height: calc(100% - 31cqw); }
}
@media (max-width: 480px) { .ea-book-topics { display: none; } }


/* ---------- Foto projek unggulan yang bergeser sendiri (menggantikan kartu buku) ---------- */
.ea-slides { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit; }
.ea-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transform: scale(1.08); transition: opacity 1.1s ease, transform 4.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ea-slides img.on { opacity: 1; transform: scale(1); }
.ea-book-frame { cursor: pointer; }

/* ---------- Tentang saya di kolom kiri ---------- */
.ea-intro-title { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ea-accent); }
.ea-intro-about p { color: var(--ea-ink); font-size: 14.5px; line-height: 1.55; font-weight: 400; margin: 0 0 10px; }
.ea-intro-about p:last-child { margin-bottom: 0; }
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .ea-intro { width: calc(262 * var(--ea-u)); }
  .ea-intro-roles { margin-bottom: calc(10 * var(--ea-u)); }
  .ea-intro-rule { margin-bottom: calc(14 * var(--ea-u)); }
  .ea-intro-about p { font-size: max(12.5px, 13.2 * var(--ea-u)); line-height: 1.5; margin-bottom: calc(8 * var(--ea-u)); }
}

/* ---------- Catatan: kartu mengikuti isi, tinggi tetap supaya tidak melompat ---------- */
.ea-letter-sheet { flex: 0 0 auto; }
.ea-letter-field { flex: none; min-height: 6.6em; }
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .ea-pad-inner { min-height: calc(250 * var(--ea-u)); align-items: stretch; }
  .ea-letter-sheet { border-radius: 4px; }
  .ea-letter-field { min-height: calc(5.2 * 1.65 * max(14px, 18 * var(--ea-u))); }
}
.ea-letter-envelope-view { flex: 1; }

@media (min-width: 640px) {
  .ea-nav-left { margin-right: calc(var(--ea-nav-gap) / 2); }
  .ea-nav-right { margin-left: calc(var(--ea-nav-gap) / 2); }
}
@media (max-width: 1023px), (max-aspect-ratio: 1249/1000) {
  .ea-pad-inner { min-height: 0; }
  .ea-canvas { row-gap: 28px; }
}


/* ---------- Kolase abstrak di kanan atas: bentuk bebas, miring, saling menimpa ---------- */
.ea-collage { container-type: inline-size; }
@media (max-width: 1023px), (max-aspect-ratio: 1249/1000) { .ea-collage { position: relative; } }
.ea-collage .ea-shot { position: absolute; display: block; padding: 0; overflow: hidden; border: 0; background: var(--ea-paper); box-shadow: 0 14px 30px -14px rgb(0 0 0 / 0.45); cursor: pointer; container-type: normal; }
.ea-shot .ea-slides { border-radius: 0; }
.ea-shot.s1 { left: 0; top: 3cqw; width: 58cqw; height: 39cqw; border-radius: 62% 38% 55% 45% / 52% 60% 40% 48%; rotate: -4deg; animation: ea-drift 9s ease-in-out infinite alternate; }
.ea-shot.s2 { right: 1cqw; bottom: -2cqw; width: 31cqw; height: 31cqw; border-radius: 50%; rotate: 6deg; z-index: 2; border: 0.9cqw solid var(--ea-page); box-sizing: border-box; animation: ea-drift 7s ease-in-out -2s infinite alternate-reverse; }
.ea-shot.s3 { left: 47cqw; top: -1cqw; width: 21cqw; height: 33cqw; border-radius: 999px 999px 4cqw 4cqw; rotate: 8deg; z-index: 1; animation: ea-drift 11s ease-in-out -4s infinite alternate; }
.ea-blob { position: absolute; right: 8cqw; top: -2cqw; width: 14cqw; height: 14cqw; border-radius: 50%; background: var(--ea-accent); }
.ea-ring { position: absolute; left: 38cqw; bottom: -4cqw; width: 18cqw; height: 18cqw; border-radius: 50%; border: 0.7cqw solid var(--ea-accent); opacity: 0.55; }
@keyframes ea-drift { from { translate: 0 -0.9cqw; } to { translate: 0.6cqw 1cqw; } }
@media (prefers-reduced-motion: reduce) { .ea-shot { animation: none !important; } }
.ea-collage { aspect-ratio: 100 / 46; height: auto !important; }
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .ea-book { width: calc(344 * var(--ea-u)); }
}


/* ---------- Tautan sosial dengan logo ---------- */
.ea-socials { display: grid; grid-template-columns: repeat(2, max-content); gap: 4px 26px; font-size: 15px; }
.ea-social { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; font-weight: 500; }
.ea-social-ico { width: 20px; height: 20px; flex: none; color: var(--ea-accent); }
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .ea-socials { top: auto; bottom: calc(24 * var(--ea-u)); font-size: max(14.5px, 15 * var(--ea-u)); }
}
@media (max-width: 480px) { .ea-socials { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Tautan sosial: satu baris ikon bulat di bawah teks Tentang saya ---------- */
.ea-intro .ea-socials, .ea-socials { position: static !important; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; grid-template-columns: none; }
.ea-social { justify-content: center; width: 44px; height: 44px; min-height: 0; border: 1px solid color-mix(in srgb, var(--ea-ink) 32%, transparent); border-radius: 50%; color: var(--ea-ink); transition: background-color 0.3s var(--ea-ease), color 0.3s var(--ea-ease), border-color 0.3s var(--ea-ease), transform 0.3s var(--ea-ease); }
.ea-social span:not(.ea-social-ico) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ea-social-ico { width: 21px; height: 21px; color: inherit; }
.ea-social:hover, .ea-social:focus-visible { background: var(--ea-accent); border-color: var(--ea-accent); color: var(--ea-page); transform: translateY(-3px); }
.ea-link.ea-social::after { display: none; }

/* ---------- Tentang saya lebih besar, tanpa garis pendek ---------- */
.ea-intro-title { font-size: 12.5px; margin-bottom: 10px; }
.ea-intro-about p { font-size: 16.5px; line-height: 1.55; margin-bottom: 12px; }
.ea-intro-roles { margin-bottom: 16px; }
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .ea-intro { top: calc(var(--ea-last-top) + 30 * var(--ea-u)); width: calc(268 * var(--ea-u)); }
  .ea-intro-roles { margin-bottom: calc(16 * var(--ea-u)); }
  .ea-intro-title { font-size: max(12px, 12.5 * var(--ea-u)); }
  .ea-intro-about p { font-size: max(14.5px, 15.2 * var(--ea-u)); line-height: 1.5; margin-bottom: calc(10 * var(--ea-u)); }
}


/* ---------- Bagian atas lebih rapat ---------- */
.ea-stage { padding-block: 0 40px; }
@media (max-width: 639px) {
  .ea-nav { padding-block: 6px 0; row-gap: 0; }
  .ea-theme { width: 36px; height: 36px; }
  .ea-nav-cta .ea-cta { height: 36px; --ea-cta-mark: 28px; }
  .ea-nav-link { min-height: 34px; }
  .ea-canvas { row-gap: 22px; }
}


/* ---------- Kartu foto melayang di kanan atas (letak dan ukuran seperti kartu buku sebelumnya) ---------- */
.ea-wall { position: relative; container-type: size; aspect-ratio: 324 / 207; border-radius: 10px; background: var(--ea-paper); overflow: hidden; }
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .ea-wall { position: absolute; z-index: 1; top: var(--ea-top); right: 0; width: calc(344 * var(--ea-u)); height: calc(200 * var(--ea-u)); aspect-ratio: auto; border-radius: calc(12 * var(--ea-u)); }
}
.ea-fl { position: absolute; display: block; animation: ea-float 9s ease-in-out infinite alternate; }
.ea-fl img { position: absolute; left: 50%; top: 50%; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 3cqmin; opacity: 0; translate: -50% calc(-50% + 4cqmin); scale: 1.05; filter: blur(5px) drop-shadow(0 3cqmin 5cqmin rgb(0 0 0 / 0.3)); transition: opacity 1.2s ease, translate 1.6s var(--ea-ease), scale 1.6s var(--ea-ease), filter 1.2s ease; }
.ea-fl img.on { opacity: 1; translate: -50% -50%; scale: 1; filter: blur(0) drop-shadow(0 3cqmin 5cqmin rgb(0 0 0 / 0.3)); }
.ea-fl img.out { opacity: 0; translate: -50% calc(-50% - 4cqmin); scale: 0.95; filter: blur(4px) drop-shadow(0 3cqmin 5cqmin rgb(0 0 0 / 0.2)); }
.ea-fl.a { left: 6cqw; top: 8cqh; width: 60cqw; height: 80cqh; animation-duration: 9s; }
.ea-fl.b { right: 5cqw; bottom: 8cqh; width: 29cqw; height: 46cqh; animation-duration: 7s; animation-delay: -3s; z-index: 1; }
.ea-fl.c { display: none; }
@keyframes ea-float { from { transform: translate(0, -1.5cqh) rotate(-0.8deg); } to { transform: translate(1cqw, 1.8cqh) rotate(0.8deg); } }
@media (prefers-reduced-motion: reduce) { .ea-fl { animation: none; } .ea-fl img { transition: none; } }

/* Beranda pas satu layar tanpa rongga: tinggi mengikuti isi bila layar tinggi, dan tidak melebihi layar bila layar pendek */
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .ea-hero { min-height: 0; height: min(100svh, calc(min(100vw - 2 * var(--ea-gutter), 1440px) * 830 / 1280 + var(--ea-nav-h) + 40px)); }
}

/* Lampu sorot: topeng hanya dipasang saat lingkaran benar-benar terbuka (radius nol membuat sebagian browser menampilkan separuh transparan) */
.ea-layer-base { mask-image: none !important; -webkit-mask-image: none !important; }
.ea-spot-live .ea-layer-base { mask-image: var(--ea-spot) !important; -webkit-mask-image: var(--ea-spot) !important; }
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) { .ea-spot-on.ea-spot-live .ea-layer-ink { display: block !important; } .ea-spot-on:not(.ea-spot-live) .ea-layer-ink { display: none !important; } }


/* ---------- Bilah menu: warna sedikit berbeda dan garis batas ---------- */
.ea-topbar { position: relative; z-index: 5; background: color-mix(in srgb, var(--ea-page) 93%, var(--ea-ink)); border-bottom: 1px solid color-mix(in srgb, var(--ea-ink) 13%, transparent); box-shadow: 0 10px 26px -20px color-mix(in srgb, var(--ea-ink) 55%, transparent); }
.ea-topbar .ea-nav { padding-block: 0; }

/* ---------- Satu foto di kartu, berganti seperti galeri di bawah (memudar, buram, zoom halus) ---------- */
.ea-fl.a { left: 4cqw; top: 6cqh; width: 92cqw; height: 88cqh; animation-duration: 10s; }
.ea-fl img { border-radius: 2.4cqmin; transform: none; translate: -50% -50%; scale: 1.07; filter: blur(10px) drop-shadow(0 3cqmin 5cqmin rgb(0 0 0 / 0.28)); transition: opacity 1.1s ease, filter 1.1s ease, scale 1.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ea-fl img.on { opacity: 1; translate: -50% -50%; scale: 1; filter: blur(0) drop-shadow(0 3cqmin 5cqmin rgb(0 0 0 / 0.28)); }
.ea-fl img.out { opacity: 0; translate: -50% -50%; scale: 1.02; filter: blur(8px) drop-shadow(0 3cqmin 5cqmin rgb(0 0 0 / 0.2)); }

/* ---------- Bidang (IoT / Web / Mobile): sedikit disorot, tidak mencolok ---------- */
.ea-intro-roles { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5em 0.7em; padding: 7px 14px; border: 1px solid color-mix(in srgb, var(--ea-accent) 28%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--ea-accent) 9%, transparent); color: var(--ea-accent); font-weight: 600; }
.ea-intro-roles i { opacity: 0.55; }

/* ---------- Teks Tentang saya sedikit naik supaya ikon sosial tidak mepet garis bawah ---------- */
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .ea-intro { top: calc(var(--ea-last-top) + 16 * var(--ea-u)); }
  .ea-intro-roles { margin-bottom: calc(12 * var(--ea-u)); }
  .ea-intro-title { margin-bottom: 6px; }
  .ea-intro-about p { font-size: max(14px, 14.6 * var(--ea-u)); margin-bottom: calc(7 * var(--ea-u)); }
  .ea-socials { margin-top: calc(12 * var(--ea-u)); }
}
.ea-stage { padding-bottom: 28px; }
@media (max-width: 639px) {
  .ea-topbar .ea-nav { padding-block: 6px 8px; }
  .ea-stage { padding-top: 14px; }
}


/* Kartu foto tanpa latar: foto melayang langsung di halaman */
.ea-wall { background: transparent; overflow: visible; border-radius: 0; }
.ea-fl.a { left: 0; top: 0; width: 100%; height: 100%; }

/* Bidang: teks biasa, tegas tapi tenang (tanpa kotak) */
.ea-intro-roles { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45em 0.7em; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ea-ink); font-weight: 600; letter-spacing: 0.18em; }
.ea-intro-roles i { color: var(--ea-accent); opacity: 1; }
.ea-intro-about p { font-size: 16.5px; }
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .ea-intro-about p { font-size: max(15px, 16 * var(--ea-u)); line-height: 1.5; }
  .ea-intro { width: calc(262 * var(--ea-u)); }
}


/* ---------- Penyesuaian: bayangan foto, surat, tautan sosial, menu ---------- */
/* bayangan foto tidak boleh terpotong oleh penyingkapan kartu */
.ea-go .ea-wall[data-in="frame"], .ea-go [data-in="frame"].ea-wall { clip-path: inset(-30% -20% -60% -20%); }
.ea-pre .ea-wall[data-in="frame"] { clip-path: inset(0% 0% 100% 0%); }
.ea-fl.a { top: 2%; height: 92%; }

/* menu: tanpa garis, link lebih renggang */
.ea-topbar { border-bottom: 0; box-shadow: none; }
@media (min-width: 640px) {
  .ea-nav { --ea-nav-gap: clamp(32px, 5.2vw, 104px); }
}

@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  /* isi surat sedikit turun dari tepi atas */
  .ea-letter-greeting { margin-top: calc(40 * var(--ea-u)); }
  .ea-letter-field { margin-top: calc(8 * var(--ea-u)); }
  /* ikon sosial dikunci di satu posisi tetap, tidak ikut panjang teks */
  .ea-intro { bottom: calc(110 * var(--ea-u)); }
  .ea-intro .ea-socials { position: absolute !important; left: 0; bottom: 0; margin-top: 0; }
}
@media (max-width: 1023px), (max-aspect-ratio: 1249/1000) {
  .ea-letter-greeting { margin-top: 34px; }
}

/* Bilah menu polos: tanpa pembeda warna dan tanpa garis */
.ea-topbar { background: transparent; border: 0; box-shadow: none; }

/* ---------- Kartu surat: tepat di tengah rongga (antara nama, potret, tepi kanan, dan dasar beranda) ---------- */
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .ea-pad-inner { height: 100%; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding-top: 0; padding-bottom: 0; }
  .ea-letter-sheet, .ea-letter-envelope-view { width: min(100%, calc(400 * var(--ea-u))); min-height: calc(270 * var(--ea-u)); flex: 0 0 auto; }
  .ea-letter-envelope-view { justify-content: center; }
}
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  /* tengah mendatar: antara tepi jas potret dan tepi kanan */
  .ea-pad-inner { padding-left: max(40 * var(--ea-u), var(--ea-portrait-left) + var(--ea-portrait-h) * var(--ea-par) - 620 * var(--ea-u)); padding-right: 0; }
}


/* ---------- Header yang muncul saat menggulir: sama dengan menu beranda (menu di tengah, tema dan tombol di kanan) ---------- */
.top { --ea-ink: var(--fg); --ea-accent: var(--ac); --ea-page: var(--bg); --ea-ease: cubic-bezier(0.16, 1, 0.3, 1); --ea-cta-mark: 34px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 60px; padding: 0 max(16px, calc((100% - 1440px) / 2 + 40px)); gap: 16px;
  background: color-mix(in srgb, var(--bg) 84%, transparent); border-bottom: 0; box-shadow: none; }
.top-links { display: flex; align-items: center; gap: clamp(24px, 4.4vw, 84px); margin: 0; grid-column: 2; }
.top .top-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border-radius: 0; color: var(--ea-ink); font: 500 clamp(13px, 1vw, 15px) var(--ui); letter-spacing: 0.06em; text-transform: uppercase; background: none; }
.top .top-links a:hover { color: var(--ea-accent); }
.top .top-links a.on { color: var(--ea-accent); }
.top-right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 10px; }
.top #theme-toggle { width: 40px; height: 40px; min-width: 40px; border-radius: 50%; background: transparent; border: 1px solid color-mix(in srgb, var(--ea-ink) 35%, transparent); color: var(--ea-ink); }
.top #theme-toggle:hover { border-color: var(--ea-ink); color: var(--ea-ink); }
@media (max-width: 760px) {
  .top { grid-template-columns: 1fr; padding: 0 16px; padding-top: env(safe-area-inset-top, 0px); min-height: 54px; }
  .top .top-links { display: none; }
  .top-right { grid-column: 1; }
  .top .ea-cta { gap: 0; padding: 4px; height: 38px; }
  .top .ea-cta .ea-cta-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}


/* ---------- Menu beranda: lima tautan satu kelompok, tepat di tengah (sama dengan header gulir) ---------- */
@media (min-width: 640px) {
  .ea-nav { display: flex; justify-content: center; align-items: center; position: relative; --ea-nav-gap: clamp(24px, 4.4vw, 84px); }
  .ea-nav-left { margin: 0; gap: var(--ea-nav-gap); justify-self: auto; }
  .ea-nav-cta { position: absolute; right: 0; top: 50%; translate: 0 -50%; }
  .ea-nav-link { font-size: clamp(13px, 1vw, 15px); letter-spacing: 0.06em; }
}
@media (max-width: 639px) {
  .ea-nav { grid-template-columns: repeat(5, auto); }
}
.top .top-links { gap: clamp(24px, 4.4vw, 84px); margin: 0; justify-content: center; }

/* Pratinjau admin: tanpa gerakan masuk supaya perubahan langsung terlihat */
.ea-instant [data-in], .ea-instant .ea-letter-mask > span, .ea-instant .ea-book-slot { transition: none !important; }


/* ---------- Ponsel dan tablet (Android): nama, potret di tengah, lalu tulisan, foto, dan surat ---------- */
body.ea-on .top { transition: transform 0.35s var(--ea-ease), visibility 0s linear 0.35s; }
body.ea-on:not(.ea-past) .top { visibility: hidden; }
body.ea-on.ea-past .top { transition: transform 0.35s var(--ea-ease), visibility 0s; }

@media (max-width: 1023px), (max-aspect-ratio: 1249/1000) {
  .ea-figure { display: flex; flex-direction: column; border-bottom: 2px solid var(--ea-ink); }
  .ea-figure::after { display: none; }
  .ea-portrait { position: relative; top: auto; left: auto; width: min(78cqw, 46svh); height: auto; aspect-ratio: 4 / 5; margin: -11cqw auto 0; }
  .ea-intro-roles { font-size: 12px; }
  .ea-pad-inner { min-height: 330px; justify-content: center; }
  .ea-letter-envelope-view { flex: 0 0 auto; }
}
@media (max-width: 639px) {
  .ea-canvas { grid-template-areas: 'figure' 'intro' 'book' 'pad'; row-gap: 28px; }
}
/* Menu bawah sudah memuat tautan bagian, jadi bilah atas cukup tombol tema dan kontak */
@media (max-width: 760px) {
  .ea-topbar .ea-nav { display: flex; justify-content: flex-end; align-items: center; height: auto; padding-block: 10px 2px; padding-top: max(10px, env(safe-area-inset-top, 0px)); }
  .ea-nav-left, .ea-nav-right { display: none; }
  .ea-nav .ea-nav-cta { position: static; translate: none; }
  .ea-theme { width: 44px; height: 44px; }
  .ea-nav-cta .ea-cta { height: 44px; --ea-cta-mark: 34px; }
  .ea-hero { padding-bottom: 64px; }
}
/* Ponsel dimiringkan: nama di kiri, potret di kanan, pas satu layar */
@media (max-width: 1023px) and (orientation: landscape) and (max-height: 560px) {
  .ea-figure { flex-direction: row; align-items: flex-end; gap: 4cqw; }
  .ea-figure .ea-name { flex: 0 0 56cqw; align-self: center; }
  .ea-figure .ea-name-first { font-size: calc(56cqw / var(--ea-n1)); }
  .ea-figure .ea-name-last { font-size: calc(56cqw / var(--ea-n2)); }
  .ea-portrait { width: auto; height: calc(100svh - 88px); margin: 0 auto; }
}


/* ---------- Ponsel dan tablet: potret, foto kegiatan, dan surat jadi satu susunan ---------- */
@media (max-width: 1023px), (max-aspect-ratio: 1249/1000) {
  .ea-canvas { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'figure' 'pad' 'intro'; row-gap: 0; }
  .ea-portrait { width: min(68cqw, 46svh); margin: -11cqw auto 0 -4cqw; }
  .ea-canvas > .ea-book { grid-area: figure; position: relative; z-index: 2; align-self: end; justify-self: end; width: min(43%, 34svh); margin: 0 0 13%; }
  .ea-canvas > .ea-book.ea-wall { aspect-ratio: 3 / 4; }
  .ea-pad { z-index: 3; justify-self: center; width: min(100%, 520px); margin-top: -30px; }
  .ea-pad-inner { min-height: 272px; justify-content: flex-start; }
  .ea-letter-sheet { min-height: 256px; }
  .ea-letter-envelope-view { min-height: 256px; justify-content: center; }
  .ea-intro { margin-top: 28px; }
}
@media (max-width: 1023px) and (orientation: landscape) and (max-height: 560px) {
  .ea-canvas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'figure figure' 'book pad' 'intro intro'; column-gap: 24px; }
  .ea-portrait { width: auto; margin: 0 auto; }
  .ea-canvas > .ea-book { grid-area: book; align-self: center; justify-self: center; width: min(100%, 220px); margin: 24px 0 0; }
  .ea-pad { margin-top: 24px; }
}
@media (max-width: 1023px), (max-aspect-ratio: 1249/1000) {
  /* tulisan "Disegel" turun melewati garis potret, dan bayangan surat tidak terpotong */
  .ea-letter-envelope-view { padding-top: 40px; }
  .ea-go [data-in="pad"] { clip-path: inset(-10% -10% -30% -10%); }
}
