@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;
}

/* ── FONTS ── */
@font-face {
  font-family: "Larsseit";
  src: url("../fonts/Larsseit-Thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Larsseit";
  src: url("../fonts/Larsseit-ThinItalic.otf") format("opentype");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@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-LightItalic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  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-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  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;
}
@font-face {
  font-family: "Larsseit";
  src: url("../fonts/Larsseit-MediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Larsseit";
  src: url("../fonts/Larsseit-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Larsseit";
  src: url("../fonts/Larsseit-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg-white: #fffbfb;
  --color-dark-charcoal: #1c1c1c;
  --color-muted-grey: #585858;
  --color-light-grey: #a29fa0;
  --color-border-fade: rgba(0, 0, 0, 0.05);
  --color-bg-banner: rgba(0, 0, 0, 0.02);
  --color-team-pink: #d3a0a0;
  --color-green-accent: #70b074;
  --color-btn-bg: rgba(191, 217, 153, 0.5);
  --font-primary: "Larsseit", "Figtree", 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 {
  min-height: 100vh;
  background-color: var(--color-bg-white);
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; 
}
.text-sm { font-size: var(--font-size-sm); }

/* ── LAYOUT UTILITIES ── */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;  
  padding-right: 2rem;
}

/* ── HEADER NAVIGATION ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 251, 251, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(28, 28, 28, 0.02);
}

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

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  color: var(--color-dark-charcoal);
  font-size: var(--font-size-brand);
  font-weight: 500;
}

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

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

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

.nav-link:hover {
  color: var(--color-team-pink);
}

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

/* ── HERO BANNER ── */
.hero-banner {
  background-color: var(--color-bg-banner);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-container {
  display: flex;
  flex-direction: column; 
  align-items: stretch;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px 2rem;                             
}

.hero-text-block {
  flex: 1;                                
  display: flex;
  flex-direction: column;
}

.hero-title {
  color: var(--color-dark-charcoal);
  font-size: var(--font-size-h1);
  font-weight: 500;
  line-height: 1.2;
  max-width: 580px;
  margin: 0;
}

.hero-subtitle {
  color: var(--color-muted-grey);
  font-size: 24px;
  font-weight: 400;
  margin-top: 12px;
}

.hero-image-wrapper {
  flex: 1;                                
  max-width: 500px;                
  width: 100%;
  display: flex;
  justify-content: flex-end;      
  align-items: center;
}

.hero-img {
  width: 100%;
  height: auto;                    
  max-height: 380px;               
  object-fit: contain;
}

/* Shared case-study hero treatment */
.hero-banner {
  background:
    radial-gradient(circle at 82% 18%, rgba(191, 217, 153, 0.3), transparent 28%),
    linear-gradient(135deg, #f7f8ef 0%, var(--color-bg-white) 68%) !important;
}

.hero-container {
  max-width: 1240px !important;
  padding-top: 88px !important;
  padding-bottom: 72px !important;
}

.hero-top-split {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr) !important;
  gap: 5rem !important;
  align-items: center !important;
  min-height: 320px;
}

.hero-text-block {
  max-width: 640px;
}

.hero-title {
  font-size: 80px!important;
  line-height: 0.98 !important;
  letter-spacing: -0.04em !important;
}

.hero-subtitle {
  margin-top: 1.5rem !important;
  font-size: 22px!important;
  color: var(--color-green-accent) !important;
}

.hero-image-wrapper {
  max-width: 460px !important;
  justify-content: center !important;
  justify-self: end;
}

.hero-img {
  max-height: 330px !important;
  filter: drop-shadow(0 22px 22px rgba(28, 28, 28, 0.1));
}

@media (max-width: 920px) {
  .hero-container {
    padding-top: 64px !important;
    padding-bottom: 56px !important;
  }

  .hero-top-split {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center !important;
  }

  .hero-text-block,
  .hero-image-wrapper {
    justify-self: center;
  }

  .hero-text-block {
    align-items: center;
  }

  .hero-title {
    font-size: 72px!important;
  }

  .hero-image-wrapper {
    max-width: 300px !important;
  }

  .hero-img {
    max-height: 260px !important;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 48px!important;
  }
}

.case-hero-costco {
  background:
    radial-gradient(circle at 82% 18%, rgba(39, 117, 187, 0.2), transparent 28%),
    linear-gradient(135deg, #fff2ef 0%, #fffafa 68%) !important;
}

.case-hero-costco .hero-subtitle { color: #d9272e !important; }

.case-hero-itacho {
  background:
    radial-gradient(circle at 82% 18%, rgba(177, 24, 24, 0.18), transparent 28%),
    linear-gradient(135deg, #fbf1e8 0%, #fffaf5 68%) !important;
}

.case-hero-itacho .hero-subtitle { color: #a7191f !important; }

.case-hero-pikmin {
  background:
    radial-gradient(circle at 82% 18%, rgba(112, 176, 116, 0.28), transparent 28%),
    linear-gradient(135deg, #fff5df 0%, #fffaf7 68%) !important;
}

.case-hero-pikmin .hero-subtitle { color: #70a968 !important; }

.case-hero-resource {
  background:
    radial-gradient(circle at 82% 18%, rgba(61, 113, 171, 0.22), transparent 30%),
    linear-gradient(135deg, #edf6fb 0%, #fbfcfa 68%) !important;
}

.case-hero-resource .hero-subtitle { color: #315d91 !important; }

.case-hero-steam {
  background:
    radial-gradient(circle at 82% 18%, rgba(53, 111, 174, 0.24), transparent 28%),
    linear-gradient(135deg, #e7eef8 0%, #f8fafc 68%) !important;
}

.case-hero-steam .hero-subtitle { color: #356fae !important; }

.case-hero-tastea {
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 151, 87, 0.2), transparent 28%),
    linear-gradient(135deg, #eefaf2 0%, #fffafc 68%) !important;
}

.case-hero-tastea .hero-subtitle { color: #009757 !important; }

/* ── METADATA DASHBOARD ── */
.project-meta-dashboard {
  display: flex;
  justify-content: space-between; 
  align-items: flex-start;
  width: 100%;
  max-width: 1400px;              
  margin: 40px auto 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.06); 
}

.meta-dashboard-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 0;        
  flex-shrink: 1;     
}

.meta-dashboard-col:nth-child(1) { flex-basis: 25%; }
.meta-dashboard-col.skills-col  { flex-basis: 30%; }
.meta-dashboard-col:nth-child(3) { flex-basis: 25%; }
.meta-dashboard-col:nth-child(4) { flex-basis: 20%; }

.meta-dashboard-label {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  color: #A29FA0;
}

.meta-dashboard-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: #1c1c1c;
  margin: 0;
}

.meta-dashboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-dashboard-row {
  display: flex;
  align-items: baseline;
  gap: 12px;                      
}

.meta-name {
  font-size: 16px;
  font-weight: 400;
  color: #585858;
  display: inline-block;
  width: 65px; 
}

.meta-role {
  font-size: 15px;
  color: #A29FA0;
}

/* ── LAYOUT BODIES ── */
.body-container {
  padding-top: 4rem;    
  padding-bottom: 4rem;
  display: flex;
  gap: 4rem;  
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.toc-sticky-container {
  position: sticky;
  top: 130px; 
  display: flex;
  flex-direction: column;
  gap: 2rem;   
  z-index: 10;
}

.back-btn-sticky {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  color: var(--color-muted-grey);
  transition: all 0.2s ease;
  width: fit-content;
}

.back-btn-sticky svg {
  transition: transform 0.2s ease;
}

.back-btn-sticky:hover {
  color: var(--color-dark-charcoal);
}

.back-btn-sticky:hover svg {
  transform: translateX(-3px);
}

.toc {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(28, 28, 28, 0.1);
}

.toc-link {
  text-decoration: none;
  font-size: 18px; 
  font-weight: 300;
  color: var(--color-light-grey);
  transition: color 0.2s ease;
}

.toc-link:hover, .toc-link.active {
  color: var(--color-dark-charcoal);
}

.prototype-btn {
  text-decoration: none;
  display: inline-flex;
  flex-direction: row;  
  align-items: center;
  justify-content: center;
  width: auto;             
  min-width: 70px;
  padding: 0 24px;          
  height: 44px;
  border-radius: 32px; 
  border: 1px solid var(--color-btn-bg);
  background-color: transparent;  
  color: #70b074;  
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.prototype-btn:hover {
  background-color: var(--color-btn-bg); 
  border: none;
  color: #70b074 !important;
  transform: translateY(-3px);  
  cursor: pointer;
}

.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.content-section {
  display: block;
  scroll-margin-top: 130px;
}

.section-label {
  color: var(--color-light-grey);
  font-size: 20px; 
  font-weight: 300;
  margin-bottom: 2rem;  
}

u {
  text-decoration-line: underline;
  text-decoration-color: rgba(28, 28, 28, 0.199); /* Adjust opacity here */
  text-decoration-thickness: 1.2px;               /* Line weight */
  text-underline-offset: 3px;                    /* Distance from text baseline */
}

.section-heading {
  color: var(--color-dark-charcoal) !important;
  font-size: 28px;
  font-weight: 500;
      margin-bottom: 0.75rem;
      letter-spacing: -0.02em;
}

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

.text-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── RESPONSIVE LAYOUT (920px BREAKPOINT) ── */
@media (max-width: 920px) {
  .container, .nav-container, .hero-container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

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

  .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(--color-dark-charcoal);
    transition: all 0.2s ease;
  }

  .nav-links {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-white);
    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 ~ .nav-links {
    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);
  }

  .hero-container {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .hero-top-split {
    flex-direction: column !important;
    text-align: center;
    align-items: center;
    gap: 32px;
  }
  
  .hero-text-block {
    align-items: center;         
  }

  .hero-title {
    font-size: 36px;          
    max-width: 100%;
  }

  .hero-image-wrapper {
    justify-content: center;      
    max-width: 320px;             
    margin: 0 auto;
  }
  
  .hero-img {
    max-height: 260px;
  }

  .project-meta-dashboard {
    flex-direction: column;       
    align-items: flex-start;
    gap: 24px;
    padding-top: 32px;
    margin-top: 32px;
  }
  
  .meta-dashboard-col {
    flex: none;
    width: 100%;
  }
  
  .meta-name {
    width: auto;                  
    min-width: 70px;
  }

  .body-container {
    flex-direction: column;
    gap: 3rem;
    padding-top: 2rem;
  }

  .sidebar {
    width: 100%;
    gap: 1rem;
  }

  .toc-sticky-container {
    display: none !important;
  }

}