:root {
  --bg: #090b0e;
  --bg-rgb: 9, 11, 14;
  --surface: rgba(16, 20, 25, 0.84);
  --surface-strong: rgba(22, 28, 35, 0.92);
  --surface-soft: rgba(31, 39, 49, 0.88);
  --accent: #d19773;
  --accent-strong: #f2d2bb;
  --text: #f7f1e8;
  --text-strong: #fff9f3;
  --muted: #b6b5b0;
  --muted-strong: #d8cfc2;
  --border: rgba(255, 244, 231, 0.11);
  --border-strong: rgba(209, 151, 115, 0.45);
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.28);
  --shadow-deep: 0 34px 88px rgba(0, 0, 0, 0.4);
  --max-width: 1180px;
  --radius-lg: 2.25rem;
  --radius-md: 1.6rem;
  --radius-sm: 1rem;
  --font-body: "Manrope", sans-serif;
  --font-display: "Fraunces", serif;
  --pointer-x: 50vw;
  --pointer-y: 18vh;
}

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

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(82, 98, 118, 0.16), transparent 34%),
    linear-gradient(180deg, #090b0e 0%, #0e1217 44%, #090b0e 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(209, 151, 115, 0.08), transparent 24%),
    radial-gradient(circle at 12% 14%, rgba(113, 130, 152, 0.1), transparent 18%),
    radial-gradient(circle at 84% 12%, rgba(255, 237, 223, 0.035), transparent 18%);
  filter: blur(28px);
}

body::after {
  z-index: -1;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 244, 231, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 244, 231, 0.028) 1px, transparent 1px);
  background-size: 8rem 8rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
}

.scroll-meter {
  position: fixed;
  top: 50%;
  right: 1.1rem;
  z-index: 140;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 0.8rem 0.55rem;
  border: 1px solid rgba(255, 244, 231, 0.08);
  border-radius: 999px;
  background: rgba(var(--bg-rgb), 0.58);
  backdrop-filter: blur(18px);
  transform: translateY(-50%);
}

.scroll-meter-label,
.scroll-meter-value {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.scroll-meter-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: rgba(255, 244, 231, 0.46);
}

.scroll-meter-value {
  color: var(--text-strong);
}

.scroll-meter-track {
  position: relative;
  width: 2px;
  height: 5.8rem;
  border-radius: 999px;
  background: rgba(255, 244, 231, 0.14);
  overflow: hidden;
}

