/*
Theme Name: Hermann Sunait Portfolio 3.0
Theme URI: https://hermannsunait.com
Author: Hermann Sunait
Description: Bilingual portfolio theme for the woodcarver Hermann Sunait.
Version: 3.0.0
Text Domain: hermann-sunait
*/

:root {
  --hs-bg: #f8f6f1;
  --hs-paper: #eee9df;
  --hs-paper-2: #e6ded1;
  --hs-ink: #211d19;
  --hs-copy: #49423b;
  --hs-muted: #786e64;
  --hs-line: rgba(58, 46, 36, .18);
  --hs-accent: #9f6b3c;
  --hs-accent-deep: #6f482a;
  --hs-dark: #1c1a18;
  --hs-white: #fffdf8;
  --hs-shadow: 0 24px 60px rgba(38, 29, 22, .13);
  --hs-radius: 3px;
  --hs-max: 1440px;
  --hs-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --hs-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

body {
  margin: 0;
  background: var(--hs-bg);
  color: var(--hs-ink);
  font-family: var(--hs-serif);
  font-size: 18px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.hs-menu-open { overflow: hidden; }

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

a { color: inherit; text-underline-offset: .18em; }
button { color: inherit; font: inherit; }

.hs-wrap {
  width: min(calc(100% - 72px), var(--hs-max));
  margin-inline: auto;
}

/* Header */
.hs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--hs-line);
  background: color-mix(in srgb, var(--hs-bg) 94%, transparent);
  backdrop-filter: blur(18px);
}

.admin-bar .hs-header { top: 32px; }

.hs-header-inner {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.hs-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  min-width: 210px;
}


.hs-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hs-brand-name {
  font-size: 1.28rem;
  line-height: 1.05;
  letter-spacing: .095em;
  text-transform: uppercase;
}

.hs-brand-role {
  color: var(--hs-muted);
  font-family: var(--hs-sans);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hs-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2vw, 34px);
  font-family: var(--hs-sans);
  font-size: .77rem;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.hs-nav > a,
.hs-nav-dropdown-toggle {
  position: relative;
  border: 0;
  background: none;
  padding: 13px 0;
  text-decoration: none;
  cursor: pointer;
}

.hs-nav > a::after,
.hs-nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .22s ease;
}

.hs-nav > a:hover::after,
.hs-nav > a:focus-visible::after,
.hs-nav-dropdown-toggle:hover::after,
.hs-nav-dropdown-toggle:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hs-nav-dropdown { position: relative; }

.hs-nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  text-transform: uppercase;
}

.hs-nav-dropdown-toggle span {
  display: inline-block;
  font-size: .9rem;
  transition: transform .2s ease;
}

.hs-nav-dropdown.is-open .hs-nav-dropdown-toggle span { transform: rotate(180deg); }

.hs-nav-submenu {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  width: min(390px, 80vw);
  padding: 12px;
  border: 1px solid var(--hs-line);
  background: var(--hs-white);
  box-shadow: 0 18px 45px rgba(34, 27, 21, .14);
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.hs-nav-dropdown.is-open .hs-nav-submenu,
.hs-nav-dropdown:hover .hs-nav-submenu,
.hs-nav-dropdown:focus-within .hs-nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.hs-nav-submenu a {
  display: block;
  padding: 12px 13px;
  color: var(--hs-copy);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
  font-size: .84rem;
}

.hs-nav-submenu a:hover,
.hs-nav-submenu a:focus-visible {
  color: var(--hs-ink);
  background: var(--hs-paper);
}

.hs-lang-switch {
  padding: 8px 10px !important;
  border: 1px solid var(--hs-line);
}

.hs-lang-switch::after { display: none; }

.hs-menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: none;
  padding: 9px;
  cursor: pointer;
}

.hs-menu-button span {
  display: block;
  width: 28px;
  height: 1px;
  margin: 7px auto;
  background: var(--hs-ink);
  transition: transform .22s ease, opacity .22s ease;
}

.hs-menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.hs-menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Typography */
.hs-eyebrow {
  margin: 0 0 14px;
  color: var(--hs-accent);
  font-family: var(--hs-sans);
  font-size: .69rem;
  letter-spacing: .17em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hs-section-title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5.35rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}

.hs-rich-copy {
  max-width: 780px;
  color: var(--hs-copy);
  font-size: clamp(1rem, 1.12vw, 1.12rem);
}

.hs-rich-copy p { margin: 0 0 1.15em; }
.hs-rich-copy p:last-child { margin-bottom: 0; }

.hs-photo-note {
  color: var(--hs-muted);
  font-family: var(--hs-sans);
  font-size: .8rem;
  line-height: 1.6;
}

/* Hero */
.hs-hero {
  padding: clamp(52px, 7vw, 104px) 0 clamp(84px, 10vw, 150px);
}

.hs-hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, .88fr) minmax(0, 1.12fr);
  grid-template-areas:
    "portrait heading"
    "portrait body";
  column-gap: clamp(58px, 8vw, 132px);
  row-gap: 30px;
  align-items: start;
}

