/* Lana Peshraw — portfolio. Built from the Bayota Figma template. */
:root {
  --primary: #ff4d41;
  --dark: #232940;
  --dark-2: #30364d;
  --muted: #9090a0;
  --tint: #fff9f9;
  --line: #e8e8e8;
  --ph: #a7a9c0;
  --radius: 6px;
  --container: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 14.4px;
  line-height: 23px;
  color: var(--muted);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h4, h5, h6 { margin: 0; color: var(--dark); font-weight: 500; }
p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }
svg { fill: currentColor; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--primary); color: #fff;
  border: 1px solid var(--primary); border-radius: 4px;
  font: 600 13px/19.5px "Poppins", sans-serif;
  cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: transparent; color: var(--primary); }
.btn--outline { background: transparent; color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--sm { padding: 9px 13px; font-size: 11px; line-height: 16.5px; }

/* ---------- navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 12px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.is-scrolled { background: #fff; box-shadow: 0 2px 20px rgba(35, 41, 64, .08); padding: 8px 0; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 42px; }
.logo { font-size: 24px; font-weight: 600; color: #fff; letter-spacing: -.3px; }
.logo span { color: var(--primary); }
.nav.is-scrolled .logo { color: var(--dark); }
.nav__menu { display: flex; align-items: center; gap: 0; flex: 1; justify-content: flex-end; }
.nav__menu ul { display: flex; list-style: none; margin: 0 auto; padding: 0; }
.nav__menu ul a { display: block; padding: 8px 18px; font-size: 15px; line-height: 24px; color: rgba(255, 255, 255, .7); }
.nav__menu ul a:hover, .nav__menu ul a.active { color: var(--primary); }
.nav.is-scrolled .nav__menu ul a { color: var(--dark); }
.nav.is-scrolled .nav__menu ul a:hover, .nav.is-scrolled .nav__menu ul a.active { color: var(--primary); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; margin: 4px 0; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav.is-scrolled .nav__toggle span, .nav.is-open .nav__toggle span { background: var(--dark); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 70% at 78% 40%, rgba(255, 77, 65, .22), transparent 70%),
    radial-gradient(ellipse 50% 60% at 95% 100%, rgba(255, 255, 255, .06), transparent 70%),
    linear-gradient(110deg, #161a2b 0%, #232940 55%, #2c3350 100%);
  overflow: hidden;
}
/* Drop a real photo here: background-image: linear-gradient(90deg, rgba(22,26,43,.9) 30%, rgba(22,26,43,.2)), url(assets/hero.jpg); */
.hero::after {
  content: ""; position: absolute; right: 8%; top: 50%; translate: 0 -50%;
  width: min(36vw, 520px); aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 77, 65, .35);
  box-shadow: 0 0 0 40px rgba(255, 77, 65, .04), 0 0 0 80px rgba(255, 77, 65, .025);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; padding: 48px 0; }
