/* ============================================
   PORTFOLIO V2 — Homepage Styles
   ============================================ */

/* --- Film grain overlay --- */
.grain-overlay {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='6' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  animation: grain 0.3s steps(8) infinite;
  will-change: transform;
  backface-visibility: hidden;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-5%, -10%); }
  20%  { transform: translate(-15%, 5%); }
  30%  { transform: translate(7%, -20%); }
  40%  { transform: translate(-5%, 15%); }
  50%  { transform: translate(-15%, 10%); }
  60%  { transform: translate(15%, 0%); }
  70%  { transform: translate(0%, 10%); }
  80%  { transform: translate(3%, -25%); }
  90%  { transform: translate(-10%, 10%); }
  100% { transform: translate(-5%, 5%); }
}

/* --- Fonts --- */
@import url('https://fonts.cdnfonts.com/css/neue-haas-grotesk-display-pro');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap');

/* Local IvyPresto files — fallback if Typekit fails */
@font-face {
  font-family: 'IvyPresto Headline';
  src: url('fonts/IvyPrestoHeadline-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IvyPresto Headline';
  src: url('fonts/IvyPrestoHeadline-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

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

@font-face {
  font-family: 'IvyPresto Headline';
  src: url('fonts/IvyPrestoHeadline-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/*
  Available font weights reference:

  IvyPresto Headline (via Typekit 'ivypresto-headline'):
    100 italic, 300, 400, 400 italic, 700, 700 italic

  Neue Haas Grotesk Display Pro (via cdnfonts):
    100, 200, 300, 400, 500, 600, 700, 900
    + italic for each weight

  Playfair Display (via Google Fonts):
    400, 700, 900 + italic for each
*/

/* --- Custom Properties --- */
:root {
  --color-light: #F5F4ED;
  --color-light-alt: #ebe6df;
  --color-dark: #1a1a1a;
  --color-dark-alt: #2a2a2a;
  --color-muted: #9a958e;
  --color-body: #5a5550;
  --color-border: rgba(26, 26, 26, 0.12);
  --color-border-light: rgba(245, 240, 235, 0.15);

  --font-sans: 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.4s;

  --container-max: 1100px;
  --container-padding: 24px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--color-dark);
  color: var(--color-light);
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-dark);
  background-color: var(--color-light);
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3.2rem, 3.16rem + 3.43vw, 5.625rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2.2rem, 2.06rem + 2.57vw, 3.75rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.33vw, 2.25rem);
  letter-spacing: -0.015em;
}

p {
  max-width: 640px;
}

.text-muted {
  color: var(--color-muted);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: 0;
  position: relative;
}

.section--cream {
  background-color: transparent;
}

.section--dark {
  background-color: var(--color-dark-alt);
  color: var(--color-light);
}

/* --- Hero --- */
.hero {
  height: 100vh;
  height: 100svh;
  text-align: center;
  position: relative;
  z-index: 4;
  padding: 0;
  overflow: clip;
  display: flex;
  flex-direction: column;
}

.hero__logo {
  position: fixed;
  left: var(--container-padding);
  top: 32px;
  z-index: 101;
}

.hero__logo img {
  height: 20px;
  width: auto;
  margin-top: 6px;
}

/* --- Site Nav --- */
.site-nav {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 101;
  display: flex;
  gap: 30px;
  mix-blend-mode: difference;
}

.site-nav__link {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  padding: 4px 0;
}

.site-nav__link:hover {
  opacity: 0.5;
}

/* --- Hamburger --- */
.hamburger {
  display: none;
}

@media (max-width: 767px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: fixed;
    top: 24px;
    right: var(--container-padding);
    z-index: 102;
    width: 24px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    mix-blend-mode: difference;
  }

  .hamburger__line {
    display: block;
    width: 100%;
    height: 1.5px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .hamburger.is-open .hamburger__line:first-child {
    transform: translateY(3.25px) rotate(45deg);
  }

  .hamburger.is-open .hamburger__line:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform: none;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    background: var(--color-dark);
    mix-blend-mode: normal;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
  }

  .site-nav__link {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    font-style: normal;
    color: #fff;
  }
}

.hero__bust {
  position: absolute;
  top: 10vh;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero__bust canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 30vh;
  position: relative;
  z-index: 2;
}

.hero__heading {
  font-family: 'ivypresto-headline', 'IvyPresto Headline', var(--font-serif);
  font-size: clamp(3rem, 2rem + 5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 1000px;
  margin-bottom: 32px;
  text-align: center;
  padding: 0 var(--container-padding);
}

.heading-italic {
  font-family: 'ivypresto-headline', 'IvyPresto Headline', var(--font-serif) !important;
  font-weight: 100 !important;
  font-style: italic !important;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-dark);
  max-width: 520px;
  line-height: 1.5;
  text-align: center;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Section Outro / Intro Pattern --- */
.section-outro {
  margin-top: auto;
  padding: 0 0 4vh;
  text-align: center;
  position: relative;
  z-index: 2;
}

.section-outro__text {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  max-width: 1000px;
  margin: 0 auto;
}

.section-outro__text--mobile {
  display: none;
}

.section-intro {
  padding: 6vh var(--container-padding) 8vh;
  text-align: center;
}

.section-intro__text {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Animations --- */
@keyframes simpleFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-fade-simple {
  opacity: 0;
  animation: simpleFadeIn 1.6s ease forwards;
  animation-delay: var(--fade-delay, 0s);
}

@keyframes heroFadeIn {
  0%   { opacity: 0; filter: blur(2px); }
  100% { opacity: 1; filter: blur(0px); }
}

.hero-fade {
  opacity: 0;
  animation: heroFadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--fade-delay, 0s);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   WORKS SECTION
   ============================================ */

.works {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.works__browser-sub {
  font-family: 'ivypresto-headline', 'IvyPresto Headline', var(--font-serif);
  font-size: clamp(1rem, 0.8rem + 1vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-dark);
  max-width: none;
  padding-top: 8vh;
  margin-bottom: 20px;
}

/* --- Search bar --- */
.search {
  position: relative;
  width: 600px;
  min-height: 166px;
  margin: 0 auto 20px;
  text-align: left;
}

.search__inner {
  background: #fff;
  border-radius: 24px;
  box-shadow: 3px 8px 12.1px 0px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.search__bar {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 20px;
  gap: 12px;
}

.search__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-muted);
}

.search__text {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 0.9;
  padding: 2px 0;
  color: var(--color-dark);
  flex-shrink: 0;
  white-space: nowrap;
}

.search__cursor {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--color-dark);
  animation: blink 1s step-end infinite;
  margin-left: -4px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.search__enter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border-radius: 6px;
  background: #f1f3f4;
  border: 1px solid #dadce0;
  color: #5f6368;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.2s, transform 0.1s, background 0.1s;
  flex-shrink: 0;
}

.search.has-text .search__enter {
  opacity: 1;
}

.search__enter.is-pressed {
  transform: scale(0.85);
  background: #dadce0;
}

.search__enter.is-released {
  transform: scale(1);
  background: #f1f3f4;
}

/* --- Suggestions --- */
.search__suggestions {
  border-top: 1px solid transparent;
  overflow: hidden;
  transition: border-top-color 0.3s var(--ease);
  padding: 0 0 0 0;
}

.search__suggestions.is-visible {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.search__suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  max-height: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-dark);
  opacity: 0;
  transform: translateY(-8px);
  overflow: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              max-height 0.3s var(--ease), padding 0.3s var(--ease);
  will-change: opacity, transform;
}

.search__suggestion.is-visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 25px;
  padding: 4px 20px;
  margin-bottom: 25px;
}