.hs-hero-heading {
  grid-area: heading;
  align-self: end;
  max-width: 790px;
}

.hs-portrait-wrap {
  grid-area: portrait;
  overflow: hidden;
  background: #ddd7cf;
  box-shadow: var(--hs-shadow);
}

.hs-portrait {
  width: 100%;
  height: auto;
}

.hs-hero-body {
  grid-area: body;
  max-width: 790px;
}

.hs-title {
  margin: 0;
  font-size: clamp(3.4rem, 7.1vw, 7.4rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .89;
}

.hs-role {
  margin: 22px 0 0;
  color: var(--hs-accent-deep);
  font-size: clamp(1.65rem, 3vw, 2.9rem);
  line-height: 1.05;
}

.hs-rule {
  width: 82px;
  height: 2px;
  margin: 30px 0 32px;
  background: var(--hs-accent);
}

.hs-about-text {
  color: var(--hs-copy);
  font-size: clamp(1rem, 1.12vw, 1.12rem);
}

.hs-about-text p { margin: 0 0 1.05em; }
.hs-about-text p:last-child { margin-bottom: 0; }

/* Sections */
.hs-section { padding: clamp(88px, 10vw, 150px) 0; }

.hs-section-head {
  margin-bottom: clamp(42px, 6vw, 76px);
}

.hs-section-head.is-centered {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.hs-directions-section {
  border-block: 1px solid var(--hs-line);
  background: var(--hs-paper);
}

.hs-projects-section { background: var(--hs-bg); }

/* Cards */
.hs-direction-grid,
.hs-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hs-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: #2d2925;
  color: white;
  text-decoration: none;
  isolation: isolate;
}

.hs-card-image {
  display: block;
  width: 100%;
  height: 100%;
}

.hs-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.65,.25,1), filter .4s ease;
}

.hs-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(16, 13, 11, .84) 0%, rgba(16, 13, 11, .28) 44%, rgba(16, 13, 11, .04) 72%),
    linear-gradient(to right, rgba(16, 13, 11, .18), transparent 60%);
  transition: background .35s ease;
}

.hs-card-title {
  z-index: 2;
  font-size: clamp(1.35rem, 2.6vw, 2.45rem);
  line-height: 1.08;
}

.hs-card-arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 50%;
  font-family: var(--hs-sans);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform .28s ease, background .28s ease, color .28s ease;
}

.hs-card:hover .hs-card-image img,
.hs-card:focus-visible .hs-card-image img {
  transform: scale(1.035);
  filter: brightness(.92);
}

.hs-card:hover .hs-card-arrow,
.hs-card:focus-visible .hs-card-arrow {
  transform: translate(3px, -3px);
  background: white;
  color: var(--hs-ink);
}

.hs-card:focus-visible {
  outline: 3px solid var(--hs-accent);
  outline-offset: 4px;
}

.hs-direction-card { aspect-ratio: 16 / 10; }

.hs-direction-card .hs-card-title {
  position: absolute;
  left: 28px;
  right: 90px;
  bottom: 28px;
}

.hs-direction-card.is-contain .hs-card-image {
  background: #251f1a;
}

.hs-direction-card.is-contain .hs-card-image img {
  object-fit: contain;
  padding: 15px;
}

.hs-project-card { aspect-ratio: 4 / 3; }

.hs-project-card-copy {
  position: absolute;
  left: 25px;
  right: 88px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hs-project-card .hs-card-title {
  font-size: clamp(1.25rem, 2.1vw, 2rem);
}

.hs-card-meta {
  color: rgba(255,255,255,.75);
  font-family: var(--hs-sans);
  font-size: .68rem;
  letter-spacing: .075em;
  line-height: 1.45;
  text-transform: uppercase;
}

/* Professional foundations */
.hs-foundations {
  border-block: 1px solid var(--hs-line);
  background: var(--hs-white);
}

.hs-foundations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  grid-template-areas:
    "image heading"
    "image body";
  column-gap: clamp(56px, 8vw, 130px);
  row-gap: 30px;
  align-items: start;
}

.hs-foundations-heading {
  grid-area: heading;
  align-self: end;
}

.hs-foundations-image {
  grid-area: image;
  margin: 0;
}

.hs-foundations-image-frame {
  overflow: hidden;
  background: #ddd6ca;
  box-shadow: var(--hs-shadow);
}

.hs-foundations-image img {
  width: 100%;
  height: auto;
}

.hs-foundations-caption {
  padding-top: 15px;
  color: var(--hs-muted);
  font-family: var(--hs-sans);
  font-size: .76rem;
  line-height: 1.55;
}

.hs-foundations-caption p {
  margin: 0;
}

