:root {
  --color-ink: #111827;
  --color-muted: #64748b;
  --color-soft: #f6f8fb;
  --color-line: #dbe3ed;
  --color-surface: #ffffff;
  --color-accent: #2563eb;
  --color-accent-dark: #1d4ed8;
  --color-warm: #f2c078;
  --color-green: #77a88d;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.08);
  --radius: 8px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Image protection: raises friction against casual saving of the personal photos.
   Honest limit: cannot stop screenshots or someone opening the file's direct URL. */
.hero-photo,
.photo-frame {
  position: relative;
}

.hero-photo img,
.photo-frame img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.hero-photo::after,
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: clamp(22px, 4vw, 42px);
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(246, 248, 251, 0.88);
  border-bottom: 1px solid rgba(219, 227, 237, 0.75);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-weight: 800;
}

.brand-logo {
  width: clamp(146px, 12vw, 166px);
  height: auto;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #ffffff;
  background: var(--color-ink);
  border-radius: var(--radius);
}

.site-nav {
  display: flex;
  gap: 24px;
  color: var(--color-muted);
  font-size: 0.96rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-ink);
}

.language-switcher {
  display: inline-flex;
  justify-self: end;
  gap: 6px;
  padding: 4px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: 999px;
}

.language-switcher button {
  min-width: 38px;
  height: 30px;
  color: var(--color-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
}

.language-switcher button.is-active {
  color: #ffffff;
  background: var(--color-ink);
}

.section {
  padding: clamp(64px, 8vw, 104px) clamp(20px, 4vw, 56px);
}

.section-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 73px);
  display: grid;
  align-items: center;
  padding-top: clamp(56px, 8vw, 88px);
  padding-bottom: clamp(56px, 8vw, 88px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.hero-photo {
  margin: 0;
  overflow: hidden;
  background: #e9eef5;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5.8vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.page-title {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.05;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 16px 0 16px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 20px 0 0;
  color: var(--color-ink);
  font-size: clamp(1.14rem, 2.2vw, 1.45rem);
  font-weight: 750;
}

.hero-copy {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  color: #ffffff;
  background: var(--color-accent);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--color-accent-dark);
}

.button-secondary {
  color: var(--color-ink);
  background: #ffffff;
  border-color: var(--color-line);
}

.split-layout,
.contact-layout,
.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
}

.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.photo-panel {
  margin: 0;
}

.photo-frame {
  overflow: hidden;
  background: #e9eef5;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-copy p {
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 1rem;
}

.project-section {
  background: #ffffff;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 36px;
}

.featured-project {
  align-items: stretch;
}

.project-media {
  display: grid;
  min-height: 480px;
  place-items: center;
  margin: 0;
  overflow: hidden;
  color: rgba(17, 24, 39, 0.52);
  background:
    linear-gradient(135deg, rgba(119, 168, 141, 0.18), rgba(242, 192, 120, 0.2)),
    #f4f7fb;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.project-gallery-image {
  width: 100%;
  height: 100%;
  max-height: 520px;
  padding: 16px;
  object-fit: contain;
}

.project-media span {
  max-width: 220px;
  text-align: center;
  font-weight: 850;
}

.project-media:not(.is-empty) .project-gallery-fallback {
  display: none;
}

.project-media.is-empty .project-gallery-image {
  display: none;
}

.project-copy {
  padding: clamp(28px, 5vw, 54px) 0;
}

.pill {
  display: inline-flex;
  padding: 9px 16px;
  color: var(--color-accent);
  background: #dbeafe;
  border-radius: 999px;
  font-weight: 850;
}

.project-copy p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
}

.project-list {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  padding: 0;
  color: var(--color-muted);
  list-style: none;
}

.project-list li {
  position: relative;
  padding-left: 22px;
}

.project-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--color-green);
  border-radius: 999px;
}

.text-link {
  display: inline-flex;
  color: var(--color-ink);
  font-weight: 850;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--color-accent);
}

.project-files-section {
  background: var(--color-soft);
}

.standalone-page-section {
  min-height: calc(100vh - 73px);
}

.links-section {
  background: var(--color-soft);
}

.project-documents-list {
  display: grid;
  gap: clamp(58px, 8vw, 96px);
}

.project-document {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.project-document-copy h3 {
  margin-top: 0;
}

.project-document-copy p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
}

.downloads-label {
  margin-top: 26px !important;
  color: var(--color-ink) !important;
  font-size: 0.86rem !important;
  font-weight: 850;
  text-transform: uppercase;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.download-box,
.resource-link,
.contact-link {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, transform 160ms ease;
}

.download-box:hover,
.download-box:focus-visible,
.resource-link:hover,
.resource-link:focus-visible,
.contact-link:hover,
.contact-link:focus-visible {
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

.download-box span,
.resource-link span,
.contact-link span {
  color: var(--color-ink);
  font-weight: 850;
}

.download-box small,
.resource-link small,
.contact-link small {
  color: var(--color-muted);
  font-size: 0.88rem;
}

.download-box.is-disabled {
  color: var(--color-muted);
  background: #f9fbfd;
  pointer-events: none;
  opacity: 0.68;
}

.pdf-preview {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.pdf-frame {
  display: block;
  width: 100%;
  height: min(62vh, 560px);
  min-height: 420px;
  background: #ffffff;
  border: 0;
}

.pdf-image-link {
  display: block;
  cursor: zoom-in;
}

.pdf-image {
  display: block;
  width: 100%;
  height: auto;
}

.pdf-placeholder {
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: 28px;
  color: var(--color-muted);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(119, 168, 141, 0.08)),
    #ffffff;
}

.pdf-scroll-hint {
  margin: 0;
  padding: 10px 14px;
  color: var(--color-muted);
  background: #f9fbfd;
  border-top: 1px solid var(--color-line);
  font-size: 0.86rem;
}

.external-links-block {
  margin-top: clamp(64px, 8vw, 104px);
}

.compact-heading {
  margin-bottom: 24px;
}

.resource-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 32px);
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.contact-form h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.05;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--color-ink);
  font-size: 0.92rem;
  font-weight: 780;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--color-ink);
  background: #f9fbfd;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 170px;
}

.word-limit-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.contact-form .button {
  width: 100%;
}

.turnstile-widget {
  min-height: 65px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.94rem;
}

@media (max-width: 840px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px 18px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 0.92rem;
  }

  .language-switcher {
    grid-column: 2;
    grid-row: 1;
  }

  .split-layout,
  .hero-inner,
  .project-document,
  .contact-layout,
  .featured-project {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    max-width: 420px;
  }

  .resource-links {
    grid-template-columns: 1fr;
  }

  .project-media {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 14px;
    padding: 14px 18px;
  }

  .brand span:last-child {
    display: inline;
  }

  .brand-logo {
    width: 142px;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 3.5rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .pdf-frame {
    height: 520px;
    min-height: 520px;
  }

}
