:root {
  --ink: #1b1a1a;
  --ink-rgb: 27, 26, 26;
  --chalk: #f3f5f0;
  --marigold: #3ecf8e;
  --coral: #1fae6e;
  --mint: #dff2e7;
  --peach: #eaf6ef;
  --lilac: #cfeedd;
  --muted: #68645e;
  --on-dark: #f3f5f0;
  --on-dark-muted: rgba(243, 245, 240, 0.9);
  --marigold-ink: #1d6b48;
  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --star-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2v20M2 12h20M4.93 4.93l14.14 14.14M19.07 4.93L4.93 19.07' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--ink);
  color: var(--chalk);
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.site-header :focus-visible {
  outline-color: var(--ink);
}

.wrap {
  width: min(calc(100% - (2 * var(--gutter))), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  transform: translateY(-200%);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--chalk);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.star {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--star-shape) center / contain no-repeat;
  mask: var(--star-shape) center / contain no-repeat;
  vertical-align: middle;
}

.status-dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px rgba(var(--ink-rgb), 0.16);
}

.contact .status-dot {
  background: var(--marigold);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.18);
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  scroll-margin-top: 5.5rem;
}

.section h2 {
  max-width: 13ch;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5.2vw, 4.8rem);
  font-weight: 700;
  font-stretch: 92%;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section-label::before {
  content: "";
  width: 0.8em;
  height: 0.8em;
  flex: none;
  background: var(--coral);
  -webkit-mask: var(--star-shape) center / contain no-repeat;
  mask: var(--star-shape) center / contain no-repeat;
}

.section-lead {
  max-width: 44ch;
  margin-top: 1.2rem;
  color: rgba(var(--ink-rgb), 0.92);
  font-size: 1.05rem;
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.25rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--chalk);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  background: var(--coral);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.button:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.button-star {
  width: 0.9em;
  height: 0.9em;
  color: var(--marigold);
  transition: transform 0.3s ease;
}

.button:hover .button-star {
  transform: rotate(90deg);
}

.button--nav {
  padding: 0.62rem 0.95rem;
  font-size: 0.82rem;
  box-shadow: 2px 2px 0 var(--ink);
}

.button--mobile {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

.button--footer {
  background: var(--marigold);
  color: var(--ink);
  border-color: var(--chalk);
  box-shadow: 4px 4px 0 var(--chalk);
}

.button--footer:hover {
  background: var(--coral);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--chalk);
}

.text-link {
  display: inline-flex;
  align-items: center;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--coral);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--marigold);
  border-bottom: 1.5px solid var(--ink);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 0 rgba(var(--ink-rgb), 0.12);
}

.header-inner {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  width: 22px;
  height: 22px;
  color: var(--ink);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--ink);
  transition: right 0.2s ease;
}

.main-nav a:hover::after {
  right: 0;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  background: var(--ink);
  color: var(--marigold);
}

.menu-icon {
  display: block;
  width: 22px;
  height: 22px;
  overflow: visible;
  transition: transform 0.25s ease;
}

.menu-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.menu-toggle:hover .menu-icon {
  transform: scale(1.08);
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  transform: rotate(45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 2rem;
  padding: calc(4.75rem + 2rem) var(--gutter) 2rem;
  background: var(--marigold);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  padding: 0.4rem 0;
  border-bottom: 1.5px solid rgba(var(--ink-rgb), 0.18);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
  text-decoration: none;
}

.mobile-menu-note {
  margin-top: auto;
  max-width: 30ch;
  color: rgba(var(--ink-rgb), 0.92);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Hero */

.hero {
  overflow: hidden;
  padding: clamp(2.75rem, 6vw, 5.5rem) 0 clamp(4rem, 8vw, 7.5rem);
  background: var(--marigold);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
}

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

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 40ch;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
}

.hero-title {
  margin: 1.4rem 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 8.8vw, 8.4rem);
  font-weight: 700;
  font-stretch: 92%;
  line-height: 0.88;
  letter-spacing: -0.06em;
}

