:root {
  --bg: #f4eee4;
  --bg-deep: #e9dfcf;
  --panel: rgba(255, 252, 246, .78);
  --panel-solid: #fffaf2;
  --text: #1e1d19;
  --muted: #6f6a60;
  --line: rgba(30, 29, 25, .13);
  --gold: #b58a3a;
  --gold-dark: #8c6729;
  --charcoal: #25251f;
  --charcoal-soft: #34342b;
  --white: #fffdf8;

  --shadow: 0 26px 70px rgba(54, 44, 27, .13);
  --shadow-soft: 0 14px 38px rgba(54, 44, 27, .09);

  --radius-lg: 30px;
  --radius-md: 20px;
  --container: min(1160px, calc(100% - 2rem));
}


/* =========================================================
   DARK MODE
   ========================================================= */

body.dark {
  --bg: #191914;
  --bg-deep: #11110e;
  --panel: rgba(40, 39, 31, .78);
  --panel-solid: #292820;
  --text: #f6f0e5;
  --muted: #b8b0a2;
  --line: rgba(255, 250, 240, .12);
  --charcoal: #11110e;
  --charcoal-soft: #23231c;
  --white: #f8f2e8;

  --shadow: 0 28px 75px rgba(0, 0, 0, .34);
  --shadow-soft: 0 15px 40px rgba(0, 0, 0, .25);
}


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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);

  background:
    radial-gradient(
      circle at 8% 8%,
      rgba(181, 138, 58, .13),
      transparent 26%
    ),
    radial-gradient(
      circle at 92% 18%,
      rgba(255, 255, 255, .5),
      transparent 24%
    ),
    linear-gradient(
      180deg,
      var(--bg),
      var(--bg-deep)
    );

  transition:
    background .4s ease,
    color .4s ease;

  overflow-x: hidden;
}

body.dark {
  background:
    radial-gradient(
      circle at 10% 5%,
      rgba(181, 138, 58, .12),
      transparent 26%
    ),
    linear-gradient(
      180deg,
      var(--bg),
      var(--bg-deep)
    );
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

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


/* =========================================================
   SCROLL / CURSOR
   ========================================================= */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;

  height: 3px;
  width: 0;

  background: var(--gold);

  z-index: 100;
  transform-origin: left;
}

.cursor-glow {
  position: fixed;

  width: 260px;
  height: 260px;

  border-radius: 50%;

  pointer-events: none;

  background:
    radial-gradient(
      circle,
      rgba(181, 138, 58, .12),
      transparent 68%
    );

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

  z-index: 0;

  transition:
    left .12s ease-out,
    top .12s ease-out;
}


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

.site-header {
  position: sticky;
  top: 0;

  z-index: 50;

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

  backdrop-filter: blur(18px);

  background: rgba(244, 238, 228, .76);
}

body.dark .site-header {
  background: rgba(25, 25, 20, .78);
}

.nav-wrap {
  min-height: 82px;

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

  gap: 1rem;
}


/* =========================================================
   CHUKSART BRAND
   ========================================================= */

.brand {
  display: inline-flex;
  align-items: center;

  gap: .7rem;

  font-weight: 800;
  letter-spacing: .08em;
}


/*
   BRAND BADGE

   The supplied Chuksart logo is a square image with
   considerable black space surrounding the actual logo.

   overflow:hidden + transform:scale() allows the actual
   logo artwork to fill the circular badge.
*/

.brand-mark {
  width: 60px;
  height: 60px;

  flex: 0 0 60px;

  border-radius: 50%;

  overflow: hidden;

  padding: 0;

  position: relative;

  display: grid;
  place-items: center;

  background: #000;

  border: 1px solid rgba(181, 138, 58, .75);

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .05),
    0 8px 20px rgba(54, 44, 27, .12);
}

.brand-mark img {
  width: 90%;
  height: 90%;

  max-width: none;

  display: block;

  object-fit: contain;

  object-position: center;

  /*
     Increase this if you want the logo even larger.
     2.25 is the current balanced setting.
  */
  transform: scale(1.85);

  mix-blend-mode: normal;
}

.brand-text {
  font-size: .78rem;
  line-height: 1.05;
}

.brand-text small {
  display: block;

  color: var(--gold-dark);

  font-size: .48rem;

  letter-spacing: .2em;

  margin-top: .22rem;
}