.search__suggestion.is-visible + .search__suggestion.is-visible {
  margin-top: -25px;
}

.search__suggestion svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-muted);
}

.search__suggestion:first-child.is-visible {
  margin-top: 10px;
}

.search__suggestion strong {
  font-weight: 500;
}

/* --- Found text --- */
.works__found {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
  text-align: center;
  margin: 1rem auto 2rem;
  max-width: 500px;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  position: relative;
  z-index: 2;
}

.works__found.is-visible {
  opacity: 1;
}

/* --- Loader --- */
.works__loader {
  display: flex;
  justify-content: center;
  padding: 48px 0;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.works__loader.is-visible {
  opacity: 1;
}

.works__spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--color-dark);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Work case content --- */
.works__case {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: start;
  gap: 48px;
  max-width: 1400px;
  margin: 24px auto 0;
  padding: 0 var(--container-padding);
  text-align: left;
  opacity: 0;
  transition: opacity 1s var(--ease);
}

.works__case.is-visible {
  opacity: 1;
}

.works__tags-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 16px;
  max-width: 300px;
  line-height: 1.1;
}

.works__tag-list {
  list-style: none;
}

.works__tag-list li {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  will-change: opacity, transform;
}

.works__tag-list li.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.works__image {
  width: 100%;
  perspective: 1000px;
  position: relative;
  cursor: none;
}

