@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Montserrat+Alternates:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');


/* ––––– Global Reset ––––– */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ––––– Scroll Bar ––––– */
html {
  overflow-y: overlay;
  touch-action: pan-y;
}

/* ––––– Variables (Colour Styles) ––––– */
:root {
  --color-background: #FFFFF8;
  --color-border: #F5F5EE;
  --color-title: #171A1C;
  --color-body: #2E3538;
  --color-accent: #0F9DE4;
  --color-accent-plus-10: #0E8DCD;
  --color-on-accent: #FFFFFF;
  --color-accent-10: #E9F7F7;
  --color-on-accent-10: #608A9F;
  --color-accent-contrast: #0F73E4;
}

/* ––––– Page Background ––––– */
body {
  background: var(--color-background);
}


/* ––––– Layout ––––– */
main { 
  padding-left: 1.5rem; /* 24px */
  padding-right: 1.5rem; /* 24px */
  display: flex;
  flex-direction: column;
  align-items: center;
}

section {
  width: 100%;
  max-width: 102rem; /* 1632px */
  padding-top: 3rem; /* 48px */
  padding-bottom: 6rem; /* 96px */
  display: flex;
  flex-direction: column;
  gap: 4.5rem; /* 72px */
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem; /* 16px */
}

img {
  height: auto;
  object-fit: contain;
}

/* Layout: 768px */
@media (min-width: 48em) {
  main {
    padding-left: 3rem; /* 48px */
    padding-right: 3rem; /* 48px */
  }
  .grid {
    gap: 2rem; /* 32px */
  }
  section {
    padding-top: 4.5rem; /* 72px */
    padding-bottom: 9rem; /* 144px */
    gap: 6rem; /* 96px */
  }
}

/* Layout: 1440px */
@media (min-width: 90em) {
  main {
    padding-left: 9rem; /* 144px */
    padding-right: 9rem; /* 144px */
  }
  .grid {
    gap: 4rem; /* 64px */
  }
  section {
    padding-top: 6rem; /* 96px */
    padding-bottom: 12rem; /* 192px */
    row-gap: 9rem; /* 144px */
  }
}


/* ––– Text Styles ––– */
body { 
  color: var(--color-body);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 175%;
}

strong {
  font-weight: 600;
}

a:link, a:visited, a:active, a:hover { 
  color: var(--color-body);
  text-decoration: none;
}

.hero-title {
  color: var(--color-title);
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: 700; /* Bold */
  font-size: 2.5rem; /* 40px */
  line-height: 125%;
}

.hero-subtitle {
  color: var(--color-body);
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: 400;
  font-size: 1.5rem; /* 24px */
  line-height: 150%;
}

.hero-body {
  color: var(--color-body);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400; /* Regular */
  font-size: 1.5rem; /* 24px */
  line-height: 150%;
}

h1, h2, h3 {
  color: var(--color-title);
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: 600; /* Semibold */
  line-height: 150%;
}

h1 {
  font-size: 2.5rem; /* 40px */
}

h2 {
  font-size: 2rem; /* 32px */
}

h3 {
  font-size: 1.625rem; /* 26px */
}

h4 {
  color: var(--color-body);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.125rem; /* 18px */
  font-weight: 600; /* Semibold */
  line-height: 150%;
}

p {
  letter-spacing: 2%;
}

p:not(:last-child),ul:not(:last-child) {
  margin-bottom: 0.8em;
}

figcaption {
  color: var(--color-body);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6875rem; /* 11px */
  line-height: 175%;
  font-style: italic;
}

.link{
  text-decoration: underline !important;
  color: var(--color-accent-contrast) !important;
}

/* Text Styles: 768px */
@media (min-width: 48em) {
  body {
    font-size: 1.125rem; /* 18px */
  }

  .hero-title {
    font-size: 2.75rem; /* 44px */
  }

  .hero-subtitle {
    font-size: 1.75rem; /* 28px */
  }

  .hero-body {
    font-size: 1.75rem; /* 28px */
  }

  h1 {
    font-size: 2.75rem; /* 44px */
  }

  h2 {
    font-size: 2.25rem; /* 36px */
  }

  h3 {
    font-size: 1.875rem; /* 30px */
  }

  h4 {
    font-size: 1.25rem; /* 20px */
  }

  figcaption {
    font-size: 0.75rem; /* 12px */
  }
}

/* Text Styles: 1440px */
@media (min-width: 90em) {
  body {
    font-size: 1.25rem; /* 20px */
  }

  .hero-title {
    font-size: 3.125rem; /* 50px */
  }

  .hero-subtitle {
    font-size: 1.875rem; /* 30px */
  }

 .hero-body {
    font-size: 1.875rem; /* 30px */
  }

  h1 {
    font-size: 3.125rem; /* 50px */
  }

  h2 {
    font-size: 2.5rem; /* 40px */
  }

  h3 {
    font-size: 2rem; /* 32px */
  }

  h4 {
    font-size: 1.375rem; /* 22px */
  }

  figcaption {
    font-size: 0.875rem; /* 14px */
  }
}