.scroll-meter-fill {
  position: absolute;
  inset: auto 0 0;
  height: calc(var(--scroll-progress, 0) * 100%);
  border-radius: inherit;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  box-shadow: 0 0 18px rgba(209, 151, 115, 0.45);
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 120;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
.site-footer {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(var(--bg-rgb), 0.66);
  backdrop-filter: blur(18px);
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

body.is-scrolled .site-header {
  border-color: var(--border);
  background: rgba(var(--bg-rgb), 0.84);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.site-header-inner,
.site-footer-inner,
.page-main {
  width: min(100% - 2.2rem, var(--max-width));
  margin: 0 auto;
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 5.5rem;
  padding: 0.8rem 0;
}

.brand-link {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-width: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.site-nav a {
  position: relative;
  padding: 0.75rem 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  bottom: 0.5rem;
  left: 0.9rem;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.45);
  transform-origin: left center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-current {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-current::after {
  opacity: 1;
  transform: scaleX(1);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(24, 31, 39, 0.74);
}

.lang-button {
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.lang-button:hover,
.lang-button:focus-visible {
  color: var(--text);
}

.lang-button.is-active {
  background: rgba(255, 244, 231, 0.1);
  color: var(--text);
}

.page-main {
  position: relative;
  padding: 4.5rem 0 6rem;
}

.page-main > section:last-child {
  margin-bottom: 0;
}

.hero-section,
.page-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-section::before,
.page-intro::before,
.hero-section::after,
.page-intro::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-section::before,
.page-intro::before {
  inset: -18% auto auto -10%;
  width: min(42rem, 58vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209, 151, 115, 0.06), transparent 72%);
  animation: ambient-float 18s ease-in-out infinite;
}

.hero-section::after,
.page-intro::after {
  inset: auto -8% -12% auto;
  width: min(34rem, 48vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 111, 131, 0.07), transparent 74%);
  animation: ambient-float 20s ease-in-out infinite reverse;
}

.hero-section::before,
.hero-section::after {
  display: none;
}

.page-intro::before,
.page-intro::after {
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

.hero-copy,
.hero-focus,
.page-intro > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 48rem;
}

.hero-motion-chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-motion-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 0.92rem;
  border: 1px solid rgba(255, 244, 231, 0.1);
  border-radius: 999px;
  background: rgba(var(--bg-rgb), 0.48);
  color: rgba(255, 244, 231, 0.7);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
  animation: chip-float 12s ease-in-out infinite;
}

.hero-motion-chip-a {
  top: 10%;
  right: 34%;
  animation-delay: -1s;
}

.hero-motion-chip-b {
  right: 7%;
  bottom: 15%;
  animation-delay: -4s;
}

.hero-motion-chip-c {
  right: 28%;
  bottom: -1rem;
  animation-delay: -7s;
}

.hero-primary-card,
.hero-mini-card,
.hero-focus,
.project-card,
.tool-panel,
.detail-card,
.contact-block,
.case-study,
.email-gallery-card {
  position: relative;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-primary-card,
.hero-mini-card,
.hero-focus,
.project-card,
.tool-panel,
.case-study {
  overflow: hidden;
}

.hero-primary-card,
.hero-mini-card,
.hero-focus,
.project-card,
.tool-panel,
.detail-card,
.contact-block,
.case-study,
.email-gallery-card,
.photo-card,
.case-hero-image,
.case-layout-frame {
  border-radius: var(--radius-md);
}

.hero-primary-card::before,
.hero-mini-card::before,
.hero-focus::before,
.project-card::after,
.tool-panel::before,
.case-study::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(209, 151, 115, 0.55), transparent 72%);
  opacity: 0.55;
}

.hero-primary-card,
.hero-mini-card,
.hero-focus,
.project-card,
.tool-panel {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift-y: 0px;
  transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift-y));
  transition:
    transform 260ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-primary-card:hover,
.hero-mini-card:hover,
.hero-focus:hover,
.project-card:hover,
.project-card:focus-within,
.tool-panel:hover {
  --lift-y: -4px;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-deep);
}

.hero-focus {
  display: flex;
  min-height: 100%;
}

.hero-focus-link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
}

.hero-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.hero-focus-label,
.hero-focus-cta {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-focus-label {
  color: var(--muted-strong);
}

.hero-focus-cta {
  color: rgba(255, 244, 231, 0.44);
}

.hero-focus-frame {
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 244, 231, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0;
}

.hero-card-label,
.hero-card-index,
.hero-mini-index {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-card-label {
  color: var(--muted-strong);
}

.hero-card-index,
.hero-mini-index {
  color: rgba(255, 244, 231, 0.38);
}

.hero-primary-link {
  display: block;
  padding: 0 1rem 1rem;
}

.hero-focus-image,
.hero-primary-image,
.hero-mini-image,
.project-image,
.case-hero-image,
.case-layout-image,
.photo-card img {
  width: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--media-shift, 0px), 0) scale(1);
  transform-origin: center center;
  transition:
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 260ms ease;
  will-change: transform;
}

.hero-focus-image {
  aspect-ratio: 1.18;
}

.hero-focus-copy {
  display: grid;
  gap: 0.6rem;
}

.hero-focus-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero-focus-text {
  margin: 0;
  max-width: 28rem;
}

.hero-primary-image {
  aspect-ratio: 1.02;
  border-radius: 1.25rem;
}

.hero-primary-copy {
  padding: 1.1rem 0 0.2rem;
}

.hero-primary-copy h2 {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-card-summary {
  margin: 0.95rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.hero-secondary-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-mini-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hero-mini-image {
  aspect-ratio: 1.1;
}

.hero-mini-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.95rem 1rem 1rem;
}

.hero-mini-copy h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero-section,
.page-intro,
.featured-section,
.tools-section,
.photo-section,
.case-study-list,
.email-gallery-section,
.contact-grid,
.detail-grid {
  margin-bottom: 5rem;
}

.section-kicker,
.detail-label,
.layout-label,
.project-kicker,
.proof-label,
.hero-note-label,
.tool-panel-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title,
.page-title,
.section-title,
.project-copy h3,
.case-study-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-title {
  max-width: 8ch;
  font-size: clamp(4.2rem, 9vw, 7rem);
}

.page-title {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5rem);
}

