/* =========================================================
   THEME
   ========================================================= */

:root {
  --bg: #f4f1eb;
  --text: #1f1f1f;
  --text-muted: #6f6f6f;
  --glass: rgba(255, 255, 255, 0.45);
  --border: rgba(0, 0, 0, 0.08);
  --accent: #c8a86b;
}


/*
  IMPORTANT :
  le script applique actuellement .dark au body.

  On répercute donc les variables sombres directement sur :root
  afin que <html> ET <body> aient exactement le même fond.
*/
:root:has(body.dark) {
  --bg: #0f0f10;
  --text: #f3f1ec;
  --text-muted: #9a9a9a;
  --glass: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --accent: #d2b06f;
}


/* Fallback */
.dark {
  --bg: #0f0f10;
  --text: #f3f1ec;
  --text-muted: #9a9a9a;
  --glass: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --accent: #d2b06f;
}


/* =========================================================
   RESET / GLOBAL
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;

  width: 100%;
  min-width: 100%;
  min-height: 100%;

  overflow-x: hidden;

  background-color: var(--bg);

  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;

  width: 100%;
  min-width: 0;

  min-height: 100vh;
  min-height: 100dvh;

  overflow-x: hidden;

  background-color: var(--bg);
  color: var(--text);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

main {
  width: 100%;
  min-width: 0;
  min-height: 100%;

  background-color: var(--bg);

  overflow-x: hidden;
}

img,
picture,
video,
canvas {
  display: block;
  max-width: 100%;
}

section,
header,
footer,
.project-card,
.project-content,
.project-visual {
  min-width: 0;
}

@supports (overflow: clip) {
  html,
  body,
  main {
    overflow-x: clip;
  }
}


/* =========================================================
   HEADER
   ========================================================= */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: calc(100% - 32px);
  max-width: 1100px;

  margin: 16px auto;
  padding: 14px 20px;

  background: var(--glass);

  border: 1px solid var(--border);
  border-radius: 24px;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
}

.logo-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.header-actions {
  display: flex;
  align-items: center;

  gap: 24px;
}

nav {
  display: flex;

  gap: 28px;
}

nav a {
  color: var(--text-muted);

  text-decoration: none;

  font-size: 14px;

  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text);
}


/* =========================================================
   THEME SWITCH
   ========================================================= */

.theme-switch {
  position: relative;

  display: inline-block;

  width: 52px;
  height: 30px;

  flex-shrink: 0;
}

.theme-switch input {
  width: 0;
  height: 0;

  opacity: 0;
}

.slider {
  position: absolute;
  inset: 0;

  cursor: pointer;

  background: var(--glass);

  border: 1px solid var(--border);
  border-radius: 999px;
}

.slider::before {
  content: "";

  position: absolute;

  width: 24px;
  height: 24px;

  top: 2px;
  left: 2px;

  background: var(--text);

  border-radius: 50%;

  transition: transform 0.3s ease;
}

.theme-switch input:checked + .slider::before {
  transform: translateX(22px);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  isolation: isolate;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  width: 100%;
  max-width: 1100px;

  min-height: 72vh;

  margin: 0 auto;

  padding: 120px 20px 100px;
}

.hero::before {
  content: "";

  position: absolute;

  width: 620px;
  height: 440px;

  right: -140px;
  top: 90px;

  z-index: 0;

  pointer-events: none;

  border-radius: 50%;

  background: radial-gradient(
    ellipse at center,
    rgba(210, 176, 111, 0.45) 0%,
    rgba(210, 176, 111, 0.2) 35%,
    rgba(210, 176, 111, 0.08) 55%,
    transparent 75%
  );

  filter: blur(70px);
}

.dark .hero::before {
  opacity: 0.65;
}

body:not(.dark) .hero::before {
  background: radial-gradient(
    ellipse at center,
    rgba(200, 168, 107, 0.32) 0%,
    rgba(200, 168, 107, 0.16) 35%,
    rgba(200, 168, 107, 0.06) 55%,
    transparent 75%
  );

  opacity: 0.55;
}

.hero > * {
  position: relative;

  z-index: 1;

  max-width: 760px;
}