/* ––––– Icon Style ––––– */
.material-symbols-rounded-0-400-25-40 {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' -25,
    'opsz' 40;
}

/* ––––– Header ––––– */
header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1rem; /* 16px */
  background: var(--color-background);
  position: relative;
  z-index: 10;
}

.header-logo {
  display: block; 
  width: 2.5rem;
}

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  height: max-content;
}

.menu-btn .material-icons {
  font-size: 2rem; 
  color: var(--color-body) !important; 
}

.nav {
  display: none; 
  width: 100%;
  height: calc(100dvh - 4.5rem); 
  padding: 0.5rem;
  position: absolute;
  left: 0;
  top: 4.5rem; 
  background-color: var(--color-background);
  border-top: 1px solid var(--color-border);
  z-index: 9;
}

header.open .nav {
  display: flex;
}

body.lock-scroll {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 1rem;
}

.nav a {
  color: var(--color-body);
  font-family: inherit;
  font-size: inherit;
  line-height: 125%;
  text-decoration: none;
  padding: 0.5rem;
}

/* Header: 768px */
@media (min-width: 48em) {
  .header-logo {
    width: 3rem; 
  }
  .menu-btn {
    display: none;
  }
  .nav {
    display: flex; 
    justify-content: flex-end;
    position: static; 
    width: 100%; 
    height: fit-content;
    padding: 0;
    border-top: none;
  }
  .nav ul {
    flex-direction: row;
  }
}


/* ––––– Footer ––––– */
footer {
  padding: 0.5rem 1rem;
  background: var(--color-accent-10);
}

footer p{
  color: var(--color-body);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6875rem; /* 11px */
  line-height: 175%;
}
@media (min-width: 48em) {
  footer p{
    font-size: 0.75rem; /* 12px */
  }
}
@media (min-width: 90em) {
  footer p{
    font-size: 0.875rem; /* 14px */
  }
}

/* ––––– Motif Title ––––– */
.motif-title {
  position: relative; 
}

.motif-title::before {
  content: ""; /* Required to make the pseudo-element load */
  background-image: url('assets/motif-accent-20.png'); 
  background-repeat: no-repeat;
  background-size: cover;
  width: 13.5rem;
  height: 13.5rem;  
  position: absolute;
  left: -5.25rem;
  top: -4.875rem; 
  z-index: -2; 
  pointer-events: none; 
}

.motif-title::after {
  content: ""; /* Required to make the pseudo-element load */
  background-image: url('assets/motif-divider-border.png'); 
  background-repeat: no-repeat;
  background-size: cover;
  width: 22.5rem;
  height: 0.5rem; 
  position: absolute;
  left: -7.5rem;
  bottom: 0.5rem;
  z-index: -1; 
  pointer-events: none; 
}

@media (min-width: 48em) {
  .motif-title::before {
    width: 16.2rem;
    height: 16.2rem;
    left: -6rem;
    top: -5.85rem;
  }
  .motif-title::after {
    width: 30rem;
    height: 0.5rem;
    left: -9rem;
    bottom: 0.5rem;
  }
}
@media (min-width: 90em) {
  .motif-title::before {
    width: 18.9rem;
    height: 18.9rem;
    left: -6.75rem;
    top: -6.825rem;
  }
  .motif-title::after {
    width: 45rem;
    height: 0.5rem;
    right: -22rem;
    bottom: 0.5rem;
  }
}

/* ––––– Tags ––––– */
.tags-container {
  display: flex;
  flex-wrap: wrap;   
  gap: 0.5rem; 
}
@media (min-width: 48em) {
  .tags-container {
    gap: 0.75rem; 
  }
}
@media (min-width: 90em) {
  .tags-container {
    gap: 1rem; 
  }
}

.tag{
  display: inline-flex;
  padding: 0.125rem 0.5rem; /* 2px 8px */
  border-radius: 999px;
  background: var(--color-accent-10);
  color: var(--color-on-accent-10);
  font-size: 0.6875rem; /* 11px */
  font-weight: 500;
  line-height: 200%;
}
@media (min-width: 48em) {
  .tag {
    padding: 0.1875rem 0.75rem; /* 3px 12px */
    font-size: 0.8125rem; /* 13px */
  }
}
@media (min-width: 90em) {
  .tag {
    padding: 0.25rem 1rem; /* 4px 16px */
    font-size: 0.9375rem; /* 15px */
  }
}


/* ––––– Action Button ––––– */
.btn {
  padding: 0.5rem 1.5rem;
  width: fit-content;  
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-on-accent) !important;
  font-weight:600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn:hover { 
    background-color: var(--color-accent-plus-10);
}

/* ––––– Bullet List ––––– */
.bullet-list {
  padding-left : 1.5em;
}