.hero-title.voice-instrument {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 9.6vw, 9.2rem);
  font-weight: 400;
  font-stretch: normal;
  line-height: 0.82;
  letter-spacing: -0.025em;
}

.hero-title.voice-hanken {
  font-family: var(--font-body);
  font-weight: 800;
  font-stretch: normal;
  letter-spacing: -0.065em;
}

.hero-title.is-switching {
  animation: voice-in 0.22s ease;
}

@keyframes voice-in {
  from {
    opacity: 0.25;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-line {
  display: block;
}

.voice-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.35rem;
}

.voice-label {
  margin-right: 0.3rem;
  color: var(--marigold-ink);
  font-size: 0.75rem;
  font-weight: 600;
}

.voice-btn {
  padding: 0.33rem 0.7rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.2;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.voice-btn--bricolage {
  font-family: var(--font-display);
  font-weight: 600;
}

.voice-btn--instrument {
  font-family: var(--font-serif);
  font-size: 0.95rem;
}

.voice-btn--hanken {
  font-family: var(--font-body);
  font-weight: 700;
}

.voice-btn:hover {
  background: rgba(243, 245, 240, 0.55);
}

.voice-btn.is-active {
  border-color: var(--ink);
  background: var(--chalk);
}

.hero-sub {
  max-width: 46ch;
  color: rgba(var(--ink-rgb), 0.92);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 2rem;
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 500px;
  padding: 1.25rem 0;
}

.browser-card {
  width: min(100%, 480px);
  margin-left: auto;
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--chalk);
  box-shadow: 10px 10px 0 rgba(var(--ink-rgb), 0.16);
  transform: rotate(-2deg);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.browser-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 14px 14px 0 rgba(var(--ink-rgb), 0.18);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.25rem 0.65rem;
}

.browser-dots {
  display: flex;
  gap: 4px;
}

.browser-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(var(--ink-rgb), 0.2);
}

.browser-dots span:first-child {
  background: var(--coral);
}

.browser-dots span:nth-child(2) {
  background: var(--marigold);
}

.browser-dots span:nth-child(3) {
  background: var(--mint);
}

.browser-url {
  margin-left: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.06);
  color: var(--muted);
  font-size: 0.55rem;
  line-height: 1.2;
}

.browser-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #222;
}

.browser-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.browser-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.04) 36%,
    rgba(0, 0, 0, 0.74) 100%
  );
  color: #fff;
}

.browser-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.55rem;
  font-weight: 500;
  line-height: 1.2;
}

.browser-logo {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.browser-links {
  opacity: 0.8;
}

.browser-copy {
  max-width: 82%;
}

.browser-kicker {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.5rem;
  letter-spacing: 0.03em;
  opacity: 0.75;
}

.browser-title {
  max-width: 9ch;
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.7vw, 2.6rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.browser-cta {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 500;
  line-height: 1.2;
}

.browser-card figcaption {
  padding: 0.7rem 0.35rem 0.15rem;
  color: rgba(var(--ink-rgb), 0.92);
  font-size: 0.7rem;
  line-height: 1.45;
}

/* Ribbon */

.services-ribbon {
  overflow: hidden;
  padding: 0.85rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--chalk);
}

.ribbon-track {
  display: flex;
  width: max-content;
  animation: ribbon-scroll 36s linear infinite;
}

.services-ribbon:hover .ribbon-track {
  animation-play-state: paused;
}

.ribbon-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.ribbon-star {
  width: 0.8rem;
  height: 0.8rem;
  color: var(--marigold);
}

@keyframes ribbon-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* Services */

.services {
  background: var(--chalk);
}

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 7rem);
}

.section-intro {
  position: sticky;
  top: 7rem;
}

.section-intro h2 {
  max-width: 11ch;
}

.side-note {
  max-width: 34ch;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1.5px solid rgba(var(--ink-rgb), 0.2);
  color: rgba(var(--ink-rgb), 0.92);
  font-size: 0.85rem;
  line-height: 1.55;
}

.service-list {
  border-top: 1.5px solid var(--ink);
}

.service-row {
  position: relative;
  padding: 2rem 0 2.2rem;
  border-bottom: 1.5px solid rgba(var(--ink-rgb), 0.22);
}

