@font-face {
  font-family: "Suisse Intl";
  src: url("../fonts/SuisseIntl-Book.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Suisse Intl", system-ui, -apple-system, sans-serif;
  font-size: 24px;
  color: #001122;
  letter-spacing: 1px;
  line-height: 1.6em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  cursor: url('../svg/cursor.svg') 12 12, auto;
}

a {
  color: inherit;
}

/* ── Full-viewport hero ── */

.hero-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 clamp(24px, 5vw, 80px);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: clamp(32px, 5vh, 56px);
  flex-shrink: 0;
}

.hero-brand {
  font-size: clamp(32px, 5vw, 50px);
  letter-spacing: 4px;
  line-height: 1.2em;
  text-decoration: none;
  color: #001122;
}

.hero-brand:hover {
  opacity: 0.65;
}

.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 0 24px;
}

/* ── Typewriter tagline ── */

.tagline {
  margin: 0 0 clamp(16px, 2vh, 32px);
  font-size: clamp(18px, 3.5vw, 42px);
  letter-spacing: clamp(1px, 0.3vw, 3px);
  line-height: 1.4em;
  font-weight: 400;
  white-space: nowrap;
  min-height: 1.4em;
}

.tagline .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #001122;
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 0.6s steps(1) infinite;
}

.tagline .cursor.done {
  opacity: 0;
  animation: none;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ── Brain SVG animation ── */

.brain-wrap {
  width: min(680px, 85vw);
}

.brain-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  background: none;
  border: none;
}

.brain-clickable {
  cursor: pointer;
  transition: filter 0.2s;
}

.brain-clickable:hover {
  filter: brightness(1.2) drop-shadow(0 0 6px rgba(0,0,0,0.2));
}

.brain-path {
  transform-origin: center center;
  animation: brain-settle 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: filter, transform;
  opacity: 0;
}