.hs-foundations-caption .hs-foundations-meta {
  margin-top: 7px;
  color: var(--hs-accent-deep);
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.hs-foundations-body {
  grid-area: body;
}

.hs-foundations-heading .hs-section-title {
  margin-bottom: 0;
}

/* Teaching teaser */
.hs-teaching-teaser { background: var(--hs-paper); }

.hs-teaching-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
  min-height: 520px;
  border: 1px solid var(--hs-line);
  background: var(--hs-white);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 20px 50px rgba(45, 35, 26, .08);
}

.hs-teaching-image {
  overflow: hidden;
  min-height: 430px;
}

.hs-teaching-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.hs-teaching-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 90px);
}

.hs-teaching-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: -.04em;
  line-height: .98;
}

.hs-teaching-caption {
  max-width: 350px;
  margin-top: 26px;
  color: var(--hs-copy);
}

.hs-teaching-copy .hs-card-arrow {
  right: clamp(34px, 5vw, 68px);
  bottom: clamp(34px, 5vw, 60px);
  border-color: var(--hs-accent);
  color: var(--hs-accent);
}

.hs-teaching-card:hover .hs-teaching-image img,
.hs-teaching-card:focus-visible .hs-teaching-image img {
  transform: scale(1.025);
}

.hs-teaching-card:hover .hs-card-arrow,
.hs-teaching-card:focus-visible .hs-card-arrow {
  transform: translate(3px,-3px);
  background: var(--hs-accent);
  color: white;
}

.hs-teaching-card:focus-visible {
  outline: 3px solid var(--hs-accent);
  outline-offset: 4px;
}

/* Inner page hero */
.hs-view-main { min-height: 70vh; }

.hs-page-hero {
  padding: clamp(85px, 10vw, 150px) 0 clamp(65px, 8vw, 110px);
  border-bottom: 1px solid var(--hs-line);
  background: var(--hs-white);
}

.hs-page-hero-inner { max-width: 1100px; }

.hs-page-hero h1,
.hs-contact-page h1 {
  margin: 0;
  font-size: clamp(3.35rem, 7vw, 7.3rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .91;
}

.hs-project-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.4rem, 3.75vw, 4.1rem);
  font-weight: 400;
  letter-spacing: -.043em;
  line-height: .98;
  text-wrap: balance;
}