/* =========================================================
   NAVIGATION LINKS
   ========================================================= */

.nav {
  display: flex;
  align-items: center;

  gap: 1.5rem;
}

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

  font-size: .86rem;

  position: relative;

  padding: .45rem 0;
}

.nav a::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 1px;

  background: var(--gold);

  transform: scaleX(0);

  transform-origin: right;

  transition: transform .25s ease;
}

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

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}


/* =========================================================
   NAV ACTIONS
   ========================================================= */

.nav-actions {
  display: flex;
  gap: .7rem;
  align-items: center;
}

.theme-toggle,
.menu-btn {
  width: 44px;
  height: 44px;

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

  border-radius: 50%;

  background: var(--panel);

  cursor: pointer;

  display: grid;
  place-items: center;

  transition:
    transform .25s ease,
    border-color .25s ease,
    background .25s ease;
}

.theme-toggle:hover,
.menu-btn:hover {
  transform: translateY(-2px);

  border-color: rgba(181, 138, 58, .65);
}

.menu-btn {
  display: none;

  border-radius: 13px;

  padding: .65rem;
}

.menu-btn span {
  display: block;

  width: 100%;
  height: 2px;

  margin: 3px 0;

  border-radius: 4px;

  background: var(--text);

  transition: transform .25s ease;
}


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

.hero {
  min-height: calc(100vh - 82px);

  display: grid;
  align-items: center;

  padding-top: 5rem;

  overflow: clip;
}

.hero-grid {
  display: grid;

  grid-template-columns: .95fr 1.05fr;

  gap: 4rem;

  align-items: center;

  position: relative;

  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;

  gap: .55rem;

  margin: 0 0 1.1rem;

  color: var(--gold-dark);

  font-size: .72rem;

  font-weight: 800;

  letter-spacing: .2em;

  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;

  width: 30px;
  height: 1px;

  background: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;

  font-weight: 600;
}

.hero h1 {
  font-size: clamp(3.7rem, 6vw, 6.5rem);

  line-height: .88;

  letter-spacing: -.055em;

  max-width: 8.5ch;

  margin-bottom: 1.5rem;
}

h1 em,
h2 em {
  color: var(--gold-dark);

  font-style: normal;
}

.hero-text {
  max-width: 58ch;

  color: var(--muted);

  line-height: 1.85;

  font-size: 1rem;
}

.hero-actions {
  display: flex;

  flex-wrap: wrap;

  gap: .85rem;

  margin: 2rem 0 2.4rem;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  min-height: 52px;

  padding: 0 1.25rem;

  border-radius: 999px;

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

  gap: .65rem;

  font-size: .86rem;

  font-weight: 700;

  border: 1px solid transparent;

  cursor: pointer;

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease,
    border-color .25s ease;
}

.btn span {
  font-size: 1rem;

  transition: transform .25s ease;
}

.btn:hover span {
  transform: translate(2px, -2px);
}

.btn-primary {
  color: #fffaf0;

  background: var(--charcoal);

  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-3px);

  box-shadow: var(--shadow);
}

.btn-secondary {
  border-color: var(--line);

  background: rgba(255, 255, 255, .22);
}

.btn-secondary:hover {
  transform: translateY(-3px);

  border-color: rgba(181, 138, 58, .55);
}


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

.hero-metrics {
  display: flex;

  flex-wrap: wrap;

  gap: 1.8rem;
}

.hero-metrics article {
  padding-right: 1.8rem;

  border-right: 1px solid var(--line);
}

.hero-metrics article:last-child {
  border-right: 0;
}

.hero-metrics strong {
  display: block;

  font-family: "Cormorant Garamond", serif;

  font-size: 2.2rem;

  line-height: 1;
}

.hero-metrics span {
  display: block;

  margin-top: .25rem;

  color: var(--muted);

  font-size: .68rem;

  text-transform: uppercase;

  letter-spacing: .1em;
}


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

.hero-showcase {
  min-height: 610px;

  position: relative;

  perspective: 1200px;
}

.showcase-glow {
  position: absolute;

  width: 75%;

  aspect-ratio: 1;

  right: 4%;
  top: 8%;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(181, 138, 58, .22),
      transparent 67%
    );

  filter: blur(6px);
}

