*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  --bg: #111111;
  --bg2: #252525;
  --gold: #b8935a;
  --gold2: #d4aa6e;
  --text: #f0ede8;
  --muted: #888078;
  --muted2: #555048;
  --border: rgba(255,255,255,0.08);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  cursor: auto;
}

body.menu-open { overflow: hidden; }

.project-arrow a {
  color: inherit;          /* Uses the same colour as surrounding text */
  text-decoration: underline;

}

.project-arrow a:hover {
  text-decoration: underline; /* Optional: show underline on hover */
}

.contact-detail-social a {
  color: inherit;          /* Uses the same colour as surrounding text */
  text-decoration: underline;

}

.contact-detail-social a:hover {
  text-decoration: underline; /* Optional: show underline on hover */
}


/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 3.5rem;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}
.nav-brand-img img {
  display: block;
  height: auto;
}
.nav-brand-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.nav-brand-sub {
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }

.nav-cta {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.6rem 1.4rem;
  transition: border-color 0.25s, background 0.25s;
  white-space: nowrap;
}
.nav-cta:hover {
  border-color: var(--gold);
  background: rgba(184,147,90,0.08);
}
.nav-cta span { margin-left: 6px; font-size: 0.8rem; }

/* NAV TOGGLE (hamburger) — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 210;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* MOBILE MENU PANEL — hidden on desktop */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.mobile-menu-links a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}
.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  opacity: 1;
  color: var(--gold);
}
.mobile-menu-cta {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.9rem 2rem;
}
.mobile-menu-cta span { margin-left: 6px; }

/* CANVAS BG */
canvas#bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* SECTIONS */
section {
  position: relative;
  z-index: 1;
}

/* HOME */
#home {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 3.5rem;
  gap: 4rem;
}

.hero-left { padding-top: 4rem; }

.hero-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 3rem;
}
.hero-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--text);
}

.hero-right {
  padding-top: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: flex-end;
  padding-bottom: 18vh;
}

.hero-body {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(240,237,232,0.7);
  margin-bottom: 2.5rem;
  max-width: 380px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.25s, color 0.25s;
}
.hero-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.hero-link-arrow {
  font-size: 1rem;
  transition: transform 0.25s;
}
.hero-link:hover .hero-link-arrow { transform: translate(3px,-3px); }

/* PILLARS BAR */
.pillars-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.pillar-item {
  padding: 2.5rem 3.5rem;
  border-right: 1px solid var(--border);
  transition: background 0.4s;
}
.pillar-item:last-child { border-right: none; }
.pillar-item:hover { background: rgba(184,147,90,0.04); }

.pillar-num {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 400;
}
.pillar-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}
.pillar-desc {
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* PROJECTS */
#projects {
  min-height: 100vh;
  padding: 8rem 3.5rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}
.section-kicker {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; }
.section-count {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
  white-space: nowrap;
  margin-bottom: 0.25rem;
}

.projects-list { display: flex; flex-direction: column; }

.project-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  align-items: center;
  gap: 3rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
  cursor: default;
}
.project-row:hover { padding-left: 1rem; }
.project-row:hover .project-name { color: var(--gold); }
.project-row:hover .project-arrow { opacity: 1; transform: translate(0,0); }

.project-index {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--muted2);
  font-weight: 400;
}
.project-index-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.project-logo {
  width: auto;
  height: 100px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg2);
}
.project-name {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.01em;
  transition: color 0.3s;
}
.project-tag {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.project-arrow {
  font-size: 1rem;
  color: var(--gold);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: all 0.3s;
}

.project-desc {
  grid-column: 2 / 3;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.8;
  max-width: 500px;
  display: none;
}
.project-row:hover .project-desc { display: block; }
/* Rearrange on hover — simpler approach: show inline */
.project-row {
  grid-template-rows: auto auto;
  align-items: start;
}
.project-info { display: contents; }

.project-placeholder {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 3rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0.3;
}
.project-placeholder-line {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

/* CONTACT */
#contact {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: start;
  gap: 6rem;
  padding: 8rem 3.5rem;
}

.contact-left {}

.contact-tagline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}
.contact-tagline em { font-style: italic; }

.process-list { margin-top: 3rem; }
.process-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.process-num {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--gold);
  min-width: 28px;
  padding-top: 2px;
}
.process-body {}
.process-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.process-text {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.03em;
}

.contact-details {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-detail-label {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-top: 1rem;
}
.contact-detail-value {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
}

/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 0; }

.field {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0 0.5rem;
  transition: border-color 0.2s;
}
.field:focus-within { border-color: rgba(184,147,90,0.5); }

.field label {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text);
  padding: 0.25rem 0 0.5rem;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted2); }