.service-row::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -1.2rem;
  width: 4px;
  height: 0;
  border-radius: 999px;
  background: var(--ink);
  transform: translateY(-50%);
  transition: height 0.25s ease;
}

.service-row:hover::before {
  height: 70%;
}

.service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.service-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  transition: color 0.2s ease;
}

.service-row:hover .service-head h3 {
  color: var(--ink);
}

.service-mark {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.3rem;
  color: var(--coral);
  transition: transform 0.3s ease;
}

.service-row:hover .service-mark {
  transform: rotate(90deg);
}

.service-description {
  max-width: 44ch;
  color: rgba(var(--ink-rgb), 0.92);
  font-size: 1.05rem;
  line-height: 1.55;
}

.service-includes {
  max-width: 50ch;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Work */

.work {
  background: var(--ink);
  color: var(--chalk);
}

.work .section-label {
  color: rgba(243, 245, 240, 0.62);
}

.work h2 {
  color: var(--chalk);
}

.work-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.work-intro {
  justify-self: end;
  max-width: 46ch;
  color: rgba(243, 245, 240, 0.68);
  font-size: 1rem;
  line-height: 1.6;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.concept-frame {
  padding: 8px;
  border: 1px solid rgba(243, 245, 240, 0.18);
  border-radius: 16px;
  background: var(--chalk);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.concept:hover .concept-frame {
  transform: translateY(-6px);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.32);
}

.mini-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.2rem 0.55rem;
}

.mini-dots {
  display: flex;
  gap: 3px;
}

.mini-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(var(--ink-rgb), 0.2);
}

.mini-dots span:first-child {
  background: var(--coral);
}

.mini-dots span:nth-child(2) {
  background: var(--marigold);
}

.mini-dots span:nth-child(3) {
  background: var(--mint);
}

.mini-url {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.06);
  color: var(--muted);
  font-size: 0.48rem;
  line-height: 1.2;
}

.mini-site {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background: var(--peach);
}

.mini-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.concept:hover .mini-image {
  transform: scale(1.03);
}

.mini-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.5rem;
  line-height: 1.2;
}

.mini-logo {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mini-logo--serif {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.mini-navlinks {
  font-size: 0.45rem;
  opacity: 0.75;
}

.mini-nav--light {
  color: #fff;
}

.mini-nav--dark {
  color: var(--ink);
}

.mini-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.mini-kicker {
  font-size: 0.45rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
  opacity: 0.75;
}

.mini-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.mini-title--serif {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.mini-title--sans {
  font-family: var(--font-display);
  font-weight: 700;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.45rem;
  font-weight: 600;
  line-height: 1;
}

.mini-button--light {
  background: var(--chalk);
  color: var(--ink);
}

.mini-button--ink {
  background: var(--ink);
  color: var(--chalk);
}

.mini-site--cafe {
  background: var(--peach);
}

.mini-image--cafe {
  position: absolute;
  inset: 0;
}

.mini-overlay--cafe {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.9rem;
  background: linear-gradient(
    180deg,
    rgba(30, 20, 12, 0.46) 0%,
    rgba(30, 20, 12, 0.04) 36%,
    rgba(30, 20, 12, 0.78) 100%
  );
  color: #fff;
}

.mini-site--consultant {
  display: flex;
  flex-direction: column;
  padding: 0.9rem;
  background: var(--mint);
  color: var(--ink);
}

.mini-copy--consultant {
  z-index: 1;
  max-width: 86%;
  margin-top: 2.2rem;
}

.mini-image--consultant {
  position: absolute;
  right: -6%;
  bottom: -6%;
  width: 78%;
  height: 48%;
  border: 2px solid var(--ink);
  border-radius: 12px 0 0 0;
  box-shadow: -4px -4px 0 rgba(var(--ink-rgb), 0.25);
}

.mini-site--ceramics {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--lilac);
  color: var(--ink);
}

.mini-image--ceramics {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.9rem;
}

.mini-panel .mini-copy {
  margin-top: auto;
}

.concept-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0.2rem 0;
}

.concept-meta h3 {
  color: var(--chalk);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.concept-meta p {
  color: rgba(243, 245, 240, 0.55);
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: right;
}

.concept-note {
  max-width: 65ch;
  margin-top: 2rem;
  color: rgba(243, 245, 240, 0.55);
  font-size: 0.8rem;
  line-height: 1.55;
}

.work-cta {
  margin-top: 1.5rem;
  color: var(--chalk);
  border-color: var(--coral);
}

.work-cta:hover {
  color: var(--marigold);
  border-color: var(--marigold);
}

.work :focus-visible {
  outline-color: var(--marigold);
}

/* About */

.about {
  background: var(--mint);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.about-photo {
  position: relative;
  max-width: 430px;
}

.photo-frame {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--chalk);
  box-shadow: 8px 8px 0 var(--ink);
}

.photo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 58%;
}

.photo-caption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.photo-sticker {
  position: absolute;
  right: -1.2rem;
  bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--chalk);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-3deg);
}