.works__cursor-text {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-family: 'ivypresto-headline', 'IvyPresto Headline', var(--font-serif);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 500;
  font-style: italic;
  color: #fff;
  mix-blend-mode: difference;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease;
  transform: translate(-50%, -50%);
}

.works__cursor-text.is-visible {
  opacity: 1;
}

.works__card {
  border-radius: 16px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.3s ease;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

.works__card:hover {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.12);
}

.works__image video {
  width: 100%;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.works__title {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.2;
}

.works__title .char {
  display: inline-block;
}

.works__desc .char,
.works__tags-label .char {
  display: inline;
}

.works__desc {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-dark);
  max-width: none;
}

/* --- Pagination --- */
.works__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: absolute;
  bottom: calc(6vh + 8vh + 80px);
  left: 0;
  right: 0;
  z-index: 3;
}

.works__page {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.works__page:hover {
  color: var(--color-dark);
}

.works__page.is-active {
  color: var(--color-dark);
  font-weight: 500;
}

.works__page--next {
  font-weight: 500;
  color: var(--color-dark);
}

/* ============================================
   CLIENTS SECTION
   ============================================ */

.clients {
  position: relative;
  z-index: 3;
  height: 100vh;
  height: 100svh;
  padding: 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* --- Intro highlight (reused by notice overlay) --- */
.clients__intro-highlight {
  font-family: 'ivypresto-headline', 'IvyPresto Headline', var(--font-serif);
  font-weight: 600;
  font-style: italic;
}

.clients__line {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: 24px 0;
}

/* --- Marquee --- */
.clients__marquee {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  padding: 100px 0;
}

.clients__marquee::before,
.clients__marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.clients__marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--color-light), transparent);
}

.clients__marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--color-light), transparent);
}

.clients__marquee-track {
  display: flex;
  animation: marqueeLeft 30s linear infinite;
  width: max-content;
}

.clients__marquee-list {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 0 40px;
}

.clients__marquee-list img {
  height: 30px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.clients__marquee-list img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Clients inner wrapper (for GSAP pinSpacing) --- */
.clients__inner {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8vh;
}

.clients .section-outro {
  padding: 0 0 4vh;
}

/* --- Notice above gmail (desktop only) --- */
.clients__notice {
  max-width: 1400px;
  margin: 0 auto 42px;
  text-align: center;
}

.clients__notice p {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  max-width: 440px;
  margin: 0 auto;
}

/* ============================================
   GMAIL TESTIMONIAL SECTION
   ============================================ */

.gmail {
  position: relative;
  max-width: 1400px;
  width: calc(100% - 48px);
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: 'Google Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  color: #1f1f1f;
  border-radius: 16px;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

/* --- Email loading bar --- */
.gmail__loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #f2f6fc;
  display: flex;
  align-items: flex-start;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.gmail__loader-bar {
  height: 3px;
  width: 0;
  background: #1a73e8;
  border-radius: 2px;
}

.gmail__loader.is-loading .gmail__loader-bar {
  animation: gmailLoaderFill 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.gmail__loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes gmailLoaderFill {
  0%   { width: 0; }
  100% { width: 100%; }
}

/* --- Topbar --- */
.gmail__topbar {
  height: 64px;
  background: #f6f8fc;
  display: flex;
  align-items: center;
  padding: 0 8px 0 16px;
  gap: 16px;
  flex-shrink: 0;
  border-radius: 16px 16px 0 0;
}

.gmail__hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  color: #5f6368;
}

.gmail__hamburger:hover {
  background: rgba(0, 0, 0, 0.06);
}

.gmail__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gmail__logo span {
  font-size: 22px;
  font-weight: 500;
  color: #5f6368;
  letter-spacing: -0.01em;
}

.gmail__search {
  flex: 1;
  max-width: 720px;
  height: 44px;
  background: #eaf1fb;
  border-radius: 28px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  margin-left: 148px;
  margin-right: auto;
}

.gmail__search-text {
  color: #5f6368;
  font-size: 16px;
  flex: 1;
}

.gmail__search-filter {
  margin-left: auto;
  cursor: pointer;
}

.gmail__topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.gmail__topbar-right svg {
  padding: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

.gmail__topbar-right svg:hover {
  background: rgba(0, 0, 0, 0.06);
}

.gmail__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  margin-left: 4px;
}

/* --- Body --- */
.gmail__body {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* --- Left Sidebar --- */
.gmail__sidebar {
  width: 256px;
  padding: 8px 12px;
  overflow-y: auto;
  flex-shrink: 0;
  background: #f6f8fc;
}

.gmail__compose {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #c2e7ff;
  color: #001d35;
  border: none;
  border-radius: 16px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}

.gmail__compose:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.gmail__nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 20px;
}

.gmail__nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-radius: 24px;
  font-size: 14px;
  color: #1f1f1f;
  cursor: pointer;
  height: 32px;
  transition: background 0.15s;
}

.gmail__nav-item:hover {
  background: #e8e8e8;
}

.gmail__nav-item.is-active {
  background: #d3e3fd;
  color: #1f1f1f;
  font-weight: 700;
}

.gmail__nav-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #1f1f1f;
}

