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

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

:root {
  --white: #ffffff;
  --dark: #141417;
  --gray: rgb(164, 164, 166);
  --border: #e0e0e0;
  --input-bg: rgba(187, 187, 187, 0.15);
  --input-border: rgba(136, 136, 136, 0.1);
  --anton: 'Anton', Impact, sans-serif;
  --inter: 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  width: 100vw;
  background: var(--white);
  color: var(--dark);
  font-family: var(--inter);
  font-weight: 500;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100vw;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav__logo {
  display: block;
  width: 50px;
  height: 50px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 10px 12px;
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--dark);
  text-decoration: none;
  border: 1px solid rgba(20, 20, 23, 0.15);
  border-radius: 6px;
  transition: background 0.2s;
}

.nav__btn:hover {
  background: rgba(20, 20, 23, 0.05);
}

.nav__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ─── HERO TEXT ─── */
.hero {
  height: 80vh;
  min-height: 560px;
  padding: 112px 32px 64px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.hero__top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: flex-start;
}

.hero__subtitle {
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--gray);
  opacity: 0;
  transform: translateY(10px);
  animation: textIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero__heading {
  font-family: var(--anton);
  font-size: 120px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.hero__heading span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: textIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__heading .line-1 {
  animation-delay: 0.35s;
}

.hero__heading .line-2 {
  animation-delay: 0.5s;
}

@keyframes textIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__subtext {
  align-self: flex-end;
  width: 50%;
  font-family: var(--inter);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.3;
  color: var(--dark);
  opacity: 0;
  transform: translateY(10px);
  animation: textIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}

/* ─── HERO MEDIA ─── */
.hero-media {
  width: 100%;
  height: 736px;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ─── WHO AM I ─── */
.who-section {
  padding: 64px 32px;
  background: var(--white);
}

.who-inner {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.who__text {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
}

.who__text h2 {
  font-family: var(--anton);
  font-size: 80px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: none;
  color: var(--dark);
}

#who-title,
#offerings-title {
  font-family: var(--inter);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--gray);
}

#who-title {
  flex: 1 1 0;
}

.who__text p {
  font-family: var(--inter);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.3;
  color: var(--dark);
  flex: 1 1 0;
}

.who__images {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex: 1 0 0;
}

.who__img-top {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 0.888889;
  object-fit: cover;
}

.who__img-bottom {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 1.33333;
  object-fit: cover;
}

/* slide-in for portrait images */
.slide-left {
  opacity: 0;
  transform: translateX(-150px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-right {
  opacity: 0;
  transform: translateX(150px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.slide-left.visible,
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ─── OFFERINGS ─── */
.offerings-section {
  padding: 64px 32px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.offerings__head {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
}

.offerings__head h2 {
  font-family: var(--anton);
  font-size: 80px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--dark);
  flex: 1 1 0;
}

.offerings__intro {
  font-family: var(--inter);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.3;
  color: var(--dark);
  flex: 1 1 0;
}

.offerings__items {
  display: flex;
  flex-direction: row;
  gap: 32px;
  width: 100%;
}

.offering-item {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 21%;
}

.offering-item__num {
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--gray);
}

.offering-item__text {
  font-family: var(--inter);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--dark);
}

/* ─── PRODUCT SLIDER ─── */
.product-slider-section {
  padding: 64px 0;
  background: var(--white);
  overflow: hidden;
}

.product-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 32px;
}

.product-slider::-webkit-scrollbar {
  display: none;
}

.product-slider .portfolio-item {
  flex: 0 0 calc(45.455% - 27px);
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
}

/* ─── CONTACT SECTION ─── */
.contact-section {
  padding: 112px 32px 64px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.contact-heading {
  display: flex;
  flex-direction: column;
}

.contact-heading h2 {
  font-family: var(--anton);
  font-size: 80px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--dark);
}

.contact-body {
  display: flex;
  flex-direction: row;
  gap: 64px;
}

.contact-body>* {
  flex: 1 1 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-info-row svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-info-row a {
  font-family: var(--inter);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--dark);
  text-decoration: none;
}

.contact-info-row a:hover {
  text-decoration: underline;
}

/* ─── FORM ─── */
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-group input,
.form-group textarea {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 0;
  padding: 12px 14px;
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--dark);
  outline: none;
  width: 100%;
  resize: none;
  transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #0099ff;
}

.form-group textarea {
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
}

.form-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: rgba(187, 187, 187, 0.2);
  border: 1px solid rgba(136, 136, 136, 0.2);
  border-radius: 4px;
  margin-top: 2px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

.form-checkbox input[type="checkbox"]:checked {
  background: var(--dark);
  border-color: var(--dark);
}

.form-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 5px;
  width: 6px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.form-checkbox label {
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--dark);
  cursor: pointer;
  user-select: none;
}

.form-checkbox label a {
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px 10px 12px;
  background: var(--dark);
  color: #fff;
  font-family: var(--inter);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  align-self: flex-start;
  transition: opacity 0.2s;
}

.btn-submit:hover {
  opacity: 0.85;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn-submit svg {
  width: 16px;
  height: 16px;
}

.form-success {
  display: none;
  padding: 12px 16px;
  background: rgba(20, 20, 23, 0.05);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  border-radius: 4px;
}

.field-error {
  border-color: #d0413a !important;
  outline: none;
}

.form-checkbox .field-error + label {
  color: #d0413a;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--dark);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.footer__logo {
  display: block;
  width: 51px;
  height: 51px;
  text-decoration: none;
}

.footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer__links a:hover {
  opacity: 1;
}

.footer__copy {
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  opacity: 0.5;
}

/* ─── INNER PAGES ─── */
.page-wrapper {
  padding-top: 100px;
}

.page-hero {
  padding: 64px 32px 32px;
}

.page-hero__label {
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--gray);
  margin-bottom: 16px;
}