.hs-page-intro {
  margin: 26px 0 0;
  color: var(--hs-muted);
  font-family: var(--hs-sans);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Gallery */
.hs-gallery-section { background: var(--hs-bg); }

.hs-gallery-grid {
  display: grid;
  gap: clamp(38px, 4.5vw, 62px) clamp(22px, 2.4vw, 34px);
  align-items: start;
}

.hs-gallery-grid--direction {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hs-gallery-grid--project,
.hs-gallery-grid--teaching {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hs-gallery-item {
  min-width: 0;
  margin: 0;
}

/* Every gallery item is presented as an equal preview tile. */
.hs-gallery-item.is-wide { grid-column: auto; }

.hs-gallery-link {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e3ddd3;
  cursor: zoom-in;
  text-decoration: none;
}

.hs-gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease, opacity .4s ease;
}

.hs-gallery-item.is-contain .hs-gallery-link {
  background: #29231e;
  padding: 12px;
}

.hs-gallery-item.is-contain .hs-gallery-link img {
  object-fit: contain;
}

.hs-gallery-link:hover img,
.hs-gallery-link:focus-visible img {
  transform: scale(1.018);
  opacity: .96;
}

.hs-gallery-link:focus-visible {
  outline: 3px solid var(--hs-accent);
  outline-offset: 4px;
}

.hs-gallery-item figcaption {
  padding-top: 14px;
}

.hs-gallery-title {
  font-size: clamp(1.02rem, 1.28vw, 1.25rem);
  line-height: 1.32;
}

.hs-gallery-meta {
  margin-top: 6px;
  color: var(--hs-muted);
  font-family: var(--hs-sans);
  font-size: .66rem;
  letter-spacing: .07em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Project pages */
.hs-project-hero {
  padding: clamp(70px, 8vw, 120px) 0;
  border-bottom: 1px solid var(--hs-line);
  background: var(--hs-white);
}

.hs-project-hero-grid {
  display: grid;
  grid-template-columns: minmax(430px, .96fr) minmax(0, 1.04fr);
  gap: clamp(52px, 6vw, 92px);
  align-items: center;
}

.hs-project-hero-copy { max-width: 780px; }

.hs-project-scope {
  margin: 28px 0 0;
  color: var(--hs-copy);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.3;
}

.hs-project-meta {
  margin: 16px 0 32px;
  color: var(--hs-muted);
  font-family: var(--hs-sans);
  font-size: .72rem;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hs-project-hero-image {
  display: block;
  overflow: hidden;
  background: #ddd6cc;
  box-shadow: var(--hs-shadow);
  cursor: zoom-in;
}

.hs-project-hero-image img {
  width: 100%;
  height: auto;
  transition: transform .4s ease;
}

.hs-project-hero-image:hover img,
.hs-project-hero-image:focus-visible img { transform: scale(1.012); }

.hs-project-nav {
  padding-bottom: clamp(76px, 9vw, 130px);
}

.hs-project-nav a {
  color: var(--hs-accent-deep);
  font-family: var(--hs-sans);
  font-size: .78rem;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

/* Teaching page */
.hs-teaching-intro-grid {
  display: grid;
  grid-template-columns: minmax(330px, .85fr) minmax(0, 1.15fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: start;
}

.hs-teaching-intro blockquote {
  margin: 32px 0 0;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--hs-accent);
  color: var(--hs-ink);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.45;
}

/* Contact */
.hs-contact-page {
  min-height: 68vh;
  display: grid;
  align-items: center;
  padding: clamp(90px, 12vw, 180px) 0;
  background: var(--hs-paper);
}

.hs-contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(350px, 1.1fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: start;
}

.hs-contact-panel {
  padding: clamp(35px, 5vw, 70px);
  border: 1px solid var(--hs-line);
  background: var(--hs-white);
}

.hs-contact-panel p {
  margin: 0 0 28px;
  color: var(--hs-copy);
}

.hs-email {
  color: var(--hs-accent-deep);
  font-size: clamp(1.2rem, 2.4vw, 2.1rem);
  overflow-wrap: anywhere;
}

/* Footer */
.hs-footer {
  padding: 48px 0;
  background: var(--hs-dark);
  color: rgba(255,255,255,.78);
}

.hs-footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 36px;
}

.hs-footer-name {
  display: flex;
  flex-direction: column;
}

.hs-footer-name strong {
  color: white;
  font-weight: 400;
  letter-spacing: .04em;
}

.hs-footer-name span,
.hs-footer-copy {
  color: rgba(255,255,255,.48);
  font-family: var(--hs-sans);
  font-size: .68rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hs-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  font-family: var(--hs-sans);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hs-footer-links a { text-decoration: none; }
.hs-footer-links a:hover,
.hs-footer-links a:focus-visible { color: white; }

/* Lightbox */
.hs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 62px 84px;
  background: rgba(13, 11, 10, .95);
  color: white;
}

.hs-lightbox.is-open { display: flex; }

.hs-lightbox-figure {
  max-width: min(90vw, 1500px);
  max-height: 88vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hs-lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.hs-lightbox-figure figcaption {
  max-width: 980px;
  margin-top: 14px;
  color: rgba(255,255,255,.76);
  font-family: var(--hs-sans);
  font-size: .78rem;
  line-height: 1.5;
  text-align: center;
}

.hs-lightbox-close,
.hs-lightbox-prev,
.hs-lightbox-next {
  position: absolute;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}

.hs-lightbox-close {
  top: 18px;
  right: 26px;
  font-size: 2.2rem;
}

.hs-lightbox-prev,
.hs-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

.hs-lightbox-prev { left: 24px; }
.hs-lightbox-next { right: 24px; }

/* Standard WP pages */
.hs-legal {
  width: min(calc(100% - 72px), 920px);
  margin: 0 auto;
  padding: 100px 0 140px;
}

.hs-legal h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 400;
  line-height: .95;
}

.hs-legal h2 { margin-top: 2.2em; }
.hs-legal p,
.hs-legal li { color: var(--hs-copy); }

/* Responsive */
@media (max-width: 1160px) {
  .hs-nav { gap: 18px; font-size: .7rem; }
  .hs-brand { min-width: 200px; }
  .hs-hero-grid {
    grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
    gap: 58px;
  }

  .hs-project-hero-grid {
    grid-template-columns: minmax(380px, .95fr) minmax(0, 1.05fr);
    gap: 48px;
  }

  .hs-gallery-grid--direction {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .admin-bar .hs-header { top: 46px; }

  .hs-wrap { width: min(calc(100% - 42px), var(--hs-max)); }

  .hs-menu-button { display: block; }

  .hs-nav {
    position: fixed;
    inset: 94px 0 auto 0;
    max-height: calc(100vh - 94px);
    overflow-y: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 22px 35px;
    border-bottom: 1px solid var(--hs-line);
    background: var(--hs-bg);
    font-size: .84rem;
  }

  .admin-bar .hs-nav { top: 140px; }

  .hs-nav.is-open { display: flex; }

  .hs-nav > a,
  .hs-nav-dropdown-toggle {
    width: 100%;
    padding: 16px 4px;
    border-bottom: 1px solid var(--hs-line);
    text-align: left;
  }

  .hs-nav > a::after,
  .hs-nav-dropdown-toggle::after { display: none; }

  .hs-nav-dropdown-toggle { justify-content: space-between; }

  .hs-nav-submenu {
    position: static;
    width: 100%;
    padding: 6px 0 12px 16px;
    border: 0;
    box-shadow: none;
    background: transparent;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .hs-nav-dropdown.is-open .hs-nav-submenu { display: block; }

  .hs-nav-submenu a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(58,46,36,.09);
  }

  .hs-lang-switch {
    width: fit-content !important;
    margin-top: 18px;
    padding: 9px 12px !important;
    border: 1px solid var(--hs-line) !important;
  }

  .hs-project-hero-grid,
  .hs-teaching-intro-grid,
  .hs-contact-page-grid {
    grid-template-columns: 1fr;
  }

  .hs-hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "portrait"
      "body";
    row-gap: 34px;
  }

  .hs-hero-heading,
  .hs-hero-body { max-width: 760px; }
  .hs-portrait-wrap { max-width: 650px; }

  .hs-foundations-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "image"
      "body";
    row-gap: 32px;
  }
  .hs-foundations-image { max-width: 820px; }

  .hs-teaching-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hs-teaching-copy { min-height: 390px; }

  .hs-footer-grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .hs-wrap { width: min(calc(100% - 28px), var(--hs-max)); }

  .hs-header-inner { min-height: 82px; }
  .hs-nav { top: 82px; max-height: calc(100vh - 82px); }
  .admin-bar .hs-nav { top: 128px; }

  .hs-brand { min-width: 0; gap: 0; }
  .hs-brand-name { font-size: 1rem; letter-spacing: .07em; }
  .hs-brand-role { font-size: .57rem; }

  .hs-hero {
    padding: 28px 0 76px;
  }

  .hs-hero-grid {
    row-gap: 24px;
  }

  .hs-hero-heading {
    padding-top: 6px;
  }

  .hs-title {
    font-size: clamp(2.75rem, 12vw, 3.65rem);
    line-height: .94;
  }

  .hs-role {
    margin-top: 12px;
    font-size: clamp(1.35rem, 6.2vw, 1.7rem);
  }

  .hs-rule {
    width: 62px;
    margin: 20px 0 4px;
  }

  .hs-portrait-wrap {
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
    aspect-ratio: 4 / 5;
  }

  .hs-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
  }

  .hs-about-text {
    font-size: .98rem;
    line-height: 1.56;
  }

  .hs-about-text p {
    margin-bottom: .9em;
  }

  .hs-foundations {
    padding: 70px 0;
  }

  .hs-foundations-grid {
    row-gap: 24px;
  }

  .hs-foundations-heading .hs-eyebrow {
    margin-bottom: 9px;
  }

  .hs-foundations-heading .hs-section-title {
    font-size: clamp(2.35rem, 10vw, 3rem);
    line-height: 1;
  }

  .hs-foundations-image {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }

  .hs-foundations-image-frame {
    aspect-ratio: 16 / 10;
    box-shadow: 0 16px 38px rgba(38, 29, 22, .11);
  }

  .hs-foundations-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 48%;
  }

  .hs-foundations-caption {
    padding-top: 12px;
    font-size: .71rem;
  }

  .hs-foundations-caption .hs-foundations-meta {
    margin-top: 6px;
    font-size: .64rem;
  }

  .hs-foundations-body {
    font-size: .98rem;
    line-height: 1.56;
  }

  .hs-foundations-body p {
    margin-bottom: .95em;
  }

  .hs-photo-note {
    font-size: .73rem;
    line-height: 1.5;
  }

  .hs-direction-grid,
  .hs-project-grid,
  .hs-gallery-grid {
    grid-template-columns: 1fr;
  }

  .hs-gallery-item.is-wide { grid-column: auto; }

  .hs-direction-card { aspect-ratio: 4 / 3; }
  .hs-project-card { aspect-ratio: 4 / 3; }

  .hs-direction-card .hs-card-title {
    left: 20px;
    right: 74px;
    bottom: 21px;
  }

  .hs-project-card-copy {
    left: 20px;
    right: 74px;
    bottom: 20px;
  }

  .hs-card-arrow {
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }

  .hs-teaching-image { min-height: 280px; }
  .hs-teaching-copy { min-height: 340px; padding: 38px 28px 92px; }
  .hs-teaching-copy .hs-card-arrow { right: 28px; bottom: 28px; }

  .hs-page-hero h1,
  .hs-contact-page h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .hs-project-hero h1 {
    font-size: clamp(2.05rem, 9vw, 2.8rem);
    line-height: 1.01;
    letter-spacing: -.038em;
  }

  .hs-project-scope {
    margin-top: 20px;
    font-size: 1.16rem;
  }

  .hs-project-meta {
    margin: 12px 0 24px;
  }

  .hs-project-hero-grid { gap: 32px; }

  .hs-lightbox { padding: 56px 18px 28px; }
  .hs-lightbox-prev,
  .hs-lightbox-next {
    top: auto;
    bottom: 16px;
    transform: none;
    font-size: 2.4rem;
  }
  .hs-lightbox-prev { left: 28px; }
  .hs-lightbox-next { right: 28px; }
  .hs-lightbox-figure img { max-height: 72vh; }

  .hs-footer { padding: 42px 0; }
  .hs-footer-links { gap: 16px 22px; }
}



/* 2.4: global overflow protection and corrected mobile typography */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.hs-page-hero h1,
.hs-project-hero h1,
.hs-contact-page h1,
.hs-section-title,
.hs-teaching-title,
.hs-title,
.hs-card-title,
.hs-gallery-title,
.hs-legal h1,
.hs-legal h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
    line-height: 1.56;
  }

  .hs-wrap {
    width: min(calc(100% - 36px), var(--hs-max));
  }

  .hs-header-inner {
    min-height: 78px;
  }

  .hs-nav {
    top: 78px;
    max-height: calc(100vh - 78px);
  }

  .admin-bar .hs-nav {
    top: 124px;
  }

  .hs-brand-name {
    font-size: .96rem;
    letter-spacing: .065em;
  }

  .hs-brand-role {
    font-size: .55rem;
    letter-spacing: .16em;
  }

  .hs-page-hero {
    padding: 58px 0 52px;
  }

  .hs-page-hero h1,
  .hs-contact-page h1 {
    font-size: clamp(2.08rem, 9.2vw, 2.65rem);
    line-height: .99;
    letter-spacing: -.035em;
    text-wrap: pretty;
  }

  .hs-page-intro {
    margin-top: 20px;
    font-size: .68rem;
    letter-spacing: .12em;
  }

  .hs-project-hero {
    padding: 54px 0 62px;
  }

  .hs-project-hero h1 {
    font-size: clamp(1.95rem, 8.4vw, 2.45rem);
    line-height: 1.02;
    letter-spacing: -.03em;
    text-wrap: pretty;
  }

  .hs-section-title,
  .hs-foundations-heading .hs-section-title,
  .hs-teaching-title {
    font-size: clamp(2rem, 8.8vw, 2.55rem);
    line-height: 1.02;
    letter-spacing: -.035em;
    text-wrap: pretty;
  }

  .hs-title {
    font-size: clamp(2.35rem, 10.4vw, 3rem);
    line-height: .96;
    letter-spacing: -.045em;
  }

  .hs-role {
    font-size: clamp(1.2rem, 5.5vw, 1.55rem);
  }

  .hs-section {
    padding: 68px 0;
  }

  .hs-section-head {
    margin-bottom: 34px;
  }

  .hs-direction-card .hs-card-title,
  .hs-project-card .hs-card-title {
    font-size: clamp(1.22rem, 5.7vw, 1.55rem);
    line-height: 1.12;
  }

  .hs-gallery-title {
    font-size: 1rem;
    line-height: 1.34;
  }

  .hs-project-scope {
    margin-top: 18px;
    font-size: 1.08rem;
    line-height: 1.34;
  }

  .hs-project-meta {
    margin: 11px 0 23px;
    font-size: .66rem;
  }

  .hs-rich-copy,
  .hs-about-text,
  .hs-foundations-body {
    font-size: .96rem;
    line-height: 1.56;
  }

  .hs-teaching-intro blockquote {
    margin-top: 24px;
    padding-left: 18px;
    font-size: 1.08rem;
    line-height: 1.48;
  }

  .hs-contact-panel {
    padding: 28px 22px;
  }

  .hs-email {
    font-size: 1.08rem;
  }

  .hs-legal {
    width: min(calc(100% - 36px), 920px);
    padding: 62px 0 86px;
  }

  .hs-legal h1 {
    font-size: clamp(2.05rem, 9vw, 2.6rem);
    line-height: 1;
    letter-spacing: -.035em;
  }

  .hs-legal h2 {
    font-size: 1.55rem;
    line-height: 1.12;
  }
}

