/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4f2ed;
  color: #171717;
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --background: #f4f2ed;
  --surface: #ffffff;
  --dark: #171717;
  --muted: #77736c;
  --border: #dedbd4;
  --accent: #b47b4d;

  --container: 1240px;
  --serif: "Playfair Display", serif;
}

/* =========================================================
   GLOBAL
   ========================================================= */

.container {
  width: min(calc(100% - 80px), var(--container));

  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 18px;

  color: var(--accent);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 span,
h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: absolute;
  z-index: 50;

  top: 0;
  left: 0;

  width: 100%;

  color: #ffffff;
}

.header-inner {
  min-height: 100px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 40px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.65);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: -0.05em;
}

.logo-text {
  display: flex;
  flex-direction: column;

  font-size: 15px;
  font-weight: 600;

  line-height: 1.15;
}

.logo-text small {
  margin-top: 3px;

  color: rgba(255, 255, 255, 0.6);

  font-size: 9px;
  font-weight: 500;

  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;

  margin-left: auto;
}

.main-nav a {
  position: relative;

  color: rgba(255, 255, 255, 0.72);

  font-size: 13px;
  font-weight: 500;

  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -8px;

  width: 0;
  height: 1px;

  background: #ffffff;

  transition: width 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.preview-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 11px 16px;

  border: 1px solid rgba(255, 255, 255, 0.3);

  color: #ffffff;

  font-size: 12px;
  font-weight: 600;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.preview-button:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #171717;

  transform: translateY(-2px);
}

.menu-toggle {
  display: none;

  width: 42px;
  height: 42px;

  padding: 9px;

  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
}

.menu-toggle span {
  display: block;

  width: 100%;
  height: 1px;

  margin: 5px 0;

  background: #ffffff;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  min-height: 860px;

  display: flex;
  align-items: center;

  overflow: hidden;

  color: #ffffff;

  background: #1b1b1b;
}

.hero-background {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.45) 48%,
      rgba(0, 0, 0, 0.15) 100%
    ),
    url("https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?auto=format&fit=crop&w=2200&q=90")
      center / cover no-repeat;

  transform: scale(1.01);
}

.hero-inner {
  position: relative;
  z-index: 2;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    420px;

  align-items: center;

  gap: 100px;
}

.hero-content {
  max-width: 680px;
}

.hero h1 {
  margin-bottom: 28px;

  font-size: clamp(54px, 7vw, 96px);
  font-weight: 600;

  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;

  color: #dedbd4;
}

