/* Reset & Base System */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Tokens */
  --canvas-color: #FBF9F6;
  --ink-color: #262220;
  --muted-ink: #7A7268;
  --signal-color: #C8703A;
  --hairline: rgba(38, 34, 32, 0.10);
  
  /* Reverse Moment Tokens */
  --rev-canvas: #262220;
  --rev-ink: #FBF9F6;
  
  /* Font Stacks - Strictly Zero Monospace */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', system-ui, -apple-system, sans-serif;
  
  /* Grid & Constraints */
  --max-width: 1360px;
  --header-height: 100px;
  
  /* Transitions */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
}

html {
  scroll-behavior: smooth;
  background-color: var(--canvas-color);
  color: var(--ink-color);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Custom Interactive Cursor (Elite UX detail) */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--signal-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
  display: none; /* Enabled on non-touch devices in script.js */
}

body.cursor-active .cursor-dot {
  width: 40px;
  height: 40px;
  background-color: rgba(200, 112, 58, 0.15);
  border: 1px solid var(--signal-color);
}

/* Typographic Utilities */
.text-serif {
  font-family: var(--font-display);
}

.italic {
  font-style: italic;
}

.font-light {
  font-weight: 300;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Custom Text Highlight */
::selection {
  background-color: var(--signal-color);
  color: var(--canvas-color);
}

/* Navigation - Premium Editorial Spacing */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(251, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-color);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted-ink);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--signal-color);
  transition: var(--transition-smooth);
}

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

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section - Asymmetrical Split Grid */
.hero-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 60px 140px;
}

.experience-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--signal-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--signal-color);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-loaded .experience-badge {
  opacity: 1;
  transform: translateY(0);
}

.badge-icon {
  display: inline-block;
  animation: twinkle-star 3.5s infinite ease-in-out;
}

@keyframes twinkle-star {
  0%   { opacity: 1; }
  35%  { opacity: 0.25; }
  55%  { opacity: 0.6; }
  75%  { opacity: 0.15; }
  100% { opacity: 1; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 80px;
  align-items: start;
}

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

.hero-headline {
  font-size: 4.5rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 40px;
}

.highlight-text {
  color: var(--signal-color);
}

.hero-thesis {
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted-ink);
}

/* Sidebar Index Menu (Table of Contents style) */
.hero-sidebar {
  border-left: 1px solid var(--hairline);
  padding-left: 40px;
  margin-top: 20px;
}

.sidebar-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-ink);
  display: block;
  margin-bottom: 24px;
}

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-item {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  color: var(--ink-color);
}

.sidebar-item .item-num {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--signal-color);
  margin-right: 16px;
  width: 20px;
}

.sidebar-item:hover {
  color: var(--signal-color);
  transform: translateX(6px);
}

/* Signature Section (Typographic Reversed Moment) */
.signature-section {
  background-color: var(--rev-canvas);
  color: var(--rev-ink);
  padding: 140px 60px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

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

.signature-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}

.sig-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--signal-color);
}

.signature-manifesto {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.02em;
  max-width: 860px;
}

.signature-manifesto span {
  color: var(--signal-color);
  font-weight: 400;
}

/* Work Showcase Section */
.work-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 60px;
}

.project-card {
  padding: 100px 0;
  border-bottom: 1px solid var(--hairline);
}

.project-card:last-child {
  border-bottom: none;
}

/* Project Details Grid (Split below full-width previews) */
.project-details-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 60px;
}

/* Desktop Preview Container */
.desktop-preview-container {
  width: 100%;
  margin-top: 32px;
}

.preview-container {
  width: 100%;
}

.preview-container.desktop-mode {
  max-width: 100%;
}

/* Mobile Preview Wrapper & Minimal Phone Mockup */
.mobile-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.preview-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-ink);
  margin-bottom: 24px;
}

.mobile-preview-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 340px;
  height: 620px;
  border: 12px solid #ffffff;
  outline: 1px solid var(--hairline);
  border-radius: 40px;
  position: relative;
  background-color: #ffffff;
  box-shadow: 0 20px 50px rgba(38, 34, 32, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-header {
  height: 30px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 8px;
  z-index: 10;
}

.phone-speaker {
  width: 50px;
  height: 4px;
  background-color: var(--hairline);
  border-radius: 2px;
}

.phone-camera {
  width: 6px;
  height: 6px;
  background-color: var(--hairline);
  border-radius: 50%;
}

.phone-content {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  background-color: #FAF8F6;
  width: 100%;
}

/* Mobile iframe: natural size, no scale transform — scrollable within frame */
.phone-content .live-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.phone-content .live-iframe::-webkit-scrollbar {
  display: none !important;
}

/* Project Header */
.project-header {
  margin-bottom: 48px;
  padding-bottom: 24px;
}

.project-number {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--signal-color);
  margin-bottom: 12px;
  display: block;
}