.field select { cursor: pointer; }
.field select option { background: var(--bg2); color: var(--text); }
.field textarea { height: 80px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.field-row .field { grid-column: auto; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.form-note {
  font-size: 0.65rem;
  color: var(--muted2);
  font-weight: 300;
  letter-spacing: 0.05em;
}
.form-note.success { color: var(--gold); }

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  white-space: nowrap;
}
.submit-btn:hover {
  border-color: var(--gold);
  background: rgba(184,147,90,0.08);
  color: var(--gold);
}

/* FOOTER */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 3.5rem;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted2);
  letter-spacing: 0.01em;
}
.footer-copy {
  font-size: 0.6rem;
  font-weight: 300;
  color: var(--muted2);
  letter-spacing: 0.1em;
}
.footer-tagline {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted2);
  font-weight: 300;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(.16,1,.3,1), transform 0.9s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.fade-in { animation: fadeIn 1s cubic-bezier(.16,1,.3,1) both; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.3s; }
.d3 { animation-delay: 0.5s; }
.d4 { animation-delay: 0.65s; }

/* ============================= */
/* TABLET / SMALL LAPTOP: <=1024px */
/* ============================= */
@media (max-width: 1024px) {
  nav { padding: 1.75rem 2.5rem; }
  #home { padding: 0 2.5rem; gap: 2.5rem; }
  .hero-headline { font-size: clamp(3rem, 6.5vw, 5.5rem); }
  #projects, #contact { padding: 6rem 2.5rem; }
}

/* ============================= */
/* TABLET / MOBILE: <=900px       */
/* ============================= */
@media (max-width: 900px) {

  /* --- NAV: switch to hamburger + fullscreen menu --- */
  nav { padding: 1.25rem 1.5rem; }
  .nav-brand-img img { width: 130px; }
  .nav-links,
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }

  /* --- HOME --- */
  #home {
    grid-template-columns: 1fr;
    padding: 7.5rem 1.5rem 3rem;
    gap: 2.5rem;
    min-height: auto;
  }
  .hero-left { padding-top: 0; }
  .hero-headline {
    font-size: clamp(2.6rem, 11vw, 4rem);
    margin-bottom: 2rem;
  }
  .hero-right {
    padding-top: 0;
    padding-bottom: 0;
    align-self: auto;
  }
  .hero-body { max-width: none; font-size: 0.9rem; }

  /* --- PILLARS --- */
  .pillars-bar { grid-template-columns: 1fr; }
  .pillar-item {
    padding: 2rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .pillar-item:last-child { border-bottom: none; }

  /* --- PROJECTS --- */
  #projects { padding: 5rem 1.5rem; }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 3rem;
  }
  .section-count { margin-bottom: 0; }

  .project-row {
    grid-template-columns: 44px 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 0.5rem 1rem;
    padding: 1.75rem 0;
  }
  .project-row:hover { padding-left: 0; }
  .project-name { font-size: 1.4rem; }
  .project-index-col { flex-direction: row; align-items: center; gap: 0.6rem; }
  .project-logo { width: 100px; height: auto; }
  .project-tag {
    grid-column: 2 / 3;
    grid-row: 2;
  }
  /* Descriptions and link arrows must always be visible on touch devices — there is no hover state */
  .project-desc {
    display: block;
    grid-column: 2 / 3;
    grid-row: 3;
    max-width: none;
  }
  .project-arrow {
    opacity: 1;
    transform: none;
    grid-row: 1;
  }

  /* --- CONTACT --- */
  #contact {
    grid-template-columns: 1fr;
    padding: 5rem 1.5rem;
    gap: 3.5rem;
  }
  .contact-tagline { font-size: clamp(2.2rem, 8vw, 3rem); }
  .process-list { margin-top: 2rem; }

  .field-row { grid-template-columns: 1fr; gap: 0; }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
  .submit-btn { justify-content: center; }

  /* --- FOOTER --- */
  footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}

/* ============================= */
/* SMALL PHONES: <=480px          */
/* ============================= */
@media (max-width: 480px) {
  nav { padding: 1rem 1.25rem; }
  .nav-brand-img img { width: 110px; }

  #home { padding: 6.5rem 1.25rem 2.5rem; }
  .hero-headline { font-size: clamp(2.2rem, 12vw, 3rem); margin-bottom: 1.5rem; }

  .pillar-item { padding: 1.75rem 1.25rem; }
  .pillar-title { font-size: 1.2rem; }

  #projects { padding: 4rem 1.25rem; }
  .section-title { font-size: clamp(2rem, 9vw, 2.75rem); }
  .project-name { font-size: 1.2rem; }
  .project-row { grid-template-columns: 34px 1fr auto; }
  .project-logo { width: auto; height: 100px; }

  #contact { padding: 4rem 1.25rem; }
  .contact-tagline { font-size: clamp(1.9rem, 9vw, 2.4rem); }

  .mobile-menu-links a { font-size: 1.5rem; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .fade-in {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}