.section-title {
  max-width: 12ch;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.motion-split {
  display: flex;
  flex-wrap: wrap;
}

.hero-title.motion-split {
  gap: 0.08em 0;
}

.motion-split-words {
  gap: 0.14em 0;
}

.split-word {
  display: inline-flex;
  overflow: hidden;
}

.split-space {
  width: 0.28em;
}

.split-char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 1.1em, 0) rotate(7deg);
  filter: blur(10px);
  will-change: transform;
  transition:
    opacity 720ms ease calc(var(--reveal-delay, 0ms) + var(--unit-index, 0) * 22ms),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--reveal-delay, 0ms) + var(--unit-index, 0) * 22ms),
    filter 820ms ease calc(var(--reveal-delay, 0ms) + var(--unit-index, 0) * 22ms);
}

.reveal.is-visible .split-char {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg);
  filter: blur(0);
}

.hero-intro,
.page-intro-text,
.section-note,
.project-summary,
.case-summary,
.detail-text,
.footer-role,
.tool-panel-text,
.proof-text {
  color: var(--muted);
  line-height: 1.8;
}

.hero-intro,
.page-intro-text {
  max-width: 40rem;
  margin: 1.4rem 0 0;
  font-size: 1.05rem;
}

.copy-highlight {
  color: var(--text-strong);
  font-weight: 700;
}

.hero-note-panel {
  max-width: 31rem;
  margin-top: 1.6rem;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(18, 23, 28, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-note-text {
  margin: 0.55rem 0 0;
  color: var(--muted-strong);
  line-height: 1.75;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-width: 13rem;
  padding: 0.95rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #120d09;
  box-shadow: 0 18px 38px rgba(209, 151, 115, 0.24);
}

.button-secondary {
  border-color: rgba(255, 244, 231, 0.22);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.button-icon {
  font-size: 1.05rem;
  transition: transform 180ms ease;
}

.button:hover .button-icon,
.button:focus-visible .button-icon {
  transform: translateY(-1px);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.8rem;
  margin-bottom: 4.2rem;
}

.proof-item {
  min-height: 100%;
  padding: 1.35rem 1.35rem 1.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 38%),
    rgba(17, 21, 26, 0.78);
  box-shadow: var(--shadow-soft);
}

.proof-text {
  margin: 0.75rem 0 0;
  font-size: 1rem;
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2rem;
  will-change: transform, opacity;
}

.section-head-lined {
  max-width: none;
  margin-top: 3.6rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--border);
}

.section-note {
  margin: 1rem 0 0;
  max-width: 38rem;
}

.section-link {
  margin-top: 1.05rem;
}

.tools-title {
  max-width: 13ch;
}

.tools-note {
  max-width: 41rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 700;
}

.text-link::after {
  content: "\2197";
  font-size: 0.95rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: project-counter;
}

.project-gallery-stage {
  position: relative;
}

.project-gallery-stage.is-horizontal-project-gallery {
  min-height: calc(100svh - var(--project-gallery-offset, 7rem));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 0.5rem 0 0.35rem;
}

.project-grid.is-horizontal-project-gallery {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  align-items: stretch;
  padding-top: 0;
  will-change: transform;
}

.project-grid.is-horizontal-project-gallery .project-card {
  flex: 0 0 auto;
  width: min(34rem, 72vw);
}

.project-grid.is-horizontal-project-gallery .project-card.reveal,
.project-grid.is-horizontal-project-gallery .project-card.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: inset(0 0 0 0);
}

.project-grid.is-stack-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 0.75rem;
}

.project-card {
  counter-increment: project-counter;
  will-change: transform, opacity;
}

.project-grid.is-stack-layout .project-card {
  position: sticky;
  top: 6rem;
  width: min(100%, 58rem);
  margin: 0 auto;
  transform-origin: center top;
}

.project-grid.is-stack-layout .project-card.reveal,
.project-grid.is-stack-layout .project-card.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: inset(0 0 0 0);
}

.project-grid.is-stack-layout .project-card:nth-child(2) {
  top: 6.9rem;
}

.project-grid.is-stack-layout .project-card:nth-child(3) {
  top: 7.8rem;
}