.hero-kicker,
.project-kicker,
.about-kicker,
.contact-kicker,
.project-page-kicker,
.section-kicker {
  color: var(--text-muted);

  font-size: 12px;

  letter-spacing: 0.18em;

  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;

  margin: 20px 0 24px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 64px;

  line-height: 1.05;

  font-weight: 500;
}

.hero-text {
  max-width: 620px;

  margin-bottom: 32px;

  color: var(--text-muted);

  font-size: 18px;

  line-height: 1.6;
}

.hero-button {
  display: inline-block;

  padding: 12px 18px;

  border-radius: 999px;

  background: var(--text);
  color: var(--bg);

  text-decoration: none;

  font-size: 14px;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.hero-button:hover {
  transform: translateY(-2px);

  opacity: 0.9;
}


/* =========================================================
   SECTION TITLES
   ========================================================= */

.selected-projects {
  width: 100%;
  max-width: 1100px;

  margin: 0 auto;

  padding: 40px 20px 50px;
}

.section-kicker {
  margin: 0 0 16px;
}

.section-heading h2 {
  max-width: 650px;

  margin: 0;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 44px;

  line-height: 1.1;

  font-weight: 500;
}


/* =========================================================
   FEATURED PROJECTS
   ========================================================= */

.featured-project {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1.2fr);

  align-items: center;

  gap: 40px;

  width: calc(100% - 40px);
  max-width: 1100px;

  margin: 0 auto 28px;

  padding: 40px;

  background: var(--glass);

  border: 1px solid var(--border);
  border-radius: 28px;

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.project-content {
  min-width: 0;

  padding: 20px 0;
}

.featured-project h2 {
  margin: 18px 0 20px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 52px;

  font-weight: 500;
}

.project-text {
  max-width: 520px;

  margin-bottom: 24px;

  color: var(--text-muted);

  font-size: 18px;

  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 28px;
}

.project-tags span {
  padding: 8px 12px;

  border-radius: 999px;

  background: var(--glass);

  border: 1px solid var(--border);

  color: var(--text-muted);

  font-size: 12px;
}

.project-link {
  color: var(--text);

  text-decoration: none;

  font-size: 14px;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.project-link:hover {
  opacity: 0.65;
}


/* =========================================================
   PROJECT VISUAL
   ========================================================= */

.project-visual {
  position: relative;

  min-width: 0;

  min-height: 380px;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 22px;

  background: linear-gradient(
    135deg,
    rgba(210, 176, 111, 0.16),
    rgba(255, 255, 255, 0.03)
  );
}

.project-visual::before {
  content: "";

  position: absolute;

  width: 260px;
  height: 260px;

  right: 20px;
  top: 80px;

  border-radius: 50%;

  background: var(--accent);

  filter: blur(90px);

  opacity: 0.28;
}

.phone-mockup {
  position: absolute;

  width: 210px;
  height: 430px;

  right: 55px;
  bottom: -70px;

  padding: 8px;

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 36px;

  background: #161616;

  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);

  transform: rotate(5deg);

  transition: transform 0.3s ease;
}

.phone-mockup:hover {
  transform: rotate(3deg) translateY(-6px);
}

.phone-screen {
  width: 100%;
  height: 100%;

  overflow: hidden;

  border-radius: 29px;

  background: #0d0d0e;
}

.phone-screen img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.featured-project-reverse {
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(0, 1fr);
}

.featured-project-reverse .project-visual {
  order: -1;
}


/* =========================================================
   VINTED VISUAL
   ========================================================= */

.vinted-visual {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 380px;

  padding: 18px;

  background: linear-gradient(
    135deg,
    rgba(0, 150, 145, 0.12),
    rgba(255, 255, 255, 0.03)
  );
}

.vinted-visual::before {
  width: 300px;
  height: 300px;

  right: auto;
  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  background: rgba(0, 150, 145, 0.5);

  opacity: 0.16;
}

.vinted-preview {
  position: relative;

  z-index: 1;

  width: 100%;
  max-width: 520px;

  border-radius: 18px;

  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);

  transition: transform 0.35s ease;
}

.vinted-preview:hover {
  transform: scale(1.015);
}


/* =========================================================
   ALL PROJECTS LINK
   ========================================================= */

.all-projects-link {
  width: 100%;
  max-width: 1100px;

  margin: 0 auto;

  padding: 18px 20px 120px;

  text-align: right;
}