@media (max-width: 390px) {
  .hs-page-hero h1,
  .hs-contact-page h1 {
    font-size: 2rem;
  }

  .hs-project-hero h1 {
    font-size: 1.88rem;
  }

  .hs-section-title,
  .hs-foundations-heading .hs-section-title,
  .hs-teaching-title {
    font-size: 1.95rem;
  }

  .hs-title {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* 2.5 — unified responsive typography and spacing */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.hs-hero-grid > *,
.hs-foundations-grid > *,
.hs-project-hero-grid > *,
.hs-teaching-intro-grid > *,
.hs-contact-page-grid > *,
.hs-page-hero-inner,
.hs-project-hero-copy,
.hs-gallery-item,
.hs-gallery-item figcaption {
  min-width: 0;
}

/* Decorative bars are not used as section dividers. Spacing creates hierarchy. */
.hs-rule { display: none !important; }

.hs-title,
.hs-section-title,
.hs-page-hero h1,
.hs-project-hero h1,
.hs-contact-page h1,
.hs-teaching-title,
.hs-card-title,
.hs-gallery-title,
.hs-project-scope,
.hs-project-meta,
.hs-foundations-caption {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

/* Keep the same calm visual hierarchy across all inner pages. */
.hs-page-hero,
.hs-project-hero,
.hs-contact-page {
  background: var(--hs-white);
}

.hs-project-scope {
  color: var(--hs-accent-deep);
  font-family: var(--hs-serif);
  font-weight: 400;
}

.hs-project-meta,
.hs-gallery-meta,
.hs-foundations-meta,
.hs-card-meta {
  font-family: var(--hs-sans);
}

/* The portrait follows the role without a decorative line. */
.hs-hero-heading { margin-bottom: 2px; }

/* Consistent caption rhythm. */
.hs-gallery-item figcaption { padding-top: 13px; }
.hs-gallery-title { margin: 0; }
.hs-gallery-meta { margin-top: 5px; }

@media (max-width: 720px) {
  .hs-wrap {
    width: min(calc(100% - 32px), var(--hs-max));
  }

  .hs-header-inner {
    min-height: 76px;
    gap: 16px;
  }

  .hs-brand-name {
    font-size: .92rem;
    line-height: 1.08;
    letter-spacing: .055em;
  }

  .hs-brand-role {
    font-size: .53rem;
    letter-spacing: .145em;
  }

  .hs-menu-button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .hs-hero {
    padding: 34px 0 68px;
  }

  .hs-hero-grid {
    row-gap: 20px;
  }

  .hs-title {
    font-size: clamp(2.25rem, 10.2vw, 2.85rem);
    line-height: .98;
    letter-spacing: -.042em;
  }

  .hs-role {
    margin-top: 9px;
    font-size: clamp(1.17rem, 5.2vw, 1.42rem);
    line-height: 1.08;
  }

  .hs-portrait-wrap {
    margin-top: 4px;
  }

  .hs-page-hero {
    padding: 52px 0 48px;
  }

  .hs-page-hero h1,
  .hs-contact-page h1 {
    font-size: clamp(1.88rem, 8vw, 2.28rem);
    line-height: 1.02;
    letter-spacing: -.03em;
    text-wrap: pretty;
  }

  .hs-project-hero {
    padding: 48px 0 58px;
  }

  .hs-project-hero h1 {
    font-size: clamp(1.82rem, 7.8vw, 2.22rem);
    line-height: 1.04;
    letter-spacing: -.028em;
    text-wrap: pretty;
  }

  .hs-project-scope {
    margin-top: 17px;
    font-size: 1.03rem;
    line-height: 1.32;
  }

  .hs-project-meta {
    margin: 8px 0 22px;
    font-size: .64rem;
    letter-spacing: .07em;
  }

  .hs-section-title,
  .hs-foundations-heading .hs-section-title,
  .hs-teaching-title {
    font-size: clamp(1.9rem, 8.2vw, 2.3rem);
    line-height: 1.04;
    letter-spacing: -.03em;
  }

  .hs-page-intro {
    margin-top: 17px;
  }

  .hs-section {
    padding: 62px 0;
  }

  .hs-gallery-grid {
    row-gap: 38px;
  }

  .hs-gallery-title {
    font-size: .98rem;
    line-height: 1.35;
  }

  .hs-gallery-meta {
    font-size: .62rem;
  }

  .hs-foundations-caption {
    font-size: .7rem;
  }

  .hs-foundations-caption .hs-foundations-meta {
    font-size: .62rem;
  }
}

@media (max-width: 390px) {
  .hs-wrap { width: min(calc(100% - 28px), var(--hs-max)); }

  .hs-page-hero h1,
  .hs-contact-page h1 {
    font-size: 1.82rem;
  }

  .hs-project-hero h1 {
    font-size: 1.78rem;
  }

  .hs-title {
    font-size: 2.12rem;
  }

  .hs-section-title,
  .hs-foundations-heading .hs-section-title,
  .hs-teaching-title {
    font-size: 1.82rem;
  }
}


/* 2.6 — all preview cards use edge-to-edge cropped images; full originals remain in the lightbox */
.hs-direction-card.is-contain .hs-card-image,
.hs-gallery-item.is-contain .hs-gallery-link {
  background: #e3ddd3;
  padding: 0;
}

.hs-direction-card.is-contain .hs-card-image img,
.hs-gallery-item.is-contain .hs-gallery-link img,
.hs-card-image img,
.hs-gallery-link img {
  object-fit: cover;
}


/* 2.7 — Alexei Kochuev profile page and linked name in Professional Foundations */
.hs-inline-profile-link {
  color: var(--hs-accent-deep);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--hs-accent) 72%, transparent);
  text-underline-offset: .2em;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.hs-inline-profile-link:hover,
.hs-inline-profile-link:focus-visible {
  color: var(--hs-accent);
  text-decoration-color: currentColor;
}

.hs-inline-profile-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--hs-accent) 55%, transparent);
  outline-offset: 3px;
}