.showcase-desktop {
  position: absolute;

  width: 90%;

  right: 1%;
  top: 8%;

  border: 1px solid rgba(30, 29, 25, .35);

  border-radius: 22px;

  overflow: hidden;

  box-shadow:
    0 34px 80px rgba(54, 44, 27, .22);

  transform: rotate(2deg);

  background: #fffaf2;
}

.browser-bar {
  height: 34px;

  display: flex;
  align-items: center;

  gap: 6px;

  padding: 0 .85rem;

  background: #2a2a24;

  color: #e8dfcf;
}

.browser-bar > span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #d6c5a4;

  opacity: .75;
}

.browser-bar small {
  margin-left: auto;

  opacity: .7;

  font-size: .55rem;

  letter-spacing: .08em;
}

.showcase-desktop img {
  width: 100%;

  height: 355px;

  object-fit: cover;

  object-position: center;
}

.showcase-phone {
  position: absolute;

  width: 28%;

  right: -1%;
  bottom: 3%;

  padding: 8px;

  border-radius: 30px;

  background: #171713;

  box-shadow:
    0 35px 75px rgba(54, 44, 27, .3);

  transform: rotate(5deg);

  z-index: 3;
}

.showcase-phone img {
  width: 100%;

  height: 430px;

  object-fit: cover;

  border-radius: 23px;

  object-position: center;
}

.phone-speaker {
  position: absolute;

  width: 34%;
  height: 12px;

  left: 33%;
  top: 8px;

  border-radius: 0 0 12px 12px;

  background: #0e0e0c;

  z-index: 2;
}

.showcase-label {
  position: absolute;

  left: 2%;
  bottom: 8%;

  z-index: 4;

  padding: 1rem 1.1rem;

  background: var(--panel-solid);

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

  box-shadow: var(--shadow-soft);
}

.showcase-label span {
  color: var(--gold);

  font-family: "Cormorant Garamond", serif;

  font-size: 1.5rem;

  margin-right: .5rem;
}

.showcase-label strong {
  font-size: .76rem;
}

.showcase-label small {
  display: block;

  color: var(--muted);

  margin-top: .2rem;

  font-size: .63rem;
}


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

.split-section,
.process-grid {
  display: grid;

  grid-template-columns: .8fr 1.2fr;

  gap: 5rem;

  align-items: start;
}

.section-heading h2 {
  font-size: clamp(2.8rem, 5vw, 5rem);

  line-height: .94;

  letter-spacing: -.045em;

  max-width: 10ch;

  margin-bottom: 0;
}

.about-copy {
  padding-top: .3rem;
}

.about-copy .lead {
  max-width: 60ch;

  color: var(--muted);

  font-size: 1.12rem;

  line-height: 1.85;

  margin-bottom: 2.4rem;
}

.about-points {
  display: grid;

  gap: 1rem;
}

