/* ── Walk easter egg ───────────────────────────────────────────────────────── */
#walk-word {
  cursor: pointer;
}

.walk-letter {
  display: inline-block;
}

@keyframes walk-letter-out {
  0%   { transform: translateX(0)      translateY(0)       rotate(0deg);    opacity: 1;   }
  12%  { transform: translateX(0.35em) translateY(-0.22em) rotate(12deg);   opacity: 1;   }
  25%  { transform: translateX(0.8em)  translateY(0.05em)  rotate(-4deg);   opacity: 1;   }
  37%  { transform: translateX(1.35em) translateY(-0.2em)  rotate(-14deg);  opacity: 1;   }
  50%  { transform: translateX(2em)    translateY(0.05em)  rotate(-2deg);   opacity: 0.8; }
  62%  { transform: translateX(2.8em)  translateY(-0.18em) rotate(10deg);   opacity: 0.5; }
  75%  { transform: translateX(3.8em)  translateY(0.04em)  rotate(-3deg);   opacity: 0.3; }
  100% { transform: translateX(6em)    translateY(0)       rotate(0deg);    opacity: 0;   }
}

@keyframes walk-letter-in {
  0%   { transform: translateX(5em)    translateY(0)       rotate(0deg);    opacity: 0;   }
  25%  { transform: translateX(3.5em)  translateY(-0.18em) rotate(-12deg);  opacity: 0.3; }
  40%  { transform: translateX(2.2em)  translateY(0.04em)  rotate(4deg);    opacity: 0.6; }
  55%  { transform: translateX(1.2em)  translateY(-0.18em) rotate(12deg);   opacity: 0.8; }
  70%  { transform: translateX(0.45em) translateY(0.04em)  rotate(-4deg);   opacity: 0.9; }
  85%  { transform: translateX(0.1em)  translateY(-0.1em)  rotate(5deg);    opacity: 1;   }
  100% { transform: translateX(0)      translateY(0)       rotate(0deg);    opacity: 1;   }
}

.walk-letter.walking-out {
  animation: walk-letter-out 0.75s cubic-bezier(0.4, 0, 0.8, 1) forwards;
  margin-right: -0.03em;
}

.walk-letter.walking-in {
  opacity: 0;
  animation: walk-letter-in 0.65s cubic-bezier(0.2, 0, 0.3, 1) forwards;
  margin-right: -0.03em;
}

.hero {
  overflow-x: hidden; /* prevent walking letters from causing horizontal scroll */
}
/* ─────────────────────────────────────────────────────────────────────────── */

::selection {
  background: rgba(255, 235, 100, 0.4);
}

/* ============================================================
   FONTS
   Place font files in /fonts/ and update these src paths.
   Signifier Light is used for the hero & CTA headings.
   Graphik Regular/Medium is used for all body text & project headings.
============================================================ */