.project-grid.is-stack-layout .project-card + .project-card {
  margin-top: 4.75rem;
}

.project-card::before {
  content: counter(project-counter, decimal-leading-zero);
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: rgba(255, 244, 231, 0.36);
}

.project-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-image {
  aspect-ratio: 4 / 3;
}

.project-copy {
  flex: 1;
  padding: 1.25rem 1.3rem 1.4rem;
}

.is-missing-media {
  display: none !important;
}

.has-missing-media {
  min-height: 0;
}

.project-copy h3 {
  margin-top: 0.4rem;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
}

.project-summary {
  margin: 0.85rem 0 0;
}

.project-card:hover .project-image,
.project-card:focus-within .project-image,
.case-study:hover .case-hero-image,
.case-layout-frame:hover .case-layout-image,
.photo-card:hover img,
.hero-focus:hover .hero-focus-image,
.hero-primary-card:hover .hero-primary-image,
.hero-mini-card:hover .hero-mini-image {
  transform: translate3d(0, calc(var(--media-shift, 0px) - 8px), 0) scale(1.035);
}

.project-card:first-child {
  grid-row: auto;
}

.project-card:first-child .project-link {
  display: flex;
  flex-direction: column;
}

.project-card:first-child .project-image {
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.project-card:first-child .project-copy {
  display: block;
  padding: 1.25rem 1.3rem 1.4rem;
}

.project-card:first-child .project-copy h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
}

.tools-section {
  position: relative;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tool-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 100%;
  padding: 1.35rem;
}

.tool-panel-head {
  max-width: 18rem;
}

.tool-panel-text {
  margin: 0.75rem 0 0;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 244, 231, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 700;
}

.tool-pill img {
  width: 1.2rem;
  height: 1.2rem;
  filter: brightness(0) saturate(100%) invert(92%) sepia(12%) saturate(203%) hue-rotate(345deg)
    brightness(107%) contrast(96%);
}

.case-study-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  counter-reset: case-counter;
}

.case-study {
  counter-increment: case-counter;
  padding: 1.6rem;
}

.case-study::before {
  content: counter(case-counter, decimal-leading-zero);
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 2;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: rgba(255, 244, 231, 0.36);
}

.case-study-header {
  margin-bottom: 1.4rem;
  max-width: 40rem;
}

.case-study-header h2 {
  margin-top: 0.45rem;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.case-study-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(18rem, 0.96fr);
  gap: 1.4rem;
  align-items: start;
}

.case-hero-image {
  aspect-ratio: 16 / 11;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.case-summary {
  margin: 0;
}

.case-details {
  display: grid;
  gap: 0.9rem;
  margin: 1.4rem 0 0;
}

.case-details div {
  padding-top: 0.95rem;
  border-top: 1px solid var(--border);
}

.case-details dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.case-details dd {
  margin: 0.5rem 0 0;
  font-weight: 700;
  line-height: 1.55;
}

.case-layout,
.email-gallery-section {
  margin-top: 0.6rem;
}

.layout-label {
  margin-bottom: 0.8rem;
}

.case-layout-frame {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f5f2ed;
}

.case-layout-image {
  background: #f5f2ed;
  object-fit: contain;
}

.email-gallery-title {
  max-width: 15ch;
}

.email-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.email-gallery-card {
  padding: 1.1rem;
}

.fiizy-archive-section {
  margin-top: 0.8rem;
}

.archive-title {
  max-width: 15ch;
}

.archive-note {
  max-width: 44rem;
}

.archive-helper {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-size: 0.82rem;
  line-height: 1.5;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.archive-empty {
  padding: 1.2rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px dashed rgba(255, 244, 231, 0.18);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.archive-grid:not(:empty) + .archive-empty,
.archive-grid.has-items ~ .archive-empty {
  display: none;
}

.archive-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 36%),
    rgba(16, 20, 25, 0.9);
  box-shadow: var(--shadow-soft);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.archive-card:hover,
.archive-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-deep);
}

.archive-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.archive-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.archive-card:hover .archive-image,
.archive-card:focus-within .archive-image {
  transform: scale(1.04);
}

.archive-card-copy {
  display: block;
  padding: 0.95rem 1rem 1.05rem;
}

.archive-card-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}

.archive-lightbox {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 1.4rem;
}

