@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&display=swap");

:root{
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --ink: #0f1216;
  --muted: #5f6872;
  --line: rgba(15,18,22,0.12);
  --panel: rgba(255,255,255,0.94);
  --shadow: 0 12px 30px rgba(13,19,26,0.08);
  --shadow-soft: 0 6px 20px rgba(13,19,26,0.06);
  --radius: 16px;
  --accent: #0f1216;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  letter-spacing: 0.15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,h2,h3{
  font-family: inherit;
  font-weight: 500;
  letter-spacing: -0.2px;
}

a{ color: inherit; text-decoration: none; }
a:focus-visible{
  outline: 2px solid rgba(17,58,43,0.45);
  outline-offset: 3px;
}
a[aria-disabled="true"]{ opacity: 0.55; pointer-events: none; }

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

/* Landing */
body.home{ overflow: hidden; }

.landing{
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px;
}

.splash{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
}

.splash.is-hidden{
  opacity: 0;
  visibility: hidden;
}

.splash-logo{
  width: min(340px, 70vw);
  max-width: 360px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transform: scale(0.98);
}

body.is-animating .splash-logo{
  animation: logoReveal 2200ms ease forwards;
}

@keyframes logoReveal{
  0%{ opacity: 0; transform: scale(0.96); }
  18%{ opacity: 1; transform: scale(1); }
  70%{ opacity: 1; }
  100%{ opacity: 0; transform: scale(1.02); }
}

.menu{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(12px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease, transform 360ms ease;
}

.menu.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) translateY(0);
}

.menu-item{
  width: min(280px, 78vw);
  padding: 8px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms ease, transform 280ms ease, color 200ms ease;
}

.menu.is-visible .menu-item{
  opacity: 1;
  transform: translateY(0);
}

.menu-item:nth-child(1){ transition-delay: 80ms; }
.menu-item:nth-child(2){ transition-delay: 160ms; }
.menu-item:nth-child(3){ transition-delay: 240ms; }
.menu-item:nth-child(4){ transition-delay: 320ms; }

