* { box-sizing: border-box; }

html, body {
  margin: 0;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: #161826;
  color: #e9e9ed;
  font-family: Inter, system-ui, sans-serif;
}

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

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

.container {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding-left: 56px;
  padding-right: 56px;
}

/* Animations */
@keyframes cRoundelFade { 0% { opacity: 0 } 32% { opacity: .5 } 40% { opacity: .5 } 100% { opacity: 0; visibility: hidden } }
@keyframes cHeroWipe2 { from { clip-path: inset(50% 0 50% 0); transform: scale(1.05) } to { clip-path: inset(0 0 0 0); transform: scale(1) } }
@keyframes cRingOuter {
  0% { transform: translate(-115.91px,-115.91px) rotate(-25.9deg); }
  62.5% { transform: translate(-115.91px,-115.91px) rotate(-385.9deg); }
  100% { transform: translate(-115.91px,-115.91px) rotate(-385.9deg); }
}
@keyframes cRingInner {
  0% { transform: translate(-67.17px,-60.96px) rotate(31.8deg); }
  62.5% { transform: translate(-67.17px,-60.96px) rotate(391.8deg); }
  100% { transform: translate(-67.17px,-60.96px) rotate(391.8deg); }
}
@keyframes cRingGlow { 0% { opacity: 0.1; } 31.25% { opacity: 0.26; } 62.5% { opacity: 0.1; } 100% { opacity: 0.06; } }
@keyframes cRise { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: translateY(0) } }

.logo-tab, .logo-word { transition: transform 1.5s cubic-bezier(.16,1,.3,1); }
.logo:hover .logo-tab, .logo.is-playing .logo-tab { transform: scale(3); }
.logo:hover .logo-word, .logo.is-playing .logo-word { transform: translateX(59.1px); }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.2s cubic-bezier(.16,1,.3,1), transform 1.2s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

.eyebrow {
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #75798c;
}
.muted { color: #9397ab; }
.ghost-btn {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid #9184d9;
  border-radius: 8px;
  background: none;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #9184d9;
  cursor: pointer;
}
.accent-line {
  width: 56px;
  height: 2px;
}
.accent-line--teal { background: #2DD4BF; }
.accent-line--purple { background: #C084FC; }
.accent-line--blue { background: #60A5FA; }
.accent-line--pink { background: #F472B6; }

#topBarD {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(18,19,31,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #292b31;
  transition: opacity .3s ease;
}
#topBarD .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
#topBarD nav,
#topBarD .primary-nav {
  display: flex;
  gap: 40px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
#topBarD .navlink { color: #cfd3e5; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
  color: #FF6B4A;
  cursor: pointer;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  appearance: none;
}
.menu-toggle-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 2px;
  background: #FF6B4A;
  border-radius: 2px;
  box-shadow: none;
  transition: background .2s ease;
}
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: #FF6B4A;
  border-radius: 2px;
  transition: transform .25s ease, top .25s ease, bottom .25s ease;
}
.menu-toggle-icon::before { top: -8px; }
.menu-toggle-icon::after { bottom: -8px; top: auto; }

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
  background: transparent;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
  top: 0;
  bottom: auto;
  transform: rotate(-45deg);
}
.top-spacer { height: 86px; }

#home {
  position: relative;
  height: calc(100vh - 86px);
  height: calc(100dvh - 86px);
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(180deg,#2c2f40,#1c1e2c);
}
#hero-copy {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 56px;
  max-width: 780px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: cRise .9s ease 3.1s both;
}
#hero-title {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -.025em;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
  text-wrap: pretty;
}

.section-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 48px 96px;
  align-items: start;
  padding-top: 72px;
  padding-bottom: 64px;
  border-bottom: 1px solid #292b31;
}
.section-intro-grid--end {
  align-items: end;
  border-bottom: 0;
  padding-top: 88px;
  padding-bottom: 56px;
}
.section-intro-grid p,
#selected-work-blurb,
#projects-intro,
#process-intro {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #9397ab;
  min-width: 0;
}
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.section-heading h2,
#projects-title,
#process-title,
#contact-title,
#about-name {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 32px;
  padding-top: 64px;
  padding-bottom: 40px;
  width: 100%;
}
.project-grid--list {
  gap: 64px 32px;
  padding-top: 32px;
  padding-bottom: 96px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  width: 100%;
}
.project-card--home-1 { grid-column: span 7; }
.project-card--home-2 { grid-column: span 5; margin-top: 120px; }
.project-card--home-3 { grid-column: 4 / span 8; margin-top: 64px; }
.project-card--list-1 { grid-column: span 7; }
.project-card--list-2 { grid-column: span 5; margin-top: 96px; }
.project-card--list-3 { grid-column: span 5; }
.project-card--list-4 { grid-column: span 7; margin-top: 64px; }