.project-title {
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.project-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-ink);
}

/* Project Text Sidebar */
.project-meta {
  display: flex;
  flex-direction: column;
}

.project-narrative {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.narrative-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.narrative-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-ink);
}

.narrative-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-color);
}

.desktop-preview-container {
  width: 100%;
  transition: var(--transition-smooth);
}

.mobile-preview-container {
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
  transition: var(--transition-smooth);
}

.browser-frame {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(38, 34, 32, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.browser-frame:hover {
  box-shadow: 0 16px 50px rgba(200, 112, 58, 0.08);
}

.browser-header {
  height: 40px;
  background-color: #FAF8F6;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 8px;
}

.browser-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--hairline);
}

.browser-header .address-bar {
  flex-grow: 1;
  max-width: 400px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid rgba(38, 34, 32, 0.06);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--muted-ink);
  text-align: center;
  padding: 3px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iframe-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  background-color: #FAF8F6;
  z-index: 5;
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  z-index: 10;
  padding: 40px;
}

.placeholder-content span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-color);
}

.load-preview-btn {
  background-color: var(--ink-color);
  color: var(--canvas-color);
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(38, 34, 32, 0.15);
  transition: var(--transition-fast);
}

.load-preview-btn:hover {
  background-color: var(--signal-color);
  transform: translateY(-2px);
}

/* Placeholder Brand Art vectors */
.placeholder-graphic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  z-index: 1;
}

.luxury-graphic {
  background: radial-gradient(circle at 30% 30%, #C8703A 0%, transparent 60%),
              linear-gradient(135deg, rgba(38,34,32,0.1) 0%, transparent 100%);
  background-size: 20px 20px, 100% 100%;
}

.downpour-graphic {
  background-image: radial-gradient(var(--muted-ink) 1px, transparent 1px);
  background-size: 15px 15px;
}

.hvac-graphic {
  background: linear-gradient(45deg, rgba(200, 112, 58, 0.2) 0%, transparent 50%),
              linear-gradient(225deg, rgba(38, 34, 32, 0.1) 0%, transparent 50%);
}

.trammel-graphic {
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(38, 34, 32, 0.05) 10px, rgba(38, 34, 32, 0.05) 20px);
}

.platebodied-graphic {
  background: radial-gradient(circle, #262220 10%, transparent 11%),
              radial-gradient(circle, #262220 10%, transparent 11%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  filter: invert(1);
}

.bathaus-graphic {
  background: linear-gradient(185deg, #262220 0%, transparent 80%);
}

/* Live Iframe inside mockups */
.iframe-wrapper-scaled {
  position: relative;
  width: 100%;
  /* Height is set dynamically by JS to match 900 * scale */
  overflow: hidden;
  background-color: #FAF8F6;
}

.live-iframe {
  border: none;
  background-color: #ffffff;
  transition: opacity 0.3s ease;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.live-iframe::-webkit-scrollbar {
  display: none !important;
}

/* When in desktop mode, scale the iframe to fill the wrapper */
.desktop-preview-container .live-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1600px;
  height: 1000px;
  transform: scale(var(--iframe-scale, 0.5));
  transform-origin: top left;
}

/* Mobile live iframe: JS controls width/height/transform */
.phone-content .live-iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow: hidden;
}

.phone-content .live-iframe::-webkit-scrollbar {
  display: none !important;
}

/* Inline Rationale Block Styles */
.rationale-block-inline {
  margin-top: 36px;
  border-top: 2px solid var(--signal-color);
  padding-top: 24px;
}

.rationale-block-inline .narrative-label {
  margin-bottom: 14px;
}

.rationale-block-inline .narrative-text {
  margin-top: 12px;
}

.text-signal {
  color: var(--signal-color) !important;
}

.project-actions {
  margin-top: 32px;
}

.visit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--canvas-color);
  background-color: var(--ink-color);
  padding: 14px 28px;
  border-radius: 4px;
  border: 1px solid var(--ink-color);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(38, 34, 32, 0.08);
}

.visit-link .arrow {
  font-size: 0.95rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.visit-link:hover {
  background-color: var(--signal-color);
  border-color: var(--signal-color);
  color: var(--canvas-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 112, 58, 0.2);
}

.visit-link:hover .arrow {
  transform: translate(3px, -3px);
}

/* About Section - Dynamic Editorial Columns */
.about-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 140px 60px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.25fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.about-intro {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-title {
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* ============================================
   Hero Metrics — Pure Typographic Editorial
   Open grid, no borders, fine top rule
   ============================================ */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 80px;
  padding-top: 0;
}

.metric-card {
  position: relative;
  padding: 28px 40px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 1px solid var(--hairline);
  /* Entrance animation base state */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-card:last-child {
  border-right: none;
  padding-right: 0;
}

.metric-card:first-child {
  padding-left: 0;
}

/* Fine hairline rule above each card */
.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--hairline);
}

/* Signal amber index dot — centered precisely on the hairline rule and vertical borders */
.metric-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--signal-color);
  transform: translate(-50%, -50%);
}