.about-points > div {
  display: grid;

  grid-template-columns: 46px 1fr;

  gap: 1rem;

  padding: 1.2rem 0;

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

.about-points > div > span {
  color: var(--gold);

  font-family: "Cormorant Garamond", serif;

  font-size: 1.5rem;
}

.about-points p {
  color: var(--muted);

  line-height: 1.7;

  margin: 0;

  font-size: .92rem;
}

.about-points strong {
  color: var(--text);
}


/* =========================================================
   SKILLS
   ========================================================= */

.centered {
  text-align: center;

  max-width: 760px;

  margin: 0 auto 2.8rem;
}

.centered .eyebrow {
  justify-content: center;
}

.centered h2 {
  max-width: 12ch;

  margin-inline: auto;
}

.skills-grid {
  display: grid;

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

  gap: 1rem;

  align-items: stretch;
}

.skill-card {
  min-height: 118px;

  padding: 1.25rem 1.35rem;

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

  background: var(--panel);

  box-shadow: var(--shadow-soft);

  border-radius: 18px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  height: 100%;
}

.skill-head {
  display: flex;

  justify-content: space-between;

  gap: 1rem;

  font-size: .85rem;

  font-weight: 700;
}

.skill-head b {
  color: var(--gold-dark);

  font-size: .72rem;
}

.skill-bar {
  height: 5px;

  margin-top: 1rem;

  background: rgba(30, 29, 25, .09);

  border-radius: 999px;

  overflow: hidden;
}

body.dark .skill-bar {
  background: rgba(255, 255, 255, .09);
}

.skill-bar i {
  display: block;

  width: 0;

  height: 100%;

  background: var(--gold);

  border-radius: inherit;

  transition: width 1.3s cubic-bezier(.2, .75, .25, 1);
}


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

.projects-top {
  display: flex;

  align-items: end;

  justify-content: space-between;

  gap: 2rem;

  margin-bottom: 2rem;
}

.filters {
  display: flex;

  flex-wrap: wrap;

  gap: .55rem;

  justify-content: flex-end;
}

.filter-btn {
  border: 1px solid var(--line);

  background: transparent;

  border-radius: 999px;

  min-height: 40px;

  padding: 0 .9rem;

  font-size: .76rem;

  cursor: pointer;

  transition: .25s ease;
}

.filter-btn:hover {
  border-color: rgba(181, 138, 58, .6);
}

.filter-btn.active {
  background: var(--charcoal);

  color: #fffaf0;

  border-color: var(--charcoal);
}


/* =========================================================
   PROJECT GRID
   ========================================================= */

.projects-grid {
  display: grid;

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

  gap: 1.2rem;

  align-items: stretch;
}


/* =========================================================
   PROJECT CARD
   ========================================================= */

.project-card {
  border: 1px solid var(--line);

  background: var(--panel);

  border-radius: var(--radius-lg);

  overflow: hidden;

  box-shadow: var(--shadow-soft);

  transition:
    transform .35s ease,
    box-shadow .35s ease,
    opacity .3s ease;

  display: flex;

  flex-direction: column;

  height: 100%;
}

.project-card:hover {
  transform: translateY(-8px);

  box-shadow: var(--shadow);
}

.project-card.is-hidden {
  display: none;
}


/* =========================================================
   PROJECT IMAGE
   ========================================================= */

/*
   Every project image now has exactly the same height.

   This is what keeps every project description starting
   on the same horizontal plane.
*/

.project-image {
  position: relative;

  height: 270px;

  min-height: 270px;

  overflow: hidden;

  background: #ddd;
}

.project-image img {
  width: 100%;

  height: 100%;

  min-height: 0;

  object-fit: cover;

  transition:
    transform .7s cubic-bezier(.2, .7, .2, 1);
}

.project-card:hover .project-image img {
  transform: scale(1.035);
}


/* =========================================================
   MOBILE WEBSITE IMAGE
   ========================================================= */

.mobile-frame img {
  object-position: 55% 38%;
}


/* =========================================================
   GRAPHIC DESIGN PROJECT
   ========================================================= */

.graphic-frame {
  background: #eee5d6;

  padding: .8rem;
}

.graphic-frame img {
  width: 100%;

  height: 100%;

  min-height: 0;

  object-fit: contain;
}


/* =========================================================
   PROJECT IMAGE BADGE
   ========================================================= */

.image-badge {
  position: absolute;

  left: 1rem;
  top: 1rem;

  padding: .42rem .65rem;

  background: rgba(255, 252, 246, .88);

  color: #25251f;

  border: 1px solid rgba(30, 29, 25, .1);

  backdrop-filter: blur(10px);

  border-radius: 999px;

  font-size: .63rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: .08em;
}


/* =========================================================
   PROJECT CONTENT
   ========================================================= */

.project-content {
  padding: 1.25rem 1.3rem;

  display: flex;

  flex-direction: column;

  flex: 1;
}

.project-tag {
  display: block;

  margin-bottom: .65rem;

  color: var(--gold-dark);

  font-size: .67rem;

  font-weight: 800;

  letter-spacing: .16em;

  text-transform: uppercase;
}

.project-content h3 {
  font-family: "Cormorant Garamond", serif;

  font-size: 2rem;

  line-height: 1;

  margin-bottom: .7rem;
}

.project-content p {
  color: var(--muted);

  line-height: 1.7;

  font-size: .82rem;

  margin-bottom: 1rem;
}


/* =========================================================
   PROJECT META

   margin-top:auto pushes the tags to the same bottom
   position even when descriptions have different lengths.
   ========================================================= */

.project-meta {
  display: flex;

  gap: .5rem;

  flex-wrap: wrap;

  margin-top: auto;
}

.project-meta span {
  border: 1px solid var(--line);

  border-radius: 999px;

  padding: .4rem .6rem;

  color: var(--muted);

  font-size: .62rem;
}


/* =========================================================
   ABSTRACT UI PROJECT
   ========================================================= */

.abstract-ui {
  height: 270px;

  min-height: 270px;

  display: grid;

  place-items: center;

  background:
    linear-gradient(
      135deg,
      #24241f,
      #5b4a2e
    );
}

.ui-window {
  width: 70%;

  height: 70%;

  padding: 1rem;

  border-radius: 18px;

  background: #f4eee4;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: .7rem;

  transform: rotate(-4deg);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, .25);
}