.photo-sticker-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.photo-sticker-role {
  color: var(--on-dark);
  font-size: 0.6rem;
}

.about-copy h2 {
  max-width: 10ch;
}

.about-lead {
  max-width: 26ch;
  margin: 1.2rem 0 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.about-copy > p:not(.section-label):not(.about-lead) {
  max-width: 56ch;
  margin-bottom: 1rem;
  color: rgba(var(--ink-rgb), 0.92);
  font-size: 1rem;
  line-height: 1.65;
}

.beliefs {
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid rgba(var(--ink-rgb), 0.2);
}

.beliefs h3 {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.beliefs ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.beliefs li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.belief-mark {
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.4rem;
  color: var(--coral);
}

.beliefs p {
  max-width: 58ch;
  color: rgba(var(--ink-rgb), 0.92);
  font-size: 0.95rem;
  line-height: 1.55;
}

.beliefs strong {
  color: var(--ink);
  font-weight: 700;
}

.availability {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid rgba(var(--ink-rgb), 0.2);
}

.availability > p:first-child {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.availability-note {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Process */

.process {
  background: var(--chalk);
}

.process-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 3rem;
}

.process-head h2 {
  max-width: 12ch;
}

.process-intro {
  justify-self: end;
  max-width: 36ch;
  color: rgba(var(--ink-rgb), 0.92);
  font-size: 1rem;
  line-height: 1.6;
}

.process-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 4rem;
}

.process-list::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 0;
  left: 0;
  border-top: 1.5px dashed rgba(var(--ink-rgb), 0.3);
}

.process-step {
  position: relative;
  padding-top: 3.5rem;
}

.step-number {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--chalk);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.process-step:hover .step-number {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--chalk);
}

.process-step h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.process-step p {
  max-width: 30ch;
  color: rgba(var(--ink-rgb), 0.92);
  font-size: 0.9rem;
  line-height: 1.55;
}

.process-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  max-width: 62ch;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.note-star {
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.2rem;
  color: var(--coral);
}

/* FAQ */