.hs-kochuev-page {
  background: var(--hs-white);
}

.hs-kochuev-hero {
  padding: clamp(78px, 9vw, 136px) 0 clamp(58px, 7vw, 94px);
  border-bottom: 1px solid var(--hs-line);
}

.hs-kochuev-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(48px, 8vw, 124px);
  align-items: center;
}

.hs-kochuev-heading {
  min-width: 0;
}

.hs-kochuev-heading h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(3.35rem, 6.1vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -.052em;
  line-height: .94;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.hs-kochuev-dates {
  margin: 22px 0 0;
  color: var(--hs-muted);
  font-family: var(--hs-sans);
  font-size: .88rem;
  letter-spacing: .06em;
}

.hs-kochuev-external {
  justify-self: end;
  width: min(100%, 360px);
}

.hs-external-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 20px;
  border: 1px solid color-mix(in srgb, var(--hs-accent) 55%, var(--hs-line));
  background: var(--hs-paper);
  color: var(--hs-ink);
  font-family: var(--hs-sans);
  font-size: .82rem;
  letter-spacing: .025em;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.hs-external-action:hover,
.hs-external-action:focus-visible {
  border-color: var(--hs-accent);
  background: var(--hs-paper-2);
  color: var(--hs-accent-deep);
}

.hs-external-action:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--hs-accent) 42%, transparent);
  outline-offset: 3px;
}