@keyframes brain-settle {
  0% {
    filter: blur(12px) hue-rotate(180deg) saturate(3) brightness(1.5);
    transform: scale(1.15) rotate(-3deg);
    opacity: 0;
  }
  15% {
    filter: blur(8px) hue-rotate(-90deg) saturate(4) brightness(1.3);
    transform: scale(0.92) rotate(2deg);
    opacity: 0.6;
  }
  30% {
    filter: blur(6px) hue-rotate(120deg) saturate(2.5) brightness(1.1);
    transform: scale(1.06) rotate(-1deg);
    opacity: 0.7;
  }
  50% {
    filter: blur(4px) hue-rotate(-45deg) saturate(2) brightness(1.05);
    transform: scale(0.97) rotate(0.5deg);
    opacity: 0.85;
  }
  70% {
    filter: blur(2px) hue-rotate(15deg) saturate(1.3);
    transform: scale(1.01) rotate(-0.2deg);
    opacity: 0.95;
  }
  100% {
    filter: blur(0) hue-rotate(0deg) saturate(1) brightness(1);
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.bp-1  { animation-delay: 0.0s; }
.bp-2  { animation-delay: 0.1s; }
.bp-3  { animation-delay: 0.05s; }
.bp-4  { animation-delay: 0.15s; }
.bp-5  { animation-delay: 0.22s; }
.bp-6  { animation-delay: 0.12s; }
.bp-7  { animation-delay: 0.25s; }
.bp-8  { animation-delay: 0.18s; }
.bp-9  { animation-delay: 0.28s; }
.bp-10 { animation-delay: 0.07s; }
.bp-11 { animation-delay: 0.3s; }
.bp-12 { animation-delay: 0.2s; }
.bp-13 { animation-delay: 0.3s; }
.bp-14 { animation-delay: 0.03s; }
.bp-15 { animation-delay: 0.16s; }

.brain-wrap.settled {
  animation: brain-float 5s ease-in-out infinite;
}

@keyframes brain-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.hero-note {
  margin: clamp(12px, 2vh, 20px) 0 0;
  font-size: 24px;
  letter-spacing: 2.2px;
  line-height: 1.6em;
  color: #001122;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: clamp(12px, 2vh, 24px);
}

/* ── Doodle hover swap ── */

.doodle-link {
  text-decoration: none;
  line-height: 0;
  position: relative;
  display: inline-block;
}

.doodle {
  width: 64px;
  height: auto;
  display: block;
}

.doodle-hover {
  display: none;
}

.doodle-link:hover .doodle-default {
  display: none;
}

.doodle-link:hover .doodle-hover {
  display: block;
}

/* ── LinkedIn icon ── */

.linkedin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1.5px solid #0A66C2;
  border-radius: 50%;
  text-decoration: none;
  flex-shrink: 0;
}

.linkedin-link svg {
  width: 28px;
  height: 28px;
  fill: #0A66C2;
}

/* ── Main content area ── */

.page {
  width: min(1400px, calc(100% - clamp(48px, 6vw, 120px)));
  margin: 0 auto;
  padding-bottom: 48px;
  padding-top: 16px;
}

.page .section,
.page .page-header,
.page .two-col-layout {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.page .section.visible,
.page .page-header.visible,
.page .two-col-layout.visible {
  opacity: 1;
  transform: translateY(0);
}


.section {
  margin-bottom: clamp(32px, 4vh, 48px);
}

.section-title {
  font-size: clamp(30px, 3.5vw, 40px);
  letter-spacing: 2px;
  line-height: 1.3em;
  font-weight: 400;
  margin: 0 0 clamp(12px, 2vh, 20px);
  text-transform: lowercase;
}

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-list a {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: #001122;
}

.card-list a:hover {
  opacity: 0.7;
}

.card-icon {
  flex-shrink: 0;
  display: block;
}

.card-icon--project {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}

.card-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: #f0f0f0;
}

.card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.card-title {
  font-size: 24px;
  letter-spacing: 1px;
  line-height: 1.4em;
}

.card-subtitle {
  font-size: 24px;
  letter-spacing: 1px;
  line-height: 1.4em;
  color: rgba(0, 17, 34, 0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Bio ── */

.bio {
  margin: 0 0 0.5em;
  line-height: 1.5em;
  max-width: 100%;
  font-size: 26px;
}

.bio a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bio a:hover {
  opacity: 0.65;
}

.trash-hover {
  border-bottom: 1px dashed rgba(0, 17, 34, 0.4);
  cursor: default;
}

.bio-line {
  margin: 0;
}

.trash-photos {
  display: none;
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.trash-wrap:hover .trash-photos,
.trash-photos.pinned {
  display: flex;
}

.trash-photos img {
  width: 220px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ── Two-column layout (video | content) ── */

.two-col-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-bottom: clamp(32px, 4vh, 48px);
}

.two-col-left {
  position: sticky;
  top: clamp(24px, 4vh, 48px);
}

.intro-video {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* ── College button ── */

.college-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;
  border: 1.5px solid #001122;
  border-radius: 24px;
  text-decoration: none;
  font-size: 24px;
  letter-spacing: 1.5px;
  transition: background 0.2s, color 0.2s;
}

.college-btn:hover {
  background: #001122;
  color: #fff;
}

/* ── Contact footer ── */

.contact-footer {
  text-align: center;
  padding: 48px 0 0;
}

.contact-footer p {
  margin: 0 0 10px;
  line-height: 1.6em;
  font-size: 28px;
}

.contact-footer a {
  text-decoration: none;
}

.contact-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Responsive ── */

@media (max-width: 754px) {
  .two-col-layout {
    grid-template-columns: 1fr;
  }

  .two-col-left {
    position: static;
  }

  .hero-brand {
    letter-spacing: 2px;
  }

  .tagline {
    letter-spacing: 1px;
    white-space: normal;
    font-size: clamp(18px, 5vw, 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brain-path {
    animation: none;
    filter: none;
    transform: none;
    opacity: 1;
  }

  .brain-wrap.settled {
    animation: none;
  }

  .tagline .char {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .tagline::after {
    animation: none;
    opacity: 0;
  }
}

/* ── Garden page ── */

.garden-page {
  padding-top: 48px;
}

.garden-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 48px;
}

.back-link {
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 1px;
  opacity: 0.6;
}

.back-link:hover {
  opacity: 1;
}

.garden-title {
  font-size: clamp(36px, 5vw, 50px);
  letter-spacing: 4px;
  line-height: 1.2em;
}

.garden-list {
  gap: 36px;
}

.garden-list .card-subtitle {
  font-size: 14px;
  color: rgba(0, 17, 34, 0.45);
  text-decoration: none;
}

/* ── Colors & Shapes pages ── */

.gallery-page {
  padding-top: 48px;
  padding-bottom: 80px;
}

.gallery-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 48px;
}

.gallery-title {
  font-size: clamp(36px, 5vw, 50px);
  letter-spacing: 4px;
  line-height: 1.2em;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.swatch {
  aspect-ratio: 1;
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  font-size: 13px;
  letter-spacing: 1px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.swatch:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.swatch span {
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.shapes-canvas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shape-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.shape-cell:hover {
  transform: scale(1.1) rotate(5deg);
}

.shape-cell svg {
  width: 100%;
  height: 100%;
}
