/* Animatable gradient stop properties */
@property --gw1 {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 16%;
}
@property --gw2 {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 31%;
}
@property --gw3 {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 48%;
}

:root {
  --White: white;
  --Black: black;
  --Grey: #949494;
  --Link: #1b79de;
  --accent-1: #6269b6;
  --accent-2: #a42131;
  --accent-3: #c20017;
  --font-display: 'Afacad Flux', system-ui, sans-serif;
  --font-body: 'Crimson Pro', Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--White);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ─────────────────────────────
   DESKTOP
───────────────────────────── */

.page {
  width: 100%;
  min-height: 1740px;
  position: relative;
  background: var(--White, white);
  overflow: hidden;
}

/* Header — top: 0 */
.frame-3 {
  width: 100%;
  padding: 15px 60px 15px;
  left: 0;
  top: 0;
  position: fixed;
  background: var(--White, white);
  outline: 1px solid var(--Grey, #949494);
  justify-content: space-between;
  align-items: flex-start;
  display: inline-flex;
  z-index: 10;
}

.frame-title {
  color: var(--Black, black);
  font-size: 26px;
  font-family: var(--font-display);
  font-weight: 400;
  word-wrap: break-word;
}

.frame-toggle,
.frame-nav {
  justify-content: center;
  align-items: center;
  gap: 25px;
  display: flex;
}

.frame-toggle-item,
.frame-nav-item {
  font-size: 26px;
  font-weight: 400;
  word-wrap: break-word;
}

.frame-toggle-item.active,
.frame-nav-item.active {
  color: var(--Black, black);
  font-family: var(--font-body);
  font-style: italic;
  text-decoration: underline;
}

.frame-toggle-item:not(.active),
.frame-nav-item:not(.active) {
  color: var(--Grey, #949494);
  font-family: var(--font-display);
}

/* Frame 24 — Hero text, top: 120px */
.frame-24 {
  width: 100%;
  height: 200px;
  padding: 20px 60px;
  left: 0;
  top: 120px;
  position: absolute;
  justify-content: flex-start;
  align-items: center;
  gap: 38px;
  display: inline-flex;
}

.hero-title {
  color: var(--Black, black);
  font-size: 128px;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 128px;
  word-wrap: break-word;
}

.hero-subtitle {
  width: 500px;
  color: var(--Grey, #949494);
  font-size: 30px;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 30px;
  word-wrap: break-word;
}

/* Frame 47 — Cards, top: 320px */
.frame-47 {
  width: 100%;
  padding: 20px 60px;
  left: 0;
  top: 320px;
  position: absolute;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  display: inline-flex;
}

.project-card {
  align-self: stretch;
  height: 180px;
  position: relative;
  overflow: hidden;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Full-width white canvas — the right strip comes from this background */
.card-inner {
  width: 100%;
  height: 180px;
  left: 0;
  top: 0;
  position: absolute;
  background: var(--White, white);
}

/* Shrinking photo container */
.card-photo {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  background: var(--White, white);
  transition: width 0.35s ease;
}

.project-card:hover .card-photo {
  width: 95.6%; /* 1262 / 1320 from Figma */
}

.card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 37%;
}

.card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, white var(--gw1), rgba(255, 255, 255, 0.50) var(--gw2), rgba(255, 255, 255, 0) var(--gw3));
  transition: --gw1 0.35s ease, --gw2 0.35s ease, --gw3 0.35s ease;
}

.project-card:hover .card-photo::after {
  --gw1: 24%;
  --gw2: 41%;
  --gw3: 57%;
}

.card-copy {
  width: 339.53px;
  left: 0;
  top: 38.63px;
  position: absolute;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  display: inline-flex;
  z-index: 1;
}

.card-text {
  display: flex;
  flex-direction: column;
}

.card-title {
  align-self: stretch;
  justify-content: flex-end;
  display: flex;
  flex-direction: column;
  color: var(--Black, black);
  font-size: 40.66px;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 40.66px;
  word-wrap: break-word;
}

.card-meta {
  width: 321.23px;
  height: 64.04px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
}

.project-category,
.project-year {
  font-family: var(--font-body);
  font-size: 32.53px;
  font-weight: 400;
  line-height: 32.53px;
  word-wrap: break-word;
}

/* Hidden on desktop */
.card-sep        { display: none; }
.card-arrow      { display: none; }

.card-arrow-desktop {
  display: none;
}

.accent-1 { color: #6269B6; }
.accent-2 { color: #A42131; }
.accent-3 { color: #C20017; }
.accent-4 { color: #00A6AF; }
.accent-5 { color: #949494; }
.accent-6 { color: #FF561A; }
.accent-7 { color: #2969AF; }


/* ─────────────────────────────
   MOBILE  ≤ 768px
───────────────────────────── */

@media (max-width: 768px) {

  .page {
    min-height: auto;
    overflow: visible;
  }

  /* Header */
  .frame-3 {
    position: fixed;
    padding: 15px 30px 15px;
  }

  .frame-title {
    display: none;
  }

  .frame-toggle-item,
  .frame-nav-item {
    font-size: 24px;
  }

  /* Hero */
  .frame-24 {
    position: static;
    height: auto;
    padding: 93px 30px 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .hero-title {
    font-size: 75px;
    line-height: 75px;
  }

  .hero-subtitle {
    width: auto;
    font-size: 24px;
    line-height: 24px;
  }

  /* Cards */
  .frame-47 {
    position: static;
    padding: 0;
    gap: 0;
  }

  .project-card {
    height: auto;
    border-radius: 0;
    overflow: visible;
  }

  .card-inner {
    position: static;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 15px 30px 28px;
    gap: 15px;
  }

  .card-photo {
    position: relative;
    width: 100% !important;
    height: 175px;
    border-radius: 15px;
    overflow: hidden;
    transition: none;
  }

  .card-photo::after {
    display: none;
  }

  .card-copy {
    position: static;
    width: auto;
    top: auto;
    left: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .card-title {
    font-size: 32px;
    line-height: 32px;
  }

  .card-meta {
    flex-direction: row;
    align-items: center;
    gap: 7px;
    width: auto;
    height: auto;
  }

  .project-category,
  .project-year {
    font-size: 20px;
    line-height: 20px;
  }

  .card-sep {
    display: inline;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    line-height: 20px;
  }

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

  .card-arrow-desktop {
    display: none;
  }
}

/* ─────────────────────────────
   SITE FOOTER (shared)
───────────────────────────── */

.site-footer {
  width: 100%;
  box-sizing: border-box;
  padding: 40px 60px;
  border-top: 1px solid var(--Grey, #949494);
  background: var(--White, white);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: auto;
  flex-shrink: 0;
}

.site-footer-copy {
  color: var(--Grey, #949494);
  font-size: 20px;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
}

.site-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.site-footer-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--Grey, #949494);
  font-size: 20px;
  font-family: var(--font-display);
  font-weight: 400;
  transition: opacity 0.15s;
}

.site-footer-link:hover {
  opacity: 0.7;
}

.site-footer-link svg {
  flex-shrink: 0;
}

/* ── ABOUT PAGE ── */

.about-page {
  padding-top: 65px; /* clear fixed header */
  min-height: 0;
}

.about-hero {
  padding: 51px 60px 20px;
}

.about-greeting {
  color: var(--Grey);
  font-size: 40px;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 40px;
  margin: 0;
}

.about-name {
  color: var(--Black);
  font-size: 128px;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 128px;
  margin: 0;
}

.about-photo-strip {
  padding: 15px 0;
  overflow: hidden;
}

.about-photo-strip-inner {
  display: flex;
  gap: 37px;
  width: max-content;
  padding-left: 11px;
  animation: about-scroll 35s linear infinite;
}

.about-photo-strip-inner:hover {
  animation-play-state: paused;
}

@keyframes about-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-1512px); } /* 6 × (215 + 37) */
}

.about-polaroid-wrap {
  width: 215px;
  height: 246px;
  flex-shrink: 0;
}

.about-polaroid {
  width: 100%;
  height: 100%;
  background: white;
  box-shadow: 1px 2px 4px 1px rgba(0, 0, 0, 0.25);
  border-radius: 2px;
  padding: 10px 9px 36px;
  box-sizing: border-box;
}

.about-polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-info {
  padding: 30px 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
}

.about-bio {
  flex: 0 1 676px;
  color: var(--Grey);
  font-size: 32px;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 32px;
  text-align: left;
  margin: 0;
}

.about-contacts {
  flex-shrink: 0;
  width: 402px;
  display: flex;
  flex-direction: column;
}

.about-contact-item {
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  text-decoration: none;
  transition: opacity 0.15s;
}

.about-contact-item:hover {
  opacity: 0.7;
}

.about-contact-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-contact-label {
  font-size: 20px;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 20px;
}

.about-contact-value {
  color: var(--Black);
  font-size: 32px;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 32px;
}

@media (max-width: 768px) {
  .about-hero {
    padding: 20px 30px;
  }

  .about-greeting {
    font-size: 20px;
    line-height: 20px;
  }

  .about-name {
    font-size: 64px;
    line-height: 64px;
  }

  .about-photo-strip {
    margin-left: 0;
  }

  .about-info {
    flex-direction: column;
    padding: 30px 30px;
    gap: 30px;
  }

  .about-bio {
    flex: none;
    width: 100%;
    font-size: 20px;
    line-height: 20px;
  }

  .about-contacts {
    width: 100%;
  }

  .about-contact-item {
    padding: 15px 0;
  }

  .about-contact-value {
    font-size: 24px;
    line-height: 24px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    flex-direction: column;
    padding: 30px 30px;
    gap: 20px;
  }

  .site-footer-links {
    align-items: flex-start;
  }
}