.archive-lightbox[hidden] {
  display: none;
}

.archive-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 10, 0.86);
  backdrop-filter: blur(12px);
}

.archive-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 244, 231, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.archive-lightbox-figure {
  position: relative;
  z-index: 1;
  width: min(100%, 1020px);
  margin: 0;
}

.archive-lightbox-image {
  width: 100%;
  max-height: calc(100vh - 7rem);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  object-fit: contain;
  box-shadow: var(--shadow-deep);
  background: rgba(10, 13, 17, 0.92);
}

.archive-lightbox-caption {
  margin-top: 0.85rem;
  color: var(--muted-strong);
  text-align: center;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.detail-card,
.contact-block {
  padding: 1.3rem 1.35rem 1.4rem;
}

.detail-text {
  margin: 0.65rem 0 0;
}

.photo-section .section-head {
  max-width: 44rem;
}

.photo-section.is-horizontal-gallery {
  overflow: visible;
}

.photo-gallery-stage {
  position: relative;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.photo-gallery-stage.is-horizontal-gallery {
  min-height: calc(100svh - var(--photo-gallery-offset, 7rem));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 0.5rem 0 0.35rem;
}

.photo-grid.is-horizontal-gallery {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  align-items: center;
  padding-top: 0;
  will-change: transform;
}

.photo-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  background: rgba(16, 20, 25, 0.84);
  box-shadow: var(--shadow-soft);
  flex: 0 0 auto;
  will-change: transform, filter;
}

.photo-grid.is-horizontal-gallery .photo-card {
  width: min(32rem, 38vw);
}

.photo-grid.is-horizontal-gallery .photo-card-wide {
  width: min(44rem, 52vw);
}

.photo-card img {
  aspect-ratio: 4 / 3;
}

.photo-grid.is-horizontal-gallery .photo-card img,
.photo-grid.is-horizontal-gallery .photo-card-wide img {
  width: 100%;
  height: min(62vh, 34rem);
  aspect-ratio: auto;
  object-fit: cover;
}

.photo-card-wide {
  grid-column: span 2;
}

.photo-card-wide img {
  aspect-ratio: 16 / 8;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.page-contact .contact-block:first-child {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(209, 151, 115, 0.14), transparent 55%),
    rgba(16, 20, 25, 0.9);
}

.contact-link {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin-top: 0.85rem;
}

.social-list-icons a,
.footer-socials a {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.social-list-icons a:hover,
.social-list-icons a:focus-visible,
.footer-socials a:hover,
.footer-socials a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.social-list-icons img,
.footer-socials img {
  width: 1.18rem;
  height: 1.18rem;
  filter: brightness(0) saturate(100%) invert(92%) sepia(12%) saturate(203%) hue-rotate(345deg)
    brightness(107%) contrast(96%);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(9, 11, 14, 0.72);
  backdrop-filter: blur(14px);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 0 1.9rem;
}

.footer-name,
.footer-year {
  margin: 0;
}

.footer-name {
  font-size: 1rem;
  font-weight: 800;
}

.footer-role {
  margin: 0.35rem 0 0;
}

.footer-links,
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 72px, 0) scale(0.975);
  filter: blur(12px);
  clip-path: inset(0 0 24% 0);
  transition:
    opacity 820ms ease var(--reveal-delay, 0ms),
    transform 1040ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    filter 920ms ease var(--reveal-delay, 0ms),
    clip-path 980ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  clip-path: inset(0 0 0 0);
}