.hs-external-note {
  margin: 10px 0 0;
  color: var(--hs-muted);
  font-family: var(--hs-sans);
  font-size: .66rem;
  letter-spacing: .025em;
  line-height: 1.45;
}

.hs-kochuev-content {
  padding: clamp(62px, 8vw, 112px) 0 clamp(88px, 10vw, 150px);
  background: var(--hs-bg);
}

.hs-kochuev-content-inner {
  max-width: 1180px;
}

.hs-kochuev-memory {
  max-width: 1080px;
  margin: 0;
  padding: clamp(34px, 5vw, 68px) clamp(32px, 6vw, 82px);
  border-left: 1px solid var(--hs-accent);
  background: color-mix(in srgb, var(--hs-paper) 72%, var(--hs-white));
  color: var(--hs-ink);
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  line-height: 1.62;
}

.hs-kochuev-memory p {
  margin: 0 0 1.45em;
}

.hs-kochuev-memory p:last-child {
  margin-bottom: 0;
}

.hs-kochuev-signature {
  padding-top: .15em;
  font-weight: 600;
}

.hs-kochuev-biography {
  max-width: 930px;
  margin-top: clamp(54px, 7vw, 92px);
  color: var(--hs-copy);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.68;
}

.hs-kochuev-biography p {
  margin: 0 0 1.42em;
}