.project-media {
  width: 100%;
  overflow: hidden;
  background: #1c1e2c;
  aspect-ratio: 4 / 3;
}
.project-media--featured { aspect-ratio: 7 / 5; }
.project-media--mid { aspect-ratio: 5 / 4; }
.project-media--tall { aspect-ratio: 5 / 4; }
.project-media img,
.about-media img,
.gallery-item img,
.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  min-width: 0;
}
.project-card-meta {
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #75798c;
}
.project-card-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.project-card-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #9397ab;
  max-width: 44ch;
}

.section-cta { padding: 56px 56px 96px; }
#instagram-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 96px;
}
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.instagram-grid > div {
  aspect-ratio: 1;
  background: linear-gradient(180deg,#2c2f40,#1c1e2c);
}

.detail-hero {
  position: relative;
  height: min(78vh, 860px);
  min-height: 420px;
  overflow: hidden;
  background: linear-gradient(180deg,#2c2f40,#1c1e2c);
}
.detail-hero-copy {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 56px;
  max-width: 900px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.detail-hero-copy h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -.03em;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
  overflow-wrap: anywhere;
}
.detail-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
  gap: 48px 96px;
  align-items: start;
  padding-top: 88px;
  padding-bottom: 72px;
  border-bottom: 1px solid #292b31;
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.gallery-item {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-width: 0;
}
.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}
.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  border-top: 1px solid #292b31;
  padding-top: 44px;
  padding-bottom: 56px;
}
.detail-quote {
  border-top: 1px solid #292b31;
  padding-top: 56px;
  padding-bottom: 96px;
  max-width: 840px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.detail-quote p {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.5;
}
.detail-nav-row {
  border-top: 1px solid #292b31;
  padding-top: 36px;
  padding-bottom: 36px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: #9397ab;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
}
.about-media {
  overflow: hidden;
  min-height: 520px;
  aspect-ratio: 4 / 5;
}
.about-copy {
  padding: 88px 56px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
  min-width: 0;
}
#about-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
#about-paragraphs p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  max-width: 46ch;
}
#about-paragraphs p:first-child {
  font-size: 18px;
  line-height: 1.75;
  color: #e9e9ed;
}
.master-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 720px);
  gap: 48px 96px;
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid #292b31;
}
.master-builder h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.3;
}
.master-builder p {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #b2b6ca;
}

.process-list {
  display: flex;
  flex-direction: column;
  padding-top: 16px;
  padding-bottom: 96px;
}
.process-step {
  display: grid;
  grid-template-columns: 72px minmax(0, 360px) minmax(0, 1fr);
  gap: 24px 40px;
  align-items: baseline;
  padding: 36px 0;
  border-top: 1px solid #292b31;
}
.process-step:last-child { border-bottom: 1px solid #292b31; }
.process-step > div:first-child {
  font-size: 13px;
  letter-spacing: .1em;
  color: #595d6c;
}
.process-step > div:nth-child(2) {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.015em;
}
.process-step > div:nth-child(3) {
  font-size: 16px;
  line-height: 1.8;
  color: #9397ab;
  min-width: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
  gap: 48px 96px;
  align-items: start;
  padding-top: 88px;
  padding-bottom: 96px;
}
.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.phone-link { color: inherit; }
.phone-link--lg {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -.025em;
  color: #9184d9;
  overflow-wrap: anywhere;
}
#contact-intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #9397ab;
  max-width: 36ch;
}
.contact-address {
  margin-top: 20px;
  padding-top: 28px;
  border-top: 1px solid #292b31;
  font-size: 14px;
  line-height: 1.9;
  color: #75798c;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
  width: 100%;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #75798c;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #3f424d;
  border-radius: 8px;
  background: #1b1d2b;
  color: #e9e9ed;
  padding: 0 14px;
  font: 15px Inter, sans-serif;
}
.contact-form input { height: 50px; }
.contact-form textarea {
  height: 130px;
  padding: 10px 14px;
  resize: vertical;
}
.contact-form .hint {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: #75798c;
}
.contact-form .optional { color: #595d6c; }
.contact-form .ghost-btn { align-self: flex-start; margin-top: 6px; }
#form-note {
  margin: 0;
  font-size: 13px;
  color: #9397ab;
  letter-spacing: 0;
  text-transform: none;
}

