:root {
  --paper: #f5f7fb;
  --ink: #191612;
  --muted: #756f66;
  --line: #d5dbe7;
  --clay: #b45d42;
  --forest: #162b4d;
  --signal: #06a8df;
  --signal-soft: rgba(6, 168, 223, 0.16);
  --sky: #e5ebf4;
  --white: #fcfdf8;
  --shadow: 0 22px 60px rgba(13, 28, 54, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(22, 43, 77, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(22, 43, 77, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 3rem 3rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.7rem 0.9rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-top: 3px solid var(--signal);
  border-bottom: 1px solid rgba(25, 22, 18, 0.1);
  background: rgba(245, 247, 251, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.header-actions,
.language-switcher,
.hero-actions,
.contact-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo-box {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0.3rem;
  border: 1px solid rgba(6, 168, 223, 0.5);
  background: var(--forest);
  box-shadow: inset 0 -0.45rem 0 rgba(6, 168, 223, 0.24);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  gap: clamp(0.75rem, 2vw, 1.45rem);
  font-size: 0.94rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.header-actions {
  gap: clamp(0.9rem, 2.4vw, 1.8rem);
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(22, 43, 77, 0.24);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  grid-column: 1;
  grid-row: 1;
  width: 1.25rem;
  height: 2px;
  background: var(--forest);
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-0.4rem);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(0.4rem);
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.language-switcher {
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid rgba(25, 22, 18, 0.14);
  background: rgba(252, 253, 248, 0.72);
}

.language-switcher a {
  min-width: 2rem;
  padding: 0.35rem 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.language-switcher a.active {
  background: var(--forest);
  color: var(--white);
}

.hero,
.page-hero,
.section,
.contact-inner,
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: calc(100vh - 73px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.28fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2.5rem, 8vh, 6rem) 0 3rem;
}

.hero-copy::before,
.page-hero::before {
  content: "";
  display: block;
  width: 5.5rem;
  height: 0.32rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(90deg, var(--forest) 0 62%, var(--signal) 62% 100%);
}

.eyebrow,
.section-label {
  margin: 0 0 1rem;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 11vw, 7.2rem);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.12rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.signature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.3rem;
}

.signature-strip span {
  padding: 0.38rem 0.55rem;
  border-left: 3px solid var(--signal);
  background: rgba(252, 253, 248, 0.82);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.05rem;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.button.secondary {
  background: transparent;
}

.portrait-panel {
  position: relative;
  justify-self: end;
  width: 278px;
  max-width: 100%;
  margin: 0;
  padding: 0.35rem;
  border: 1px solid rgba(22, 43, 77, 0.28);
  background: rgba(252, 253, 248, 0.72);
}

.portrait-panel::after {
  content: "";
  position: absolute;
  right: -0.55rem;
  bottom: -0.55rem;
  z-index: -1;
  width: 48%;
  height: 48%;
  border-right: 0.35rem solid var(--signal);
  border-bottom: 0.35rem solid var(--signal);
}

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

.page-hero {
  padding: clamp(4rem, 10vh, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.page-hero h1 {
  max-width: 10ch;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.intro,
.now {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.intro-copy {
  color: var(--muted);
  font-size: 1.12rem;
}

.intro-copy a {
  color: var(--forest);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

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

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.work-grid article {
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: inset 0 0.35rem 0 var(--signal-soft);
}

.work-grid span {
  margin-bottom: auto;
  color: var(--clay);
  font-weight: 900;
}

.work-grid p,
.project-card span,
.note-card span,
.now-board p {
  color: var(--muted);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: inset 0 0.35rem 0 var(--signal-soft);
}

.project-card img {
  width: 100%;
  height: 15rem;
  object-fit: cover;
  background: var(--sky);
}

.project-card div {
  padding: 1rem;
}

.project-card p {
  margin-bottom: 0.45rem;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.notes-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.note-card {
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: inset 0 0.35rem 0 var(--signal-soft);
}

.note-card p {
  margin-bottom: auto;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.note-card h3 {
  max-width: 18rem;
}

.notes-page .notes-list {
  grid-template-columns: 1fr;
  max-width: 820px;
}

.notes-page .note-card {
  min-height: auto;
  display: block;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.notes-page .note-card h3 {
  max-width: 30rem;
  margin-bottom: 1rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.note-body {
  display: grid;
  gap: 0.85rem;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

.note-body p {
  max-width: 68ch;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  text-transform: none;
}

.text-link {
  display: inline-flex;
  margin-top: 1.25rem;
  color: var(--forest);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.now-board {
  display: grid;
  gap: 0.8rem;
}

.now-board div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.now-board span {
  color: var(--forest);
  font-weight: 900;
}

.now-board p {
  margin: 0;
}

.contact {
  background:
    linear-gradient(135deg, var(--forest) 0 74%, #0b7fb2 74% 75%, #10233f 75% 100%);
  color: var(--white);
}

.contact-inner {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.contact .section-label {
  color: #f0b08d;
}

.contact h2 {
  max-width: 720px;
}

.contact-links {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.contact-links a {
  min-width: min(100%, 15rem);
  padding: 1rem;
  border: 1px solid rgba(255, 250, 242, 0.32);
  background: rgba(255, 250, 242, 0.08);
  text-decoration: none;
}

.contact-links .linkedin-link {
  position: relative;
  padding-left: 3.9rem;
}

.social-logo {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1.8rem;
  height: 1.8rem;
  fill: currentColor;
  transform: translateY(-50%);
}

.linkedin-logo {
  color: #0a66c2;
}

.contact-links span {
  display: block;
  margin-bottom: 0.25rem;
  color: #f0b08d;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    align-items: center;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0.9rem;
    padding-top: 0.35rem;
  }

  .site-header.menu-ready .header-actions {
    display: none;
  }

  .site-header.menu-open .header-actions {
    display: flex;
  }

  .site-nav {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .site-nav a {
    padding: 0.85rem 0;
  }

  .language-switcher {
    align-self: flex-start;
  }

  .hero,
  .page-hero,
  .intro,
  .now {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .portrait-panel {
    justify-self: start;
    width: min(100%, 278px);
  }

  h1 {
    max-width: 9ch;
  }

  .work-grid,
  .project-list,
  .notes-list {
    grid-template-columns: 1fr;
  }

  .work-grid article,
  .note-card {
    min-height: 12rem;
  }

  .project-card {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
  }

  .project-card img {
    height: 100%;
    min-height: 13rem;
  }
}

@media (max-width: 560px) {
  .site-nav {
    flex-wrap: nowrap;
  }

  .hero,
  .page-hero,
  .section,
  .contact-inner,
  .site-footer {
    width: min(100% - 1rem, 1120px);
  }

  h1 {
    font-size: 3rem;
    max-width: none;
  }

  .button {
    width: 100%;
  }

  .project-card,
  .now-board div {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
