@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,700&display=swap");

:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #646a73;
  --soft: #f3f5f7;
  --line: #e2e6ea;
  --accent: #1e3a5f;
  --accent-dark: #132540;
  --panel: #f8fafc;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0;
}

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

.nav a:hover,
.text-link:hover,
.link-row a:hover,
.project a:hover,
.contact-links a:hover {
  color: var(--accent);
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
}

.lang-button {
  min-width: 42px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

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

main {
  overflow: hidden;
}

.hero-eyebrow {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(var(--max), calc(100vw - 48px));
  margin-bottom: -18px;
  white-space: nowrap;
  text-align: center;
  font-size: clamp(0.64rem, 0.86vw, 0.8rem);
  letter-spacing: 0.12em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 76px) 24px 44px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
}

.lead {
  max-width: 780px;
  margin-bottom: 20px;
  color: #222831;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.35;
}

.current {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  font-weight: 700;
}

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

.button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.button.subtle {
  border-color: var(--line);
  color: var(--accent);
}

.brief-page main {
  overflow: visible;
}

.brief-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(82px, 12vw, 150px) 24px;
}

.brief-hero h1 {
  max-width: 820px;
  font-size: clamp(3.2rem, 8vw, 7rem);
}

.brief-note {
  display: grid;
  gap: 16px;
  margin: 36px 0 0;
  padding: 24px 0;
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.05rem;
}

.brief-note p {
  margin: 0;
}

.brief-note strong {
  color: var(--ink);
}

.portrait-block {
  margin: 0;
}

.portrait-block img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.portrait-block figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.portrait-brief-link {
  display: flex;
  width: min(100%, 320px);
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 28px auto 0;
  padding: 12px 18px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-align: center;
}

.portrait-brief-link:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  justify-items: center;
  gap: 32px;
  width: min(880px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 0 0 42px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.metrics div,
.metrics .metric-link {
  width: 100%;
  padding: 24px 8px;
  border-top: 2px solid var(--accent);
}


.metrics .metric-link {
  color: inherit;
}

.metrics .metric-link:hover span {
  color: var(--accent);
}

.metrics strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.metrics span {
  color: var(--muted);
}

.metrics span,
.link-row a,
.project-links a,
.contact-links a {
  overflow-wrap: anywhere;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 24px;
  border-bottom: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
}

.section-body {
  color: #2f343b;
  font-size: 1.08rem;
}

.section-body p {
  margin-bottom: 18px;
}

.about .section-body p,
#consulting .section-body p {
  text-align: justify;
  hyphens: auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.card {
  min-height: 245px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}

.card p,
.project p {
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 14px;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

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

.project a,
.text-link,
.link-row a {
  color: var(--accent);
  font-weight: 700;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 26px;
}

.service-list {
  display: grid;
  gap: 12px;
  padding-left: 20px;
}

.service-list li::marker {
  color: var(--accent);
}

.contact {
  border-bottom: 0;
}

.contact-panel {
  padding: 42px;
  background: var(--ink);
  color: #ffffff;
}

.contact-panel h2 {
  max-width: 900px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  color: #dbe4ef;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 44px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1100px) {
  .hero {
    min-height: auto;
  }
}


@media (max-width: 1100px) and (orientation: portrait) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .portrait-block {
    max-width: 460px;
    margin-right: auto;
    margin-left: auto;
  }

  .portrait-block img {
    aspect-ratio: 1;
    object-fit: cover;
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: center;
  }

  .nav {
    display: none;
  }

  .hero,
  .section-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  h1 {
    max-width: 720px;
    font-size: clamp(3.2rem, 8vw, 4.8rem);
    line-height: 1;
  }

  .portrait-block {
    max-width: 460px;
    margin-right: auto;
    margin-left: auto;
  }

  .portrait-block img {
    aspect-ratio: 1;
    object-fit: cover;
  }

  .metrics,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .brand {
    width: 38px;
    height: 38px;
  }

  .hero,
  .section,
  .metrics,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    gap: 28px;
    padding-top: 38px;
    padding-bottom: 34px;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.35rem);
    line-height: 1;
    margin-bottom: 20px;
  }

  .eyebrow,
  .section-kicker {
    font-size: 0.74rem;
    line-height: 1.45;
  }

  .lead {
    font-size: 1.12rem;
    line-height: 1.4;
  }

  .current {
    font-size: 1rem;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }

  .button {
    width: 100%;
  }

  .portrait-block {
    max-width: min(100%, 360px);
    margin-right: auto;
    margin-left: auto;
  }

  .portrait-block img {
    aspect-ratio: 1;
    object-fit: cover;
  }

  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .metrics,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .metrics {
    width: min(340px, calc(100vw - 36px));
  }

  .metrics div,
  .metrics .metric-link {
    padding-right: 12px;
    padding-left: 12px;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-panel {
    padding: 28px;
  }

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

.brand img {
  display: block;
  width: 42px;
  height: 42px;
}

.nav {
  gap: 14px;
  font-size: 0.88rem;
  white-space: nowrap;
}


.portrait-block figcaption {
  text-align: center;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
  color: var(--accent);
  font-weight: 700;
}

.definition-note {
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 20px;
}

.screen-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  background: #ffffff;
}

.screen-card span,
.timeline span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.screen-card p,
.timeline p,
.compact-list p {
  color: var(--muted);
}

.compact-list {
  display: grid;
  gap: 16px;
}

.compact-list p {
  margin: 0;
}

.compact-list strong {
  color: var(--ink);
}

.timeline {
  display: grid;
  gap: 24px;
}

.timeline article {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1120px) {
  .nav {
    gap: 10px;
    font-size: 0.82rem;
  }
}

@media (max-width: 920px) {
  .hero-eyebrow {
    width: calc(100vw - 48px);
    white-space: normal;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    width: min(520px, calc(100vw - 48px));
  }

  .project-links {
    justify-content: flex-start;
  }
}

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

  .hero-eyebrow {
    width: calc(100vw - 36px);
    font-size: 0.68rem;
  }

  .metrics {
    grid-template-columns: 1fr;
    width: min(340px, calc(100vw - 36px));
  }
}

@media (max-width: 1100px) {
  .nav {
    display: none;
  }
}

@media (max-width: 920px) {
  .about .section-body p,
  #consulting .section-body p {
    text-align: left;
    hyphens: none;
  }
}

.brief-header {
  justify-content: space-between;
}

.brief-nav {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.brief-nav a:hover {
  color: var(--accent);
}

.brief-main {
  display: grid;
  min-height: calc(100vh - 79px);
  place-items: center;
  padding: 24px;
  text-align: center;
}

.brief-main h1 {
  margin: 0;
  font-size: clamp(3.5rem, 10vw, 8rem);
}
