@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;800&display=swap");
@import url("footer.css");

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

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: "Larsseit";
  src: url("../fonts/Larsseit-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Larsseit";
  src: url("../fonts/Larsseit.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg-canvas: #fffbfb;
  --text-dark: #1c1c1c;
  --text-grey: #585858;
  --text-light: #a29fa0;
  --tag-bg: rgba(28, 28, 28, 0.04);
  --accent-pink: #d3a0a0;
  --color-green-accent: #70b074;
  --accent-pink-bg: rgba(239, 214, 208, 0.25);
  --color-btn-bg: rgba(191, 217, 153, 0.5);
  --font-main: "Larsseit", "Figtree", -apple-system, sans-serif;

  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-body: 16px;
  --font-size-body-lg: 18px;
  --font-size-h3: 20px;
  --font-size-h2: 32px;
  --font-size-h1: 48px;
  --font-size-display: 52px;
  --font-size-nav: 19px;
  --font-size-brand: 22px;
}

body {
  font-family: var(--font-main);
  font-size: var(--font-size-body);
  background-color: var(--bg-canvas);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; 
}
.text-sm { font-size: var(--font-size-sm); }

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

.container, .hero-wrapper, .gallery-wrapper {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 3rem;  
  padding-right: 3rem;
}

/* NAVBAR */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-canvas);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28, 28, 28, 0.02);
}

.nav-container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

.site-brand {
  font-size: var(--font-size-brand);
  font-weight: 500;
  text-decoration: none;
  color: var(--text-dark);
}

.page-indicator {
  font-size: var(--font-size-body);
  font-weight: 300;
  color: #a29fa0;
  margin-left: 8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  font-size: var(--font-size-nav);
  color: var(--text-grey);
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.current {
  color: var(--accent-pink);
}

.resume-highlight {
  font-weight: 400;
}

.resume-highlight:hover {
  color: #d3a0a0;
}

.menu-toggle, .hamburger-icon {
  display: none;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background-color: var(--bg-canvas);
}

.hero-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 3rem;
  padding-right: 3rem;
}

.hero-left {
  max-width: 650px;
}

.hero-headline {
  font-size: var(--font-size-display);
  font-weight: 400;
  margin-bottom: 0rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.hero-tagline {
  font-size: 28px;
  font-weight: 400;
  color: var(--text-grey);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.scannable-matrix {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  width: 100%;
  max-width: 500px;
}

.matrix-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.matrix-label {
  font-size: var(--font-size-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  font-weight: 500;
}

.matrix-value {
  font-size: 17px;
  color: var(--text-dark);
  font-weight: 300;
  line-height: 1.4;
}

/* ── GALLERY ── */
.gallery-wrapper {
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
  position: sticky;
  top: 80px;
  z-index: 40; 
  background-color: var(--bg-canvas);  
  padding-top: 1.5rem;  
  padding-bottom: 1.5rem;
  margin-top: -1.5rem;  
  border-bottom: 1px solid rgba(28, 28, 28, 0.02);
}

.gallery-title {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-grey);
}

.filter-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap; 
}

.filter-btn {
  background: none;
  border: 1.5px solid #d6d1d1;
  padding: 6px 16px;
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-grey);
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background-color: #d6d1d1;
  color: var(--text-grey);
}

.works-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 4rem;
  row-gap: 5rem;
}

.work-card {
  text-decoration: none;
  color: inherit;
}

.card-inner-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.work-media-container {
  width: 100%;
  height: 380px;
  background-color: rgba(28, 28, 28, 0.03);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(28, 28, 28, 0.03);
}

.work-asset {
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-asset--full {
  width: 100%;
  height: 100%;
}

.work-asset--nearly-full {
  width: 95%;
  height: 95%;
}

.work-asset--inset {
  width: 75%;
  height: 75%;
}

.card-inner-link:hover .work-asset {
  transform: scale(1.03);
}

.project-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.work-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.project-date {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 400;
  white-space: nowrap;
  padding-top: 4px;
}

.recruiter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  font-size: 14px;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 16px;
  background-color: var(--tag-bg);
  color: var(--text-grey);
}

.tag.framework {
  background-color: var(--color-btn-bg);
  color: var(--color-green-accent);
}

.tag.role {
  background-color: var(--accent-pink-bg);
  color: var(--accent-pink);
}

.work-summary {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-grey);
  line-height: 1.5;
  margin-top: 1rem;
}

.itacho-card .work-asset {
  width: 100%;
  height: 100%;
}

