:root {
  --ink: #303030;
  --muted: #6f6f6f;
  --line: #e7e7e7;
  --paper: #ffffff;
  --soft: #f7f7f7;
  --accent: #303030;
  --accent-2: #8a8178;
  --max: 1120px;

  --header-height: 92px;

  --hero-blur: 0px;
  --hero-scale: 1;
  --hero-overlay: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Raleway, Arial, sans-serif;
  color: var(--ink);
  background: #f9f9f9;
  line-height: 1.65;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ==========================================================
   HEADER / NAVIGATION
   ========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 40px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  transition: min-height 0.2s ease;
}

.site-header.scrolled .nav-wrap,
body.scrolled .site-header .nav-wrap {
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.95);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 18px;
  line-height: 1.1;
}

.brand-text small {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.site-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-menu li {
  margin: 0;
  padding: 0;
}

.site-menu a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 0;
  line-height: 1.35;
  white-space: nowrap;
}

.site-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.2s ease;
}

.site-menu a:hover::after,
.site-menu a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.92);
  padding: 9px 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

/* ==========================================================
   HERO / HOME
   ========================================================== */

.hero {
  min-height: calc(100vh - var(--header-height));
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #e9e6e1, #bdb6ae);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.40),
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.00)
    ),
    var(--hero-photo);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(var(--hero-blur));
  transform: scale(var(--hero-scale));
  transition: filter 0.08s linear, transform 0.08s linear;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, var(--hero-overlay));
  pointer-events: none;
  z-index: -1;
}

