*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

html, body {
  height: auto;
  overflow-y: auto;
  font-family: "Inter", sans-serif;
  background: rgb(255, 255, 255);
  color: #1a1a1a;
}

/* -- Background lines -- */
.bg-lines {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 7rem;
  pointer-events: none;
  z-index: 3;
}

.bg-line {
  position: relative;
  width: 1px;
  height: 100%;
  background: rgba(0, 0, 0, 0.12);
}

.bg-shape {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.bg-circle {
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(0, 0, 0, 0.28);
  border-radius: 50% !important;
  background: transparent;
  transform: translateX(-50%);
}

.bg-tri {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  transform: translateX(-50%);
}

.bg-sq {
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  background: transparent;
  transform: translateX(-50%);
}

.bg-x {
  width: 20px;
  height: 20px;
  transform: translateX(-50%);
}

.bg-x::before,
.bg-x::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1.5px;
  background: rgba(0, 0, 0, 0.25);
  top: 50%;
  left: 0;
}

.bg-x::before { transform: translateY(-50%) rotate(45deg); }
.bg-x::after  { transform: translateY(-50%) rotate(-45deg); }

.bg-halfcircle-left {
  width: 90px;
  height: 180px;
  border: none;
  border-radius: 90px 0 0 90px !important;
  background: var(--hc-color, #00ADB5);
  transform: translateX(-100%);
}

.bg-halfcircle-right {
  width: 100px;
  height: 200px;
  border-radius: 0 100px 100px 0 !important;
  background: repeating-linear-gradient(
    -45deg,
    var(--hc-color, #00ADB5) 0px,
    var(--hc-color, #00ADB5) 3px,
    transparent 3px,
    transparent 14px
  );
  transform: translateX(0);
}

/* Independent fixed half circles */
.hc-fixed {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  --hc-color: #00ADB5;
}

.hc-left {
  width: 90px;
  height: 180px;
  border-radius: 90px 0 0 90px !important;
  background: var(--hc-color);
  top: 48vh;
  transform: translateX(-100%) translateY(-50%);
}

.hc-right {
  width: 100px;
  height: 200px;
  border-radius: 0 100px 100px 0 !important;
  background: repeating-linear-gradient(
    -45deg,
    var(--hc-color) 0px,
    var(--hc-color) 3px,
    transparent 3px,
    transparent 14px
  );
  top: 28vh;
  transform: translateY(-50%);
}

/* -- Accent shapes -- */
.bg-accents {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.accent-circle,
.accent-sq {
  position: absolute;
}

.accent-circle {
  width: 28px;
  height: 28px;
  border: 3px solid var(--ac-color, #00ADB5);
  border-radius: 50% !important;
  background: transparent;
}

.accent-sq {
  width: 26px;
  height: 26px;
  border: 3px solid var(--ac-color, #00ADB5);
  background: transparent;
}

/* -- Hero -- */
.hero {
  position: relative;
  z-index: 3;
  height: 100vh;
  overflow: hidden;
}

/* -- Black panel -- */
.black-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #0d0d0d;
  transform: translateY(100%);
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 10;
  will-change: transform;
  display: flex;
  align-items: flex-end;
  padding: 8vh 7rem;
}

.panel-content {
  pointer-events: none;
}

.panel-label {
  display: block;
  font-size: clamp(5rem, 16vw, 14rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: #fff;
  opacity: 0.08;
  line-height: 1;
}

/* Spotlight overlay */
.hero-spotlight {
  position: absolute;
  inset: 0;
  background: #000;
  clip-path: circle(0px at -999px -999px);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 2;
}

.hero-spotlight .hero-line {
  color: #fff;
  animation: none;
  opacity: 1;
  transform: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.hero-headline {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-line {
  position: absolute;
  font-size: clamp(4rem, 12vw, 13rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: #1a1a1a;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(40px);
  animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  cursor: none;
}

/* DESIGN THAT — top-left area */
.hero-line:nth-child(1) {
  top: 8vh;
  left: 7rem;
  animation-delay: 0.1s;
}

/* SPEAKS — pushed far right, middle-ish vertically */
.hero-line:nth-child(2) {
  top: 38vh;
  right: 8rem;
  animation-delay: 0.25s;
}

/* LOUDER. — bottom-left, slight inward offset */
.hero-line:nth-child(3) {
  bottom: 8vh;
  left: 20rem;
  animation-delay: 0.4s;
}

.hero-line--indent {}

/* Aside text — left of SPEAKS */
.hero-aside {
  position: absolute;
  top: 46vh;
  left: 30rem;
  max-width: 450px;
  opacity: 0;
  animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.hero-aside-text {
  font-size: 1em;
  font-weight: 500;
  color: #555;
  line-height: 1.7;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.hero-aside-cta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.hero-aside-cta:hover {
  color: #888;
  border-color: #888;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -- Navbar -- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  z-index: 100;
  /* allow dropdown to anchor below */
  overflow: visible;
}

/* -- Initials: staggered when collapsed, right-aligned when expanded -- */
.nav-initials {
  display: inline-grid;
  row-gap: 0.1em;
  min-width: 4.6em; /* wide enough so D is clearly offset to the right of T */
}

.initial {
  font-size: 40px;
  font-weight: 400;
  line-height: 36px;
  color: #1a1a1a;
  white-space: nowrap;
  cursor: default;
  user-select: none;
  display: flex;
  align-items: baseline;
}

.initial--t {
  /* first row — sets grid width (widest word) */
}

.initial--d {
  padding-left: 1.2em; /* D shifted right of T */
}

.initial--m {
  padding-right: 1em; /* adjust to move M left/right */
}

/* Both expand when .nav-expanded is on navbar */
.initial-rest,
.menu-rest {
  display: inline-flex;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: baseline;
}

/* Each letter sits hidden by default */
.initial-rest .letter,
.menu-rest .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%);
  transition: none;
}

/* When expanded, play the rise-up animation per letter */
.nav-expanded .initial-rest .letter,
.nav-expanded .menu-rest .letter {
  animation: letterRise 0.4s ease forwards;
}

/* When collapsing, play the sink-down animation per letter (reverse stagger) */
/* animation-fill-mode: both ensures letters stay visible during their delay */
.nav-collapsing .initial-rest .letter,
.nav-collapsing .menu-rest .letter {
  animation: letterSink 0.35s ease both;
}

@keyframes letterRise {
  from {
    opacity: 0;
    transform: translateY(60%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes letterSink {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(60%);
  }
}

/* -- Menu button -- */
.nav-menu-btn {
  font-size: 40px;
  font-weight: 400;
  line-height: 36px;
  color: #1a1a1a;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
}

.menu-m {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
}

/* -- Navbar inverted (over dark section) -- */
.nav-inverted .initial,
.nav-inverted .nav-menu-btn {
  color: #ffffff;
}

/* -- Nav dropdown -- */
.nav-dropdown {
  position: fixed;
  top: 6rem;
  right: 3rem;
  width: auto;
  pointer-events: none;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}

.nav-dropdown.drop-open {
  pointer-events: all;
}

.nav-drop-square {
  display: block;
  padding: 0.05rem 0;
  cursor: pointer;
}

.nav-drop-word {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  user-select: none;
  display: inline-flex;
  overflow: hidden;
  transition: color 0.2s;
}

.nav-drop-square:hover .nav-drop-word {
  color: #00ADB5;
}

.drop-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%);
  transition: none;
}

.nav-dropdown.drop-open .drop-letter {
  animation: letterRise 0.4s ease forwards;
}

.nav-dropdown.drop-closing .drop-letter {
  animation: letterSink 0.3s ease both;
}

/* ===================== Dark Section ===================== */
.dark-section {
  position: relative;
  min-height: 100vh;
  background: #111111;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
}

.dark-section.revealed {
  transform: none;
  opacity: 1;
}

/* -- Inverted background lines -- */
.dark-bg-lines {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 7rem;
  pointer-events: none;
  z-index: 0;
}

.dark-bg-line {
  position: relative;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
}

.dark-shape {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.dark-circle {
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50% !important;
  background: transparent;
  transform: translateX(-50%);
}

.dark-tri {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  transform: translateX(-50%);
}

.dark-sq {
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  transform: translateX(-50%);
}

.dark-x {
  width: 20px;
  height: 20px;
  transform: translateX(-50%);
}

.dark-x::before,
.dark-x::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.22);
  top: 50%;
  left: 0;
}

.dark-x::before { transform: translateY(-50%) rotate(45deg); }
.dark-x::after  { transform: translateY(-50%) rotate(-45deg); }

/* -- Dark section content -- */
.dark-content {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100vh;
}

.dark-headline {
  position: relative;
  width: 100%;
  height: 100%;
}

.dark-line {
  position: absolute;
  font-size: clamp(4rem, 12vw, 13rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: #ffffff;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.dark-section.revealed .dark-line {
  opacity: 1;
  transform: translateY(0);
}

.dark-line-1 {
  top: 5vh;
  left: 7rem;
  transition-delay: 0.1s;
}

.dark-line-2 {
  top: 18vh;
  left: 14rem;
  transition-delay: 0.2s;
}

.dark-line-3 {
  top: 31vh;
  left: 7rem;
  transition-delay: 0.3s;
}

.dark-line-4 {
  top: 58vh;
  left: 7rem;
  transition-delay: 0.5s;
}

.dark-line-5 {
  top: 71vh;
  left: 7rem;
  transition-delay: 0.6s;
}

.dark-line-6 {
  top: 84vh;
  left: 14rem;
  transition-delay: 0.7s;
}

/* -- Circles row -- */
.dark-circles-row {
  position: absolute;
  top: 45vh;
  left: 7rem;
  right: 7rem;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease 0.4s;
}

.dark-section.revealed .dark-circles-row {
  opacity: 1;
}

.dcircle {
  width: clamp(50px, 7vw, 100px);
  height: clamp(50px, 7vw, 100px);
  border-radius: 50%;
  background: #2a2a2a;
  flex-shrink: 0;
}

.dcircle--accent {
  background: #00ADB5;
}

/* -- Service cards -- */
.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: transparent;
  margin: 0 7rem;
  padding-top: 10vh;
  padding-bottom: 10vh;
}

.service-card {
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: background 0.3s;
  border: 1px solid rgba(255,255,255,0.07);
  opacity: 0;
  transform: translateY(50px);
  transition: background 0.3s, opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}

.dark-section.revealed .service-card:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.dark-section.revealed .service-card:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.dark-section.revealed .service-card:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.dark-section.revealed .service-card:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }

.service-card:hover {
  background: rgba(26, 26, 26, 0.65);
}

.service-num {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: #00ADB5;
}

.service-title {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.service-body {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  max-width: 42ch;
}
.dark-footnote {
  position: absolute;
  bottom: 4vh;
  left: 7rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  max-width: 320px;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.8s ease 0.8s;
}

.dark-section.revealed .dark-footnote {
  opacity: 1;
}

/* ===================== Work Section ===================== */
.work-section {
  position: relative;
  z-index: 3;
  background: transparent;
  height: 100vh;
  padding: 5vh 7rem 4vh;
  opacity: 0;
  transform: translateY(80px);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
  display: flex;
  flex-direction: column;
}

.work-section.revealed {
  transform: none;
  opacity: 1;
}

.work-header {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 3vh;
  padding-left: 9rem;
}

.work-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
}

.work-heading {
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #1a1a1a;
  line-height: 1;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(0,0,0,0.06);
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
}

.work-card {
  background: rgba(245, 245, 243, 0.92);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1), background 0.3s;
}

.work-card:hover {
  background: rgba(236, 236, 234, 0.85);
}

.work-section.revealed .work-card:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.work-section.revealed .work-card:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.work-section.revealed .work-card:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.work-section.revealed .work-card:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }

.work-card-img {
  width: 100%;
  aspect-ratio: 3 / 1;
  background: rgba(0,0,0,0.06);
  overflow: hidden;
  border-radius: 0;
}

.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  border-radius: 0;
}

.work-card-info {
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.work-card-num {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: #00ADB5;
}

.work-card-title {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.work-card-tags {
  font-size: 0.78rem;
  font-weight: 400;
  color: #999;
  letter-spacing: 0.02em;
}

.work-card-tags a {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.25);
  padding-bottom: 1px;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
}

.work-card-tags a:hover {
  color: #00ADB5;
  border-color: #00ADB5;
}

/* ===================== Contact Section ===================== */
.contact-section {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12vh 7rem 5vh;
  overflow: hidden;
  opacity: 0;
  transform: translateY(80px);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
}

.contact-section.revealed {
  transform: none;
  opacity: 1;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: 0.1s;
}

.contact-section.revealed .contact-label {
  opacity: 1;
  transform: translateY(0);
}

.contact-heading {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.contact-line {
  display: block;
  font-size: clamp(3.5rem, 10vw, 10rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1.05;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1);
  transition-delay: calc(0.2s + var(--i) * 0.15s);
}

.contact-section.revealed .contact-line {
  opacity: 1;
  transform: translateY(0);
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: 0.6s;
  align-self: flex-start;
}

.contact-section.revealed .contact-cta {
  opacity: 1;
  transform: translateY(0);
}

.contact-cta-text {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 3px;
  transition: border-color 0.3s;
}

.contact-cta-arrow {
  font-size: 1.2rem;
  color: #00ADB5;
  transition: transform 0.3s;
}

.contact-cta:hover .contact-cta-text {
  border-color: #00ADB5;
  color: #00ADB5;
}

.contact-cta:hover .contact-cta-arrow {
  transform: translateX(6px);
}

.contact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.7s ease 0.9s;
}

.contact-section.revealed .contact-footer {
  opacity: 1;
}

.contact-footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
}

.contact-footer-links {
  display: flex;
  gap: 2rem;
}

.contact-footer-link {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-footer-link:hover {
  color: #ffffff;
}

/* ===================== Contact h-lines ===================== */
.h-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 7rem 0;
  pointer-events: none;
  z-index: 0;
}

.h-line {
  position: relative;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Shared shape base */
.h-shape {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  animation: slide-right var(--dur, 18s) linear var(--delay, 0s) infinite;
}

@keyframes slide-right {
  from { left: -40px; }
  to   { left: calc(100% + 40px); }
}

/* Circle */
.h-circle {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50% !important;
  background: transparent;
}

/* Triangle */
.h-tri {
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 27px solid rgba(255, 255, 255, 0.25);
  background: transparent;
}

/* Square */
.h-sq {
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: transparent;
}

/* X */
.h-x {
  width: 28px;
  height: 28px;
}
.h-x::before,
.h-x::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.28);
  top: 50%;
  left: 0;
}
.h-x::before { transform: translateY(-50%) rotate(45deg); }
.h-x::after  { transform: translateY(-50%) rotate(-45deg); }

/* Half circles pointing down — flat top ON the line, curve hangs below */
.h-hc-solid {
  width: 80px;
  height: 40px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 0 0 80px 80px !important;
  transform: translateY(0);
}

.h-hc-stripe {
  width: 96px;
  height: 48px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.28) 0px,
    rgba(255,255,255,0.28) 2px,
    transparent 2px,
    transparent 10px
  );
  border-radius: 0 0 96px 96px !important;
  transform: translateY(0);
}

/* ===================== Contact modal ===================== */
.cmodal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.cmodal-backdrop.cmodal-open {
  display: flex;
}
.cmodal {
  position: relative;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 3rem 2.5rem 2.5rem;
  width: min(480px, 90vw);
  animation: cmodal-in 0.3s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes cmodal-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cmodal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}
.cmodal-close:hover { color: #ffffff; }
.cmodal-label {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0 0 2rem;
}
.cmodal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.cmodal-option {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  color: #ffffff;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.cmodal-option:hover {
  border-color: #00ADB5;
  background: rgba(0,173,181,0.06);
}
.cmodal-icon {
  font-size: 1.2rem;
  color: #00ADB5;
  margin-bottom: 0.4rem;
}
.cmodal-option-title {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1rem;
}
.cmodal-option-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  word-break: break-all;
}

/* button reset for contact CTA */
button.contact-cta {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* button reset for email copy option */
button.cmodal-option {
  text-align: left;
  font: inherit;
  color: #ffffff;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  width: 100%;
}

.cmodal-option--copied {
  border-color: #00ADB5 !important;
  background: rgba(0,173,181,0.06) !important;
}
.cmodal-option--copied .cmodal-option-sub {
  color: #00ADB5 !important;
}

/* ===================== Lightbox ===================== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

#lightbox.lb-open {
  display: flex;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
}

.lb-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 90vw;
  max-height: 90vh;
}

.lb-content.lb-zoom-mode {
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  padding: 2rem;
  cursor: grab;
}

.lb-content.lb-zoom-mode:active {
  cursor: grabbing;
}

.lb-img {
  max-width: 80vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: max-width 0.3s, max-height 0.3s;
}

.lb-zoom-mode .lb-img {
  max-width: none;
  max-height: none;
  width: 200vw;
  cursor: zoom-out;
  transition: none;
}

.lb-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lb-close:hover { background: rgba(255,255,255,0.2); }

.lb-prev,
.lb-next {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lb-prev:hover,
.lb-next:hover { background: rgba(255,255,255,0.18); }

.lb-counter {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

#project1Card {
  cursor: pointer;
}

/* ===================== Tablet (≤ 1024px) ===================== */
@media (max-width: 1024px) {
  .bg-lines        { padding: 0 3rem; }
  .dark-bg-lines   { padding: 0 3rem; }

  .hero-line:nth-child(1) { left: 3rem; }
  .hero-line:nth-child(2) { right: 3rem; top: 36vh; }
  .hero-line:nth-child(3) { left: 8rem; bottom: 8vh; }
  .hero-aside              { left: 10rem; top: 46vh; max-width: 380px; }

  .service-cards {
    margin: 0 3rem;
  }

  .work-section  { padding: 5vh 3rem 4vh; }
  .work-header   { padding-left: 4rem; }

  .contact-section { padding: 10vh 3rem 5vh; }
  .h-lines         { padding: 4rem 0; }
}

/* ===================== Mobile (≤ 768px) ===================== */
@media (max-width: 768px) {

  /* --- Decorative background --- */
  .bg-lines      { padding: 0 1rem; }
  .dark-bg-lines { padding: 0 1rem; }

  /* --- Hero --- */
  .hero {
    height: 100vh;
    height: 100svh;
  }

  .hero-content,
  .hero-headline {
    height: 100%;
  }

  .hero-headline {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 35vh 1.5rem 0;
    gap: 0.15em;
  }

  /* Reset all desktop absolute positioning */
  .hero-line {
    position: static;
    font-size: clamp(2.6rem, 12vw, 4.5rem);
    white-space: normal;
    line-height: 1.05;
    top: auto; bottom: auto; left: auto; right: auto;
  }

  .hero-aside {
    position: static;
    top: auto; left: auto;
    max-width: 100%;
    margin-top: 1.8rem;
  }

  .hero-aside-text {
    font-size: 0.88rem;
  }

  /* Disable cursor spotlight — no mouse on touch devices */
  .hero-spotlight { display: none; }

  /* --- Navbar --- */
  .navbar {
    padding: 1rem 1.5rem;
  }

  .initial,
  .nav-menu-btn {
    font-size: 28px;
    line-height: 28px;
  }

  /* Always show full nav text on touch devices */
  .initial-rest .letter,
  .menu-rest .letter {
    opacity: 1;
    transform: translateY(0);
    animation: none !important;
  }

  .nav-dropdown {
    top: 4.5rem;
    right: 1.5rem;
  }

  .nav-drop-word {
    font-size: 24px;
  }

  /* --- Dark section (Services) --- */
  .dark-section {
    min-height: auto;
  }

  .dark-content {
    height: auto;
  }

  .service-cards {
    grid-template-columns: 1fr;
    margin: 0 1.5rem;
    padding-top: 6vh;
    padding-bottom: 6vh;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .service-body {
    max-width: 100%;
  }

  /* --- Work section --- */
  .work-section {
    height: auto;
    min-height: 0;
    padding: 6vh 1.5rem 4vh;
  }

  .work-header {
    padding-left: 0;
    gap: 1rem;
    margin-bottom: 2vh;
  }

  .work-grid {
    grid-template-columns: 1fr;
    flex: none;
    overflow: visible;
    min-height: 0;
  }

  .work-card-img {
    aspect-ratio: 16 / 9;
  }

  .work-card-info {
    padding: 0.9rem 1.2rem;
  }

  /* --- Contact section --- */
  .contact-section {
    padding: 10vh 1.5rem 5vh;
  }

  .h-lines {
    padding: 3rem 0;
  }

  .contact-line {
    font-size: clamp(2.6rem, 12vw, 4.5rem);
  }

  .contact-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* --- Lightbox --- */
  .lb-content {
    max-width: 100vw;
    padding: 0 0.5rem;
    gap: 0.5rem;
  }

  .lb-img {
    max-width: 88vw;
    max-height: 72vh;
  }

  .lb-prev,
  .lb-next {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .lb-close {
    top: 1rem;
    right: 1rem;
  }

  /* --- Contact modal --- */
  .cmodal {
    padding: 2rem 1.5rem 1.5rem;
  }

  .cmodal-options {
    grid-template-columns: 1fr;
  }
}