.page-hero__title {
  font-family: var(--anton);
  font-size: 80px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--dark);
}

.page-content {
  padding: 48px 32px 80px;
  max-width: 800px;
}

.page-content h2 {
  font-family: var(--inter);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 2rem 0 0.75rem;
  color: var(--dark);
}

.page-content h3 {
  font-family: var(--inter);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 1.5rem 0 0.5rem;
  color: var(--dark);
}

.page-content p,
.page-content li {
  font-family: var(--inter);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.6;
  color: var(--dark);
  opacity: 0.75;
  margin-bottom: 0.75rem;
}

.page-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content a {
  color: var(--dark);
}

.page-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* contact page */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 48px 32px 80px;
  align-items: start;
}

.contact-aside__title {
  font-family: var(--anton);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--dark);
  margin-bottom: 32px;
}

.contact-aside__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-aside__info a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--inter);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--dark);
  text-decoration: none;
}

.contact-aside__info a:hover {
  text-decoration: underline;
}

/* ─── NAV RIGHT GROUP ─── */
.nav__right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--dark);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.nav__link:hover {
  background: rgba(20, 20, 23, 0.05);
}

.nav__link--active {
  opacity: 0.4;
  pointer-events: none;
}

/* ─── PORTFOLIO PAGE ─── */
.portfolio-section {
  padding: 56px 32px 80px;
}

.portfolio-lead {
  font-family: var(--inter);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.5;
  color: var(--gray);
  max-width: 520px;
  margin-bottom: 48px;
  padding-top: 32px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 480px 320px 480px;
  gap: 10px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  background: #f0ede8;
}

.portfolio-item--wide {
  grid-column: span 2;
}

.portfolio-item__img-wrap {
  position: absolute;
  inset: 0;
}

.portfolio-item__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-item__img-wrap img {
  transform: scale(1.04);
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 23, 0.52) 0%, rgba(20, 20, 23, 0) 55%);
}

.portfolio-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.portfolio-item__num {
  font-family: var(--inter);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.45);
}

.portfolio-item__name {
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
}

/* ─── PORTFOLIO CTA ─── */
.portfolio-cta {
  background: var(--dark);
  padding: 96px 32px;
}

.portfolio-cta__inner {
  max-width: 640px;
}

.portfolio-cta__eyebrow {
  font-family: var(--inter);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}

.portfolio-cta__title {
  font-family: var(--anton);
  font-size: 68px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  margin-bottom: 24px;
}

.portfolio-cta__body {
  font-family: var(--inter);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
  max-width: 520px;
  margin-bottom: 40px;
}

.portfolio-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #fff;
  color: var(--dark);
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.portfolio-cta__link:hover {
  opacity: 0.82;
}

.portfolio-cta__link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ─── SCROLL REVEAL (general) ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1199px) {
  .hero__heading {
    font-size: 96px;
  }

  .who__text h2 {
    font-size: 64px;
  }

  .offerings__head h2 {
    font-size: 64px;
  }

  .contact-heading h2 {
    font-size: 64px;
  }

  .page-hero__title {
    font-size: 64px;
  }

  .portfolio-cta__title {
    font-size: 52px;
  }
}

@media (max-width: 809px) {
  .nav {
    padding: 12px 16px;
  }

  .nav__logo {
    width: 40px;
    height: 40px;
  }

  .nav__link {
    font-size: 13px;
    padding: 8px 10px;
  }

  .nav__btn {
    font-size: 13px;
    padding: 8px 10px;
  }

  .hero {
    padding: 80px 16px 64px;
    height: 75vh;
  }

  .hero__heading {
    font-size: 77px;
  }

  .hero__heading .line-1 br {
    display: inline;
  }

  .hero__subtext {
    width: 100%;
    font-size: 18px;
  }

  .hero-media {
    height: 499px;
  }

  /* who */
  .who-section {
    padding: 64px 16px;
  }

  .who-inner {
    flex-direction: column;
  }

  .who__text {
    flex-direction: column;
  }

  .who__images {
    flex-direction: column;
    gap: 10px;
  }

  .who__img-top,
  .who__img-bottom {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  /* offerings */
  .offerings-section {
    padding: 64px 16px 128px;
    gap: 80px;
  }

  .offerings__head {
    flex-direction: column;
  }

  .offerings__intro {
    width: 100%;
  }

  .offerings__items {
    flex-direction: column;
  }

  /* product slider */
  .product-slider {
    padding: 0 16px;
  }

  .product-slider .portfolio-item {
    flex: 0 0 calc(83.333% - 13px);
  }

  /* contact */
  .contact-section {
    padding: 112px 16px 64px;
    gap: 48px;
  }

  .contact-heading h2 {
    font-size: 41px;
  }

  .contact-body {
    flex-direction: column;
  }

  /* footer */
  .footer {
    padding: 32px 16px;
    gap: 48px;
  }

  /* inner pages */
  .page-hero {
    padding: 48px 16px 24px;
  }

  .page-hero__title {
    font-size: 41px;
  }

  .page-content {
    padding: 32px 16px 60px;
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
    padding: 32px 16px 60px;
    gap: 40px;
  }

  /* portfolio */
  .portfolio-section {
    padding: 40px 16px 64px;
  }

  .portfolio-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 8px;
  }

  .portfolio-grid::-webkit-scrollbar {
    display: none;
  }

  .portfolio-item,
  .portfolio-item--wide {
    flex: 0 0 calc(83.333% - 4px);
    grid-column: unset;
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
  }

  .portfolio-cta {
    padding: 64px 16px;
  }

  .portfolio-cta__title {
    font-size: 38px;
  }
}