.faq {
  border-top: 1.5px solid rgba(var(--ink-rgb), 0.15);
  background: var(--chalk);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.faq-intro h2 {
  max-width: 11ch;
}

.faq-intro > p:not(.section-label) {
  max-width: 34ch;
  margin-top: 1.2rem;
  color: rgba(var(--ink-rgb), 0.92);
  font-size: 1rem;
  line-height: 1.6;
}

.faq-intro .text-link {
  margin-top: 1.5rem;
}

.faq-list {
  border-top: 1.5px solid var(--ink);
}

.faq-list details {
  border-bottom: 1.5px solid rgba(var(--ink-rgb), 0.2);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::marker {
  content: "";
}

.faq-list summary:hover {
  color: var(--ink);
}

.faq-icon {
  color: var(--coral);
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.faq-list details[open] .faq-icon {
  color: var(--ink);
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 62ch;
  padding: 0 2.5rem 1.3rem 0;
  color: rgba(var(--ink-rgb), 0.92);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Contact */

.contact {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  background: var(--ink);
  color: var(--chalk);
  scroll-margin-top: 5.5rem;
}

.contact .section-label {
  color: var(--on-dark);
}

.contact .section-label::before {
  background: var(--marigold);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.contact-copy h2 {
  max-width: 12ch;
  color: var(--chalk);
}

.contact-lead {
  max-width: 42ch;
  margin-top: 1.2rem;
  color: var(--on-dark);
  font-size: 1rem;
  line-height: 1.6;
}

.email-link {
  display: inline-block;
  margin-top: 2rem;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--marigold);
  color: var(--chalk);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.email-link:hover {
  color: var(--marigold);
  border-color: var(--chalk);
}

.contact-availability {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-small {
  margin-top: 0.4rem;
  color: var(--on-dark-muted);
  font-size: 0.8rem;
}

.contact-form {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--chalk);
  color: var(--ink);
  box-shadow: 10px 10px 0 rgba(var(--ink-rgb), 0.35);
}

.form-title {
  margin-bottom: 1.3rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
}

.field label span {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid rgba(var(--ink-rgb), 0.25);
  border-radius: 8px;
  background: #f7faf6;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--ink-rgb), 0.15);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(var(--ink-rgb), 0.4);
}

.button--form {
  width: 100%;
  margin-top: 0.4rem;
}

.form-note {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.form-status {
  min-height: 1.2em;
  margin-top: 0.5rem;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.5;
}

.form-status a {
  color: var(--ink);
}

.contact-form :focus-visible {
  outline-color: var(--ink);
}

/* Footer */

.site-footer {
  padding: 4rem 0 1.5rem;
  background: var(--ink);
  color: var(--chalk);
}

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(243, 245, 240, 0.15);
}

.footer-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1rem;
  color: var(--chalk);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-decoration: none;
}

.footer-star {
  width: 0.55em;
  height: 0.55em;
  color: var(--coral);
}

.footer-note {
  justify-self: center;
  max-width: 42ch;
  color: rgba(243, 245, 240, 0.6);
  font-size: 0.85rem;
  line-height: 1.55;
  text-align: center;
}

.button--footer {
  justify-self: end;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.5rem;
  color: rgba(243, 245, 240, 0.55);
  font-size: 0.75rem;
}

.footer-bottom nav {
  display: flex;
  gap: 1.2rem;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--chalk);
}

.site-footer :focus-visible {
  outline-color: var(--marigold);
}

/* Responsive */

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

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

  .hero-art {
    justify-content: flex-start;
    min-height: 0;
    margin-top: 1rem;
    padding-bottom: 0;
  }

  .browser-card {
    width: min(100%, 540px);
    margin-left: 0;
  }

  .services-grid,
  .about-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-intro {
    position: static;
  }

  .about-photo {
    order: 2;
    max-width: 460px;
  }

  .about-copy {
    order: 1;
  }

  .work-head {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .work-intro {
    justify-self: start;
  }

  .concept-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(260px, 34vw, 360px);
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(243, 245, 240, 0.35) transparent;
    scrollbar-width: thin;
  }

  .concept {
    scroll-snap-align: start;
  }

  .process-head {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .process-intro {
    justify-self: start;
  }

  .contact-form {
    max-width: 620px;
  }
}

@media (max-width: 900px) {
  .main-nav,
  .button--nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-menu:not([hidden]) {
    display: flex;
  }

  .header-inner {
    min-height: 4.25rem;
  }

  .mobile-menu {
    padding-top: calc(4.25rem + 2rem);
  }

  .process-list {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .process-list::before {
    top: 0;
    bottom: 0;
    left: 22px;
    border-top: 0;
    border-left: 1.5px dashed rgba(var(--ink-rgb), 0.3);
  }

  .process-step {
    padding-top: 0;
    padding-left: 4rem;
  }

  .step-number {
    top: 0;
    left: 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.5rem;
  }

  .footer-note {
    justify-self: start;
    text-align: left;
  }

  .button--footer {
    justify-self: start;
  }

  .footer-bottom {
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 2.25rem;
  }

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

  .hero-title.voice-instrument {
    font-size: clamp(3.4rem, 16vw, 5.6rem);
  }

  .hero-kicker {
    font-size: 0.8rem;
  }

  .voice-label {
    width: 100%;
    margin-bottom: 0.1rem;
  }

  .browser-card {
    transform: rotate(-1deg);
  }

  .browser-title {
    font-size: 2rem;
  }

  .section h2 {
    font-size: clamp(2.4rem, 10vw, 3.4rem);
  }

  .services-grid,
  .about-grid,
  .faq-grid,
  .contact-grid {
    gap: 2.5rem;
  }

  .photo-sticker {
    right: 0.5rem;
    bottom: 1.5rem;
  }

  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 1.25rem;
  }

  .hero-title {
    font-size: clamp(2.8rem, 15vw, 4.6rem);
  }

  .hero-title.voice-instrument {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .button {
    padding: 0.8rem 1.1rem;
    font-size: 0.88rem;
  }

  .browser-overlay {
    padding: 0.85rem;
  }

  .browser-title {
    font-size: 1.8rem;
  }

  .contact-form {
    padding: 1.1rem;
  }

  .mini-title--serif {
    font-size: 1.5rem;
  }

  .mini-logo--serif {
    font-size: 0.82rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ribbon-track {
    flex-wrap: wrap;
    width: auto;
    animation: none;
  }

  .ribbon-group {
    flex-wrap: wrap;
    white-space: normal;
  }

  .ribbon-group[aria-hidden="true"] {
    display: none;
  }

  .hero-title.is-switching {
    animation: none;
  }
}


/* ===== Bracket field hero (dark, mouse-reactive) ===== */

:root {
  --field-bg: #050505;
  --field-green: #3ecf8e;
}

.site-header {
  background: var(--field-bg);
  color: var(--chalk);
  border-bottom-color: rgba(243, 245, 240, 0.14);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

.site-header .brand-mark {
  color: var(--field-green);
}

.site-header .main-nav a::after {
  background: var(--field-green);
}

.site-header .button--nav {
  border-color: var(--chalk);
  background: var(--chalk);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--field-green);
}

.site-header .button--nav:hover {
  background: var(--field-green);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--chalk);
}

.site-header .button--nav .button-star {
  color: var(--ink);
}

.menu-toggle {
  border-color: rgba(243, 245, 240, 0.6);
  color: var(--chalk);
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  background: var(--chalk);
  color: var(--ink);
}

.mobile-menu {
  background: var(--field-bg);
  color: var(--chalk);
}

.mobile-nav a {
  border-bottom-color: rgba(243, 245, 240, 0.16);
}

.mobile-menu-note {
  color: var(--on-dark-muted);
}

.hero {
  position: relative;
  isolation: isolate;
  background: var(--field-bg);
  color: var(--chalk);
  touch-action: pan-y;
}

.bracket-canvas,
.hero-field {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 22% 50%, rgba(5, 5, 5, 0.72), rgba(5, 5, 5, 0) 70%);
}

.hero .status-dot {
  background: var(--field-green);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.22), 0 0 12px rgba(62, 207, 142, 0.7);
}

.hero-kicker {
  color: var(--on-dark-muted);
}

.hero-title {
  color: var(--chalk);
  text-shadow: 0 2px 24px rgba(5, 5, 5, 0.6);
}

.voice-label {
  color: var(--field-green);
}

.voice-btn {
  color: var(--chalk);
}

.voice-btn:hover {
  background: rgba(243, 245, 240, 0.12);
}

.voice-btn.is-active {
  border-color: var(--chalk);
  background: var(--chalk);
  color: var(--ink);
}

.hero-sub {
  color: var(--on-dark-muted);
}

.hero .button {
  border-color: var(--chalk);
  background: var(--chalk);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--field-green);
}

.hero .button:hover {
  background: var(--field-green);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--chalk);
}

