*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
body {
  font-family: "Crimson Text", Georgia, serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: #faf9f6;
}

html {
  overscroll-behavior: none;
}

html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}
#root,
#__next {
  isolation: isolate;
}

:root {
  --green: #556b2f;
  --pink: #d68a9c;
  --white: #fcfcfc;
  --black: #1d1f1a;
  --pink-rgb: 214, 138, 156;
  --black-rgb: 29, 31, 26;
  --green-rgb: 85, 107, 47;
  --page-pad: clamp(1rem, calc(0.824rem + 0.7512vw), 1.5rem);
  --nav-top-offset: -0.25rem;
  --nav-font-size: clamp(16px, calc(12.7px + 0.884vw), 24px);
  --nav-center-y: calc(
    var(--page-pad) + var(--nav-top-offset) + 0.5 * var(--nav-font-size)
  );
  --aidenseo-baseline-y: calc(100svh - var(--brand-hero-bottom-nudge));
  --hero-top-offset: 0px; /* subtract header height so .brand-logo sits at visual bottom */
  --margin-xxl: 1.375rem; /* +6px */
  --margin-xl: 1.25rem; /* +4px */
  --margin-l: 1.125rem; /* +2px */
  --margin-m: 1rem; /* base */
  --margin-s: 0.875rem; /* -2px */
  --margin-xs: 0.75rem; /* -4px */
  --margin-xxs: 0.625rem; /* -6px */
  --margin-0: 0;
  /* Nudge amount for main links at >=1000px (adjust to taste) */
  --nav-main-links-nudge-1000: -100px;
  --space-1: 1rem;
  --space-2: 2rem;
  --space-4: 4rem;
  --space-8: 8rem;
  --space-16: 16rem;
  --space-32: 32rem;
  --space-64: 64rem;
  --space-128: 128rem;
  --space-256: 256rem;
  /* Vertical nudge for brand-hero logos from the bottom */
  --brand-hero-bottom-nudge: 2.25rem;
  --main-line-margin-top: 0;
  --main-line-margin-bottom: 0;
  --brand-copy-margin-bottom: 0;
  --dna-optical-tighten: 0.12em;
}

/* ── DNA Transcription Hero ── */
.dna-hero {
  position: relative;
  width: calc(100% + 2 * var(--page-pad));
  margin-left: calc(-1 * var(--page-pad));
  margin-right: calc(-1 * var(--page-pad));
  flex-shrink: 0;
  height: clamp(140px, 22vh, 260px);
  z-index: 6;
  top: clamp(-8rem, calc(-1.9155rem - 6.7606vw), -3.5rem);
}

.dna-canvas-wrap {
  position: absolute;
  inset: 0;
  overflow: visible;
  transform: translateY(clamp(7.125rem, calc(4.875rem + 6vw), 13.125rem));
}

.dna-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

.dna-text-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0rem;
  transform: translateY(2.25rem);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  z-index: 2;
}

.dna-root {
  font-family: "Crimson Text", Georgia, serif;
  font-size: clamp(20px, calc(12.958px + 1.87793vw), 40px);
  font-weight: 400;
  line-height: 1;
  margin: 0;
  color: var(--black);
  text-shadow:
    1px 2px 2px rgba(var(--black-rgb), 0.06),
    2px 4px 4px rgba(var(--black-rgb), 0.1);
  user-select: none;
  -webkit-user-select: none;
}

.dna-phrase {
  font-family: "Crimson Text", Georgia, serif;
  font-size: clamp(20px, calc(12.958px + 1.87793vw), 40px);
  font-weight: 400;
  line-height: 1;
  margin: 0;
  transform: translateY(calc(-1 * var(--dna-optical-tighten)));
  color: var(--black);
  white-space: pre-wrap;
  transition: opacity 0.6s ease;
  text-shadow:
    1px 2px 2px rgba(var(--black-rgb), 0.06),
    2px 4px 4px rgba(var(--black-rgb), 0.1);
  user-select: none;
  -webkit-user-select: none;
}

.dna-phrase:empty::before {
  content: "\00a0";
}