/* --- Labels --- */
.gmail__labels {
  border-top: 1px solid #e0e0e0;
  padding-top: 12px;
}

.gmail__labels-header {
  font-size: 13px;
  font-weight: 500;
  color: #5f6368;
  padding: 4px 12px 8px;
}

.gmail__label-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  color: #1f1f1f;
  cursor: pointer;
  height: 30px;
  transition: background 0.15s;
}

.gmail__label-item:hover {
  background: #e8e8e8;
}

.gmail__label-item--sub {
  padding-left: 36px;
}

.gmail__label-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gmail__label-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 3px;
}

.gmail__label-item svg {
  margin-left: auto;
}

/* --- Main Content --- */
.gmail__content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
}

/* --- Tabs --- */
.gmail__tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.gmail__tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  color: #5f6368;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: background 0.15s;
  white-space: nowrap;
}

.gmail__tab:hover {
  background: #f5f5f5;
}

.gmail__tab.is-active {
  color: #1a73e8;
  border-bottom-color: #1a73e8;
  font-weight: 600;
}

/* --- Toolbar --- */
.gmail__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 4px 16px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
  height: 44px;
}

.gmail__toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gmail__toolbar-left svg {
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
}

.gmail__toolbar-left svg:hover {
  background: rgba(0, 0, 0, 0.06);
}

.gmail__toolbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gmail__toolbar-right svg {
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
}

.gmail__toolbar-right svg:hover {
  background: rgba(0, 0, 0, 0.06);
}

.gmail__pagination-text {
  font-size: 12px;
  color: #5f6368;
  margin-right: 8px;
}

.gmail__checkbox {
  width: 16px;
  height: 16px;
  accent-color: #1a73e8;
  cursor: pointer;
  flex-shrink: 0;
  display: none;
}

/* --- Email List --- */
.gmail__emails {
  position: relative;
  overflow-y: auto;
  background: #f2f6fc;
  padding-bottom: 10px;
}

.gmail__email {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.1s;
  background: #f2f6fc;
}

.gmail__email:last-child {
  border-bottom: none;
}

.gmail__email:hover {
  background: #eaf1fb;
  box-shadow: inset 0 -1px 0 #e0e0e0;
}

.gmail__email.is-unread {
  background: #fff;
  font-weight: 700;
}

.gmail__email.is-unread:hover {
  background: #f5f5f5;
}

.gmail__star {
  flex-shrink: 0;
  cursor: pointer;
  display: none;
}

.gmail__star:hover polygon {
  stroke: #f4b400;
}

.gmail__email-sender {
  width: 200px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.gmail__email.is-unread .gmail__email-sender {
  font-weight: 700;
}

.gmail__email-subject {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  min-width: 0;
}

.gmail__email.is-unread .gmail__email-subject strong {
  font-weight: 700;
}

.gmail__email-preview {
  color: #5f6368;
  font-weight: 400;
}

.gmail__email-date {
  width: 70px;
  text-align: right;
  font-size: 12px;
  color: #5f6368;
  flex-shrink: 0;
}

.gmail__email.is-unread .gmail__email-date {
  color: #1f1f1f;
  font-weight: 700;
}

/* --- Email Detail View --- */
.gmail__email-view {
  display: none;
  flex-direction: column;
  background: #fff;
  overflow-y: auto;
  flex: 1;
}

.gmail__email-view-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.gmail__email-view-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #5f6368;
  transition: background 0.15s;
}