#site-footer {
  border-top: 1px solid #292b31;
  background: #12131f;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px 64px;
  align-items: end;
  padding-top: 72px;
  padding-bottom: 56px;
}
.footer-phone { display: flex; flex-direction: column; gap: 16px; }
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: #75798c;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #cfd3e5;
}

#floatingCta {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1b1d2bee;
  border: 1px solid #3f424d;
  border-radius: 999px;
  padding: 12px 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  transition: opacity .4s ease, transform .4s ease;
  opacity: 0;
  pointer-events: none;
}
#floatingCta > span:first-child {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #b2b6ca;
}
#floatingCta .phone-link {
  font-size: 16px;
  font-weight: 500;
  color: #e9e9ed;
}
#floatingCta.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

input:focus, textarea:focus, button:focus-visible {
  outline: 1px solid #9184d9;
  outline-offset: 2px;
}

/* Tablet */
@media (max-width: 1100px) {
  .container { padding-left: 28px; padding-right: 28px; }
  .section-cta { padding-left: 28px; padding-right: 28px; }
  #hero-copy, .detail-hero-copy { left: 28px; right: 28px; }
  .about-copy { padding: 48px 28px; }
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .project-card--home-2,
  .project-card--home-3,
  .project-card--list-2,
  .project-card--list-4 { margin-top: 0; }
}

/* Mobile */
@media (max-width: 960px) {
  .container,
  .section-cta {
    padding-left: 16px;
    padding-right: 16px;
  }

  #topBarD .container { padding-top: 12px; padding-bottom: 12px; }
  #topBarD .menu-toggle {
    display: inline-flex !important;
  }
  #topBarD .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 20px;
    background: rgba(18,19,31,.96);
    border-bottom: 1px solid #292b31;
    backdrop-filter: blur(10px);
  }
  #topBarD.menu-open .primary-nav {
    display: flex;
  }
  #topBarD .primary-nav .navlink {
    padding: 16px 0;
    border-bottom: 1px solid #292b31;
    font-size: 13px;
    color: #e9e9ed;
  }
  #topBarD .primary-nav .navlink:last-child {
    border-bottom: 0;
  }
  #topBarD .logo-tab { height: 36px !important; }
  #topBarD .logo-word { height: 34px !important; }
  .logo:hover .logo-tab, .logo.is-playing .logo-tab { transform: scale(1.1); }
  .logo:hover .logo-word, .logo.is-playing .logo-word { transform: translateX(6px); }
  .top-spacer { height: 64px; }

  #home {
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    min-height: 460px;
  }
  #hero-copy {
    left: 16px;
    right: 16px;
    bottom: 24px;
    max-width: none;
    gap: 14px;
  }
  #hero-title { font-size: clamp(24px, 7vw, 32px); }

  .section-intro-grid,
  .section-intro-grid--end,
  .detail-intro,
  .about-grid,
  .master-builder,
  .contact-grid,
  .footer-grid,
  .detail-meta,
  .detail-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .section-intro-grid,
  .section-intro-grid--end {
    padding-top: 40px;
    padding-bottom: 32px;
  }

  .project-grid,
  .project-grid--list,
  .project-grid--home {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .project-card,
  .project-card--home-1,
  .project-card--home-2,
  .project-card--home-3,
  .project-card--list-1,
  .project-card--list-2,
  .project-card--list-3,
  .project-card--list-4 {
    grid-column: auto;
    margin-top: 0;
    width: 100%;
  }

  .project-media,
  .project-media--featured,
  .project-media--mid,
  .project-media--tall {
    aspect-ratio: 4 / 3;
    width: 100%;
  }

  .project-card-desc,
  #about-paragraphs p,
  #contact-intro {
    max-width: none;
  }

  .section-cta { padding: 24px 16px 48px; }
  #instagram-block { padding-bottom: 64px; }
  .instagram-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .detail-hero {
    height: 55vh;
    min-height: 280px;
    max-height: 420px;
  }
  .detail-hero-copy {
    left: 16px;
    right: 16px;
    bottom: 20px;
  }
  .gallery-item,
  .gallery-item--wide {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }
  .detail-nav-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-media {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
  .about-copy { padding: 32px 16px; }

  .process-step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px 14px;
    padding: 24px 0;
  }
  .process-step > div:nth-child(3) {
    grid-column: 1 / -1;
  }

  .contact-grid { padding-top: 56px; padding-bottom: 64px; }
  .footer-grid { padding-top: 48px; padding-bottom: 40px; }

  #floatingCta,
  #floatingCta.is-visible {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    transform: none;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .detail-meta { grid-template-columns: minmax(0, 1fr); }
}