.hero .button .button-star {
  color: var(--ink);
}

.hero .text-link {
  color: var(--chalk);
  border-color: var(--field-green);
}

.hero .text-link:hover {
  color: var(--field-green);
  border-color: var(--chalk);
}

.hero .browser-card {
  box-shadow: 10px 10px 0 rgba(62, 207, 142, 0.25);
}

.hero .browser-card:hover {
  box-shadow: 14px 14px 0 rgba(62, 207, 142, 0.35);
}

@media (max-width: 1000px) {
  .hero-shade {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.7) 0%, rgba(5, 5, 5, 0.35) 55%, rgba(5, 5, 5, 0.1) 100%);
  }
}

/* Bracket field on the other dark sections */

[data-bracket-field] {
  position: relative;
  isolation: isolate;
  background: var(--field-bg);
}

[data-bracket-field] > .bracket-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.work,
.contact,
.site-footer {
  background: var(--field-bg);
}

.work .section-label,
.contact .section-label {
  color: var(--on-dark-muted);
}

.work h2,
.contact h2 {
  text-shadow: 0 2px 24px rgba(5, 5, 5, 0.7);
}

.contact .status-dot {
  background: var(--field-green);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.22), 0 0 12px rgba(62, 207, 142, 0.7);
}

/* ===== All-dark experiment: every light section gets the bracket field ===== */