.bullet-list li:not(:last-child) {
  margin-bottom: 0.4em;

}

/* ––––– Cards ––––– */
.card{
  align-items: center;
}

.card-thumbnail {
  grid-column: span 4;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 1.25rem; /* 20px */
}

.card-content {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  padding-top: 0.5rem; /* 8px */
  padding-bottom: 0.5rem; /* 8px */
  gap: 0.5rem; /* 8px */
}

/* Cards: 768px */
@media (min-width: 48em) {
  .card-content {
    padding-top: 0.75rem; /* 12px */
    padding-bottom: 0.75rem; /* 12px */
    gap: 0.75rem; /* 12px */
  }
}

/* Cards: 1024px */
@media (min-width: 64em) {
  .card-thumbnail {
  grid-column: span 2;
  }
  .card-content {
  grid-column: span 2;
  padding-top: 1.25rem; /* 20px */
  padding-bottom: 1.25rem; /* 20px */
  gap: 1rem; /* 16px */
}
}

/* ––––– Container ––––– */
.container-large {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* 32px */
}
.container-small {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* 8px */
}

.container-column {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 4rem; /* 64px */
}

/* Container: 768px */
@media (min-width: 48em) {
  .container-column {
    grid-column: span 4;
  }
}

/* Container: 1024px */
@media (min-width: 64em) {
  .container-column {
    grid-column: span 2;
  }
}

/* Case Study Images */
.case-study-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 1.25rem; /* 20px */
}

/* ––––– Home Section ––––– */
.home-section {
  height: calc(100dvh - 4.5rem);
  min-height: 43.5rem; /* 696px */
  max-height: 64rem; /* 1024px */
  width: 100%;
  position: relative; 
  align-items: center;
}

.home-text {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 1rem; /* 16px */
}

.home-title-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; 
  gap: 1rem; /* 16px */
}

.home-title-container img {
  width: 1.875rem; /* 30px */ 
  pointer-events: none; 
}

.home-logo-container {
  width: 25rem; /* 400px */
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;  
  align-items: center;
  position: absolute;
  top: 50%; /* 50% of parent */
  right: 0; /* Align-right of grid */
  transform: translate(7.75rem, -50%); /* X: Margin (align-right of viewport) + 25% of logo, Y: 50% of this (child-)item */
  z-index: -1;
  pointer-events: none; 
}

.home-logo {
  width: 100%;
}

.home-logo-shadow {
  width: 144%;
  position: absolute;
  top: 112%;
}

/* Home Section: 768px */
@media (min-width: 48em) {
  .home-section {
    height: calc(100dvh - 5rem);
  }
  .home-text {
    grid-column: span 3;
  }
  .home-title-container {
    gap: 1.5rem; /* 24px */
  }
  .home-title-container img {
  width: 2.1875rem; /* 35px */ 
  }
  .home-logo-container {
    width: 32rem; /* 512px */
    transform: translate(12rem, -50%); /* X: Margin (align-right of viewport) + margin x3, Y: 50% of this (child-)item */
  }
}

/* Home Section: 1440px */
@media (min-width: 90em) {
  .home-text {
    grid-column: span 2;
  }
  .home-title-container {
    gap: 2rem; /* 32px */
  }
  .home-title-container img {
    width: 2.5rem; /* 40px */ 
  } 
  .home-logo-container {
    width: calc(0.4 * (100dvw - 18rem)); /* 40% of (device width - margins) */
    max-width: 40.8rem; /* calculated based on 1920px */
    transform: translate(0, -50%); /* X: 0 (remain align-right of grid), Y: 50% of this (child-)item */
  }  
}

.overlay-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(244, 244, 245, 0.85); /* Semitransparent background */
    backdrop-filter: blur(12px); /* Blurs out the portfolio content underneath */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999; /* Keeps the lock screen on top of everything */
    transition: opacity 0.4s ease;
}

.login-card {
    background: white;
    padding: 2.25rem;
    border-radius: 1.25rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 22.5rem;
    width: 90%;
}

.login-card h2 { 
    margin-bottom: 0.75rem;
    color:var(--color-heading); 
    font-size: 1.375rem; 
}

.login-card p { 
    color: var(--color-body); 
    font-size: 0.875rem;; 
    line-height: 1.5;
    margin-bottom: 1.5rem; 
}

input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9375rem;
    outline: none;
    margin-bottom: 0.25rem;
    caret-color: var(--color-accent);
}

input:focus {
    border-color: var(--color-accent);
    border-width: 2px;
}

.error { 
    color: #dc2626; 
    font-size: 0.8125rem;
    display: none; 
}

.login-card .btn {
  margin-top: 1.25rem;
    padding: 1rem 3rem;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Initially blurs content background layout */
.content-blurred {
    filter: blur(8px);
    pointer-events: none; /* Prevents the user from clicking links or copying text while locked */
    transition: filter 0.4s ease;
}