.hero h1 { color: #fff; font-size: 40px; line-height: 48px; margin-bottom: 7px; }
.hero h4 { color: #fff; font-size: 24px; line-height: 28.8px; font-weight: 400; margin-bottom: 14px; }
.hero p { color: rgba(255, 255, 255, .7); margin: 40px 0 24px; }
.divider { display: block; width: 34px; height: 2px; background: var(--primary); }
.hero__social { position: absolute; right: 0; bottom: 0; display: flex; flex-direction: column; z-index: 2; }
.hero__social a { width: 59px; height: 59px; display: grid; place-items: center; background: #fff; color: var(--dark); transition: background .2s, color .2s; }
.hero__social a:hover { background: var(--primary); color: #fff; }
.hero__social svg { width: 18px; height: 18px; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section--tint { background: var(--tint); padding: 100px 0; }
.title { position: relative; display: inline-block; font-size: 32px; line-height: 38.4px; margin-bottom: 24px; }
.title::after { content: ""; position: absolute; left: calc(100% + 24px); top: 50%; width: 34px; height: 2px; background: var(--primary); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 416px 1fr; gap: 24px 134px; padding-top: 32px; }
.about__media { position: relative; height: 494px; }
.about__border { position: absolute; inset: 0; translate: 25px -25px; border: 1px solid var(--primary); border-radius: 4px; }
.dots {
  position: absolute; left: -40px; bottom: -40px; width: 124px; height: 164px;
  background-image: radial-gradient(var(--primary) 1.6px, transparent 1.8px);
  background-size: 14px 14px; opacity: .55;
}
.about__img { position: relative; height: 100%; border-radius: var(--radius); --h: 8; }
.about__body h6 { font-size: 16px; line-height: 19.2px; font-weight: 600; margin: 48px 0 15px; }
.about__body p { margin-bottom: 32px; max-width: 746px; }
.facts { display: grid; grid-template-columns: 193px 1fr; row-gap: 15px; margin: 0; }
.facts > div { display: contents; }
.facts dt { display: flex; align-items: center; gap: 12px; color: var(--dark); font-weight: 600; }
.facts dt svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
.facts dd { margin: 0; padding-left: 12px; }
.facts dd::before { content: ":"; font-weight: 600; margin-right: 48px; }
.facts dd a:hover { color: var(--primary); }

/* ---------- photo placeholders ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: hsl(var(--h, 8) 30% 88%); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 48px; font-weight: 300; letter-spacing: 2px; color: hsl(var(--h, 8) 25% 55% / .6);
  background:
    radial-gradient(circle at 25% 20%, hsl(var(--h, 8) 60% 94%), transparent 60%),
    linear-gradient(135deg, hsl(var(--h, 8) 35% 90%), hsl(calc(var(--h, 8) + 30) 30% 80%));
}

/* ---------- services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 32px; }
.service { border: 1px solid var(--primary); border-radius: var(--radius); padding: 30px; background: transparent; transition: background .3s, transform .3s, box-shadow .3s; }
.service:hover { background: #fff; transform: translateY(-4px); box-shadow: 0 14px 30px rgba(255, 77, 65, .1); }
.service__icon { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--primary); border-radius: var(--radius); background: rgba(255, 77, 65, .07); color: var(--primary); transition: background .3s, color .3s; }
.service__icon svg { width: 26px; height: 26px; }
.service--active .service__icon, .service:hover .service__icon { background: var(--primary); color: #fff; }
.service h5 { font-size: 17px; line-height: 20.4px; font-weight: 600; margin: 33px 0 15px; }
.more { display: inline-block; margin-top: 15px; font-size: 13px; font-weight: 500; line-height: 20.8px; }
.more::after { content: " →"; }
.more:hover { color: var(--primary); }

/* ---------- portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; margin: 0 0 24px; padding: 32px 0 0; }
.filters button { background: none; border: 0; padding: 0; font: 400 14.4px/23px "Poppins", sans-serif; color: var(--dark); cursor: pointer; }
.filters button:hover, .filters button.active { color: var(--primary); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 354px; gap: 24px; }
.work { position: relative; margin: 0; transition: opacity .35s, transform .35s; }
.work--tall { grid-row: span 2; }
.work .photo { height: 100%; }
.work figcaption {
  position: absolute; inset: auto 16px 16px; padding: 14px 18px;
  background: #fff; border-radius: 4px; display: flex; flex-direction: column;
  opacity: 0; translate: 0 10px; transition: opacity .3s, translate .3s;
}
.work figcaption b { color: var(--dark); font-weight: 600; }
.work figcaption span { font-size: 13px; color: var(--primary); }
.work:hover figcaption, .work:focus-within figcaption { opacity: 1; translate: 0 0; }
.work.is-hidden { display: none; }

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 220px; padding-top: 32px; }
.post { display: flex; gap: 24px; }
.post time { flex: none; width: 74px; height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--primary); border-radius: var(--radius); font-size: 15px; font-weight: 500; line-height: 24px; }
.post time b { color: var(--dark); font-size: 32px; font-weight: 300; line-height: 38.4px; }
.post__tag { font-size: 13px; font-weight: 500; }
.post h4 { font-size: 18px; line-height: 21.6px; margin: 6px 0 14px; }
.post h4 a:hover { color: var(--primary); }

/* ---------- contact ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 32px; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  width: 100%; padding: 14px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font: 500 13px/19.5px "Poppins", sans-serif; color: var(--dark); background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.form ::placeholder { color: var(--ph); }
.form input:focus, .form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 77, 65, .1); }
.form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__status { font-size: 13px; }
.form__status.ok { color: #1f9d55; }
.form__status.err { color: var(--primary); }

/* ---------- footer ---------- */
.footer { background: linear-gradient(110deg, #161a2b, #232940 60%, #2c3350); color: #fff; padding: 48px 0; }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 24px; }
.footer p + p { margin-top: 7px; }
.footer a:hover { color: var(--primary); }
.footer__social { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; justify-self: end; }
.footer__social a { width: 32px; height: 32px; display: grid; place-items: center; background: var(--dark-2); border-radius: var(--radius); color: #fff; transition: background .2s; }
.footer__social a:hover { background: var(--primary); color: #fff; }
.footer__social svg { width: 16px; height: 16px; }
.copy { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.copy svg { vertical-align: -1px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .about { grid-template-columns: 360px 1fr; column-gap: 72px; }
  .about__media { height: 430px; }
  .posts { column-gap: 48px; }
}
@media (max-width: 991px) {
  .nav__toggle { display: block; position: relative; z-index: 2; }
  .nav__menu {
    position: fixed; inset: 0 0 auto; padding: 80px 24px 24px;
    flex-direction: column; align-items: flex-start; gap: 16px;
    background: #fff; box-shadow: 0 10px 30px rgba(35, 41, 64, .12);
    translate: 0 -110%; transition: translate .35s ease;
  }
  .nav.is-open .nav__menu { translate: 0 0; }
  .nav.is-open .logo { color: var(--dark); position: relative; z-index: 2; }
  .nav__menu ul { flex-direction: column; margin: 0; width: 100%; }
  .nav__menu ul a, .nav.is-scrolled .nav__menu ul a { color: var(--dark); padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 416px; height: 460px; margin: 25px 25px 40px 0; }
  .about__body h6 { margin-top: 32px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 300px; }
  .posts { grid-template-columns: 1fr; }
  .hero::after { opacity: .5; }
}
@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .section--tint { padding: 72px 0; }
  .container { padding: 0 16px; }
  .hero h1 { font-size: 32px; line-height: 40px; }
  .hero h4 { font-size: 20px; }
  .hero p { margin-top: 28px; }
  .hide-sm { display: none; }
  .hero__social { flex-direction: row; }
  .hero__social a { width: 48px; height: 48px; }
  .hero::after { width: 80vw; right: -30vw; }
  .title { font-size: 28px; line-height: 34px; }
  .about__media { height: auto; aspect-ratio: 416 / 494; margin-right: 25px; }
  .dots { left: -16px; bottom: -24px; width: 90px; height: 120px; }
  .facts { grid-template-columns: 120px 1fr; }
  .facts dd::before { margin-right: 14px; }
  .grid-3, .gallery, .form, .footer__grid { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 280px; }
  .work--tall { grid-row: span 1; }
  .work figcaption { opacity: 1; translate: 0 0; }
  .footer__social { justify-self: start; }
  .post { gap: 16px; }
}

/* ---------- content tweaks ---------- */
svg[fill="none"] { fill: none; }
.about__img img { object-position: 50% 20%; }
.photo__ph { font-size: 22px; text-transform: uppercase; letter-spacing: 4px; font-weight: 400; }
.post time { width: 84px; text-align: center; font-size: 13px; }
.post time b { font-size: 24px; font-weight: 400; line-height: 32px; }
.posts { row-gap: 40px; }
.work figcaption b { font-size: 14.4px; line-height: 21px; }
.about { grid-template-columns: 416px minmax(0, 1fr); }
.facts { grid-template-columns: 193px minmax(0, 1fr); }
.facts dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1199px) { .about { grid-template-columns: 360px minmax(0, 1fr); } }
@media (max-width: 991px) { .about { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .facts { grid-template-columns: 112px minmax(0, 1fr); } .facts dd::before { margin-right: 10px; } }
.hero {
  background:
    linear-gradient(90deg, rgba(22, 26, 43, .94) 0%, rgba(22, 26, 43, .82) 45%, rgba(22, 26, 43, .45) 100%),
    url(assets/hero.jpg) center 60% / cover no-repeat,
    #232940;
}
.hero::after { display: none; }
.about__img img { object-position: 50% 30%; }
.work .photo img { transition: transform .6s ease; }
.work:hover .photo img { transform: scale(1.04); }
.gallery__empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--primary); border-radius: var(--radius); background: var(--tint); }

/* filter buttons as real buttons */
.filters { gap: 10px; }
.filters button {
  padding: 9px 20px; border: 1px solid var(--primary); border-radius: 4px;
  background: #fff; color: var(--dark); font-size: 14px; font-weight: 500;
  transition: background .2s, color .2s;
}
.filters button:hover { background: rgba(255, 77, 65, .08); color: var(--primary); }
.filters button.active { background: var(--primary); color: #fff; }
@media (max-width: 767px) { .filters { gap: 8px; } .filters button { padding: 8px 14px; font-size: 13px; } }