.hs-kochuev-biography p:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .hs-kochuev-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 42px;
  }

  .hs-kochuev-heading h1 {
    font-size: clamp(3rem, 7.5vw, 4.7rem);
  }
}

@media (max-width: 720px) {
  .hs-kochuev-hero {
    padding: 52px 0 48px;
  }

  .hs-kochuev-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hs-kochuev-heading h1 {
    font-size: clamp(2.12rem, 9.7vw, 2.8rem);
    line-height: 1.015;
    letter-spacing: -.035em;
    text-wrap: pretty;
    overflow-wrap: normal;
    hyphens: none;
  }

  .hs-kochuev-dates {
    margin-top: 15px;
    font-size: .76rem;
  }

  .hs-kochuev-external {
    justify-self: start;
    width: 100%;
  }

  .hs-external-action {
    max-width: 100%;
    min-height: 49px;
    padding: 12px 16px;
    font-size: .76rem;
  }

  .hs-external-note {
    margin-top: 9px;
    font-size: .63rem;
  }

  .hs-kochuev-content {
    padding: 44px 0 78px;
  }

  .hs-kochuev-memory {
    padding: 26px 22px 28px;
    font-size: 1rem;
    line-height: 1.58;
  }

  .hs-kochuev-memory p {
    margin-bottom: 1.3em;
  }

  .hs-kochuev-biography {
    margin-top: 46px;
    font-size: .97rem;
    line-height: 1.62;
  }

  .hs-kochuev-biography p {
    margin-bottom: 1.32em;
  }
}

@media (max-width: 390px) {
  .hs-kochuev-heading h1 {
    font-size: 2rem;
  }

  .hs-kochuev-memory {
    padding: 24px 18px 26px;
  }
}


/* 2.8 — mobile Work submenu alignment and linked footer brand */
@media (max-width: 980px) {
  .hs-nav-dropdown {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hs-nav-dropdown.is-open .hs-nav-submenu,
  .hs-nav-dropdown:hover .hs-nav-submenu,
  .hs-nav-dropdown:focus-within .hs-nav-submenu {
    position: static;
    inset: auto;
    left: auto;
    right: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 6px 0 12px 16px;
    border: 0;
    box-shadow: none;
    background: transparent;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-sizing: border-box;
  }

  .hs-nav-submenu a {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 12px 4px 12px 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    box-sizing: border-box;
  }
}

.hs-footer-home-link {
  display: inline-block;
  width: fit-content;
  color: white;
  text-decoration: none;
  text-underline-offset: .2em;
  transition: color .18s ease, opacity .18s ease;
}

.hs-footer-home-link:hover,
.hs-footer-home-link:focus-visible {
  color: var(--hs-white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.hs-footer-home-link:focus-visible {
  outline: 2px solid rgba(255,255,255,.72);
  outline-offset: 5px;
}
