:root {
  --bg: #f7f5f2;
  --panel: #ffffff;
  --text: #060606;
  --muted: #9a9a9a;
  --line: #ded9d3;
  --accent: #ff4b7a;
  --accent-soft: #ffebe8;
  --orange: #ff9d4f;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.95), transparent 32%),
    linear-gradient(180deg, #fbfaf8 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

button,
a {
  font: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 20px 26px 26px 18px;
}

.sidebar {
  position: fixed;
  top: 20px;
  left: 18px;
  width: 222px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  color: var(--text);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  text-decoration: none;
}

.brand span {
  font-size: 0.52em;
  vertical-align: top;
}

.menu {
  display: flex;
  flex-direction: column;
}

.menu-link {
  position: relative;
  padding: 18px 4px;
  border-top: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.menu-link:last-child {
  border-bottom: 1px solid var(--line);
}

.menu-link.is-active,
.menu-link:hover {
  color: #7f7f7f;
  transform: translateX(4px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  margin-left: 244px;
  min-height: calc(100vh - 46px);
  margin-bottom: 54px;
}

.panel {
  position: relative;
  overflow: hidden;
  background: var(--panel);
}

.panel-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.panel-photo {
  min-height: 760px;
  background: #dfe4e8;
}

.right-column {
  display: grid;
  grid-template-rows: minmax(380px, 54vh) auto;
  gap: 22px;
}

.panel-product {
  min-height: 400px;
  background: #dfe4e8;
}

.headline-block {
  padding: 12px 4px 0;
}

.about-section,
.projects-section,
.contact-section {
  margin-left: 244px;
}

.section-header {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(2.3rem, 4.1vw, 4rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.about-card h3 {
  margin: 18px 0 8px;
  font-size: clamp(1.7rem, 2.3vw, 2.5rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.about-card p {
  margin: 0;
  max-width: 60ch;
  color: #2f3138;
  font-size: 0.98rem;
  line-height: 1.7;
}

.about-visual {
  position: relative;
  overflow: hidden;
  min-height: 466px;
  background: #f2f0ed;
}

.about-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.contact-section {
  padding: 60px 0 30px;
}

.projects-section {
  padding: 62px 0 12px;
}

.projects-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 34px;
}

.projects-copy {
  padding-top: 6px;
}

.projects-kicker {
  margin: 0 0 10px;
  color: #7d858f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.projects-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.projects-copy p:last-child {
  margin: 0;
  color: #2f3138;
  font-size: 1rem;
  line-height: 1.8;
}

.projects-showcase {
  margin: 0;
  border: 1px solid #ebe7e1;
  background: linear-gradient(180deg, #ffffff, #f6f3ee);
  box-shadow: var(--shadow);
}

.projects-showcase img {
  width: 100%;
  display: block;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  padding: 26px 24px;
  border: 1px solid #e8e2da;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 244, 239, 0.92));
}

.project-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.project-card p {
  margin: 0 0 14px;
  color: #2f3138;
  font-size: 0.97rem;
  line-height: 1.75;
}

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

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.contact-intro {
  padding: 8px 0 0;
}

.contact-intro h3 {
  margin: 0 0 14px;
  max-width: 12ch;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.contact-intro p:last-child,
.contact-card p,
.contact-close {
  margin: 0;
  color: #2f3138;
  font-size: 0.98rem;
  line-height: 1.8;
}

.contact-card {
  padding: 24px;
  border: 1px solid #e8e2da;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 239, 0.92));
}

.contact-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.contact-card--wide {
  grid-column: 1 / -1;
}

.contact-details {
  margin: 18px 0 0;
}

.contact-details div {
  margin-bottom: 14px;
}

.contact-details dt {
  margin-bottom: 4px;
  color: #7d858f;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0;
  font-size: 1rem;
}

.contact-details a {
  color: var(--text);
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  color: #7d858f;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #ddd5cb;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #151515;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-actions {
  display: grid;
  gap: 10px;
}

.submit-button {
  justify-self: start;
  padding: 13px 24px;
  border: 0;
  background: #050505;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: #7d858f;
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-status {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-status.is-success {
  color: #1d6b45;
}

.form-status.is-error {
  color: #a12b2b;
}

.contact-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #2f3138;
}

.contact-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.contact-close {
  margin-top: 16px;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 8px;
  color: #8c8b8b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.headline-block h1 {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(3.2rem, 5vw, 5.4rem);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.download-button {
  position: fixed;
  right: 24px;
  bottom: 20px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 115, 154, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  box-shadow: 0 12px 30px rgba(255, 75, 122, 0.1);
  cursor: pointer;
}

.download-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@media (max-width: 1100px) {
  .page-shell {
    padding: 18px;
  }

  .sidebar {
    position: static;
    width: auto;
    gap: 14px;
    margin-bottom: 20px;
  }

  .menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .menu-link {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-left: 0;
    min-height: auto;
  }

  .about-section,
  .projects-section,
  .contact-section {
    margin-left: 0;
  }

  .panel-photo {
    min-height: 620px;
  }

  .right-column {
    grid-template-rows: auto auto;
  }

  .headline-block h1 {
    max-width: 12ch;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .projects-intro,
  .contact-layout,
  .project-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .menu {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 18px;
  }

  .panel-photo {
    min-height: 480px;
  }

  .panel-product {
    min-height: 300px;
  }

  .headline-block h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

}