body {
  background: var(--field-bg);
}

.services,
.about,
.process,
.faq {
  --ink: #f3f5f0;
  --ink-rgb: 243, 245, 240;
  --chalk: #050505;
  --muted: #d3d8d1;
  background: var(--field-bg);
  color: var(--ink);
}

.faq {
  border-top-color: rgba(243, 245, 240, 0.12);
}

.services .section-label,
.about .section-label,
.process .section-label,
.faq .section-label {
  color: var(--muted);
}

.services h2,
.about h2,
.process h2,
.faq h2 {
  text-shadow: 0 2px 24px rgba(5, 5, 5, 0.7);
}

/* ===== One continuous field: a single fixed canvas behind the whole page ===== */

html,
body {
  background: var(--field-bg);
}

.bracket-canvas-page {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero,
.services,
.services-ribbon,
.work,
.about,
.process,
.faq,
.contact,
.site-footer {
  background: transparent;
  border-top: 0;
  border-bottom: 0;
}

.site-header {
  z-index: 50;
  background: rgba(5, 5, 5, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 0;
}

.footer-top {
  border-bottom-color: rgba(243, 245, 240, 0.08);
}

/* ===== Brighter text + dark, see-through contact form ===== */

.work,
.contact,
.site-footer {
  --muted: #d3d8d1;
}

.contact-form {
  --ink: #f3f5f0;
  --ink-rgb: 243, 245, 240;
  --chalk: #050505;
  --muted: #c4cbc3;
  border: 1.5px solid rgba(62, 207, 142, 0.45);
  background: rgba(5, 5, 5, 0.38);
  color: var(--ink);
  box-shadow: 10px 10px 0 rgba(62, 207, 142, 0.18);
}

.field input,
.field textarea,
.field select {
  border-color: rgba(243, 245, 240, 0.22);
  background: rgba(5, 5, 5, 0.45);
  color: #f3f5f0;
}

.field select option {
  background: #050505;
  color: #f3f5f0;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--field-green);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.22);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(243, 245, 240, 0.5);
}

.contact-form .button {
  border-color: var(--field-green);
  background: var(--field-green);
  color: #050505;
  box-shadow: 3px 3px 0 rgba(243, 245, 240, 0.85);
}

.contact-form .button:hover {
  background: #f3f5f0;
  color: #050505;
  box-shadow: 5px 5px 0 var(--field-green);
}

.contact-form .button .button-star {
  color: #050505;
}

/* ===== Mobile-first polish ===== */

html {
  -webkit-text-size-adjust: 100%;
}

a,
button,
summary,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

.bracket-canvas-page {
  height: 100lvh;
}

.site-header {
  padding-top: env(safe-area-inset-top);
}

.site-footer {
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

/* Scroll reveal */
.has-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease var(--d, 0ms),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms);
}

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

/* Floating call-to-action (phones only) */
.mobile-cta {
  display: none;
}

/* Mobile menu: numbered, staggered, green accents */
.mobile-nav a::before {
  content: attr(data-num);
  display: inline-block;
  min-width: 2.6rem;
  color: var(--field-green);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: middle;
}

.mobile-menu:not([hidden]) .mobile-nav a {
  animation: menu-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 60ms + 60ms);
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.mobile-menu .button--mobile {
  border-color: var(--field-green);
  background: var(--field-green);
  color: #050505;
  box-shadow: 3px 3px 0 #f3f5f0;
}

.mobile-menu .button--mobile .button-star {
  color: #050505;
}

@media (max-width: 900px) {
  .mobile-cta {
    position: fixed;
    left: 50%;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 45;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.4rem;
    border: 1.5px solid var(--field-green);
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #f3f5f0;
    box-shadow: 0 0 0 4px rgba(62, 207, 142, 0.12), 0 10px 30px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 140%);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
  }

  .mobile-cta.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .mobile-cta-bracket {
    color: var(--field-green);
    font-family: "Courier New", ui-monospace, monospace;
    font-weight: 700;
  }

  body.menu-open .mobile-cta {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-bottom: 3.5rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .hero-actions .button {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  .hero-actions .text-link {
    align-self: center;
  }

  .voice-btn {
    min-height: 40px;
    padding: 0.45rem 0.9rem;
  }

  /* Concept cards: swipeable, with the next one peeking in */
  .concept-grid {
    grid-auto-columns: 82%;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .concept-grid::-webkit-scrollbar {
    display: none;
  }

  .work-head::after {
    content: "swipe  ( → )";
    color: var(--field-green);
    font-family: "Courier New", ui-monospace, monospace;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
  }

  .faq summary {
    padding-block: 1.1rem;
  }

  .contact-form .button {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }

  .email-link {
    word-break: break-all;
  }

  .site-footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-reveal .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Fix: backdrop-filter on the header turned it into the containing block for
   the fixed mobile menu, clipping the menu to header height (only "Work" showed).
   The blur now lives on a pseudo-element, so the menu can fill the screen. */
.site-header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 5, 5, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.mobile-menu {
  height: 100vh;
  height: 100dvh;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}

body.menu-open .site-header::before {
  background: #050505;
}

/* Budget: currency picker + free amount */
.budget-group {
  display: flex;
  gap: 0.5rem;
}

.field .budget-group .budget-currency {
  flex: 0 0 auto;
  width: 6.2rem;
  padding-right: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--field-green, #3ecf8e);
}

.field .budget-group .budget-amount {
  flex: 1 1 auto;
  min-width: 0;
}

/* Transparent "glass-free" buttons at the bottom: ripples show through,
   a green outline keeps them visible and tappable. */
.contact-form .button,
.site-footer .button--footer,
.mobile-cta {
  border: 1.5px solid var(--field-green, #3ecf8e);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #f3f5f0;
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.15), 0 0 18px rgba(62, 207, 142, 0.18);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

.contact-form .button .button-star,
.site-footer .button--footer .button-star {
  color: var(--field-green, #3ecf8e);
}

.contact-form .button:hover,
.contact-form .button:focus-visible,
.contact-form .button:active,
.site-footer .button--footer:hover,
.site-footer .button--footer:focus-visible,
.site-footer .button--footer:active,
.mobile-cta:active {
  background: rgba(62, 207, 142, 0.1);
  color: #f3f5f0;
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.35), 0 0 26px rgba(62, 207, 142, 0.3);
}

@media (max-width: 900px) {
  .mobile-cta.is-visible {
    transform: translate(-50%, 0);
  }
}

/* Hero "Start a project": same transparent outlined style as the bottom buttons */
.hero .button {
  border: 1.5px solid var(--field-green, #3ecf8e);
  background: transparent;
  color: #f3f5f0;
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.15), 0 0 18px rgba(62, 207, 142, 0.18);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

.hero .button .button-star {
  color: var(--field-green, #3ecf8e);
}

.hero .button:hover,
.hero .button:focus-visible,
.hero .button:active {
  background: rgba(62, 207, 142, 0.1);
  color: #f3f5f0;
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.35), 0 0 26px rgba(62, 207, 142, 0.3);
}