.dna-letter-in {
  display: inline;
  animation: dna-letter-pop 0.3s ease-out both;
}

@keyframes dna-letter-pop {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.brand-copy {
  position: relative;
  top: clamp(-8rem, calc(-1.9155rem - 6.7606vw), -3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin-bottom: var(--brand-copy-margin-bottom, 0);
}

.main-line {
  position: relative;
  font-family: "Crimson Text", Georgia, serif;
  font-size: clamp(20px, calc(12.958px + 1.87793vw), 40px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--black);
  z-index: 6;
  word-spacing: 0.02em;
  letter-spacing: 0em;
  max-width: 90vw;
  margin-top: var(--main-line-margin-top, 0);
  margin-bottom: var(--main-line-margin-bottom, 0);
  margin-inline: auto;
  text-shadow:
    1px 2px 2px rgba(var(--black-rgb), 0.06),
    2px 4px 4px rgba(var(--black-rgb), 0.1);
}

.uhi {
  position: absolute;
  bottom: clamp(6rem, calc(2.831rem + 13.521vw), 15rem);
  right: clamp(3.5rem, calc(-4.411rem + 33.756vw), 26rem);
  font-family: "Crimson Text", Georgia, serif;
  font-size: clamp(16px, calc(14.59px + 0.3756vw), 20px);
  font-weight: 600;
  color: var(--pink);
  font-style: italic;
  text-decoration: none;
  opacity: 0.6;
  text-shadow: none;
  transition: opacity 150ms ease;
  user-select: none;
  -webkit-user-select: none;
  z-index: 6;
}

.uhi:hover,
.uhi:focus-visible {
  opacity: 1;
  text-shadow:
    /* Layer 1: Tight definition (16-20px text) */
    0px 0.5px 1px rgba(var(--pink-rgb), 0.22),
    /* Layer 2: Soft bloom */ 0px 1.5px 3px rgba(var(--pink-rgb), 0.14),
    /* Layer 3: Ambient grounding */ 0px 3px 6px rgba(var(--pink-rgb), 0.1);
}

/* Brand Hero: layer EN (right) over KR (left) on same line */
.brand-hero {
  position: relative;
  min-height: calc(100svh - var(--hero-top-offset));
  isolation: isolate;

  display: flex; /* make it a flex container */
  align-items: center; /* vertical center */
  justify-content: center; /* horizontal center */
  text-align: center; /* center text inside the flex child */
}

.brand-hero > .brand-logo,
.brand-hero > .brand-logo-kr {
  position: absolute;
  /* body/page padding provides the 1rem gutter; add extra offset via var */
  bottom: var(--brand-hero-bottom-nudge, 0);
  will-change: transform;
}

.brand-hero > .brand-logo {
  right: 0;
  z-index: 2;
  mix-blend-mode: normal;
}
.brand-hero > .brand-logo-kr {
  left: 0;
  z-index: 1;
  bottom: clamp(
    calc(var(--brand-hero-bottom-nudge, 0) + 1.75rem),
    calc(var(--brand-hero-bottom-nudge, 0) + 1.4815vw - 0.0833rem),
    calc(var(--brand-hero-bottom-nudge, 0) + 1.25rem)
  );
}

.big-logo {
  font-family: "Crimson Text", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  margin: 0;
  text-align: right;
  white-space: nowrap;
  font-size: clamp(76px, calc(12.62px + 0.16901 * 100vw), 256px);
  color: var(--green);
  opacity: 0.95;
  line-height: 0.8;
  text-shadow:
    /* Layer 1: Tight definition (The Ink Edge) */
    0px 1px 2px rgba(var(--green-rgb), 0.2),
    /* Layer 2: Soft Bloom (The Light passing through) */ 0px 4px 8px
      rgba(var(--green-rgb), 0.15),
    /* Layer 3: Ambient Grounding (Subtle depth) */ 0px 8px 16px
      rgba(var(--green-rgb), 0.1);
}

.brand-logo-kr {
  /* base styles when used outside .brand-hero */
  padding: 0;
  background: transparent;
  transform-origin: bottom left; /* anchor scaling from corner */
  user-select: none;
  -webkit-user-select: none;
}

.big-logo-kr {
  font-family: "Noto Serif KR", "Crimson Text", Georgia, serif;
  font-weight: 400; /* regular instead of bold */
  letter-spacing: -0.02em;
  margin: 0;
  text-align: left;
  white-space: nowrap;
  font-size: clamp(76px, calc(19.66px + 0.15023 * 100vw), 236px);
  line-height: 0.8;

  color: var(--pink);
  opacity: 0.5;
  filter: blur(2px);
  mix-blend-mode: multiply;
}

/* Navigation Styles */
.site-header {
  background-color: transparent;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  background-color: transparent;
  color: var(--black);
  font-family: "Crimson Text", Georgia, serif;
  font-size: var(--nav-font-size);
  line-height: 1;
  pointer-events: none;
}

.site-nav a,
.site-nav button {
  pointer-events: auto;
}

.nav-inner {
  display: grid;
  grid-template-columns: clamp(0px, 50vw, 720px) minmax(0, 1fr) max-content;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  column-gap: 0;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  white-space: nowrap;
  color: rgba(var(--black-rgb), 0.3);
  transition: color 150ms ease;
  justify-self: start;
  width: max-content;
}

.brand:hover,
.brand:focus-visible {
  color: var(--green);
  text-shadow:
    /* Layer 1: Tight definition (small text calibration) */
    0px 0.5px 1px rgba(var(--green-rgb), 0.18),
    /* Layer 2: Soft bloom */ 0px 2px 4px rgba(var(--green-rgb), 0.12),
    /* Layer 3: Ambient grounding */ 0px 4px 8px rgba(var(--green-rgb), 0.08);
}

.main-links {
  justify-self: start;
  display: flex;
  align-items: center;
  column-gap: 50px;
}

.contact-links {
  display: flex;
  align-items: center;
  column-gap: 16px;
  justify-self: end;
}

.nav-link {
  text-decoration: none;
  color: rgba(var(--black-rgb), 0.3);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  white-space: nowrap;
  transition: color 150ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--green);
  text-shadow:
    /* Layer 1: Tight definition (small text calibration) */
    0px 0.5px 1px rgba(var(--black-rgb), 0.18),
    /* Layer 2: Soft bloom */ 0px 2px 4px rgba(var(--gree-rgb), 0.12),
    /* Layer 3: Ambient grounding */ 0px 4px 8px rgba(var(--green-rgb), 0.08);
}

@media (max-width: 1000px) {
  .main-links {
    transform: translateX(var(--nav-main-links-nudge-1000));
  }
}

@media (max-width: 720px) {
  .site-nav {
    padding: 0;
    font-size: calc(var(--nav-font-size) - 2px);
  }

  .main-links {
    column-gap: 24px;
  }

  .contact-links {
    column-gap: 12px;
  }
}

@media (max-width: 550px) {
  .brand-hero > .brand-logo-kr {
    bottom: var(--brand-hero-bottom-nudge, 0);
  }
}

@media (max-width: 450px) {
  .main-links {
    column-gap: 16px;
    transform: none;
  }

  .contact-links {
    column-gap: 12px;
  }

  .nav-inner {
    grid-template-columns: max-content max-content max-content;
    justify-content: space-between;
  }
}

/* Universal 1rem page padding and fixed nav offsets */
body {
  padding: var(--page-pad);
}
.site-nav {
  top: calc(var(--page-pad) + var(--nav-top-offset));
  left: var(--page-pad);
  right: var(--page-pad);
}

/* Space-System */
.spacer {
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
}

.spacer.space-1 {
  height: var(--space-1);
}
.spacer.space-2 {
  height: var(--space-2);
}
.spacer.space-4 {
  height: var(--space-4);
}
.spacer.space-8 {
  height: var(--space-8);
}
.spacer.space-16 {
  height: var(--space-16);
}
.spacer.space-32 {
  height: var(--space-32);
}
.spacer.space-64 {
  height: var(--space-64);
}
.spacer.space-128 {
  height: var(--space-128);
}
.spacer.space-256 {
  height: var(--space-256);
}
