@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
  --bg:#070707;
  --text:#dcd9d4;
  --muted:#7b7771;
  --dark:#232323;
  --light:#f2f0e9;

  /* Fluid scale without desktop caps: on screens wider than 1440px
     typography, portrait and spacing continue growing proportionally. */
  --pad:max(8px,.56vw);
  --hero-size:max(64px,6.67vw);
  --body-size:max(32px,3.33vw);
  --meta-size:max(20px,2.22vw);
  --button-size:max(16px,1.39vw);
  --button-height:max(60px,4.17vw);
  --radius:max(16px,1.11vw);
}

*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--muted);font-family:Roboto,Arial,sans-serif}
html{scroll-behavior:smooth}
body{min-width:280px}
a{color:inherit}

.site{
  width:100%;
  padding:var(--pad);
  overflow:hidden;
}

.hero{
  position:relative;
  min-height: 100vh;
  display:flex;
  align-items:center;
}

.hero__title{
  position:relative;
  z-index:2;
  width:65.35vw;
  margin:0;
  font-size:var(--hero-size);
  line-height:.979;
  letter-spacing:-.04em;
  font-weight:700;
  text-transform:uppercase;
}

.hero__media{
  position:absolute;
  z-index:1;
  right:10.28vw;
  top:50%;
  width:29.65vw;
  aspect-ratio:427/528;
  transform:translateY(-50%);
  overflow:hidden;
  border-radius:max(4px,.28vw);
}

.hero__portrait{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center bottom;
}

.light{color:var(--text)}
.muted{color:var(--muted)}

.about{margin-top:8.89vw}

.about__lead{
  width:80.49vw;
  margin:0 0 3.47vw;
  font-size:var(--body-size);
  line-height:.958;
  letter-spacing:-.04em;
  font-weight:700;
  text-transform:uppercase;
}

.meta{
  font-size:var(--meta-size);
  line-height:1.125;
}

.actions{
  display:flex;
  gap:max(12px,.83vw);
  margin-top:max(8px,.56vw);
}

.button{
  min-height:var(--button-height);
  padding:max(18px,1.25vw) max(24px,1.67vw);
  border-radius:var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap:max(12px,.83vw);
  text-decoration:none;
  font-size:var(--button-size);
  font-weight:500;
  transition:
    transform .45s cubic-bezier(.16,1,.3,1),
    background-color .35s ease,
    color .35s ease;
}

.button--primary{background:var(--light);color:var(--bg)}
.button--primary:hover{background:var(--text)}
.button--secondary{background:var(--dark);color:var(--text)}
.button--secondary:hover{background:#2d2d2d}

.button__arrow {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  display: block;
}

.footer{
  margin-top:9.47vw;
  display:flex;
  flex-direction:column;
  color:#5b5b5b;
  font-size:max(9px,.83vw);
  line-height:1.25;
}

/* Slow, deep reveal. Using individual translate/scale properties keeps
   the portrait's translateY(-50%) positioning intact. */
.reveal {
  opacity: 0;
  translate: 0 clamp(10px, 1vw, 16px);
  filter: blur(2px);

  transition:
    opacity 2.4s cubic-bezier(.16,1,.3,1),
    translate 1.6s cubic-bezier(.16,1,.3,1),
    filter 1.4s cubic-bezier(.16,1,.3,1);

  transition-delay: var(--delay, 0ms);
  will-change: opacity, translate, filter;
}

.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
}