.all-projects-link a {
  display: inline-flex;
  align-items: center;

  gap: 14px;

  color: var(--text);

  text-decoration: none;

  font-size: 14px;
}

.all-projects-link span {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border: 1px solid var(--border);

  border-radius: 50%;

  background: var(--glass);

  transition: transform 0.2s ease;
}

.all-projects-link a:hover span {
  transform: translateX(4px);
}


/* =========================================================
   SERVICES
   ========================================================= */

.services {
  width: 100%;
  max-width: 1100px;

  margin: 0 auto;

  padding: 0 20px 120px;
}

.services-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;

  margin-top: 44px;
}

.service-card {
  min-width: 0;

  padding: 30px;

  background: var(--glass);

  border: 1px solid var(--border);

  border-radius: 22px;
}

.service-number {
  display: block;

  margin-bottom: 60px;

  color: var(--text-muted);

  font-size: 12px;
}

.service-card h3 {
  margin: 0 0 12px;

  font-size: 20px;

  font-weight: 600;
}

.service-card p {
  margin: 0;

  color: var(--text-muted);

  font-size: 15px;

  line-height: 1.6;
}


/* =========================================================
   PROCESS
   ========================================================= */

.process {
  width: 100%;
  max-width: 1100px;

  margin: 0 auto;

  padding: 0 20px 120px;
}

.process-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 32px;

  margin-top: 36px;

  padding-top: 36px;

  border-top: 1px solid var(--border);
}

.process-grid article {
  min-width: 0;
}

.process-grid article span {
  display: block;

  margin-bottom: 34px;

  color: var(--text-muted);

  font-size: 12px;
}

.process-grid h3 {
  margin: 0 0 10px;

  font-size: 17px;
}

.process-grid p {
  margin: 0;

  color: var(--text-muted);

  font-size: 14px;

  line-height: 1.6;
}


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

.about {
  display: grid;

  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(0, 1fr);

  align-items: start;

  gap: 60px;

  width: 100%;
  max-width: 1100px;

  margin: 0 auto;

  padding: 60px 20px 120px;
}

.about h2 {
  max-width: 760px;

  margin: 18px 0 24px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 48px;

  line-height: 1.1;

  font-weight: 500;
}

.about-text {
  max-width: 520px;

  margin-top: 42px;

  color: var(--text-muted);

  font-size: 18px;

  line-height: 1.6;
}


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