/* ABOUT PAGE LAYOUT */
.about-layout {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.about-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.about-greeting {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.intro-pitch {
  font-size: 22px;
  line-height: 1.5;
  color: var(--text-dark);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.text-paragraph {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-dark);
  font-weight: 300;
}

/* Hero Portrait Frame */
.about-hero-image {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin-left: auto;
}

.about-image-frame {
  width: 100%;
  height: 480px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.04);
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 30%;
}

.section-label {
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.text-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-grey);
  font-weight: 300;
}

.photo-item {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background-color: rgba(28, 28, 28, 0.03);
  border: 1px solid rgba(28, 28, 28, 0.03);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESPONSIVENESS */
@media (max-width: 1024px) {
  .container, .hero-wrapper, .gallery-wrapper, .nav-container, .about-layout {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
  
  .hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    top: 80px;
  }
  
  .works-matrix {
    grid-template-columns: 1fr; 
    column-gap: 0;
    row-gap: 4rem;
  }
  
  .work-media-container {
    height: 320px; 
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .about-image-frame {
    margin: 0 auto;
  }
}

@media (max-width: 920px) {
  .gallery-header {
    top: 80px;
  }

  .hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 110;
  }

  .hamburger-icon span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.2s ease;
  }

  .page-indicator {
    display: none !important;
  }

  .main-nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-canvas);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0; 
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    z-index: 105;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
  }

  .menu-toggle:checked ~ .main-nav {
    max-height: 350px; 
  }

  .menu-toggle:checked ~ .hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle:checked ~ .hamburger-icon span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle:checked ~ .hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ─────────────────────────────────────────────────────────────
 * SPACIOUS MOBILE RESPONSIVENESS
 * ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .about-layout {
    gap: 4rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .about-hero {
    gap: 2rem;
  }

  .about-greeting {
    font-size: 40px;
    margin-bottom: 1rem;
  }

  .intro-pitch {
    font-size: 18px;
    line-height: 1.55;
    margin-bottom: 1.1rem;
  }

  .about-hero-text > .text-paragraph:not(.intro-pitch) {
    font-size: 17px;
    line-height: 1.6;
  }

  .about-hero-image {
    max-width: 340px;
  }

  .about-image-frame {
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 22px;
  }

  .section-label {
    font-size: 14px;
  }

  .text-block {
    font-size: 17px;
    line-height: 1.6;
  }

  .photo-item {
    border-radius: 12px;
  }

  .hero {
    min-height: auto !important;
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
    margin-bottom: 3.5rem !important;
  }

  .hero-wrapper {
    padding-left: 1.75rem !important;
    padding-right: 1.75rem !important;
  }

  .hero-headline {
    font-size: 38px!important;
    line-height: 1.25 !important;
    margin-bottom: 0.5rem !important;
  }

  .hero-tagline {
    font-size: 22px!important;
    line-height: 1.4 !important;
    margin-bottom: 2.5rem !important;
    color: var(--text-grey);
  }

  .scannable-matrix {
    display: flex;
    flex-direction: column;
    gap: 2.25rem !important;
    max-width: 100%;
  }

  .matrix-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .matrix-label {
    font-size: 13px;
    letter-spacing: 0.06em;
  }

  .matrix-value {
    font-size: 17px;
    line-height: 1.6;
  }

  .gallery-wrapper {
    padding-top: 1.5rem !important;
    padding-bottom: 5rem !important;
  }

  .gallery-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1.25rem !important;
    margin-bottom: 2.5rem !important;
    position: relative;
    top: 0;
  }

  .gallery-title {
    font-size: 19px!important;
    letter-spacing: 0.05em;
    margin: 0 !important;
  }

  .filter-controls {
    display: flex;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    gap: 0.65rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 7px 16px;
    font-size: 15px;
  }
}

@media (max-width: 640px) {

  .filter-controls {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .works-matrix {
    grid-template-columns: 1fr;
    row-gap: 3rem;
  }
}

@media (max-width: 480px) {
  .container, .nav-container, .gallery-wrapper, .about-layout {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  .about-layout {
    gap: 3.25rem;
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .about-greeting {
    font-size: 36px;
  }

  .about-hero-image {
    max-width: 300px;
  }

  .nav-container {
    height: 80px;
  }

  .main-nav {
    top: 80px;
  }

  .hero {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  .hero-headline {
    font-size: 34px!important;
  }

  .hero-tagline {
    font-size: 19px!important;
  }
  
  .work-media-container {
    height: 250px; 
  }

  .project-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}