@media (max-width:760px){
  :root{
    /* Still fully fluid on mobile: no maximum font/image sizes. */
    --hero-size:17.07vw;
    --body-size:8.53vw;
    --meta-size:5.33vw;
    --button-size:5.33vw;
    --button-height:16vw;
  }

  .site{padding:2.13vw}

  .hero{
    min-height:116.27vw;
    align-items:flex-start;
  }

  .hero__title{
    width:100%;
    min-height:112vw;
    font-size:var(--hero-size);
    line-height:.9375;
  }

  .hero__media{
    right:-4.53vw;
    top:48%;
    width:48vw;
    border-radius:1.07vw;
  }

  .about{margin-top:24vw}

  .about__lead{
    width:100%;
    margin-bottom:13.33vw;
    font-size:var(--body-size);
    line-height:.969;
  }

  .actions{
    width:100%;
    gap:3.2vw;
  }

  .button{
    flex:1 1 0;
    min-width:0;
    min-height:var(--button-height);
    padding:4.8vw 3.2vw;
    border-radius:4.27vw;
    gap:3.2vw;
    justify-content: center;
    font-size:var(--button-size);
  }

  .footer{
    margin-top:30.67vw;
    font-size:2.4vw;
  }

  .reveal{
    translate:0 8vw;
    scale:.95;
    filter:blur(1.6vw);
  }
}

.contact-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;

  width: 100vw;
  height: 100dvh;

  background: #070707;

  clip-path: circle(
    0px at var(--menu-x, 50%) var(--menu-y, 50%)
  );

  visibility: hidden;
  pointer-events: none;

  transition:
    clip-path 0.5s cubic-bezier(.16,1,.3,1),
    visibility 0s linear 1.8s;
}

.contact-menu.is-open {
  clip-path: circle(
    150vmax at var(--menu-x, 50%) var(--menu-y, 50%)
  );

  visibility: visible;
  pointer-events: auto;

  transition:
    clip-path 2.8s cubic-bezier(.16,1,.3,1),
    visibility 0s;
}


/* CLOSE */

.contact-menu__close {
  position: absolute;
  top: 20px;
  right: 20px;

  width: 40px;
  height: 40px;

  padding: 0;
  border: 0;
  background: transparent;

  color: #dcd9d4;

  font-family: Arial, sans-serif;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  opacity: 0;
  translate: 0 10px;
  filter: blur(2px);

  transition:
    opacity .8s cubic-bezier(.16,1,.3,1),
    translate .9s cubic-bezier(.16,1,.3,1),
    filter .8s cubic-bezier(.16,1,.3,1);

  transition-delay: .25s;
}

.contact-menu.is-open .contact-menu__close {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
}


/* CONTENT */

.contact-menu__content {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 24px;

  padding: 20px;
}


/* EMAIL */

.contact-menu__email {
  display: block;

  color: #dcd9d4;
  text-decoration: none;

  font-family: "Roboto", sans-serif;
  font-weight: 700;

  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.2;

  letter-spacing: -0.04em;
  text-transform: uppercase;

  text-align: center;
}


/* SOCIALS */

.contact-menu__socials {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 32px;
}

.contact-menu__socials a {
  display: block;
}

.contact-menu__socials img {
  width: 64px;
  height: 64px;

  display: block;
  object-fit: contain;
}


/* REVEAL */

.contact-reveal {
  opacity: 0;
  translate: 0 12px;
  filter: blur(2px);

  transition:
    opacity 1.2s cubic-bezier(.16,1,.3,1),
    translate 1.4s cubic-bezier(.16,1,.3,1),
    filter 1.2s cubic-bezier(.16,1,.3,1);

  transition-delay: var(--contact-delay, 300ms);
}

.contact-menu.is-open .contact-reveal {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
}


/* CLOSE ANIMATION */

.contact-menu:not(.is-open) .contact-reveal {
  transition-delay: 0ms;
  transition-duration: .25s;
}


/* LOCK PAGE */

body.menu-open {
  overflow: hidden;
}

@media (max-width:330px){
  /* Guardrail only for very narrow devices. */
  .button{font-size:4.3vw}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;translate:none;scale:1;filter:none;transition:none}
  .button{transition:none}
}

@media (max-width: 760px) {
  .reveal {
    translate: 0 clamp(8px, 2vw, 12px);
    scale: 1;
    filter: blur(clamp(1px, .5vw, 2px));
  }
  
}