.hero .container,
.hero-grid,
.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-grid {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
  padding: 70px 0;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow,
.section-kicker,
.post-date {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.lead {
  margin: 28px 0 0;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.btn.primary {
  color: #fff;
  background: var(--ink);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.42);
}

.photo-note,
.edit-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

code {
  background: #eee;
  padding: 2px 5px;
  border-radius: 3px;
}

/* ==========================================================
   GENERAL SECTIONS
   ========================================================== */

.section {
  padding: 104px 0 92px;
  scroll-margin-top: 0;
}

.section.light {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  text-align: center;
  margin-bottom: 52px;
}

.section-title h2,
.two-col h2,
.contact-grid h2 {
  font-size: clamp(30px, 4vw, 44px);
  text-transform: uppercase;
}

.section-title h2::after,
.two-col h2::after,
.contact-grid h2::after {
  content: "";
  display: block;
  width: 180px;
  height: 1px;
  background: var(--ink);
  margin: 22px auto 0;
  box-shadow: 0 6px 0 #aaa;
}

.two-col {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.two-col h2::after,
.contact-grid h2::after {
  margin-left: 0;
}

.text-block p {
  margin-top: 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag-cloud span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

/* ==========================================================
   ONGOING PROJECTS
   ========================================================== */

.project-table {
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 34px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.project-row:last-child {
  border-bottom: 0;
}

.project-title {
  font-weight: 800;
  font-size: 20px;
  line-height: 1.35;
}

/* ==========================================================
   PUBLICATIONS
   ========================================================== */

.publication-list {
  display: grid;
  gap: 22px;
  padding-left: 22px;
}

.publication-list li {
  padding-left: 8px;
}

.pub-text {
  display: block;
  margin-bottom: 6px;
}

.inline-link {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* ==========================================================
   PRESENTATIONS
   ========================================================== */

.presentation-list {
  display: grid;
  gap: 34px;
}

.presentation-card {
  display: grid;
  grid-template-columns: 310px 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
}

.presentation-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  background: linear-gradient(135deg, #dedbd6, #aaa);
}

.presentation-body {
  padding: 30px;
}

.presentation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.presentation-meta span {
  border: 1px solid var(--line);
  padding: 7px 10px;
  font-size: 13px;
  background: var(--soft);
}

.presentation-body h3 {
  font-size: 26px;
  margin-bottom: 12px;
}

/* ==========================================================
   BLOG TEASER
   ========================================================== */

.blog-teaser .btn {
  margin-top: 12px;
}

/* ==========================================================
   CONTACT
   ========================================================== */

.contact-section {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-grid address {
  font-style: normal;
  margin-top: 24px;
}

.contact-form {
  display: grid;
  gap: 15px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 13px 14px;
  font: inherit;
  background: #fbfbfb;
}

textarea {
  resize: vertical;
}

/* ==========================================================
   FOOTER
   ========================================================== */

.footer {
  background: var(--ink);
  color: #fff;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer a {
  color: #fff;
  font-weight: 800;
}

/* ==========================================================
   BLOG / ARTICLE PAGES
   ========================================================== */

.page-main {
  padding-top: 0;
}

.page-hero {
  padding: 90px 0 50px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  text-transform: uppercase;
  max-width: 850px;
}

.blog-index {
  max-width: 860px;
}

.blog-list-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.blog-list-item h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.blog-list-item h2 a {
  text-decoration: none;
}

.blog-list-item h2 a:hover {
  text-decoration: underline;
}

.article-header {
  min-height: 58vh;
  display: grid;
  align-items: end;
  position: relative;
  background-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12)),
    var(--article-photo),
    linear-gradient(135deg, #d9d4cd, #888);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.article-header-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 70px;
}

.article-header h1 {
  font-size: clamp(36px, 5vw, 62px);
  max-width: 880px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.article-content {
  max-width: 820px;
  padding: 70px 0;
  font-size: 18px;
}

.article-content h2 {
  margin-top: 42px;
  font-size: 30px;
}

.article-content figure {
  margin: 36px 0;
}

.article-content figure img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  background: linear-gradient(135deg, #dedbd6, #aaa);
}

.article-content figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 920px) {
  :root {
    --header-height: 82px;
  }

  .nav-wrap {
    min-height: var(--header-height);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-menu {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 14px 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    border: 1px solid var(--line);
  }

  .site-menu.open {
    display: flex;
  }

  .site-menu li {
    width: 100%;
  }

  .site-menu a {
    display: block;
    width: 100%;
    padding: 11px 0;
  }

  .two-col,
  .contact-grid,
  .project-row,
  .presentation-card {
    grid-template-columns: 1fr;
  }

  .presentation-card img {
    height: 260px;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 78px;
  }

  .container,
  .nav-wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .brand-text small {
    display: none;
  }

  .section {
    padding: 86px 0 70px;
  }

  .hero-actions,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-menu {
    right: 14px;
    left: 14px;
  }
}

/* ==========================================================
   MOBILE HOME SECTION FIX
   Keeps the hero image usable on iPhone screens
   ========================================================== */

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    display: block;
    padding: 0;
    background: #f4f2ef;
  }

  .hero::before {
    position: relative;
    display: block;
    width: 100%;
    height: 56vh;
    min-height: 390px;
    max-height: 520px;
    inset: auto;
    background-image: var(--hero-photo);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    filter: none !important;
    transform: none !important;
    z-index: 0;
  }

  .hero-overlay {
    display: none;
  }

  .hero-grid {
    min-height: auto;
    display: block;
    padding: 34px 0 56px;
  }

  .hero-copy {
    max-width: 100%;
    background: rgba(255, 255, 255, 0.94);
    padding: 26px 22px;
    margin-top: -34px;
    position: relative;
    z-index: 3;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .hero h1 span {
    font-size: 30px !important;
  }

  .hero .eyebrow span {
    font-size: 14px !important;
  }

  .lead {
    font-size: 17px;
    line-height: 1.55;
    margin-top: 20px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .hero::before {
    height: 52vh;
    min-height: 360px;
    background-size: cover;
    background-position: center top;
  }

  .hero-copy {
    margin-top: -28px;
    padding: 24px 20px;
  }

  .hero h1,
  .hero h1 span {
    font-size: 27px !important;
  }

  .lead {
    font-size: 16px;
  }
}





/* Temporarily hide the blog section */
#blog {
  display: none;
}