.ui-window div {
  border-radius: 9px;

  background: #ddd2be;
}

.ui-window div:first-child {
  grid-column: 1 / -1;

  background: #b58a3a;
}


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

.service-grid {
  display: grid;

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

  gap: 1rem;

  align-items: stretch;
}

.service-card {
  padding: 1.5rem;

  min-height: 300px;

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

  background: var(--panel);

  box-shadow: var(--shadow-soft);

  border-radius: 24px;

  display: flex;

  flex-direction: column;

  height: 100%;
}

.service-number {
  color: var(--gold);

  font-family: "Cormorant Garamond", serif;

  font-size: 1.5rem;
}

.service-card h3 {
  font-family: "Cormorant Garamond", serif;

  font-size: 1.8rem;

  line-height: 1;

  margin: 2rem 0 .8rem;
}

.service-card p {
  color: var(--muted);

  line-height: 1.7;

  font-size: .78rem;

  flex: 1;
}

.service-card a {
  color: var(--gold-dark);

  font-size: .72rem;

  font-weight: 800;
}


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

.process-section {
  background: var(--charcoal);

  color: #f7f0e3;
}

.process-section .eyebrow {
  color: #c9aa6d;
}

.process-section h2 em {
  color: #c9aa6d;
}

.process-grid {
  grid-template-columns: .85fr 1.15fr;
}