.contact {
  position: relative;

  width: calc(100% - 40px);
  max-width: 1100px;

  margin: 0 auto 40px;

  padding: 70px 40px;

  overflow: hidden;

  background: var(--glass);

  border: 1px solid var(--border);

  border-radius: 28px;

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.contact::before {
  content: "";

  position: absolute;

  width: 360px;
  height: 360px;

  right: -80px;
  bottom: -180px;

  border-radius: 50%;

  background: var(--accent);

  filter: blur(130px);

  opacity: 0.12;
}

.contact > * {
  position: relative;

  z-index: 1;
}

.contact h2 {
  max-width: 620px;

  margin: 18px 0 20px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 52px;

  line-height: 1.05;

  font-weight: 500;
}

.contact-text {
  max-width: 560px;

  margin-bottom: 32px;

  color: var(--text-muted);

  font-size: 18px;

  line-height: 1.6;
}

.contact-button {
  display: inline-block;

  padding: 12px 18px;

  border-radius: 999px;

  background: var(--text);

  color: var(--bg);

  text-decoration: none;

  font-size: 14px;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.contact-button:hover {
  transform: translateY(-2px);

  opacity: 0.9;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  display: flex;
  justify-content: space-between;

  width: 100%;
  max-width: 1100px;

  margin: 0 auto;

  padding: 24px 20px 40px;

  color: var(--text-muted);

  font-size: 13px;

  background: var(--bg);
}


/* =========================================================
   PROJECT DETAIL HERO
   ========================================================= */

.project-hero {
  width: 100%;
  max-width: 1100px;

  margin: 0 auto;

  padding: 80px 20px 70px;
}

.back-link {
  display: inline-block;

  margin-bottom: 60px;

  color: var(--text-muted);

  text-decoration: none;

  font-size: 14px;

  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--text);
}

.project-hero h1 {
  margin: 18px 0 24px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 72px;

  line-height: 1;

  font-weight: 500;

  overflow-wrap: anywhere;
}

.project-page-intro {
  max-width: 680px;

  color: var(--text-muted);

  font-size: 20px;

  line-height: 1.6;
}


/* =========================================================
   PROJECT SHOWCASE
   ========================================================= */

.project-showcase {
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;

  width: calc(100% - 40px);
  max-width: 1100px;

  margin: 0 auto 120px;

  padding: 70px 20px;

  overflow: hidden;

  background: var(--glass);

  border: 1px solid var(--border);

  border-radius: 28px;

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.project-showcase::before {
  content: "";

  position: absolute;

  width: 420px;
  height: 420px;

  right: 15%;
  top: 20%;

  border-radius: 50%;

  background: var(--accent);

  filter: blur(140px);

  opacity: 0.14;

  pointer-events: none;
}

.project-showcase img {
  position: relative;

  z-index: 1;

  width: 330px;
  max-width: 100%;

  border-radius: 34px;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   PROJECT ABOUT
   ========================================================= */

.project-about {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 80px;

  width: 100%;
  max-width: 1100px;

  margin: 0 auto;

  padding: 0 20px 120px;
}

.project-about h2 {
  max-width: 520px;

  margin: 18px 0 0;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 46px;

  line-height: 1.1;

  font-weight: 500;
}

.project-about-text {
  min-width: 0;

  padding-top: 32px;
}

.project-about-text p {
  margin: 0 0 24px;

  color: var(--text-muted);

  font-size: 18px;

  line-height: 1.7;
}


/* =========================================================
   PROJECT FEATURES
   ========================================================= */

.project-features {
  width: 100%;
  max-width: 1100px;

  margin: 0 auto;

  padding: 0 20px 120px;
}

.features-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;

  margin-top: 28px;
}

.feature-item {
  min-width: 0;

  padding: 28px;

  background: var(--glass);

  border: 1px solid var(--border);

  border-radius: 22px;
}

.feature-item h3 {
  margin: 0 0 12px;

  font-size: 18px;

  font-weight: 600;
}

.feature-item p {
  margin: 0;

  color: var(--text-muted);

  font-size: 15px;

  line-height: 1.6;
}


/* =========================================================
   PROJECT GALLERY
   ========================================================= */

.project-gallery {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 24px;

  width: 100%;
  max-width: 1100px;

  margin: 0 auto 120px;

  padding: 0 20px;
}

.gallery-card {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;

  min-height: 620px;

  padding: 50px;

  overflow: hidden;

  background: var(--glass);

  border: 1px solid var(--border);

  border-radius: 28px;

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.gallery-card img {
  width: 280px;
  max-width: 100%;

  height: auto;

  border-radius: 30px;

  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
}


/* =========================================================
   TECHNOLOGIES
   ========================================================= */

.project-tech {
  width: 100%;
  max-width: 1100px;

  margin: 0 auto;

  padding: 0 20px 120px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-top: 28px;
}

.tech-list span {
  padding: 10px 16px;

  border-radius: 999px;

  background: var(--glass);

  border: 1px solid var(--border);

  color: var(--text-muted);

  font-size: 14px;
}


/* =========================================================
   PROJECT CTA
   ========================================================= */

.project-cta {
  width: calc(100% - 40px);
  max-width: 1100px;

  margin: 0 auto 40px;

  padding: 70px 40px;

  background: var(--glass);

  border: 1px solid var(--border);

  border-radius: 28px;

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.project-cta h2 {
  max-width: 720px;

  margin: 18px 0 32px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 52px;

  line-height: 1.05;

  font-weight: 500;
}


/* =========================================================
   REVEAL
   ========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(56px);

  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);

  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;

  transform: translateY(0);
}


/* =========================================================
   PROJECTS PAGE
   ========================================================= */

.projects-page-hero {
  width: 100%;
  max-width: 1100px;

  margin: 0 auto;

  padding: 100px 20px 70px;
}

.projects-page-hero h1 {
  max-width: 800px;

  margin: 18px 0 24px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 64px;

  line-height: 1.05;

  font-weight: 500;
}

.projects-page-hero > p:last-child {
  max-width: 620px;

  color: var(--text-muted);

  font-size: 18px;

  line-height: 1.6;
}

.projects-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 24px;

  width: 100%;
  max-width: 1100px;

  margin: 0 auto;

  padding: 0 20px 120px;
}

.project-card {
  min-width: 0;

  overflow: hidden;

  background: var(--glass);

  border: 1px solid var(--border);

  border-radius: 28px;

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.project-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;

  height: 360px;

  overflow: hidden;

  border-bottom: 1px solid var(--border);

  background: linear-gradient(
    135deg,
    rgba(210, 176, 111, 0.12),
    rgba(255, 255, 255, 0.03)
  );
}

.project-card-visual img {
  width: 88%;
  max-width: 88%;

  max-height: 88%;

  object-fit: contain;

  border-radius: 18px;

  transition: transform 0.4s ease;
}

.project-card:hover .project-card-visual img {
  transform: scale(1.03);
}

.project-card-content {
  min-width: 0;

  padding: 30px;
}

.project-card-content h2 {
  margin: 14px 0 16px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 36px;

  font-weight: 500;

  overflow-wrap: anywhere;
}

.project-card-content > p:not(.project-kicker) {
  margin: 0 0 22px;

  color: var(--text-muted);

  font-size: 16px;

  line-height: 1.6;
}


/* =========================================================
   WIDE SHOWCASE
   ========================================================= */

.project-wide-showcase {
  width: 100%;
  max-width: 1100px;

  margin: 0 auto 120px;

  padding: 0 20px;
}

.project-wide-showcase img {
  width: 100%;
  height: auto;

  border: 1px solid var(--border);

  border-radius: 28px;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.16);
}


/* =========================================================
   PROJECT FLOW
   ========================================================= */

.project-flow {
  width: 100%;
  max-width: 1100px;

  margin: 0 auto;

  padding: 0 20px 120px;
}

.flow-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 24px;

  margin-top: 32px;
}

.flow-grid article {
  min-width: 0;

  padding-top: 28px;

  border-top: 1px solid var(--border);
}

.flow-grid span {
  display: block;

  margin-bottom: 28px;

  color: var(--text-muted);

  font-size: 12px;
}

.flow-grid h3 {
  margin: 0 0 10px;

  font-size: 18px;
}

.flow-grid p {
  margin: 0;

  color: var(--text-muted);

  font-size: 15px;

  line-height: 1.6;
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 768px) {

  header {
    width: calc(100% - 24px);

    margin: 12px auto;

    padding: 12px 16px;

    border-radius: 20px;
  }

  .logo {
    font-size: 16px;
  }

  nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;

    gap: 12px;
  }


  /* HERO */

  .hero {
    min-height: 62vh;

    padding: 80px 20px 70px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero::before {
    width: 380px;
    height: 300px;

    right: -180px;
    top: 120px;
  }


  /* SECTION TITLE */

  .selected-projects {
    padding: 30px 20px 36px;
  }

  .section-heading h2 {
    font-size: 36px;
  }


  /* FEATURED PROJECT */

  .featured-project,
  .featured-project-reverse {
    grid-template-columns:
      minmax(0, 1fr);

    gap: 32px;

    width: calc(100% - 32px);

    margin: 0 auto 22px;

    padding: 28px;
  }

  .featured-project h2 {
    font-size: 42px;
  }

  .project-text {
    font-size: 16px;
  }

  .project-visual {
    width: 100%;

    min-height: 320px;
  }

  .phone-mockup {
    width: 150px;
    height: 310px;

    right: 50%;
    bottom: -25px;

    transform:
      translateX(50%)
      rotate(5deg);
  }

  .phone-mockup:hover {
    transform:
      translateX(50%)
      rotate(3deg)
      translateY(-6px);
  }

  .featured-project-reverse .project-visual {
    order: 0;
  }

  .vinted-visual {
    min-height: auto;

    padding: 12px;
  }

  .vinted-preview {
    width: 100%;

    max-width: 100%;

    border-radius: 16px;
  }

  .all-projects-link {
    padding: 18px 20px 80px;
  }


  /* SERVICES */

  .services {
    padding: 0 20px 80px;
  }

  .services-grid {
    grid-template-columns:
      minmax(0, 1fr);

    gap: 14px;
  }

  .service-number {
    margin-bottom: 36px;
  }


  /* PROCESS */

  .process {
    padding: 0 20px 80px;
  }

  .process-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 36px 20px;
  }


  /* ABOUT */

  .about {
    grid-template-columns:
      minmax(0, 1fr);

    gap: 20px;

    padding: 60px 20px 80px;
  }

  .about h2 {
    font-size: 40px;
  }

  .about-text {
    margin-top: 0;

    font-size: 16px;
  }


  /* CONTACT */

  .contact {
    width: calc(100% - 32px);

    margin: 0 auto 28px;

    padding: 44px 24px;

    border-radius: 24px;
  }

  .contact h2 {
    font-size: 40px;
  }

  .contact-text {
    font-size: 16px;
  }


  /* FOOTER */

  footer {
    padding: 20px 20px 32px;
  }


  /* DETAIL */

  .project-hero {
    padding: 60px 20px 50px;
  }

  .back-link {
    margin-bottom: 40px;
  }

  .project-hero h1 {
    font-size: 52px;
  }

  .project-page-intro {
    font-size: 17px;
  }

  .project-showcase {
    width: calc(100% - 32px);

    margin: 0 auto 80px;

    padding: 44px 20px;

    border-radius: 24px;
  }

  .project-showcase img {
    width: 260px;

    max-width: 100%;
  }

  .project-about {
    grid-template-columns:
      minmax(0, 1fr);

    gap: 24px;

    padding: 0 20px 80px;
  }

  .project-about h2 {
    font-size: 38px;
  }

  .project-about-text {
    padding-top: 0;
  }

  .project-about-text p {
    font-size: 16px;
  }


  /* FEATURES */

  .project-features {
    padding: 0 20px 80px;
  }

  .features-grid {
    grid-template-columns:
      minmax(0, 1fr);

    gap: 14px;
  }

  .feature-item {
    padding: 22px;
  }


  /* GALLERY */

  .project-gallery {
    grid-template-columns:
      minmax(0, 1fr);

    gap: 18px;

    margin: 0 auto 80px;

    padding: 0 16px;
  }

  .gallery-card {
    width: 100%;

    min-width: 0;

    min-height: 500px;

    padding: 36px 20px;
  }

  .gallery-card img {
    width: 260px;

    max-width: 100%;
  }


  /* TECH */

  .project-tech {
    padding: 0 20px 80px;
  }


  /* CTA */

  .project-cta {
    width: calc(100% - 32px);

    margin: 0 auto 28px;

    padding: 42px 24px;
  }

  .project-cta h2 {
    font-size: 40px;
  }


  /* PROJECT LIST */

  .projects-page-hero {
    padding: 70px 20px 50px;
  }

  .projects-page-hero h1 {
    font-size: 50px;
  }

  .projects-page-hero > p:last-child {
    font-size: 17px;
  }

  .projects-grid {
    grid-template-columns:
      minmax(0, 1fr);

    gap: 18px;

    padding: 0 16px 80px;
  }

  .project-card {
    width: 100%;
  }

  .project-card-visual {
    width: 100%;

    height: 300px;
  }

  .project-card-content {
    padding: 24px;
  }

  .project-card-content h2 {
    font-size: 32px;
  }


  /* WIDE SHOWCASE */

  .project-wide-showcase {
    margin-bottom: 80px;

    padding: 0 16px;
  }

  .project-wide-showcase img {
    border-radius: 22px;
  }


  /* FLOW */

  .flow-grid {
    grid-template-columns:
      minmax(0, 1fr);

    gap: 28px;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

  .hero {
    padding-top: 70px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .featured-project {
    padding: 24px;
  }

  .featured-project h2 {
    font-size: 38px;
  }

  .process-grid {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .contact h2,
  .project-cta h2 {
    font-size: 36px;
  }

  .project-hero h1 {
    font-size: 44px;
  }

  .projects-page-hero {
    padding: 70px 20px 50px;
  }

  .projects-page-hero h1 {
    font-size: 44px;
  }

  .projects-page-hero > p:last-child {
    font-size: 16px;
  }

  .project-card-visual {
    height: 260px;
  }

  .project-card-content {
    padding: 22px;
  }

  .project-card-content h2 {
    font-size: 30px;
  }

  .gallery-card {
    min-height: 420px;
  }
}