.gmail__email-view-back:hover {
  background: rgba(0, 0, 0, 0.06);
}

.gmail__email-view-subject {
  font-size: 20px;
  font-weight: 400;
  color: #1f1f1f;
  flex: 1;
  line-height: 1.3;
  letter-spacing: normal;
}

.gmail__email-view-badge {
  font-size: 12px;
  background: #e8f0fe;
  color: #1a73e8;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.gmail__email-view-sender {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.gmail__email-view-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.gmail__email-view-sender-info {
  flex: 1;
  min-width: 0;
}

.gmail__email-view-sender-info strong {
  font-size: 14px;
  color: #1f1f1f;
}

.gmail__email-view-sender-info span {
  font-size: 12px;
  color: #5f6368;
}

.gmail__email-view-to {
  display: block;
  font-size: 12px;
  color: #5f6368;
}

.gmail__email-view-date {
  font-size: 12px;
  color: #5f6368;
  flex-shrink: 0;
  white-space: nowrap;
}

.gmail__email-view-content {
  padding: 0 16px 16px 68px;
  font-size: 14px;
  line-height: 1.65;
  color: #1f1f1f;
  flex: 1;
}

.gmail__email-view-actions {
  display: flex;
  gap: 8px;
  padding: 16px 16px 16px 68px;
  border-top: 1px solid #e0e0e0;
}

.gmail__email-view-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  border: 1px solid #dadce0;
  border-radius: 18px;
  background: #fff;
  color: #1f1f1f;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.gmail__email-view-btn:hover {
  background: #f6f8fc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gmail__email-view-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- Email detail: mobile-only elements (hidden on desktop) --- */
.gmail__email-view-header-actions { display: none; }
.gmail__email-view-sender-actions { display: none; }
.gmail__email-view-btn--emoji { display: none; }

/* --- Mobile drawer: hidden on desktop --- */
.gmail__drawer-logo { display: none; }
.gmail__drawer-backdrop { display: none; }

/* --- Right Sidebar --- */
.gmail__sidebar-right {
  width: 56px;
  border-left: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 4px;
  flex-shrink: 0;
}

.gmail__sidebar-right-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease;
}

.gmail__sidebar-right-icon:hover {
  background: rgba(0, 0, 0, 0.06);
}

.gmail__sidebar-right-divider {
  width: 28px;
  height: 1px;
  background: #e0e0e0;
  margin: 4px 0;
}

/* --- Section Label (desktop hidden) --- */
.gmail__section-label {
  display: none;
}

/* --- Notice overlay (hidden on desktop, shown on mobile) --- */
.gmail__notice {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  background: #fff;
  border-radius: 16px;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.gmail__notice p {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  max-width: 440px;
}

.gmail__notice.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* --- Bottom Bar (desktop hidden) --- */
.gmail__bottom-bar {
  display: none;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--container-padding);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.about__trail-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  border-radius: 8px;
  object-fit: cover;
}

.about .section-intro {
  padding: 8vh var(--container-padding) 0;
  position: relative;
  z-index: 2;
}

.about__content {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  justify-content: center;
  gap: clamp(32px, 4vw, 60px);
  max-width: 900px;
  width: 100%;
}

.about__photo {
  position: relative;
  flex-shrink: 0;
  width: clamp(180px, 20vw, 260px);
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: visible;
}

.about__photo img:not(.about__signature) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.about__signature {
  position: absolute;
  top: -5%;
  left: -25%;
  width: 50%;
  height: 50%;
  object-fit: contain;
  transform: rotate(-15deg);
  pointer-events: none;
}

.about__body {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.2;
  max-width: 600px;
}

.about__body p + p {
  margin-top: 1.4em;
}

.about .section-outro {
  padding: 0 0 4vh;
  position: relative;
  z-index: 2;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--container-padding);
}

.contact__intro {
  padding: 8vh 0 0;
  text-align: center;
}

.contact__intro-text {
  font-family: 'ivypresto-headline', 'IvyPresto Headline', var(--font-serif);
  font-size: clamp(1rem, 0.8rem + 1vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-dark);
}

.contact__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 700px;
}

