@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #07101d;
  --bg-deep: #050b15;
  --panel: rgba(14, 27, 47, 0.86);
  --panel-strong: #101f39;
  --panel-soft: rgba(17, 31, 56, 0.62);
  --text: #f4efe7;
  --muted: #9ca7ba;
  --muted-strong: #c6cfde;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #c79a60;
  --accent-strong: #ddad6f;
  --accent-soft: rgba(199, 154, 96, 0.14);
  --accent-panel: linear-gradient(180deg, #d6b17e 0%, #b98749 100%);
  --surface-light: #f4efe7;
  --success: #76d39f;
  --error: #ff8c8c;
  --shadow-lg: 0 34px 100px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 22px 60px rgba(0, 0, 0, 0.24);
  --shadow-sm: 0 16px 40px rgba(0, 0, 0, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

html[data-theme="light"] {
  --bg: #f3eee7;
  --bg-deep: #ece6de;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.72);
  --text: #181a20;
  --muted: #6e7481;
  --muted-strong: #3d4655;
  --line: rgba(24, 26, 32, 0.08);
  --line-strong: rgba(24, 26, 32, 0.14);
  --accent: #c79a60;
  --accent-strong: #b98749;
  --accent-soft: rgba(199, 154, 96, 0.16);
  --accent-panel: linear-gradient(180deg, #efe4ca 0%, #e4d1a4 100%);
  --surface-light: #101522;
  --success: #15803d;
  --error: #c2410c;
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 20px 52px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 12px 28px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(57, 105, 189, 0.12), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(199, 154, 96, 0.12), transparent 26%),
    linear-gradient(180deg, #08111f 0%, #091321 32%, var(--bg-deep) 100%);
  transition: background 320ms ease, color 320ms ease;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(199, 154, 96, 0.16), transparent 24%),
    radial-gradient(circle at 90% 12%, rgba(210, 222, 220, 0.86), transparent 34%),
    linear-gradient(180deg, #f8f5ef 0%, #f3eee7 48%, #ece6de 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 95%);
}

html[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(24, 26, 32, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 26, 32, 0.04) 1px, transparent 1px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 95%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 100%, rgba(39, 74, 134, 0.22), transparent 26%),
    radial-gradient(circle at 100% 75%, rgba(199, 154, 96, 0.1), transparent 22%);
}

html[data-theme="light"] body::after {
  background:
    radial-gradient(circle at 18% 100%, rgba(199, 154, 96, 0.12), transparent 20%),
    radial-gradient(circle at 100% 70%, rgba(153, 177, 187, 0.16), transparent 24%);
}

body.is-loading {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: rgba(199, 154, 96, 0.3);
}

.page-wrap {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
}

.surface-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  transition:
    transform 220ms ease,
    border-color 320ms ease,
    box-shadow 320ms ease,
    background-color 320ms ease;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  gap: 1rem;
  background:
    radial-gradient(circle at top, rgba(199, 154, 96, 0.16), transparent 26%),
    linear-gradient(180deg, #08111f 0%, #07101d 100%);
  transition: opacity 420ms ease, visibility 420ms ease;
}

html[data-theme="light"] .site-loader {
  background:
    radial-gradient(circle at top, rgba(199, 154, 96, 0.16), transparent 26%),
    linear-gradient(180deg, #f8f5ef 0%, #f3eee7 100%);
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  width: 88px;
  height: 88px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 28, 50, 0.9);
  box-shadow: var(--shadow-sm);
  animation: loaderPulse 1.8s ease-in-out infinite;
}

html[data-theme="light"] .loader-mark {
  background: rgba(255, 255, 255, 0.94);
}

.loader-copy {
  width: min(280px, calc(100vw - 4rem));
  text-align: center;
}

.loader-copy span {
  display: block;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.loader-track {
  margin-top: 1rem;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .loader-track {
  background: rgba(24, 26, 32, 0.08);
}

.loader-track span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #f1c48a);
  animation: loaderBar 1.25s ease-in-out infinite;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 18px rgba(199, 154, 96, 0.34);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(7, 16, 29, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

html[data-theme="light"] .site-header {
  background: rgba(248, 245, 239, 0.86);
  border-bottom-color: rgba(24, 26, 32, 0.06);
}

.site-header.is-scrolled {
  background: rgba(7, 16, 29, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .site-header.is-scrolled {
  background: rgba(248, 245, 239, 0.96);
  border-bottom-color: rgba(24, 26, 32, 0.08);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 84px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
}

.brand-name {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-role {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  justify-self: center;
  min-width: 0;
}

.nav-links a,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 320ms ease, background-color 320ms ease, color 320ms ease;
}

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

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a:focus-visible {
  background: rgba(24, 26, 32, 0.05);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
}

.header-cta {
  color: #101522;
  background: var(--surface-light);
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-1px);
  background: #fff7ed;
}

html[data-theme="light"] .header-cta {
  color: #f8f5ef;
  background: linear-gradient(135deg, #d4a556, #c19243);
}

html[data-theme="light"] .header-cta:hover,
html[data-theme="light"] .header-cta:focus-visible {
  background: linear-gradient(135deg, #ddb26e, #c99644);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 42px;
  padding: 0.45rem 0.8rem 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: transform 180ms ease, border-color 320ms ease, background-color 320ms ease, color 320ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .theme-toggle {
  background: rgba(24, 26, 32, 0.03);
}

html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .theme-toggle:focus-visible {
  background: rgba(24, 26, 32, 0.06);
}

.theme-toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .theme-toggle-track {
  background: rgba(24, 26, 32, 0.1);
  box-shadow: inset 0 0 0 1px rgba(24, 26, 32, 0.06);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3d2a1, #cb9956);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
  transition: transform 280ms ease;
}

html[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(18px);
  background: linear-gradient(135deg, #111827, #334155);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.theme-toggle-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-section,
.section-shell {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.hero-section {
  padding-top: clamp(4rem, 8vw, 6.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 1.25rem;
  align-items: start;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-kicker.dark {
  color: #111827;
}

.hero-copy h1,
.section-header h2,
.contact-panel h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.hero-copy h1 {
  margin-top: 1rem;
  max-width: 10ch;
  font-size: clamp(3rem, 7vw, 5.6rem);
}

.hero-subline,
.hero-intro,
.section-header p,
.section-side-note,
.service-card p,
.project-summary,
.project-outcome strong,
.project-outcome span,
.process-step p,
.principle-card p,
.contact-panel p {
  margin: 0;
}

.hero-subline {
  max-width: 44rem;
  margin-top: 1.5rem;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.55vw, 1.16rem);
}

.hero-intro {
  max-width: 42rem;
  margin-top: 1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 52px;
  padding: 0.9rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -36%;
  width: 32%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: skewX(-18deg);
}

.btn.primary {
  color: #111827;
  background: linear-gradient(135deg, #ecd0a3, #c99960);
  box-shadow: 0 16px 40px rgba(201, 153, 96, 0.24);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(201, 153, 96, 0.28);
}

.btn.primary:disabled {
  cursor: wait;
  opacity: 0.76;
}

.btn.secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

.btn:hover::after,
.btn:focus-visible::after {
  opacity: 1;
  animation: sheenSweep 760ms ease;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.hero-highlight {
  min-height: 100%;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 260ms ease, background-color 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

html[data-theme="light"] .hero-highlight {
  background: rgba(255, 255, 255, 0.68);
}

.hero-highlight span {
  display: inline-flex;
  width: 10px;
  height: 10px;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ffd39a);
  box-shadow: 0 0 0 8px rgba(199, 154, 96, 0.08);
}

.hero-highlight p {
  color: var(--muted-strong);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-highlight:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.hero-showcase {
  display: grid;
  gap: 1rem;
}

.hero-brand-card,
.meta-card,
.service-card,
.project-media,
.principle-card,
.contact-form {
  position: relative;
  overflow: hidden;
}

.hero-brand-card::before,
.project-media::before,
.contact-form::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
}

.hero-brand-card {
  display: grid;
  min-height: 350px;
  padding: clamp(1.6rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 20% 18%, rgba(199, 154, 96, 0.18), transparent 24%),
    radial-gradient(circle at 82% 72%, rgba(54, 91, 156, 0.18), transparent 28%),
    linear-gradient(145deg, #0c1b33 0%, #0a1529 100%);
}

html[data-theme="light"] .hero-brand-card {
  background:
    radial-gradient(circle at 16% 18%, rgba(199, 154, 96, 0.14), transparent 22%),
    radial-gradient(circle at 84% 14%, rgba(182, 201, 205, 0.48), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f2efea 100%);
}

.hero-brand-card::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: calc(var(--radius-xl) - 12px);
}

html[data-theme="light"] .hero-brand-card::after {
  border-color: rgba(17, 19, 25, 0.06);
}

.hero-card-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  align-self: flex-start;
  padding: 0.45rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .hero-card-label {
  border-color: rgba(17, 19, 25, 0.08);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.86);
}

.hero-brand-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 12px);
  animation: floatCard 6.5s ease-in-out infinite;
}

.hero-card-badge {
  position: relative;
  z-index: 1;
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(199, 154, 96, 0.2);
  border-radius: 16px;
  background: rgba(10, 21, 41, 0.88);
  backdrop-filter: blur(16px);
}

html[data-theme="light"] .hero-card-badge {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(17, 19, 25, 0.08);
}

.hero-card-badge strong {
  color: var(--accent-strong);
  font-family: "Fraunces", serif;
  font-size: 1.8rem;
  line-height: 1;
}

.hero-card-badge span {
  color: var(--muted-strong);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

html[data-theme="light"] .hero-card-badge span {
  color: var(--muted);
}

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

.meta-card {
  min-height: 100%;
  padding: 1.25rem;
  transition: transform 260ms ease, border-color 320ms ease, box-shadow 320ms ease, background-color 320ms ease;
}

.meta-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.meta-card span,
.project-category,
.project-year,
.service-index,
.process-index,
.contact-link span,
label span {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.meta-card span {
  display: block;
  color: var(--accent-strong);
}

.meta-card strong {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted-strong);
  font-size: 0.98rem;
  line-height: 1.55;
}

.section-header {
  max-width: 50rem;
}

.section-header.compact {
  max-width: 42rem;
}

.section-header.centered {
  margin: 0 auto;
  text-align: center;
}

.section-header h2,
.contact-panel h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-header p,
.contact-panel p {
  margin-top: 1rem;
  color: var(--muted);
}

.section-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-side-note {
  max-width: 20rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: right;
}

.service-grid,
.project-grid,
.principle-grid {
  display: grid;
  gap: 1rem;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

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

.principle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.service-card,
.principle-card {
  padding: 2rem;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-card:hover,
.principle-card:hover,
.project-card:hover .project-media,
.contact-form:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.service-index {
  display: inline-flex;
  color: var(--accent-strong);
}

.service-card h3,
.project-card h3,
.process-step h3,
.principle-card h3 {
  margin: 1rem 0 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.service-card h3,
.project-card h3,
.process-step h3,
.principle-card h3,
.contact-link strong,
.project-outcome strong {
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.service-card p,
.principle-card p {
  margin-top: 0.9rem;
  color: var(--muted);
}

.service-points,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.service-points li,
.project-tags span {
  padding: 0.46rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.project-card {
  display: grid;
  gap: 1rem;
}

.project-media {
  aspect-ratio: 16 / 9;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease;
}

.project-card:hover .project-media img {
  transform: scale(1.05);
}

.project-body {
  padding: 0 0.4rem;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-category {
  color: var(--accent-strong);
}

.project-year {
  color: var(--muted);
}

.project-card h3 {
  margin: 0.7rem 0 0;
  font-size: 1.8rem;
}

.project-summary {
  margin-top: 0.85rem;
  color: var(--muted);
}

.project-outcome {
  display: grid;
  gap: 0.42rem;
  margin-top: 1rem;
}

.project-outcome span {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-outcome strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

.approach-shell {
  background: linear-gradient(180deg, rgba(12, 22, 39, 0.3) 0%, rgba(8, 14, 24, 0.08) 100%);
}

html[data-theme="light"] .approach-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(223, 216, 206, 0.2) 100%);
}

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

.process-track::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

html[data-theme="light"] .process-track::before {
  background: linear-gradient(90deg, rgba(24, 26, 32, 0.04), rgba(24, 26, 32, 0.12), rgba(24, 26, 32, 0.04));
}

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

.process-index {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #101522;
  background: linear-gradient(135deg, #ecd0a3, #c99960);
  box-shadow: 0 14px 28px rgba(201, 153, 96, 0.22);
}

.process-step h3 {
  margin-top: 1.25rem;
  font-size: 1.4rem;
}

.process-step p {
  margin-top: 0.8rem;
  color: var(--muted);
  max-width: 18rem;
}

.contact-section {
  padding-bottom: clamp(5rem, 8vw, 7rem);
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 1rem;
  align-items: stretch;
}

.contact-panel {
  padding: clamp(1.8rem, 4vw, 2.5rem);
  border-radius: var(--radius-xl);
  color: #101522;
  background: var(--accent-panel);
  box-shadow: 0 28px 80px rgba(185, 135, 73, 0.18);
}

html[data-theme="light"] .contact-panel {
  color: var(--text);
  background: linear-gradient(180deg, #efe4ca 0%, #e4d1a4 100%);
}

.contact-panel p {
  color: rgba(16, 21, 34, 0.78);
}

html[data-theme="light"] .contact-panel p,
html[data-theme="light"] .contact-note,
html[data-theme="light"] .contact-link span {
  color: rgba(24, 26, 32, 0.68);
}

.contact-direct {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}

.contact-link {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgba(16, 21, 34, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.16);
  transition: transform 180ms ease, background-color 320ms ease, border-color 320ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.contact-link span {
  color: rgba(16, 21, 34, 0.66);
}

.contact-link strong {
  color: #101522;
  font-size: 1.18rem;
}

html[data-theme="light"] .contact-form {
  background: rgba(255, 255, 255, 0.95);
}

.contact-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin-top: 1.6rem;
  color: rgba(16, 21, 34, 0.72);
  font-size: 0.95rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

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

label {
  display: grid;
  gap: 0.65rem;
}

label span {
  color: var(--muted-strong);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1rem 1.05rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
  transition: border-color 320ms ease, background-color 320ms ease, color 320ms ease, transform 180ms ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(156, 167, 186, 0.72);
}

input:focus,
textarea:focus {
  border-color: rgba(221, 173, 111, 0.5);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

textarea {
  min-height: 170px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-status.pending {
  color: var(--muted-strong);
}

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

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

.site-footer {
  padding: 0 0 2rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
  transition: border-color 320ms ease, color 320ms ease;
}

.hero-copy,
.section-header,
.section-side-note,
.meta-card strong,
.service-card p,
.project-summary,
.project-outcome strong,
.process-step p,
.principle-card p,
.contact-panel,
.contact-panel p,
.contact-note,
.contact-link span,
.contact-link strong,
label span,
.form-status {
  transition: color 320ms ease, background-color 320ms ease, border-color 320ms ease;
}

html[data-theme="light"] .site-footer {
  color: var(--muted);
}

body.is-ready .hero-highlight {
  animation: riseIn 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

body.is-ready .hero-highlight:nth-child(2) {
  animation-delay: 110ms;
}

body.is-ready .hero-highlight:nth-child(3) {
  animation-delay: 190ms;
}

body.is-ready .hero-card-badge {
  animation: riseIn 760ms cubic-bezier(0.2, 0.7, 0.2, 1) 180ms both;
}

body.is-ready .meta-card {
  animation: riseIn 720ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

body.is-ready .meta-card:nth-child(2) {
  animation-delay: 110ms;
}

body.is-ready .meta-card:nth-child(3) {
  animation-delay: 190ms;
}

body.is-ready .meta-card:nth-child(4) {
  animation-delay: 270ms;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(10px);
  transition:
    opacity 720ms ease,
    transform 720ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 720ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

@keyframes loaderBar {
  0% {
    transform: translateX(-120%);
  }

  60%,
  100% {
    transform: translateX(250%);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes riseIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes sheenSweep {
  0% {
    transform: translateX(-140%) skewX(-18deg);
  }

  100% {
    transform: translateX(420%) skewX(-18deg);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }

  .section-row {
    display: grid;
  }

  .section-side-note {
    max-width: 36rem;
    text-align: left;
  }

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

  .process-track::before {
    display: none;
  }
}

@media (max-width: 860px) {
  .header-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    padding: 1rem 0;
  }

  .brand {
    grid-area: brand;
  }

  .nav-links {
    grid-area: nav;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .header-actions {
    grid-area: actions;
  }

  .hero-highlights,
  .hero-meta-grid,
  .service-grid,
  .project-grid,
  .principle-grid,
  .process-track,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-brand-card {
    min-height: 300px;
  }

  .contact-link strong {
    font-size: 1.02rem;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-wrap {
    width: min(100%, calc(100% - 1.1rem));
  }

  .hero-section,
  .section-shell {
    padding: 3.6rem 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 13vw, 3.2rem);
  }

  .section-header h2,
  .contact-panel h2 {
    font-size: clamp(1.9rem, 10vw, 2.45rem);
  }

  .hero-subline,
  .hero-intro,
  .section-header p,
  .contact-panel p {
    font-size: 0.98rem;
  }

  .btn,
  .header-cta {
    width: 100%;
  }

  .header-actions {
    display: grid;
    width: 100%;
  }

  .theme-toggle {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    display: grid;
  }

  .hero-brand-card,
  .service-card,
  .principle-card,
  .contact-form,
  .contact-panel {
    border-radius: 24px;
  }

  .service-card,
  .principle-card,
  .contact-form,
  .contact-panel {
    padding: 1.3rem;
  }

  .project-body {
    padding: 0;
  }
}

@media (max-width: 540px) {
  .brand-role,
  .theme-toggle-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