@keyframes ambient-float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(1.5rem, -1rem, 0) scale(1.03);
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes chip-float {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(0, -0.8rem, 0) rotate(-1.5deg);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@media (max-width: 1120px) {
  .hero-grid,
  .case-study-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-motion-chip-a {
    right: 26%;
  }

  .hero-motion-chip-b {
    right: 2%;
  }

  .project-card:first-child {
    grid-row: auto;
    grid-column: auto;
  }

  .tool-grid,
  .email-gallery-grid,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header-inner,
  .site-footer-inner,
  .page-main {
    width: min(100% - 1.4rem, var(--max-width));
  }

  .site-header-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .header-right {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .scroll-meter {
    right: 0.65rem;
  }

  .proof-strip,
  .detail-grid,
  .contact-grid,
  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .page-contact .contact-block:first-child,
  .project-card:first-child {
    grid-column: auto;
  }

  .project-card:first-child .project-link {
    display: flex;
    flex-direction: column;
  }

  .project-card:first-child .project-image {
    aspect-ratio: 1.18;
    height: auto;
  }

  .hero-motion-chip {
    font-size: 0.62rem;
  }

  .hero-motion-chip-a {
    top: auto;
    bottom: 5.5rem;
    right: 10%;
  }

  .hero-motion-chip-b {
    display: none;
  }

  .hero-motion-chip-c {
    right: auto;
    left: 0;
    bottom: 0.4rem;
  }
}

@media (max-width: 760px) {
  .page-main {
    padding-top: 3rem;
  }

  .scroll-meter {
    top: auto;
    right: auto;
    bottom: 1rem;
    left: 50%;
    grid-auto-flow: column;
    align-items: center;
    gap: 0.7rem;
    transform: translateX(-50%);
  }

  .scroll-meter-label {
    writing-mode: initial;
    transform: none;
  }

  .scroll-meter-track {
    width: 5rem;
    height: 2px;
  }

  .scroll-meter-fill {
    inset: 0 auto 0 0;
    width: calc(var(--scroll-progress, 0) * 100%);
    height: 100%;
  }

  .hero-title {
    font-size: clamp(3.2rem, 16vw, 5.2rem);
  }

  .page-title {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .section-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .project-grid,
  .tool-grid,
  .photo-grid,
  .email-gallery-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery-stage.is-horizontal-project-gallery {
    min-height: 0;
    display: block;
    overflow: visible;
    padding: 0;
  }

  .project-grid.is-horizontal-project-gallery {
    display: grid;
    width: auto;
    gap: 1.25rem;
    transform: none !important;
  }

  .project-grid.is-horizontal-project-gallery .project-card {
    width: auto;
  }

  .project-grid.is-stack-layout {
    display: grid;
    gap: 1.25rem;
    padding-top: 0;
  }

  .project-grid.is-stack-layout .project-card,
  .project-grid.is-stack-layout .project-card:nth-child(2),
  .project-grid.is-stack-layout .project-card:nth-child(3) {
    position: relative;
    top: auto;
    width: auto;
    margin: 0;
  }

  .project-grid.is-stack-layout .project-card + .project-card {
    margin-top: 0;
  }

  .photo-grid.is-horizontal-gallery {
    display: grid;
    width: auto;
    gap: 1rem;
    padding-top: 0;
    transform: none !important;
  }

  .photo-gallery-stage.is-horizontal-gallery {
    min-height: 0;
    display: block;
    overflow: visible;
  }

  .photo-grid.is-horizontal-gallery .photo-card,
  .photo-grid.is-horizontal-gallery .photo-card-wide {
    width: auto;
  }

  .photo-grid.is-horizontal-gallery .photo-card img,
  .photo-grid.is-horizontal-gallery .photo-card-wide img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .photo-card-wide {
    grid-column: auto;
  }

  .photo-card-wide img {
    aspect-ratio: 4 / 3;
  }

  .button {
    width: 100%;
  }

  .hero-motion-chip-a,
  .hero-motion-chip-c {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-nav a {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-card-top {
    padding: 0.85rem 0.85rem 0;
  }

  .hero-primary-link {
    padding: 0 0.85rem 0.85rem;
  }

  .hero-mini-copy,
  .project-copy,
  .tool-panel,
  .detail-card,
  .contact-block,
  .case-study,
  .email-gallery-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .proof-item {
    padding: 1.1rem 1rem 1.15rem;
  }

  .hero-note-panel {
    padding: 0.95rem 1rem 1rem;
  }

  .scroll-meter {
    bottom: 0.7rem;
    padding: 0.55rem 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-primary-card,
  .hero-mini-card,
  .project-card,
  .tool-panel {
    transform: none !important;
  }

  .reveal {
    transform: translate3d(0, 24px, 0) scale(0.992);
    filter: blur(4px);
    clip-path: inset(0 0 10% 0);
  }

  .split-char {
    transform: translate3d(0, 0.35em, 0) rotate(0deg);
    filter: blur(3px);
  }

  .hero-section::before,
  .hero-section::after,
  .page-intro::before,
  .page-intro::after,
  .hero-motion-chip {
    animation: none;
  }
}
