@font-face {
  font-family: "Inter Portfolio";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Portfolio";
  src: url("../fonts/PlayfairDisplay-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Portfolio";
  src: url("../fonts/JetBrainsMono-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #fafafa;
  --page-soft: #f3f4f6;
  --surface: #ffffff;
  --surface-soft: #f8f8f7;
  --surface-strong: #111827;
  --ink: #111827;
  --ink-soft: #4b5563;
  --ink-inverse: #f9fafb;
  --line: #e5e7eb;
  --line-strong: #cfd3d9;
  --action: #111827;
  --action-text: #ffffff;
  --focus: #37556f;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.1);
  --shadow-soft: 0 12px 36px rgba(17, 24, 39, 0.07);
  --font-display: "Inter Portfolio", Inter, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Playfair Portfolio", "Playfair Display", Georgia, serif;
  --font-mono: "JetBrains Portfolio", "JetBrains Mono", Consolas, monospace;
  --radius-card: 16px;
  --radius-control: 999px;
  --header-height: 72px;
  --content: min(1440px, calc(100vw - 64px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #101217;
  --page-soft: #15181e;
  --surface: #191c22;
  --surface-soft: #20242b;
  --surface-strong: #f4f5f6;
  --ink: #f3f4f6;
  --ink-soft: #b8bec8;
  --ink-inverse: #111318;
  --line: #303640;
  --line-strong: #49515f;
  --action: #f4f5f6;
  --action-text: #111318;
  --focus: #9db8ce;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.22);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    color-scheme: dark;
    --page: #101217;
    --page-soft: #15181e;
    --surface: #191c22;
    --surface-soft: #20242b;
    --surface-strong: #f4f5f6;
    --ink: #f3f4f6;
    --ink-soft: #b8bec8;
    --ink-inverse: #111318;
    --line: #303640;
    --line-strong: #49515f;
    --action: #f4f5f6;
    --action-text: #111318;
    --focus: #9db8ce;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
    --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.22);
  }
}

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

html {
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:hover {
  text-decoration-color: var(--focus);
}

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

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

h1,
h2,
h3,
h4,
strong,
.button,
.primary-navigation,
.brand,
.theme-toggle,
.language-switcher {
  font-family: var(--font-display);
}

[data-copy] > [lang="en"] {
  display: none;
}

html[data-lang="en"] [data-copy] > [lang="hr"] {
  display: none;
}

html[data-lang="en"] [data-copy] > [lang="en"] {
  display: inline;
}

[data-copy].hero__title > span,
[data-copy].section-title > span,
[data-copy].project-feature__title > span,
[data-copy].contact__title > span,
[data-copy].archive-title > span {
  display: none;
}

html[data-lang="hr"] [data-copy].hero__title > [lang="hr"],
html[data-lang="hr"] [data-copy].section-title > [lang="hr"],
html[data-lang="hr"] [data-copy].project-feature__title > [lang="hr"],
html[data-lang="hr"] [data-copy].contact__title > [lang="hr"],
html[data-lang="hr"] [data-copy].archive-title > [lang="hr"],
html[data-lang="en"] [data-copy].hero__title > [lang="en"],
html[data-lang="en"] [data-copy].section-title > [lang="en"],
html[data-lang="en"] [data-copy].project-feature__title > [lang="en"],
html[data-lang="en"] [data-copy].contact__title > [lang="en"],
html[data-lang="en"] [data-copy].archive-title > [lang="en"] {
  display: block;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 10px 16px;
  clip: auto;
  border-radius: var(--radius-control);
  background: var(--action);
  color: var(--action-text);
  font-family: var(--font-display);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

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

.site-header__inner {
  width: var(--content);
  min-height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  gap: 28px;
  align-items: center;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.brand__text {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand__text strong {
  font-size: 13px;
  font-weight: 650;
}

.brand__text small {
  color: var(--ink-soft);
  font: 600 9px/1.25 var(--font-mono);
  letter-spacing: 0.1em;
}

.primary-navigation .menu {
  display: flex;
  align-items: center;
  gap: 23px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a {
  position: relative;
  display: block;
  padding: 10px 0;
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 560;
  text-decoration: none;
  white-space: nowrap;
}

.primary-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease);
}

.primary-navigation a:hover::after,
.primary-navigation a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
}

.language-switcher a,
.theme-toggle,
.menu-toggle {
  display: inline-grid;
  min-width: 34px;
  min-height: 30px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.language-switcher a[aria-current="true"] {
  background: var(--action);
  color: var(--action-text);
}

.theme-toggle {
  min-width: 58px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.menu-toggle {
  display: none;
}

.site-main {
  overflow: hidden;
}

.hero {
  position: relative;
  width: var(--content);
  min-height: min(760px, calc(100dvh - var(--header-height) - 40px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #20252d;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
}

.hero__media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 20, 0.8) 0%, rgba(10, 14, 20, 0.42) 46%, rgba(10, 14, 20, 0.04) 78%),
    linear-gradient(0deg, rgba(10, 14, 20, 0.3), transparent 45%);
  content: "";
  pointer-events: none;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__copy {
  grid-column: 1 / 8;
  padding: clamp(36px, 6vw, 88px);
  color: #f9fafb;
}

.eyebrow,
.ai-studio__label {
  margin-bottom: 24px;
  font: 600 11px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
}

.hero .eyebrow {
  color: rgba(249, 250, 251, 0.82);
}

.hero__title {
  max-width: 10ch;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(54px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero__intro {
  max-width: 39ch;
  margin-bottom: 30px;
  color: rgba(249, 250, 251, 0.88);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.48;
}

.hero__actions,
.project-feature__actions,
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 260ms var(--ease), background-color 260ms var(--ease), color 260ms var(--ease), border-color 260ms var(--ease);
}

.button:active {
  transform: scale(0.98);
}

.button--primary {
  background: var(--action);
  color: var(--action-text);
}

.hero .button--primary {
  background: #ffffff;
  color: #111827;
}

.button--primary:hover {
  transform: translateY(-2px);
}

.button--outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button--outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--page);
}

.text-link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 620;
  text-decoration: none;
}

.text-link::after {
  width: 20px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: width 240ms var(--ease);
}

.text-link:hover::after {
  width: 32px;
}

.hero .text-link {
  color: #ffffff;
}

.profile-strip {
  width: var(--content);
  margin: 0 auto;
  padding: 20px 0 clamp(72px, 9vw, 126px);
}

.hero__facts {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.hero__facts > div {
  min-height: 104px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 28px;
}

.hero__facts > div + div {
  border-left: 1px solid var(--line);
}

.hero__facts strong {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.hero__facts span {
  max-width: 24ch;
  color: var(--ink-soft);
  font: 600 10px/1.5 var(--font-mono);
}

.section-shell,
.content-shell,
.project-single,
.archive-shell,
.not-found {
  width: var(--content);
  margin: 0 auto;
  padding-block: clamp(84px, 10vw, 148px);
}

.section-heading {
  max-width: 920px;
  margin-bottom: clamp(56px, 7vw, 92px);
}

.section-title,
.archive-title,
.entry-title {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 92px);
  font-weight: 500;
  line-height: 1.01;
  letter-spacing: -0.055em;
}

.projects-section {
  border-top: 1px solid var(--line);
}

.project-list {
  display: grid;
  gap: clamp(96px, 13vw, 190px);
}

.project-feature {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
}

.project-feature__image {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--page-soft);
  box-shadow: var(--shadow-soft);
}

.project-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.project-feature__image:hover img {
  transform: scale(1.025);
}

.project-feature__content {
  position: relative;
  z-index: 2;
  grid-column: 1 / 6;
  grid-row: 1;
  margin: 32px;
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.project-feature--offset .project-feature__content {
  grid-column: 8 / -1;
}

.project-feature__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font: 600 10px/1.35 var(--font-mono);
}

.project-feature__title {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.3vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.project-feature__summary {
  max-width: 42ch;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 17px;
}

.project-feature__tools {
  margin-bottom: 28px;
  font: 600 10px/1.5 var(--font-mono);
}

.project-feature__details {
  grid-column: 2 / 8;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 20px;
}

.project-feature--offset .project-feature__details {
  grid-column: 6 / -2;
}

.media-button {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}

.media-button:nth-child(2) {
  margin-top: 54px;
}

.media-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 650ms var(--ease);
}

.media-button:hover img {
  transform: scale(1.035);
}

.expertise {
  border-top: 1px solid var(--line);
}

.expertise__intro {
  max-width: 1060px;
  margin: 0 0 clamp(56px, 8vw, 106px) 8.33%;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr 1fr;
  grid-template-rows: minmax(300px, auto) minmax(310px, auto);
  gap: 16px;
}

.expertise-item {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: clamp(26px, 3vw, 44px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease);
}

.expertise-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.expertise-item h3 {
  margin-bottom: 46px;
  font-size: clamp(26px, 2.7vw, 42px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.expertise-item p {
  max-width: 38ch;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.expertise-item--lead {
  grid-row: 1 / -1;
  background: var(--surface-soft);
}

.expertise-item--image {
  grid-column: 2 / -1;
  min-height: 380px;
  padding: 0;
}

.expertise-item--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expertise-item--dark {
  background: var(--page-soft);
}

.ai-studio {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px 24px;
  border-top: 1px solid var(--line);
}

.ai-studio__intro {
  grid-column: 1 / 7;
  align-self: center;
  padding-right: clamp(0px, 3vw, 48px);
}

.ai-studio__label {
  color: var(--ink-soft);
}

.ai-studio__intro .section-title {
  margin-bottom: 28px;
}

.ai-studio__summary {
  max-width: 54ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.8vw, 23px);
}

.ai-studio__visual {
  grid-column: 7 / -1;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.ai-studio__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-studio__capabilities {
  grid-column: 2 / -2;
  margin-top: clamp(64px, 8vw, 118px);
  border-top: 1px solid var(--line-strong);
}

.ai-capability {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: start;
  padding: clamp(34px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}

.ai-capability h3 {
  margin-bottom: 0;
  font-size: clamp(36px, 4.4vw, 66px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.ai-capability p {
  max-width: 46ch;
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.4vw, 20px);
}

.ai-studio__tools {
  grid-column: 2 / -2;
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 3.2fr);
  gap: 28px;
  padding-top: 34px;
  font: 600 10px/1.5 var(--font-mono);
}

.ai-studio__tools > div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  color: var(--ink-soft);
}

.experience {
  border-top: 1px solid var(--line);
}

.experience__heading {
  max-width: 980px;
  margin-bottom: clamp(60px, 8vw, 108px);
}

.experience-list {
  margin-left: 8.33%;
  border-top: 1px solid var(--line-strong);
}

.experience-row {
  display: grid;
  grid-template-columns: 0.75fr 1.2fr 1.55fr;
  gap: 28px;
  padding: clamp(30px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}

.experience-row time {
  color: var(--ink-soft);
  font: 600 10px/1.5 var(--font-mono);
}

.experience-row h3 {
  margin-bottom: 8px;
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.experience-row div p,
.experience-row > p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.credentials {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 20px;
  align-items: stretch;
  border-top: 1px solid var(--line);
}

.credentials__visual {
  min-height: 660px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

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

.credentials__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.credentials__content .section-title {
  margin-bottom: 50px;
  font-size: clamp(42px, 5vw, 72px);
}

.credential-list {
  display: grid;
  gap: 28px;
  margin: auto 0 40px;
}

.credential-list div {
  display: grid;
  gap: 6px;
}

.credential-list strong {
  font-size: 15px;
  font-weight: 600;
}

.credential-list span {
  color: var(--ink-soft);
  font: 600 10px/1.5 var(--font-mono);
}

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.about__statement .section-title {
  font-size: clamp(52px, 7vw, 96px);
}

.about__body {
  padding-top: 12px;
}

.about__body > p {
  margin-bottom: 42px;
  color: var(--ink-soft);
  font-size: clamp(19px, 1.8vw, 24px);
}

.language-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.language-list > span {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font: 600 10px/1.5 var(--font-mono);
}

.contact {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.contact__visual {
  min-height: 620px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

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

.contact__inner {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 5vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.contact__title {
  max-width: 8ch;
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 100px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.contact__inner > div:first-child > p {
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 20px;
}

.contact__actions {
  align-items: flex-start;
  flex-direction: column;
}

.contact__phone {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.035em;
}

.contact__actions > span {
  color: var(--ink-soft);
  font-size: 16px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer__inner {
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 32px;
  align-items: end;
  padding-block: 46px;
}

.site-footer strong {
  font-size: 16px;
  font-weight: 620;
}

.site-footer p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.site-footer__links {
  display: flex;
  gap: 22px;
  font-family: var(--font-display);
  font-size: 12px;
}

.site-footer__meta {
  font: 600 9px/1.4 var(--font-mono);
}

.media-dialog {
  width: min(1100px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-card);
  background: #111318;
  color: #ffffff;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.4);
}

.media-dialog::backdrop {
  background: rgba(6, 8, 12, 0.78);
  backdrop-filter: blur(10px);
}

.media-dialog img {
  width: 100%;
  max-height: calc(100dvh - 150px);
  border-radius: 10px;
  object-fit: contain;
}

.media-dialog p {
  margin: 12px 0 0;
}

.media-dialog__close {
  display: block;
  margin: 0 0 14px auto;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-control);
  background: transparent;
  color: #ffffff;
  font-family: var(--font-display);
  cursor: pointer;
}

.content-shell,
.not-found {
  min-height: 60dvh;
}

.entry-header {
  max-width: 950px;
  margin-bottom: 54px;
}

.entry-content {
  max-width: 760px;
  font-size: 18px;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2.2em;
  line-height: 1.1;
}

.entry-content img {
  border-radius: var(--radius-card);
}

.archive-projects {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.archive-card {
  padding: 18px 18px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.archive-card:nth-child(even) {
  margin-top: 84px;
}

.archive-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 26px;
  border-radius: 12px;
  object-fit: cover;
}

.archive-card h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.archive-card p {
  color: var(--ink-soft);
}

.project-single__lead {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: stretch;
}

.project-single__media,
.project-single__intro {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.project-single__media img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.project-single__intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(30px, 4vw, 54px);
  border: 1px solid var(--line);
}

.project-single__intro h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.project-single__meta,
.project-single__tools {
  color: var(--ink-soft);
  font: 600 10px/1.5 var(--font-mono);
}

.project-single__summary {
  font-size: 20px;
}

.project-single__story {
  max-width: 760px;
  margin: clamp(72px, 10vw, 140px) 0 clamp(72px, 10vw, 140px) 16.66%;
  color: var(--ink-soft);
  font-size: clamp(20px, 2vw, 27px);
}

.project-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.project-gallery .media-button:nth-child(3n) {
  grid-column: 1 / -1;
  margin-top: 0;
}

.project-single__document,
.project-single__footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.not-found {
  display: grid;
  align-content: center;
}

.not-found h1 {
  margin-bottom: 22px;
  font-size: clamp(58px, 8vw, 112px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.reveal {
  opacity: 1;
}

.js-ready .reveal:not(.reveal--ready) {
  opacity: 0;
  clip-path: inset(0 0 12% 0);
  transform: translateY(28px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease), clip-path 900ms var(--ease);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateY(0);
}

.sn-aura-no-motion .reveal,
.sn-aura-no-motion .hero__media,
.sn-aura-no-motion .hero__copy {
  opacity: 1 !important;
  clip-path: none !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

@media (max-width: 1180px) {
  :root {
    --content: min(100% - 40px, 1120px);
  }

  .site-header__inner {
    grid-template-columns: minmax(150px, 1fr) auto auto;
    gap: 16px;
  }

  .primary-navigation .menu {
    gap: 14px;
  }

  .brand__text small {
    display: none;
  }

  .project-feature__content {
    grid-column: 1 / 7;
  }

  .project-feature--offset .project-feature__content {
    grid-column: 7 / -1;
  }

  .contact {
    grid-template-columns: 0.72fr 1.28fr;
  }
}

@media (max-width: 920px) {
  :root {
    --content: calc(100vw - 32px);
    --header-height: 64px;
  }

  .admin-bar .site-header {
    top: 46px;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto auto;
  }

  .site-header {
    background: var(--page);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .brand__text {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    min-width: 66px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
  }

  .primary-navigation {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    padding: 30px 16px;
    border-top: 1px solid var(--line);
    background: var(--page);
    z-index: 31;
  }

  .admin-bar .primary-navigation {
    top: calc(var(--header-height) + 46px);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation .menu {
    display: grid;
    gap: 0;
  }

  .primary-navigation a {
    padding: 18px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .primary-navigation a::after,
  .theme-toggle {
    display: none;
  }

  .hero {
    min-height: 690px;
  }

  .hero__copy {
    grid-column: 1 / 10;
  }

  .project-feature__image {
    min-height: 540px;
  }

  .project-feature__content {
    grid-column: 1 / 7;
  }

  .project-feature--offset .project-feature__content {
    grid-column: 6 / -1;
  }

  .expertise__intro,
  .experience-list,
  .project-single__story {
    margin-left: 0;
  }

  .expertise-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .expertise-item--lead {
    grid-row: auto;
  }

  .expertise-item--image {
    grid-column: 1 / -1;
  }

  .ai-studio__intro,
  .ai-studio__visual {
    grid-column: 1 / -1;
  }

  .ai-studio__visual {
    min-height: 420px;
    margin-top: 32px;
  }

  .ai-studio__capabilities,
  .ai-studio__tools {
    grid-column: 1 / -1;
  }

  .experience-row {
    grid-template-columns: 0.62fr 1.38fr;
  }

  .experience-row > p {
    grid-column: 2;
  }

  .credentials,
  .about,
  .contact,
  .project-single__lead {
    grid-template-columns: 1fr;
  }

  .credentials__visual,
  .credentials__visual img,
  .contact__visual,
  .contact__inner {
    min-height: 480px;
  }

  .contact__visual {
    max-height: 560px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__links {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .section-shell,
  .content-shell,
  .project-single,
  .archive-shell,
  .not-found {
    width: calc(100vw - 32px);
    padding-block: 76px;
  }

  .hero {
    width: calc(100vw - 24px);
    min-height: calc(100dvh - var(--header-height) - 24px);
    margin-top: 12px;
  }

  .hero__media::after {
    background: linear-gradient(0deg, rgba(10, 14, 20, 0.82) 0%, rgba(10, 14, 20, 0.28) 72%, rgba(10, 14, 20, 0.08));
  }

  .hero__copy {
    grid-column: 1 / -1;
    padding: 28px 24px 34px;
  }

  .hero__title {
    font-size: clamp(50px, 15vw, 68px);
  }

  .hero__intro {
    font-size: 18px;
  }

  .hero__actions,
  .project-feature__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .profile-strip {
    width: calc(100vw - 32px);
    padding-bottom: 72px;
  }

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

  .hero__facts > div,
  .hero__facts > div + div {
    min-height: 78px;
    padding: 15px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-title,
  .archive-title,
  .entry-title {
    font-size: clamp(42px, 13vw, 60px);
  }

  .project-list {
    gap: 96px;
  }

  .project-feature {
    display: block;
  }

  .project-feature__image {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .project-feature__content,
  .project-feature--offset .project-feature__content {
    margin: -28px 12px 0;
    padding: 26px 22px;
  }

  .project-feature__details,
  .project-feature--offset .project-feature__details {
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .media-button:nth-child(2),
  .project-gallery .media-button:nth-child(2) {
    margin-top: 0;
  }

  .expertise-grid,
  .language-list,
  .archive-projects,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .expertise-item--image,
  .project-gallery .media-button:nth-child(3n) {
    grid-column: 1;
  }

  .ai-studio {
    display: block;
  }

  .ai-studio__visual {
    min-height: 320px;
  }

  .ai-studio__capabilities {
    margin-top: 66px;
  }

  .ai-capability,
  .ai-studio__tools,
  .experience-row {
    grid-template-columns: 1fr;
  }

  .ai-capability {
    gap: 16px;
  }

  .experience-row > p {
    grid-column: 1;
  }

  .credentials__visual,
  .credentials__visual img,
  .contact__visual,
  .contact__inner {
    min-height: 390px;
  }

  .contact__inner {
    padding: 30px 24px;
  }

  .contact__title {
    font-size: clamp(42px, 12.5vw, 50px);
  }

  .archive-card:nth-child(even) {
    margin-top: 0;
  }

  .project-single__media img {
    min-height: 380px;
  }

  .project-single__document,
  .project-single__footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero__media {
    animation: hero-media-in 1100ms var(--ease) both;
  }

  .hero__copy {
    animation: hero-copy-in 900ms 160ms var(--ease) both;
  }

  @keyframes hero-media-in {
    from {
      opacity: 0;
      transform: scale(1.025);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  @keyframes hero-copy-in {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

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

  .js-ready .reveal {
    opacity: 1;
    clip-path: none;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .project-feature__content {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header {
    background: var(--page);
  }

  .project-feature__content {
    background: var(--surface);
  }
}