.menu-item:hover{
  transform: translateY(-1px);
  color: rgba(15,18,22,0.7);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

/* Project category chooser */
.project-choices{
  margin: 64px auto 0;
  width: min(560px, 92vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-choice{
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  transition: color 160ms ease, transform 160ms ease, text-decoration 160ms ease;
}

.project-choice.left{
  transform: translateX(-18px);
}

.project-choice.right{
  transform: translateX(18px);
}

.project-choice:hover{
  color: rgba(15,18,22,0.7);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

/* Commercial project gallery */
.project-gallery{
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.project-card{
  position: relative;
  display: block;
  overflow: hidden;
}

.project-card img{
  width: 100%;
  height: min(420px, 48vw);
  object-fit: cover;
  display: block;
  transition: transform 240ms ease;
}

.project-overlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: rgba(228,232,235,0.48);
  transition: opacity 220ms ease;
}

.project-label{
  color: rgba(31,36,40,0.84);
  padding: 0;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(15px, 2.1vw, 28px);
  font-weight: 400;
  text-align: center;
  transform: translateY(8px);
  transition: transform 220ms ease;
}

.project-card:hover .project-overlay,
.project-card:focus-visible .project-overlay{
  opacity: 1;
}

.project-card:hover img,
.project-card:focus-visible img{
  transform: scale(1.02);
}

.project-card:hover .project-label,
.project-card:focus-visible .project-label{
  transform: translateY(0);
}

/* Project image pages */
.image-grid{
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.image-grid img{
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.project-hero{
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(260px, 460px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.project-hero-media{
  margin: 0;
}

.project-hero-image{
  width: 100%;
  height: min(420px, 48vw);
  object-fit: cover;
  display: block;
  transform: translateX(-8px) rotate(-2deg);
  transform-origin: center;
}

.project-note{
  max-width: 430px;
}

.project-note p{
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
}

.project-note p:last-child{
  margin-bottom: 0;
}

/* Header + pages */
.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 22px;
  background: transparent;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand-logo{
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(13,19,26,0.12);
}

.brand-text{
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}

.top-nav{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.top-nav a{
  padding: 6px 4px;
  border-radius: 0;
  color: var(--muted);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  transition: color 160ms ease, text-decoration 160ms ease;
}
.top-nav a:hover{
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.page{
  flex: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 22px 46px;
}

.page h1{
  margin: 0 0 8px;
  font-size: clamp(30px, 4.6vw, 46px);
  letter-spacing: -0.3px;
}

.card{
  margin-top: 20px;
  border-radius: var(--radius);
  padding: 18px 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.bullets{
  margin: 14px 0 0;
  padding-left: 18px;
}
.bullets li{ margin: 8px 0; }

.about-layout{
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 560px);
  gap: 40px;
  align-items: start;
  max-width: 920px;
}

.about-photo-wrap{
  margin: 0;
  transform: translateX(-6px);
}

.about-photo{
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.about-copy{
  max-width: 560px;
  padding-top: 0;
}

.about-kicker{
  margin: 2px 0 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
}

.about-copy p{
  margin: 0 0 22px;
  font-size: clamp(13.5px, 0.95vw, 15.5px);
  line-height: 1.82;
  letter-spacing: 0.015em;
  font-weight: 400;
}

.about-copy p:last-child{
  margin-bottom: 0;
}

.grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.tile{
  grid-column: span 6;
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.tile:hover{
  transform: translateY(-2px);
  border-color: rgba(13,19,26,0.2);
  box-shadow: var(--shadow);
}
.tile h2{ margin: 0 0 6px; font-size: 18px; }
.links{
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.links a{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.links a:hover{
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.pub-list{
  margin: 0;
  padding-left: 18px;
}
.pub{
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-soft);
}
.pub-title{ font-weight: 600; display: block; }
.pub-meta{ color: var(--muted); font-size: 13px; display: block; margin-top: 4px; }
.pub-actions{ display:flex; gap: 10px; }
.pub-actions a{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
}

.contact-form-wrap{
  margin: 8px 0 0;
  width: min(1080px, 100%);
}

.contact-layout{
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(280px, 1fr);
  gap: 34px;
  align-items: start;
}

.contact-form{
  display: grid;
  gap: 12px;
}

.contact-field{
  display: grid;
  gap: 5px;
}

.contact-field label{
  font-size: 13px;
  letter-spacing: 0.01em;
}

.contact-field input,
.contact-field textarea{
  width: 100%;
  border: 1px solid rgba(15,18,22,0.34);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  padding: 6px 9px;
  font: inherit;
  line-height: 1.5;
}

.contact-field input{
  height: 34px;
}

.contact-field textarea{
  min-height: 180px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus{
  outline: none;
  border-color: rgba(15,18,22,0.68);
}

.contact-actions{
  display: flex;
  justify-content: flex-end;
}

.contact-actions button{
  min-width: 100px;
  height: 36px;
  border: none;
  border-radius: 4px;
  background: #15171a;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease;
  transform: translateX(16px);
}

.contact-actions button:hover{
  background: #0e1012;
}

.contact-details{
  padding-top: 2px;
}

.contact-details-kicker{
  margin: 0 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
}

.contact-details-row{
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
}

.contact-details-row span{
  color: var(--muted);
}

.contact-details-row a{
  margin-left: 6px;
}

.contact-details-image{
  width: min(460px, 100%);
  height: auto;
  display: block;
}

.contact-details-image + .contact-details-image{
  margin-top: 22px;
}

.site-footer{
  margin-top: auto;
  padding: 18px 22px 34px;
  color: var(--muted);
  text-align: center;
  border-top: none;
}

/* Responsive */
@media (max-width: 820px){
  .menu{
    width: 90vw;
  }
  .menu-item{
    width: 100%;
    text-align: center;
  }
  .project-choices{
    flex-direction: column;
    gap: 16px;
  }
  .project-choice.left,
  .project-choice.right{
    transform: translateX(0);
  }
  .project-gallery{
    grid-template-columns: 1fr;
  }
  .project-card img{
    height: 52vw;
  }
  .image-grid{
    grid-template-columns: 1fr;
  }
  .image-grid img{
    height: auto;
  }
  .project-hero{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .project-hero-image{
    height: auto;
    transform: rotate(-1deg);
  }
  .project-note{
    max-width: 100%;
  }
  .about-layout{
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .about-photo-wrap{
    transform: none;
  }
  .about-photo{
    max-width: min(320px, 100%);
  }
  .about-copy{
    max-width: 100%;
  }
  .about-copy p{
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.7;
  }
  .contact-form-wrap{
    width: 100%;
    margin-top: 8px;
  }
  .contact-layout{
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-field textarea{
    min-height: 160px;
  }
  .contact-actions button{
    min-width: 96px;
    height: 34px;
    font-size: 14px;
    transform: none;
  }
  .contact-details-image{
    width: min(300px, 100%);
  }
  .tile{ grid-column: span 12; }
  .site-header{
    flex-direction: column;
    align-items: flex-start;
  }
}