.hero-description {
  max-width: 540px;

  margin-bottom: 36px;

  color: rgba(255, 255, 255, 0.76);

  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;

  min-height: 54px;

  padding: 0 24px;

  border: 1px solid transparent;

  font-size: 13px;
  font-weight: 700;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.button span {
  font-size: 17px;
}

.button:hover {
  transform: translateY(-3px);
}

.button-dark {
  background: #171717;
  color: #ffffff;
}

.button-dark:hover {
  background: #ffffff;
  color: #171717;
}

.button-light {
  background: #ffffff;
  color: #171717;
}

.button-light:hover {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: #ffffff;

  font-size: 13px;
  font-weight: 600;
}

.text-link span {
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateX(5px);
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  width: 100%;
  aspect-ratio: 3 / 4;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-image img {
  height: 100%;
  object-fit: cover;

  filter: grayscale(20%);
}

.hero-image-note {
  position: absolute;

  right: -55px;
  bottom: 24px;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 15px;

  background: rgba(20, 20, 20, 0.85);

  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-image-note span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #8dbb83;
}

.scroll-indicator {
  position: absolute;

  bottom: 35px;
  left: 50%;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  transform: translateX(-50%);

  color: rgba(255, 255, 255, 0.5);

  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-indicator i {
  display: block;

  width: 1px;
  height: 40px;

  background: rgba(255, 255, 255, 0.4);
}

/* =========================================================
   INTRO
   ========================================================= */

.intro-section {
  padding: 150px 0;
}

.intro-grid {
  display: grid;

  grid-template-columns: 100px 1fr;

  gap: 70px;
}

.intro-number {
  color: var(--accent);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.1em;
}

.intro-content {
  max-width: 850px;
}

.intro-content h2 {
  max-width: 900px;

  margin-bottom: 30px;

  font-size: clamp(42px, 6vw, 74px);
  font-weight: 500;

  letter-spacing: -0.045em;
}

.intro-content h2 em {
  display: inline;
}

.intro-content > p:not(.eyebrow) {
  max-width: 680px;

  margin-bottom: 32px;

  color: var(--muted);

  font-size: 17px;
  line-height: 1.8;
}

.underlined-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;

  padding-bottom: 7px;

  border-bottom: 1px solid var(--dark);

  font-size: 13px;
  font-weight: 700;
}

.underlined-link span {
  transition: transform 0.2s ease;
}

.underlined-link:hover span {
  transform: translate(4px, -4px);
}

/* =========================================================
   ABOUT
   ========================================================= */

.about-section {
  padding: 0 0 150px;
}

.about-grid {
  display: grid;

  grid-template-columns: 0.9fr 1fr;

  gap: 100px;

  align-items: center;
}

.about-image {
  position: relative;

  overflow: hidden;
}

.about-image img {
  aspect-ratio: 4 / 5;

  object-fit: cover;

  filter: grayscale(15%);
}

.image-caption {
  position: absolute;

  left: 20px;
  bottom: 20px;

  display: flex;
  flex-direction: column;

  padding: 10px 14px;

  background: rgba(0, 0, 0, 0.75);

  color: #ffffff;

  font-size: 8px;
  letter-spacing: 0.15em;
}

.about-content h2 {
  max-width: 600px;

  margin-bottom: 30px;

  font-size: clamp(42px, 5vw, 68px);
  font-weight: 500;

  letter-spacing: -0.045em;
}

.about-content h2 span {
  display: block;

  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}

.about-content > p:not(.eyebrow) {
  max-width: 580px;

  color: var(--muted);

  font-size: 16px;
  line-height: 1.8;
}

.about-stats {
  display: flex;

  margin-top: 45px;
  padding-top: 30px;

  border-top: 1px solid var(--border);

  gap: 55px;
}

.about-stats div {
  display: flex;
  flex-direction: column;
}

.about-stats strong {
  font-family: var(--serif);

  font-size: 38px;
  font-weight: 500;
}

.about-stats span {
  color: var(--muted);

  font-size: 11px;

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =========================================================
   PORTFOLIO
   ========================================================= */

.portfolio-section {
  padding: 140px 0;

  background: #e9e6df;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  gap: 60px;

  margin-bottom: 65px;
}

.section-heading h2 {
  margin: 0;

  font-size: clamp(45px, 6vw, 76px);
  font-weight: 500;

  letter-spacing: -0.05em;
}

.section-heading > p {
  max-width: 350px;

  margin: 0;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.7;
}

.portfolio-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 22px;
}

.portfolio-item {
  position: relative;

  min-height: 440px;

  overflow: hidden;

  background: #222;
}

.portfolio-item.portfolio-large {
  grid-row: span 2;

  min-height: 902px;
}

.portfolio-item.portfolio-wide {
  grid-column: span 2;
}

.portfolio-item img {
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.6s ease,
    filter 0.6s ease;
}

.portfolio-item:hover img {
  transform: scale(1.045);

  filter: brightness(0.75);
}

.portfolio-overlay {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  padding: 30px;

  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));

  color: #ffffff;

  transform: translateY(5px);

  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-overlay span {
  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portfolio-overlay h3 {
  margin: 7px 0 0;

  font-family: var(--serif);

  font-size: 30px;
  font-weight: 500;
}

/* =========================================================
   SERVICES
   ========================================================= */

.services-section {
  padding: 150px 0;
}

.services-heading {
  margin-bottom: 75px;
}

.services-list {
  border-top: 1px solid var(--border);
}

.service {
  display: grid;

  grid-template-columns: 80px 1fr 50px;

  align-items: center;

  gap: 30px;

  padding: 32px 0;

  border-bottom: 1px solid var(--border);

  transition: padding 0.25s ease;
}

.service:hover {
  padding-left: 18px;
  padding-right: 18px;
}

.service-number {
  color: var(--accent);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.12em;
}

.service-main {
  display: grid;

  grid-template-columns: 280px 1fr;

  align-items: center;

  gap: 30px;
}

.service h3 {
  margin: 0;

  font-family: var(--serif);

  font-size: 34px;
  font-weight: 500;
}

.service p {
  max-width: 500px;

  margin: 0;

  color: var(--muted);

  font-size: 14px;
}

.service-arrow {
  font-size: 24px;

  text-align: right;

  transition: transform 0.2s ease;
}

.service:hover .service-arrow {
  transform: translate(4px, -4px);
}

/* =========================================================
   CTA
   ========================================================= */

.cta-section {
  padding: 150px 0;

  background: #171717;

  color: #ffffff;

  text-align: center;
}

.cta-inner {
  max-width: 850px;
}

.cta-section .eyebrow {
  color: #c29570;
}

.cta-section h2 {
  margin-bottom: 25px;

  font-size: clamp(55px, 8vw, 100px);
  font-weight: 500;

  letter-spacing: -0.06em;
}

.cta-section p:not(.eyebrow) {
  max-width: 500px;

  margin: 0 auto 35px;

  color: rgba(255, 255, 255, 0.6);

  font-size: 15px;
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
  padding: 150px 0;
}

.contact-grid {
  display: grid;

  grid-template-columns: 0.8fr 1.2fr;

  gap: 120px;
}

.contact-intro h2 {
  margin-bottom: 28px;

  font-size: clamp(50px, 6vw, 76px);
  font-weight: 500;

  letter-spacing: -0.055em;
}

.contact-intro > p:not(.eyebrow) {
  max-width: 430px;

  color: var(--muted);

  font-size: 15px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;

  gap: 8px;

  margin-top: 40px;
}

.contact-details a,
.contact-details span {
  font-size: 14px;
}

.contact-details a {
  width: fit-content;

  border-bottom: 1px solid var(--dark);
}

.contact-details span {
  color: var(--muted);
}

.contact-form {
  padding-top: 8px;
}

.form-row {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;

  margin-bottom: 26px;
}

.form-group label {
  margin-bottom: 9px;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;

  padding: 14px 0;

  border: 0;
  border-bottom: 1px solid var(--border);

  outline: none;

  background: transparent;

  color: var(--dark);

  font-size: 14px;

  resize: vertical;

  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa6a0;
}

.form-button {
  margin-top: 5px;
}

.form-note {
  margin: 20px 0 0;

  color: var(--muted);

  font-size: 11px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 70px 0 25px;

  background: #111111;

  color: #ffffff;
}

.footer-top {
  display: flex;
  justify-content: space-between;

  gap: 80px;

  padding-bottom: 70px;
}

.footer-brand p {
  margin: 22px 0 0;

  color: rgba(255, 255, 255, 0.45);

  font-size: 12px;
}

.footer-links {
  display: flex;

  gap: 90px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;

  gap: 9px;

  min-width: 110px;
}

.footer-links strong {
  margin-bottom: 8px;

  color: #ffffff;

  font-size: 10px;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);

  font-size: 12px;

  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;

  padding-top: 22px;

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  color: rgba(255, 255, 255, 0.35);

  font-size: 10px;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {
  .container {
    width: min(calc(100% - 48px), var(--container));
  }

  .main-nav {
    gap: 18px;
  }

  .header-inner {
    gap: 20px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-inner {
    grid-template-columns: 1fr 300px;

    gap: 50px;
  }

  .hero h1 {
    font-size: clamp(50px, 8vw, 76px);
  }

  .hero-image-note {
    right: -15px;
  }

  .about-grid {
    gap: 60px;
  }

  .service-main {
    grid-template-columns: 220px 1fr;
  }

  .contact-grid {
    gap: 70px;
  }

  .footer-links {
    gap: 45px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  /* HEADER */

  .header-inner {
    min-height: 80px;
  }

  .main-nav {
    position: absolute;

    top: 80px;
    left: 18px;
    right: 18px;

    display: none;
    flex-direction: column;
    align-items: stretch;

    padding: 18px;

    background: #171717;

    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
  }

  .main-nav a::after {
    display: none;
  }

  .preview-button {
    margin-left: auto;

    padding: 9px 11px;

    font-size: 10px;
  }

  .menu-toggle {
    display: block;
  }

  /* HERO */

  .hero {
    min-height: auto;

    padding: 140px 0 90px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;

    align-items: stretch;

    gap: 55px;
  }

  .hero h1 {
    font-size: clamp(50px, 15vw, 75px);
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-image-wrapper {
    width: 75%;

    margin-left: auto;
  }

  .hero-image-note {
    right: -10px;
  }

  .scroll-indicator {
    display: none;
  }

  /* INTRO */

  .intro-section {
    padding: 90px 0;
  }

  .intro-grid {
    display: block;
  }

  .intro-number {
    margin-bottom: 25px;
  }

  .intro-content h2 {
    font-size: 44px;
  }

  /* ABOUT */

  .about-section {
    padding-bottom: 90px;
  }

  .about-grid {
    display: flex;
    flex-direction: column;

    gap: 50px;
  }

  .about-content h2 {
    font-size: 46px;
  }

  .about-stats {
    gap: 30px;
  }

  .about-stats strong {
    font-size: 30px;
  }

  /* PORTFOLIO */

  .portfolio-section {
    padding: 90px 0;
  }

  .section-heading {
    display: block;

    margin-bottom: 45px;
  }

  .section-heading > p {
    margin-top: 25px;
  }

  .portfolio-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 15px;
  }

  .portfolio-item,
  .portfolio-item.portfolio-large,
  .portfolio-item.portfolio-wide {
    grid-column: auto;
    grid-row: auto;

    min-height: 430px;
  }

  .portfolio-item.portfolio-large {
    min-height: 550px;
  }

  /* SERVICES */

  .services-section {
    padding: 90px 0;
  }

  .service {
    grid-template-columns: 45px 1fr 25px;

    gap: 10px;

    padding: 25px 0;
  }

  .service-main {
    display: block;
  }

  .service h3 {
    margin-bottom: 8px;

    font-size: 27px;
  }

  .service p {
    font-size: 13px;
  }

  /* CTA */

  .cta-section {
    padding: 100px 0;
  }

  .cta-section h2 {
    font-size: 55px;
  }

  /* CONTACT */

  .contact-section {
    padding: 90px 0;
  }

  .contact-grid {
    display: block;
  }

  .contact-intro {
    margin-bottom: 60px;
  }

  .contact-intro h2 {
    font-size: 54px;
  }

  .form-row {
    grid-template-columns: 1fr;

    gap: 0;
  }

  /* FOOTER */

  .footer-top {
    display: block;

    padding-bottom: 45px;
  }

  .footer-links {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 40px;

    margin-top: 50px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;

    margin-bottom: 8px;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {
  .logo-text {
    display: none;
  }

  .preview-button {
    padding: 8px 9px;
  }

  .hero-image-wrapper {
    width: 90%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }

  .about-stats {
    flex-wrap: wrap;
  }

  .portfolio-item,
  .portfolio-item.portfolio-large,
  .portfolio-item.portfolio-wide {
    min-height: 360px;
  }

  .portfolio-item.portfolio-large {
    min-height: 450px;
  }

  .service {
    grid-template-columns: 30px 1fr 15px;
  }

  .service-number {
    font-size: 9px;
  }

  .service-arrow {
    font-size: 17px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