.metric-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: var(--ink-color);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-top: 20px;
  margin-bottom: 12px;
}

.metric-label {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--muted-ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

/* ============================================
   About Metrics — Minimal stacked row list
   ============================================ */
.about-metrics {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.about-metric-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.about-metric-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--signal-color);
  line-height: 1;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.about-metric-label {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--muted-ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: right;
}

.about-story {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-lead {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.45;
  color: var(--signal-color);
}

.about-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-color);
}

/* Contact Footer Section */
.contact-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 60px 60px;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.contact-preface {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--signal-color);
}

.contact-title {
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 800px;
}

.contact-links {
  display: flex;
  gap: 60px;
  margin-top: 20px;
}

.contact-link {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--ink-color);
  border-bottom: 2px solid var(--hairline);
  padding-bottom: 6px;
  transition: var(--transition-smooth);
}

.contact-link:hover {
  color: var(--signal-color);
  border-color: var(--signal-color);
  transform: translateY(-4px);
}

.footer-meta {
  margin-top: 80px;
  width: 100%;
  border-top: 1px solid var(--hairline);
  padding-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted-ink);
}

.nav-back-top a {
  font-weight: 600;
}

.nav-back-top a:hover {
  color: var(--signal-color);
}

/* Animations & Scroll States */
.reveal-init {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-init.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Entrance Sequence */
.hero-headline {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-thesis {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.hero-sidebar {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s,
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

body.js-loaded .hero-headline,
body.js-loaded .hero-thesis,
body.js-loaded .hero-sidebar {
  opacity: 1;
  transform: translate(0);
}

/* Staggered metric card entrance — fires after headline sequence */
body.js-loaded .metric-card:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}
body.js-loaded .metric-card:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.58s;
}
body.js-loaded .metric-card:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.71s;
}
body.js-loaded .metric-card:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.84s;
}

/* Responsive Scaling System */
@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
  }
  
  .project-grid.layout-standard,
  .project-grid.layout-reverse {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .rationale-block-inline {
    margin-top: 28px;
  }
  
  .about-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .hero-sidebar {
    border-left: none;
    border-top: 1px solid var(--hairline);
    padding-left: 0;
    padding-top: 40px;
  }
  
  .signature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .desktop-preview-container {
    display: none !important;
  }
  
  .project-details-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .mobile-preview-wrapper {
    margin-top: 24px;
  }

  .phone-frame {
    width: 310px !important;
    height: 620px !important;
    margin: 0 auto;
    border-width: 10px !important;
    border-radius: 36px !important;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr) !important;
    margin-top: 40px !important;
  }

  .metric-card {
    padding: 20px 16px 20px 0 !important;
  }

  .metric-card:nth-child(even) {
    border-right: none !important;
    padding-left: 16px !important;
    padding-right: 0 !important;
  }

  .metric-num {
    font-size: 2.8rem !important;
    margin-top: 14px !important;
    margin-bottom: 8px !important;
  }

  .about-metrics {
    margin-top: 32px !important;
  }

  .about-metric-label {
    text-align: left !important;
  }
  
  .nav-wrapper {
    border-bottom: 1px solid var(--hairline);
  }

  .nav-container {
    padding: 0 24px;
    height: 80px;
  }
  
  .nav-links {
    gap: 24px;
  }
  
  .hero-section {
    padding: 40px 24px 80px;
  }
  
  .hero-headline {
    font-size: 3rem;
  }
  
  .signature-section {
    padding: 80px 24px;
  }
  
  .signature-manifesto {
    font-size: 1.85rem;
  }
  
  .work-section {
    padding: 60px 24px;
  }
  
  .project-card {
    padding: 60px 0;
  }
  
  .project-title {
    font-size: 2.25rem;
  }
  
  .about-section {
    padding: 80px 24px;
  }
  
  .about-title {
    font-size: 2.5rem;
  }
  
  .metrics-grid {
    gap: 20px;
  }
  
  .metric-num {
    font-size: 2.25rem;
  }
  
  .contact-section {
    padding: 80px 24px 40px;
  }
  
  .contact-title {
    font-size: 2.75rem;
  }
  
  .contact-links {
    flex-direction: column;
    gap: 20px;
  }
  
  .contact-link {
    font-size: 1.5rem;
  }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  * {
    animation: none !important;
    transition: none !important;
  }
}