.contact__text {
  font-family: 'ivypresto-headline', 'IvyPresto Headline', var(--font-serif);
  font-size: 28px;
  font-weight: 200;
  line-height: 1.25;
  max-width: 750px;
}

.contact__divider {
  width: 320px;
  border: none;
  border-top: 1.5px solid var(--color-dark);
  margin: 40px auto 10px;
}

.contact__email {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
}

.contact__email a {
  color: var(--color-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact__socials {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.contact__socials a {
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.contact__socials a:hover {
  opacity: 0.6;
}

.contact__socials img {
  display: block;
}

/* --- Nothing-here tooltip --- */
.nothing-tooltip {
  position: fixed;
  z-index: 10000;
  background: #fff;
  color: #1a1a1a;
  font-family: 'Google Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  padding: 12px 38px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
  transform: translateY(-120%);
}

.nothing-tooltip .nothing-tooltip__emoji {
  font-size: 34px;
  position: absolute;
  right: 6px;
  bottom: -2px;
  line-height: 1;
}

.nothing-tooltip.is-fading {
  opacity: 0;
}

@media (max-width: 767px) {
  .nothing-tooltip {
    white-space: nowrap;
    width: auto;
  }
}

@media (max-width: 2200px) {
  .hero__bust {
    right: -10%;
  }
}

@media (max-width: 1550px) {
  .hero__main {
    padding-top: 15vh;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1150px) and (min-width: 768px) {
  .works__case {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
  }

  .works__info {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .works__tags {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
  }

  .works__image {
    grid-column: 2;
    grid-row: 1 / -1;
  }

}

@media (max-width: 767px) {
  .works__case {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {

  .contact__intro {
    padding: 0;
  }

  .clients__marquee-list {
    gap: 48px;
    padding: 0 24px;
  }

  .clients__marquee-list img {
    height: 22px;
  }

  .clients__marquee::before,
  .clients__marquee::after {
    width: 60px;
  }

  :root {
    --container-padding: 20px;
  }

  .hero__logo {
    position: fixed;
    top: 24px;
    left: var(--container-padding);
    z-index: 103;
    mix-blend-mode: difference;
  }

  .hero__logo img {
    filter: invert(1);
  }

  .hero__logo img {
    margin-top: 0;
  }

  .hero {
    padding: 0;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .hero__main {
    order: 1;
    padding-top: 15vh;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  .hero__heading {
    font-size: clamp(2.6rem, 2rem + 4vw, 5.5rem);
    max-width: 700px;
    line-height: 1.05;
    padding: 0;
  }

  .hero__subtitle {
    font-size: 14px;
    max-width: 700px;
    line-height: 1.3;
  }

  .hero__bust {
    display: none;
  }

  .section-outro {
    order: 99;
    padding: 7vh 0 5vh;
  }

  .section-outro__text {
    font-size: 14px;
    font-weight: 400;
    max-width: 300px;
  }

  .section-outro__text--desktop {
    display: none;
  }

  .section-outro__text--mobile {
    display: block;
  }

  /* Works section mobile */
  .works {
    padding: 0;
    min-height: 0;
    height: auto;
  }

  .works__browser-sub {
    display: none;
  }

  .search {
    width: auto;
    margin: 0 var(--container-padding);
    min-height: 80px;
  }

  .search::before {
    height: auto;
    border-radius: 20px;
  }

  .search__bar {
    min-height: 56px;
    height: auto;
    padding: 12px 16px;
    gap: 10px;
  }

  .search__text {
    font-size: 14px;
    white-space: normal;
    flex-shrink: 1;
    line-height: 1.3;
  }

  .search__suggestion {
    padding: 0 16px;
    font-size: 14px;
    overflow: visible;
    white-space: normal;
  }

  .search__suggestion.is-visible {
    padding: 3px 16px;
    max-height: none;
  }

  .works__found {
    display: none;
  }

  .works__loader {
    display: none;
  }

  .search__suggestions {
    display: none;
  }

  .works__case {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 30px;
    transform: translateY(-30px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }

  .works__case.is-visible {
    transform: translateY(0);
  }

  .works__image {
    perspective: none;
  }

  .works__card {
    transform: none !important;
  }

  .works__image video {
    aspect-ratio: 16 / 10;
  }

  .works__tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    max-width: 340px;
  }

  .works__tag-list li::after {
    content: ' /\00a0 ';
    font-weight: 400;
  }

  .works__tag-list li:last-child::after {
    content: '';
  }

  .works__tag-list li[data-hide-mobile] {
    display: none;
  }

  .works__title {
    font-size: 20px;
    text-align: center;
  }

  .works__desc {
    font-size: 15px;
  }

  .works__browser-sub {
    order: 1;
  }

  .search {
    order: 2;
  }

  .works__pagination {
    gap: 10px;
    margin-top: 6vh;
    position: static;
    order: 7;
  }

  .works__found {
    order: 4;
  }

  .works__loader {
    order: 5;
  }

  .works__case {
    order: 6;
  }

  .works__page {
    font-size: 14px;
    padding: 4px 6px;
  }

  .clients__notice {
    padding: 0 var(--container-padding);
  }

  .clients__notice p {
    max-width: 320px;
  }

  .clients {
    height: auto;
    min-height: 0;
  }

  .clients__inner {
    padding-top: 0;
  }

  .clients .section-outro {
    padding: 7vh 0 5vh;
  }

  .about {
    height: auto;
    min-height: 0;
  }

  .about .section-intro {
    padding: 0;
    margin-bottom: 42px;
  }

  .about__content {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .about__photo {
    width: 60%;
    aspect-ratio: 1;
  }

  .about__body {
    text-align: left;
    font-size: 15px;
    align-self: flex-start;
  }

  .about .section-outro {
    padding: 7vh 0 5vh;
  }

  .contact {
    height: 100vh;
    height: 100svh;
  }

  /* Gmail section mobile */
  .gmail {
    width: calc(100% - 24px);
    height: 80vh;
    height: 80svh;
    border-radius: 12px;
  }

  .gmail__notice {
    display: none;
  }

  .gmail__topbar {
    height: 52px;
    padding: 0 16px;
    gap: 8px;
    border-radius: 12px 12px 0 0;
  }

  .gmail__hamburger {
    display: none;
  }

  .gmail__search {
    display: none;
  }

  .gmail__logo {
    flex: 1;
    justify-content: center;
  }

  .gmail__logo span {
    font-size: 18px;
  }

  /* Slide-out drawer (replaces display:none) */
  .gmail__body {
    position: static;
  }

  .gmail__sidebar {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    bottom: 56px;
    left: 0;
    width: 85%;
    max-width: 300px;
    z-index: 25;
    background: #fff;
    border-radius: 12px 0 0 12px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 16px 12px;
  }

  .gmail__sidebar.is-open {
    transform: translateX(0);
  }

  .gmail__drawer-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 12px;
  }

  .gmail__drawer-logo span {
    font-size: 20px;
    font-weight: 500;
    color: #5f6368;
  }

  /* Backdrop overlay */
  .gmail__drawer-backdrop {
    display: none;
    position: absolute;
    inset: 0 0 56px 0;
    z-index: 24;
    background: rgba(0, 0, 0, 0.4);
  }

  .gmail__drawer-backdrop.is-visible {
    display: block;
  }

  .gmail__sidebar-right {
    display: none;
  }

  .gmail__topbar-right svg {
    display: none;
  }

  .gmail__avatar {
    display: flex;
  }

  .gmail__topbar-right {
    gap: 0;
  }

  .gmail__content {
    border-left: none;
  }

  /* Hide tabs and toolbar on mobile */
  .gmail__tabs {
    display: none;
  }

  .gmail__toolbar {
    display: none;
  }

  /* "Important" section label */
  .gmail__section-label {
    display: block;
    padding: 12px 16px 4px;
    font-size: 12px;
    font-weight: 500;
    color: #5f6368;
    letter-spacing: 0.02em;
  }

  /* Email list cleanup */
  .gmail__emails {
    background: #fff;
    padding-bottom: 0;
  }

  .gmail__loader {
    background: #fff;
  }

  /* Multi-line email rows */
  .gmail__email {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    grid-template-rows: auto auto;
    height: auto;
    padding: 12px 16px;
    gap: 0 12px;
    align-items: start;
    border-bottom: none;
    background: #fff;
  }

  .gmail__email.is-unread {
    background: #fff;
  }

  .gmail__email:hover {
    background: #f5f5f5;
    box-shadow: none;
  }

  .gmail__email-sender {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    font-size: 14px;
  }

  .gmail__email-date {
    grid-column: 3;
    grid-row: 1;
    width: auto;
    font-size: 12px;
    text-align: right;
  }

  .gmail__email-subject {
    grid-column: 2 / -1;
    grid-row: 2;
    font-size: 13px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .gmail__email-subject strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .gmail__email-preview {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Sender avatars via ::before pseudo-element */
  .gmail__email::before {
    content: attr(data-avatar);
    grid-row: 1 / -1;
    grid-column: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    flex-shrink: 0;
    align-self: center;
  }

  /* Avatar colors using nth-child to match COLORS array */
  .gmail__email:nth-child(20n+1)::before { background: #1a73e8; }
  .gmail__email:nth-child(20n+2)::before { background: #ea4335; }
  .gmail__email:nth-child(20n+3)::before { background: #34a853; }
  .gmail__email:nth-child(20n+4)::before { background: #fbbc04; }
  .gmail__email:nth-child(20n+5)::before { background: #ff6d01; }
  .gmail__email:nth-child(20n+6)::before { background: #46bdc6; }
  .gmail__email:nth-child(20n+7)::before { background: #7baaf7; }
  .gmail__email:nth-child(20n+8)::before { background: #e07070; }
  .gmail__email:nth-child(20n+9)::before { background: #ab30c4; }
  .gmail__email:nth-child(20n+10)::before { background: #0d652d; }
  .gmail__email:nth-child(20n+11)::before { background: #1a73e8; }
  .gmail__email:nth-child(20n+12)::before { background: #ea4335; }
  .gmail__email:nth-child(20n+13)::before { background: #34a853; }
  .gmail__email:nth-child(20n+14)::before { background: #fbbc04; }
  .gmail__email:nth-child(20n+15)::before { background: #ff6d01; }
  .gmail__email:nth-child(20n+16)::before { background: #46bdc6; }
  .gmail__email:nth-child(20n+17)::before { background: #7baaf7; }
  .gmail__email:nth-child(20n+18)::before { background: #e07070; }
  .gmail__email:nth-child(20n+19)::before { background: #ab30c4; }
  .gmail__email:nth-child(20n+20)::before { background: #0d652d; }

  /* Bottom navigation bar */
  .gmail__bottom-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 56px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
    flex-shrink: 0;
  }

  .gmail__bottom-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: #5f6368;
    cursor: pointer;
  }

  .gmail__bottom-bar-item.is-active {
    color: #1a73e8;
    animation: subtle-blink 2s ease-in-out infinite;
  }

  .gmail__bottom-bar-item.is-active svg {
    stroke: #1a73e8;
  }

  @keyframes subtle-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }

  /* Email detail view mobile */
  .gmail__email-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 56px;
    z-index: 15;
    border-radius: 12px 12px 0 0;
  }

  .gmail__email-view-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
    padding: 12px 8px 12px 8px;
    border-bottom: none;
    position: static;
    align-items: center;
  }

  .gmail__email-view-back {
    grid-column: 1;
    grid-row: 1;
  }

  .gmail__email-view-header-actions {
    display: flex;
    gap: 4px;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .gmail__email-view-header-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
  }

  .gmail__email-view-header-icon:hover {
    background: rgba(0, 0, 0, 0.06);
  }

  .gmail__email-view-subject {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 22px;
    line-height: 1.25;
    padding: 8px 8px 4px;
  }

  .gmail__email-view-badge {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    margin: 0 8px 4px;
  }

  .gmail__email-view-sender-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
  }

  .gmail__email-view-sender-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
  }

  .gmail__email-view-sender-icon:hover {
    background: rgba(0, 0, 0, 0.06);
  }

  .gmail__email-view-content {
    padding: 16px;
  }

  .gmail__email-view-actions {
    border-top: none;
    padding: 12px 16px 16px;
  }

  .gmail__email-view-btn {
    flex: 1;
  }

  .gmail__email-view-btn--emoji {
    display: flex;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    align-items: center;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero__main {
    order: 1;
    padding-top: 15vh;
  }

  .hero__heading {
    max-width: 970px;
  }

  .hero__bust {
    order: 2;
    position: relative;
    right: auto;
    width: 100%;
    height: 70vh;
    margin: -20vh auto 0;
    opacity: 1;
  }

  .section-outro {
    order: 3;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: 40px;
  }
}

@media (min-width: 1200px) {
  :root {
    --container-max: 1200px;
  }
}