.process-list {
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.process-item {
  display: grid;

  grid-template-columns: 70px 1fr;

  gap: 1rem;

  padding: 1.5rem 0;

  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.process-item > span {
  color: #c9aa6d;

  font-family: "Cormorant Garamond", serif;

  font-size: 1.4rem;
}

.process-item h3 {
  margin: 0 0 .4rem;

  font-family: "Cormorant Garamond", serif;

  font-size: 1.7rem;
}

.process-item p {
  margin: 0;

  color: #bdb5a7;

  line-height: 1.7;

  font-size: .82rem;

  max-width: 55ch;
}


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

.contact-wrap {
  display: grid;

  grid-template-columns: .9fr 1.1fr;

  gap: 4rem;

  padding: 3rem;

  border-radius: 32px;

  background: var(--charcoal);

  color: #f7f0e3;

  box-shadow: var(--shadow);
}

.contact-copy h2 {
  font-size: clamp(3rem, 5vw, 5rem);

  line-height: .9;

  max-width: 9ch;
}

.contact-copy h2 em {
  color: #c9aa6d;
}

.contact-copy > p:not(.eyebrow) {
  color: #bdb5a7;

  line-height: 1.8;

  max-width: 48ch;
}

.contact-direct {
  display: grid;

  gap: .65rem;

  margin-top: 2rem;
}

.contact-direct a {
  color: #e8dfd1;

  font-size: .82rem;

  display: flex;

  align-items: center;

  gap: .7rem;
}

.contact-direct span {
  color: #c9aa6d;

  width: 22px;
}

.contact-form {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 1rem;

  align-content: start;
}

.input-group {
  display: grid;

  gap: .45rem;
}

.input-group label {
  color: #c6beaf;

  font-size: .7rem;

  text-transform: uppercase;

  letter-spacing: .1em;
}

.input-group input,
.input-group textarea {
  width: 100%;

  border: 1px solid rgba(255, 255, 255, .14);

  background: rgba(255, 255, 255, .055);

  color: #fffaf0;

  border-radius: 14px;

  padding: .9rem 1rem;

  outline: none;

  transition:
    border-color .25s ease,
    background .25s ease;

  resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #c9aa6d;

  background: rgba(255, 255, 255, .075);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #8d877c;
}

.contact-form .btn-primary {
  background: #c9aa6d;

  color: #211f19;
}

.form-note {
  margin: 0;

  color: #c9aa6d;

  font-size: .75rem;

  line-height: 1.5;
}

.full {
  grid-column: 1 / -1;
}


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

.site-footer {
  padding: 1.5rem 0 2.5rem;

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

  font-size: .72rem;

  color: var(--muted);
}

.footer-wrap {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 1rem;
}

.footer-wrap strong {
  color: var(--text);

  letter-spacing: .1em;
}

.socials {
  display: flex;

  flex-wrap: wrap;

  gap: 1rem;
}

.socials a:hover {
  color: var(--gold-dark);
}


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

.reveal {
  opacity: 0;

  transform: translateY(34px);

  transition:
    opacity .75s ease,
    transform .75s cubic-bezier(.2, .75, .25, 1);
}

.reveal.visible {
  opacity: 1;

  transform: translateY(0);
}

.delay-1 {
  transition-delay: .1s;
}

.delay-2 {
  transition-delay: .2s;
}

.delay-3 {
  transition-delay: .3s;
}


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

@media (max-width: 1000px) {

  .hero-grid {
    grid-template-columns: 1fr;

    gap: 2rem;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-showcase {
    min-height: 560px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section,
  .process-grid,
  .contact-wrap {
    grid-template-columns: 1fr;

    gap: 2.5rem;
  }

  .section-heading h2,
  .contact-copy h2 {
    max-width: 12ch;
  }
}


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

@media (max-width: 780px) {

  .nav {
    position: absolute;

    left: 1rem;
    right: 1rem;

    top: calc(100% + 8px);

    padding: .8rem;

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

    border-radius: 18px;

    background: var(--panel-solid);

    box-shadow: var(--shadow-soft);

    display: grid;

    gap: .2rem;

    opacity: 0;

    pointer-events: none;

    transform: translateY(-10px);

    transition: .25s ease;
  }

  .nav.open {
    opacity: 1;

    pointer-events: auto;

    transform: translateY(0);
  }

  .nav a {
    padding: .8rem;
  }

  .menu-btn {
    display: grid;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 14vw, 5.4rem);
  }

  .hero-showcase {
    min-height: 500px;
  }

  .showcase-desktop {
    width: 94%;

    right: 2%;
  }

  .showcase-desktop img {
    height: 300px;
  }

  .showcase-phone {
    width: 30%;

    bottom: 4%;
  }

  .showcase-phone img {
    height: 340px;
  }

  .projects-top {
    display: grid;

    align-items: start;
  }

  .filters {
    justify-content: flex-start;
  }

  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .full {
    grid-column: auto;
  }

  .footer-wrap {
    align-items: flex-start;

    flex-direction: column;
  }
}


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

@media (max-width: 560px) {

  .section {
    padding: 5rem 0;
  }

  .brand-text {
    display: none;
  }

  .hero-metrics {
    gap: 1rem;
  }

  .hero-metrics article {
    padding-right: 1rem;
  }

  .hero-showcase {
    min-height: 390px;
  }

  .showcase-desktop {
    top: 10%;
  }

  .showcase-desktop img {
    height: 220px;
  }

  .showcase-phone {
    width: 32%;

    bottom: 1%;
  }

  .showcase-phone img {
    height: 260px;
  }

  .showcase-label {
    bottom: 4%;

    padding: .75rem;
  }

  .showcase-label strong {
    font-size: .65rem;
  }

  .showcase-label small {
    display: none;
  }


  /*
     Mobile project cards.

     All project images remain the same height.
  */

  .project-image {
    height: 230px;

    min-height: 230px;
  }

  .project-image img {
    height: 100%;

    min-height: 0;
  }

  .graphic-frame img {
    height: 100%;

    min-height: 0;
  }

  .abstract-ui {
    height: 230px;

    min-height: 230px;
  }


  .service-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrap {
    padding: 1.4rem;

    border-radius: 24px;
  }

  .contact-copy h2 {
    font-size: 3.4rem;
  }

  .site-footer {
    font-size: .65rem;
  }


  /*
     Slightly smaller mobile logo badge.
  */

  .brand-mark {
    width: 42px;

    height: 42px;

    flex-basis: 42px;
  }

  .brand-mark img {
    transform: scale(2.25);
  }
}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (pointer: coarse) {

  .cursor-glow {
    display: none;
  }
}


/* =========================================================
   REDUCED MOTION / ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: .01ms !important;
  }

  .cursor-glow {
    display: none;
  }
}