@font-face {
  font-family: 'Signifier Light';
  src: url('../fonts/signifier-light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Signifier Light';
  src: url('../fonts/signifier-light-italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Signifier Medium';
  src: url('../fonts/signifier-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Graphik Regular';
  src: url('../fonts/Graphik-Regular.woff2') format('woff2'),
       url('../fonts/Graphik-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Graphik Medium';
  src: url('../fonts/Graphik-Medium.woff2') format('woff2'),
       url('../fonts/Graphik-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


/* ============================================================
   RESET & BASE
============================================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: #fff;
  color: #000;
  font-family: 'Graphik Regular', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 20px;
  line-height: 30px;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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


/* ============================================================
   LAYOUT UTILITIES
============================================================ */

.container {
  width: 100%;
  max-width: 1590px;
  margin: 0 auto;
  padding-left: 100px;
  padding-right: 100px;
}

/*
  Two-column grid used in project sections and hero body.
  Left col ≈ 38% — right col ≈ 62%.
  This ratio was measured from the live site.
*/
:root {
  --col-left: 38%;
}


/* ============================================================
   LINKS
============================================================ */

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

.link {
  font-family: 'Graphik Regular', sans-serif;
  font-size: 20px;
  line-height: 30px;
  color: #000;
  text-decoration: none;
  border-bottom: 1.5px solid #000;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.link:hover {
  opacity: 0.6;
}

.link--blue {
  border-bottom-color: rgb(82, 132, 193);
}

.link--brown {
  border-bottom-color: rgb(163, 126, 96);
}


/* ============================================================
   HERO
============================================================ */

.hero {
  padding: 50px 0 80px;
}

/* Nameplate — "Dan Tase / Founding Product Designer" */
.nameplate {
  display: flex;
  flex-direction: column;
  margin-left: var(--col-left);
  margin-bottom: 76px;
}

.nameplate__name {
  font-family: 'Graphik Medium', sans-serif;
  font-size: 20px;
  line-height: 26px;
  font-weight: 500;
  color: #000;
}

.nameplate__title {
  font-family: 'Graphik Regular', sans-serif;
  font-size: 20px;
  line-height: 26px;
  color: #000;
}

/* Big serif hero heading */
.hero__heading {
  font-family: 'Signifier Light', Georgia, 'Times New Roman', serif;
  font-weight: 300;
  font-size: clamp(72px, 8vw, 120px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #000;
  margin-bottom: 84px;
  max-width: 80%;
}

/* The "for" word is set in the italic variant */
.hero__heading em {
  font-style: italic;
}

/* Body text — offset to the right column */
.hero__body {
  margin-left: var(--col-left);
}

.hero__body p {
  font-family: 'Graphik Regular', sans-serif;
  font-size: 20px;
  line-height: 30px;
  color: #000;
  margin-bottom: 20px;
}

.hero__body p:last-of-type {
  margin-bottom: 0;
}


/* ============================================================
   PROJECT SECTIONS
============================================================ */

.project {
  padding-top: 120px;
  padding-bottom: 0;
  overflow-x: hidden;
}

/* Two-column grid: [company logo | project content] */
.project__grid {
  display: grid;
  grid-template-columns: var(--col-left) 1fr;
  gap: 0;
  align-items: start;
}

/* Left column: company logo/wordmark */
.project__company {
  padding-right: 60px;
  padding-top: 6px; /* optical alignment with heading cap-height */
}

/* Company logo wrappers */
.company-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #000;
  width: 150px;
  overflow: hidden;
}

.company-logo img {
  max-width: 100%;
  height: auto;
  display: block;
}

.company-logo--gyg {
  width: 85px;
}

/* Wordmark text — sized to feel like a real logo */
.logo-text {
  font-family: 'Graphik Medium', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #000;
}

.logo-text--bold {
  font-family: 'Graphik Medium', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.logo-icon {
  flex-shrink: 0;
  color: #000;
}

/* Right column: heading, body, tags */
.project__content {
  /* no extra padding needed */
}

/* Project headings — 48px Graphik Regular */
.project__heading {
  font-family: 'Graphik Regular', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.2;
  color: #000;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

.project__content p {
  font-family: 'Graphik Regular', sans-serif;
  font-size: 20px;
  line-height: 30px;
  color: #000;
  margin-bottom: 20px;
}

.project__content p:last-of-type {
  margin-bottom: 32px;
}


/* ============================================================
   TAGS
============================================================ */

.acquisition {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.acquisition__logo {
  height: 28px;
  width: auto;
}

.acquisition__text {
  font-family: 'Graphik Regular', sans-serif;
  font-size: 20px;
  color: rgb(148, 145, 139);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 60px;
}

.tag {
  display: inline-block;
  font-family: 'Graphik Regular', sans-serif;
  font-size: 20px;
  line-height: 1;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 100px;
  padding: 14px 28px;
  white-space: nowrap;
}

/* Milestone tags (IPO, acquisition) are visually the same —
   class exists for potential custom styling */
.tag--milestone {
  /* same style as .tag */
}


/* ============================================================
   CAROUSEL
============================================================ */

/*
  The carousel mirrors .container width/centering so it aligns
  perfectly with the rest of the content.
*/
.carousel {
  position: relative;
  width: 100%;
  overflow: visible;
}

.carousel__track {
  display: flex;
  gap: 16px;
  overflow: visible;
  padding-left: 100px;
  cursor: grab;
  will-change: transform;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel__track:active {
  cursor: grabbing;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

/* Trailing whitespace after last slide — matches content right padding */
.carousel__track::after {
  content: '';
  flex-shrink: 0;
  width: 100px;
}

.carousel__slide {
  flex: 0 0 calc(100% - 60px);
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

/* Images and videos fill the slide, cropped to fit — no stretching */
.carousel__slide img,
.carousel__slide video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

/* Crop videos from the top so the bottom dark line is hidden */
.carousel__slide video {
  object-position: top;
}

/* Placeholder block shown until real images are added */
.img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-color: color-mix(in srgb, var(--ph-color, #ccc) 15%, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.img-placeholder span {
  font-family: 'Graphik Regular', sans-serif;
  font-size: 14px;
  color: color-mix(in srgb, var(--ph-color, #999) 60%, #000);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Prev / Next buttons — hidden, using drag scroll instead */
.carousel__btn {
  display: none;
}

.carousel__btn:hover {
  background: rgba(0, 0, 0, 0.35);
}

.carousel__btn--prev {
  left: 120px;
}

.carousel__btn--next {
  right: 120px;
}

/* Hide prev button when at start */
.carousel[data-at-start="true"] .carousel__btn--prev {
  opacity: 0;
  pointer-events: none;
}

/* Hide next button when at end */
.carousel[data-at-end="true"] .carousel__btn--next {
  opacity: 0;
  pointer-events: none;
}


/* ============================================================
   FOOTER CTA
============================================================ */

.cta {
  padding: 140px 0 120px;
}

.cta__inner {
  display: grid;
  grid-template-columns: var(--col-left) 1fr;
  gap: 0;
  align-items: start;
}

/* Left column: the big serif heading */
.cta__heading {
  font-family: 'Signifier Light', Georgia, 'Times New Roman', serif;
  font-weight: 300;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #000;
  grid-column: 1 / -1; /* full width — override below on desktop */
}

/* Right column: body text and links */
.cta__body {
  /* Inherits grid column 2 on desktop */
}

.cta__body p {
  font-family: 'Graphik Regular', sans-serif;
  font-size: 20px;
  line-height: 30px;
  color: #000;
  margin-bottom: 20px;
}

.cta__body p:last-of-type {
  margin-bottom: 0;
}

/* On desktop: heading spans full width, body is in right column */
@media (min-width: 810px) {
  .cta__inner {
    grid-template-columns: var(--col-left) 1fr;
    row-gap: 60px;
  }

  .cta__heading {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .cta__body {
    grid-column: 2;
    grid-row: 2;
  }
}


/* ============================================================
   RESPONSIVE — TABLET  (810px – 1199px)
============================================================ */

@media (max-width: 1199px) {
  .container {
    padding-left: 60px;
    padding-right: 60px;
  }

  .carousel__track {
    padding-left: 60px;
  }

  .carousel__track::after {
    width: 60px;
  }

  .carousel__btn--prev { left: 68px; }
  .carousel__btn--next { right: 68px; }

  :root {
    --col-left: 32%;
  }

  .hero__heading {
    font-size: clamp(56px, 6.5vw, 80px);
  }

  .project__heading {
    font-size: clamp(26px, 3vw, 38px);
  }
}


/* ============================================================
   RESPONSIVE — MOBILE  (≤ 809px)
============================================================ */

@media (max-width: 809px) {

  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Mobile carousel */
  .carousel__track {
    padding-left: 24px;
  }

  .carousel__track::after {
    width: 24px;
  }

  .carousel__btn {
    display: none;
  }

  :root {
    --col-left: 0%;
  }

  /* Hero */
  .hero {
    padding: 32px 0 0;
  }

  .nameplate {
    margin-left: 0;
    margin-bottom: 32px;
  }

  .hero__heading {
    font-size: clamp(38px, 10vw, 66px);
    margin-bottom: 36px;
    max-width: 100%;
  }

  .hero__body {
    margin-left: 0;
  }

  /* 20px → 16px on mobile */
  body,
  .link,
  .nameplate__name,
  .nameplate__title,
  .hero__body p,
  .project__content p,
  .acquisition__text,
  .tag,
  .cta__body p {
    font-size: 17px;
    line-height: 25px;
  }

  .nameplate__name,
  .nameplate__title {
    line-height: 22px;
  }

  /* Projects */
  .project {
    padding-top: 72px;
  }

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

  .project__company {
    padding-right: 0;
    padding-top: 0;
  }

  .project__heading {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 24px;
  }

  .tags {
    display: none;
  }

  /* CTA */
  .cta {
    padding: 80px 0 80px;
  }

  .cta__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cta__heading {
    font-size: clamp(40px, 10vw, 64px);
    grid-column: 1;
    margin-bottom: 40px;
  }

  .cta__body {
    grid-column: 1;
    grid-row: auto;
  }
}


/* ============================================================
   LARGE DESKTOP  (≥ 1500px)
============================================================ */

@media (min-width: 1500px) {
  .hero__heading {
    font-size: 120px;
  }

  .project__heading {
    font-size: 48px;
  }

  .cta__heading {
    font-size: 96px;
  }
}
