/* ============================================================
   Meg Joong — Personal Website
   V7 Wireframe A · Palette A (Warm Editorial)

   Brand colors:
   · Warm Linen    #F6F3EC   paper surface
   · Chamomile     #F6E4A6   contact emphasis panel
   · Slate Mist    #A3B4BE   (reserved)
   · Antique Olive #7A6E47   metadata ink, marquee surface
   · Cacao         #5C4033   body text
   · Oxblood       #5D1D16   accent moments
   ============================================================ */

:root {
  --canvas:    #ECEAE0;
  --paper:     #F6F3EC;
  --paper-2:   #F6E4A6;
  --ink:       #5C4033;
  --ink-2:     rgba(92, 64, 51, 0.74);
  --ink-3:     #7A6E47;
  --line:      rgba(92, 64, 51, 0.16);
  --line-2:    rgba(92, 64, 51, 0.30);
  --fill:      #ECE3CC;
  --fill-2:    #DCCFA8;
  --fill-dark: #5C4033;
  --accent:    #5D1D16;

  --sans: "Geist", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Code Saver", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-snap-type: y mandatory; }

body {
  background: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }


/* ── Site wrapper ── */

.site {
  width: 100%;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}


/* ── Typography ── */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 32px;
}

.meta {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}

.prose {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
  max-width: 44ch;
  text-wrap: pretty;
  margin: 24px 0 0;
}

.prose em {
  color: var(--accent);
  font-style: italic;
}

.prose--body {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 16px 0 0;
}


/* ── Navigation ── */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px max(32px, 50% - 448px);
}

.nav--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  color: var(--paper);
}

.nav__logo {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: 11px;
  text-transform: uppercase;
  order: 1;
}

.nav__menu {
  display: flex;
  gap: 34px;
  font-size: 13px;
  font-weight: 500;
  order: 0;
}

.nav__menu a {
  transition: opacity 200ms var(--ease);
}

.nav__menu a:hover {
  opacity: 0.6;
}


/* ── Hero ── */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  scroll-snap-align: start;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0) 32%,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.hero__blurb {
  position: absolute;
  left: max(32px, 50% - 448px);
  bottom: 48px;
  max-width: 520px;
  z-index: 2;
}

.hero__statement {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 38px;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin: 0 0 14px 0;
  text-wrap: balance;
}

.hero__statement em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero__lede {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: #E8DEC6;
  max-width: 580px;
  margin: 0;
}


/* ── Image placeholders ── */

.ph {
  position: relative;
  background: var(--fill);
  border: 1px solid var(--line);
  overflow: hidden;
}

.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top right, transparent calc(50% - 0.5px), rgba(26,26,26,0.10) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to top left,  transparent calc(50% - 0.5px), rgba(26,26,26,0.10) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

.ph__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--paper);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent);
  padding: 4px 8px;
  border: 1px solid var(--accent);
  z-index: 2;
}

.ph__tag--r { left: auto; right: 14px; }
.ph__tag--b { top: auto; bottom: 14px; }
.ph__tag--br { top: auto; bottom: 14px; left: auto; right: 14px; }


/* ── Ken Burns drift ── */

@keyframes kb-drift {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  50%  { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
  100% { transform: scale(1.04) translate3d(0, 0, 0); }
}

.ph--kb::before {
  animation: kb-drift 38s var(--ease) infinite;
  transform-origin: center;
}


/* ── Marquee ── */

.marquee-group {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
}

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(246, 243, 236, 0.18);
  border-bottom: 1px solid rgba(246, 243, 236, 0.18);
  background: #7A6E47;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F6F3EC;
  white-space: nowrap;
  font-weight: 400;
}

.marquee__item::after {
  content: "·";
  display: inline-block;
  margin-left: 14px;
  color: rgba(246, 243, 236, 0.55);
}

.marquee__prefix {
  color: rgba(246, 243, 236, 0.55);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes marquee-scroll-reverse {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.marquee--reverse .marquee__track {
  animation-name: marquee-scroll-reverse;
}

.marquee + .marquee {
  border-top: none;
  margin-top: 4px;
}


/* ── Sections ── */

.section {
  padding: 56px max(32px, 50% - 448px);
  border-top: 1px solid var(--line);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
}

.section--tow {
  padding-bottom: 32px;
}

.section--caps {
  padding-top: 24px;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section__header .eyebrow {
  margin: 0;
}

.section__title {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 18ch;
}

.section__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.section__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}


/* ── Tag grid (capabilities) ── */

.tag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tag-grid > div {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  transition: background 300ms var(--ease);
  cursor: default;
}

.tag-grid > div:hover {
  background: var(--paper-2);
}

.tag-grid .meta {
  display: block;
  margin-bottom: 6px;
}

.tg-title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}


/* ── About ── */

.about {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  align-items: start;
}

.about__meta {
  padding-top: 8px;
}

.about__text p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 50ch;
}

.about__text p:last-child {
  color: var(--ink-2);
}


/* ── Past work entries ── */

.entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  align-items: stretch;
  min-height: 100vh;
  scroll-snap-align: start;
}

.entry__ph {
  height: 100%;
  border: none;
  border-right: 1px solid var(--line);
  transition: transform 600ms var(--ease), filter 600ms var(--ease);
}

.entry:hover .entry__ph {
  transform: scale(1.02);
  filter: brightness(0.96);
}

.entry__body {
  align-self: center;
  padding: 0 clamp(32px, 5vw, 80px);
}

.entry__year {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.entry__title {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 14px 0 6px;
}

.entry__title em {
  font-style: italic;
  color: var(--accent);
}

.entry__role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.entry__desc {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 18px 0;
  max-width: 38ch;
}

.entry__link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 300ms var(--ease);
}

.entry__link::after {
  content: "→";
  display: inline-block;
  color: var(--accent);
  transition: transform 400ms var(--ease);
}

.entry:hover .entry__link::after {
  transform: translateX(8px);
}

.entry--reverse .entry__ph {
  order: 2;
  border-right: none;
  border-left: 1px solid var(--line);
}

.entry--reverse .entry__body {
  order: 1;
}


/* ── Contact ── */

.contact-group {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.contact {
  padding: 64px max(32px, 50% - 448px) 48px;
  border-top: 2px solid var(--accent);
  background: var(--paper-2);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact__hi {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 22px;
}

.contact__hi em {
  font-style: italic;
  color: var(--accent);
}

.contact__email {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  display: inline-block;
  transition: transform 400ms var(--ease), letter-spacing 600ms var(--ease);
}

.contact__email:hover {
  letter-spacing: 0.005em;
  transform: translateY(-2px);
}

.contact__row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
}

.contact__row .meta {
  display: block;
  margin-bottom: 6px;
}

.contact__detail {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  margin: 0;
  line-height: 1.65;
}


/* ── Status dot ── */

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse-dot 2.4s var(--ease) infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(93, 29, 22, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(93, 29, 22, 0); }
}


/* ── Footer ── */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px max(32px, 50% - 448px);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}


/* ── Responsive ── */

@media (max-width: 740px) {
  .hero { height: 100vh; }

  .entry {
    grid-template-columns: 1fr;
  }

  .entry__ph {
    height: 260px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .entry--reverse .entry__ph {
    order: 0;
    border-left: none;
    border-bottom: 1px solid var(--line);
  }

  .entry--reverse .entry__body {
    order: 0;
  }

  .entry__body {
    padding: 32px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section__title { font-size: 34px; }
  .hero__statement { font-size: 30px; }
  .contact__hi { font-size: 40px; }
  .prose { font-size: 22px; }
  .contact__email { font-size: 20px; }
}
