/* Licni portfolio: lokalni Manrope, topli tonovi i otvoren raspored. */
@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02FF, U+1E00-1EFF;
}
:root {
  --paper: #fcfaf7;
  --surface: #fffdfa;
  --ink: #353b32;
  --muted: #686b61;
  --action: #624c38;
  --coral: #a15c3b;
  --sage: #eee8db;
  --line: #dddcd1;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open {
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
h1,
h2 {
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.055em;
}
h1 {
  font-size: clamp(60px, 6vw, 78px);
}
h2 {
  font-size: clamp(34px, 4vw, 46px);
}
h3,
h4 {
  line-height: 1.4;
}
p + p {
  margin-top: 16px;
}
svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 5px;
}
::selection {
  background: #ead5b5;
  color: var(--ink);
}
.container {
  width: calc(100% - 100px);
  max-width: 1120px;
  margin-inline: auto;
}
.section-space {
  padding-block: 84px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.eyebrow + h2 {
  margin-top: 14px;
}
.accent {
  color: var(--coral);
}
.lead {
  font-size: 20px;
  line-height: 1.8;
}
.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.button {
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
}
.button-primary {
  background: var(--action);
  color: #fff;
}
.button-primary:hover {
  background: #4d3b2a;
}
.text-link {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--action);
}
.text-link:hover {
  color: var(--coral);
}
.text-link > span:last-child {
  font-size: 19px;
}
.skip-link {
  position: absolute;
  left: 18px;
  top: -100px;
  z-index: 20;
}
.skip-link:focus {
  top: 12px;
  padding: 12px;
  background: var(--surface);
}

/* Ime i kratki linkovi, bez dodatnog okvira oko navigacije. */
.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  padding-block: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.monogram {
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2.7px;
  text-decoration: none;
}
.monogram span {
  color: var(--coral);
}
.brand-name {
  font-size: 13px;
  font-weight: 650;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 25px;
}
.site-header nav a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 13px;
  text-decoration: none;
}
.site-header nav a:hover {
  color: var(--coral);
}
.navigation-contact {
  border-bottom: 1px solid var(--coral);
}
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
}
.menu-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* Uvod preko cele sirine: posao, projekti i kratak pregled dostupnosti. */
.intro-section {
  border-block: 1px solid #e9e2d6;
  background: #f6efe5;
}
.hero {
  padding-block: 64px 70px;
}
.hero-copy {
  max-width: 1040px;
}
.hello {
  margin-bottom: 20px;
  color: var(--action);
  font-size: 16px;
  font-weight: 600;
}
.hero h1 {
  max-width: 100%;
}
.hero-emphasis {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  color: #796044;
}
.hero-emphasis::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 3px;
  height: 9px;
  border-top: 2px solid #b08b58;
  border-radius: 50%;
  transform: rotate(-1.5deg);
}
.hero-description {
  max-width: 780px;
  margin-top: 24px;
  color: #606359;
  font-size: 16px;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 27px;
  margin-top: 28px;
}
.hero-actions .text-link {
  font-size: 13px;
}
.availability-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}
.availability-note > span {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #6b7e58;
}
.personal-note {
  position: relative;
  padding: 27px 26px 25px;
  border: 1px solid #e5d6b9;
  border-radius: 2px 5px 3px 4px;
  background: #efe3c9;
  box-shadow: 2px 5px 0 #80684a0a;
  transform: rotate(2.5deg);
}
.personal-note::before {
  content: "";
  position: absolute;
  top: -13px;
  left: calc(50% - 45px);
  width: 90px;
  height: 27px;
  border: 1px solid #ffffff4d;
  background: #fdf8eaa8;
  transform: rotate(-5deg);
}
.note-label {
  color: #786649;
  font-size: 12px;
}
.bicycle-sketch {
  display: block;
  width: 100%;
  height: auto;
  margin-block: 27px 24px;
  stroke: #71674b;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sketch-ground {
  opacity: 0.45;
}
.personal-note h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.4;
}
.personal-note h2 + p {
  margin-top: 13px;
  font-size: 13px;
  line-height: 1.9;
}
.personal-note .note-signoff {
  margin-top: 17px;
  color: #786649;
  font-size: 11px;
}

/* Svaki projekat ima svoj red, pricu i snimak; nema mreze kartica. */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  margin-bottom: 36px;
}
.section-heading > p {
  max-width: 340px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.project-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  counter-reset: project;
}
.project-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 64px;
  min-width: 0;
  padding-block: 52px;
  border-top: 1px solid var(--line);
  counter-increment: project;
}
.project-row > .project-image {
  grid-column: 2;
  grid-row: 1;
}
.project-row > .project-copy {
  grid-column: 1;
  grid-row: 1;
}
.project-row:nth-child(even) {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.92fr);
}
.project-row:nth-child(even) > .project-image {
  grid-column: 1;
}
.project-row:nth-child(even) > .project-copy {
  grid-column: 2;
}
.project-image {
  display: block;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.project-image > img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: contain;
  object-position: top;
  border: 1px solid #d6d8d0;
  border-radius: 4px;
  box-shadow: 0 10px 22px #343b320a;
  transition: transform 180ms ease;
}
.project-image:hover > img {
  transform: translateY(-3px);
}
.image-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  color: var(--muted);
  font-size: 11px;
}
.image-caption > span {
  color: var(--action);
  font-size: 18px;
}
.project-copy {
  min-width: 0;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 11px;
}
.project-meta::before {
  content: counter(project, decimal-leading-zero);
  margin-right: 3px;
  color: var(--coral);
  font-size: 12px;
}
.project-status {
  margin-left: auto;
  color: #6a7059;
  font-size: 10px;
}
.project-copy h3 {
  margin-block: 15px 17px;
  font-size: 35px;
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 1.2;
}
.project-copy > p {
  font-size: 15px;
  line-height: 1.85;
}
.project-copy .project-contribution {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 20px;
  color: var(--muted);
}
.tags span {
  font-size: 11px;
}
.tags span + span::before {
  content: "·";
  margin-right: 12px;
  color: var(--coral);
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 20px;
  margin-top: 22px;
}
.project-actions .text-link {
  font-size: 12px;
  text-decoration: underline;
}
.project-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.project-actions a:hover {
  color: var(--coral);
}
.project-copy .project-note {
  margin-top: 13px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}
.all-projects {
  margin-top: 10px;
  text-decoration: underline;
}

/* Pomoc je opisana kroz tri otvorena reda, uz direktne primere. */
.services-section {
  background: #f3efdf;
}
.services-section .section-heading h2 {
  max-width: 570px;
}
.service-list {
  margin-top: 44px;
}
.service-item {
  display: grid;
  grid-template-columns: 95px minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 14px 38px;
  align-items: start;
  padding-block: 30px;
  border-top: 1px solid #d6d8c5;
}
.service-number {
  grid-column: 1;
  grid-row: 1 / 3;
  padding-top: 6px;
  color: var(--muted);
  font-size: 10px;
}
.service-item h3 {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.service-item p {
  grid-column: 3;
  color: var(--muted);
  font-size: 14px;
}
.service-item a {
  grid-column: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  justify-self: start;
  color: var(--action);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.service-item a:hover {
  color: var(--coral);
}
.services-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-top: 10px;
  padding-top: 26px;
  border-top: 1px solid #d6d8c5;
}
.services-footer p {
  max-width: 660px;
  color: var(--muted);
  font-size: 13px;
}

/* O meni i iskustvo: licni tekst i sve originalne odgovornosti u details. */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 30px 100px;
}
.about-copy {
  grid-column: 2;
  grid-row: 1 / 3;
}
.about-layout > .personal-note {
  grid-column: 1;
  grid-row: 2;
  max-width: 320px;
  margin: 4px 8px 0;
}
.about-layout > .personal-note .bicycle-sketch {
  width: 190px;
  max-width: 100%;
  margin: 18px auto;
}
.about-layout > .personal-note .note-signoff {
  display: block;
  font-size: 12px;
}
.about-signature {
  max-width: 260px;
  margin-top: 30px;
  padding-left: 14px;
  border-left: 2px solid #c2a57a;
  color: var(--muted);
  font-size: 13px;
}
.about-copy > p:not(.lead) {
  color: var(--muted);
  font-size: 14px;
}
.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}
.skill-groups h3 {
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 650;
}
.skill-groups p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}
.experience {
  margin-top: 64px;
}
.experience-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.experience-heading h3 {
  font-size: 17px;
  font-weight: 500;
}
.experience-heading .eyebrow {
  font-size: 12px;
}
.experience-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 100px;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}
.experience-date {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}
.experience-role h4 {
  font-size: 16px;
  font-weight: 600;
}
.experience-role p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.experience-copy > ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}
.experience-copy li + li {
  margin-top: 7px;
}
.experience-details {
  margin-top: 13px;
}
.experience-details > summary,
.recommendation-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  color: var(--action);
  font-size: 12px;
  font-weight: 600;
}
.experience-details > summary::-webkit-details-marker,
.recommendation-details > summary::-webkit-details-marker {
  display: none;
}
.experience-details > summary > span:last-child,
.recommendation-details > summary > span:last-child {
  font-size: 19px;
  font-weight: 400;
}
details[open] > summary > span:last-child {
  transform: rotate(45deg);
}
.experience-details > p {
  padding-block: 13px;
  color: var(--muted);
  font-size: 13px;
}
.availability {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 30px;
  padding: 30px;
  border-radius: 4px;
  background: #f3ecdf;
}
.availability-copy {
  max-width: 740px;
}
.availability .eyebrow {
  font-size: 12px;
}
.availability h3 {
  margin-top: 10px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.3;
}
.availability p:last-child {
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
}
.availability > .button {
  flex-shrink: 0;
}

/* Preporuke kao kratka pisma: autor levo, njegove reci desno. */
.recommendations-section {
  padding-top: 0;
}
.recommendation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.recommendation-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 9px 70px;
  min-width: 0;
  padding-block: 32px;
  border-top: 1px solid var(--line);
}
.recommendation-source {
  grid-column: 1;
  grid-row: 1;
  color: var(--muted);
  font-size: 11px;
}
.recommendation-mark {
  display: none;
}
.recommendation-excerpt {
  grid-column: 2;
  grid-row: 1 / 3;
  margin: 0;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.025em;
}
.recommendation-card figcaption {
  grid-column: 1;
  grid-row: 2 / 4;
  padding-top: 4px;
}
.recommendation-name {
  font-size: 15px;
  font-weight: 600;
}
.recommendation-role,
.recommendation-context {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.recommendation-source-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 8px;
  color: var(--action);
  font-size: 12px;
  text-decoration: none;
}
.recommendation-source-link:hover {
  color: var(--coral);
}
.recommendation-details {
  grid-column: 2;
  grid-row: 3;
  margin-top: 7px;
}
.recommendation-details blockquote {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.details-open {
  display: none;
}
details[open] > summary .details-closed {
  display: none;
}
details[open] > summary .details-open {
  display: inline;
}

/* Kontakt: cuvamo postojecu formu, slanje i sve direktne kontakte. */
.contact-section {
  border-top: 1px solid var(--line);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  gap: 90px;
  margin-top: 18px;
}
.contact-layout > div {
  min-width: 0;
}
.contact-layout h2 + p {
  max-width: 540px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}
.contact-form {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
.contact-honey {
  display: none;
}
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.contact-field label {
  font-size: 12px;
  font-weight: 500;
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #aeb9a9;
  border-radius: 5px;
  background: var(--surface);
  font-size: 16px;
}
.contact-field textarea {
  resize: vertical;
}
.contact-form .button {
  justify-self: start;
}
.contact-form-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.contact-status {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.contact-status[data-state="error"] {
  color: #9c2932;
}
.contact-status[data-state="success"] {
  color: #24613a;
}
.contact-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.contact-links {
  margin-top: 4px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eff1e9;
}
.contact-links > a,
.email-row,
.messaging-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding-block: 13px;
  border-bottom: 1px solid #d0d8c9;
  font-size: 13px;
  text-decoration: none;
}
.email-row {
  gap: 8px;
}
.email-row a {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.copy-button {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: transparent;
}
.copy-button:hover {
  background: #dfe5d7;
}
.copy-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.phone-details {
  display: grid;
  gap: 4px;
}
.phone-details small {
  color: var(--muted);
  font-size: 10px;
}
.phone-details strong {
  font-size: 14px;
  font-weight: 500;
}
.phone-link svg {
  width: 20px;
  height: 20px;
}
.messaging-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.messaging-note {
  margin-block: 12px;
  color: var(--muted);
  font-size: 10px;
}
.contact-links a:hover {
  color: var(--coral);
}
#copy-status {
  margin-top: 12px;
  font-size: 12px;
}
#copy-status:empty {
  display: none;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

/* Jedan pristupacan dijalog za sva cetiri projekta. */
#project-dialog {
  width: calc(100% - 40px);
  max-width: 700px;
  max-height: 90dvh;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
#project-dialog.has-gallery {
  max-width: 1080px;
}
#project-dialog::backdrop {
  background: #1d2b27bd;
}
.dialog-inner {
  position: relative;
  padding: 36px;
}
.dialog-close {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 0 -44px auto;
  padding: 0;
  border: 1px solid #bac8b4;
  border-radius: 50%;
  background: var(--sage);
  font-size: 27px;
  line-height: 1;
}
#dialog-category {
  padding-right: 56px;
}
#dialog-title {
  margin-top: 18px;
}
#dialog-description {
  margin-top: 20px;
  font-size: 16px;
}
.dialog-inner > h3 {
  margin-top: 28px;
  font-size: 17px;
}
#dialog-features {
  padding-left: 22px;
  font-size: 14px;
}
#dialog-features li + li {
  margin-top: 8px;
}
.dialog-note {
  margin-block: 22px;
  padding: 16px;
  border-left: 3px solid var(--coral);
  background: #efe9df;
  font-size: 13px;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  font-size: 13px;
}
.demo-access-help {
  margin-top: 24px;
  padding: 18px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--sage);
  white-space: pre-line;
  font-size: 13px;
}
.project-gallery {
  margin-top: 28px;
}
.gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.gallery-heading h3 {
  font-size: 17px;
}
#gallery-count {
  font-size: 12px;
  white-space: nowrap;
}
.gallery-figure img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}
.gallery-figure figcaption {
  margin-top: 12px;
  font-size: 12px;
}
.gallery-controls {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.gallery-controls button,
.gallery-controls select {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  font-size: 12px;
}
.gallery-controls select {
  flex: 1;
  min-width: 0;
}
.gallery-controls button:disabled {
  opacity: 0.45;
  cursor: default;
}
.gallery-controls button:not(:disabled):hover {
  background: var(--sage);
}
.gallery-guide-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}
.gallery-guide-note:empty {
  display: none;
}

/* Forma i dijalog koriste iste funkcije, uz mirniji izgled kontakata. */
.contact-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 80px;
}
.contact-layout h2 + p {
  font-size: 15px;
}
.contact-links {
  padding: 5px 0 5px 30px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.contact-links > a,
.email-row,
.messaging-links a {
  border-color: var(--line);
}
.copy-button:hover {
  background: #eee6d8;
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  border-color: #c1c0b2;
  border-radius: 4px;
}
.contact-field label {
  font-size: 13px;
}
.contact-form-note {
  font-size: 12px;
}
.site-footer {
  padding-block: 30px;
  font-size: 12px;
}
.dialog-close {
  border-color: #d1bfa0;
}
.gallery-controls button:not(:disabled):hover {
  background: var(--sage);
}

@media (max-width: 1080px) {
  .container {
    width: calc(100% - 64px);
  }
  .site-header nav {
    gap: 8px 18px;
  }
  .brand-name {
    font-size: 12px;
  }
  .hero h1 {
    font-size: 65px;
  }
  .personal-note {
    padding-inline: 22px;
  }
  .personal-note h2 {
    font-size: 21px;
  }
  .project-row {
    gap: 40px;
  }
  .project-copy h3 {
    font-size: 32px;
  }
  .project-meta {
    gap: 7px 9px;
    font-size: 10px;
  }
  .project-status {
    margin-left: 0;
  }
  .service-item {
    grid-template-columns: 72px minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 12px 26px;
  }
  .about-layout,
  .experience-row {
    gap: 55px;
  }
  .skill-groups {
    grid-template-columns: 1fr 1fr;
  }
  .recommendation-card {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 9px 45px;
  }
  .contact-layout {
    gap: 45px;
  }
}

@media (max-width: 800px) {
  .hero {
    padding-block: 52px 58px;
  }
  .hero h1 {
    font-size: 54px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-actions {
    gap: 10px 18px;
  }
  .hero-actions .button {
    padding-inline: 18px;
    font-size: 12px;
  }
  .personal-note {
    padding: 24px 19px;
    transform: rotate(1.5deg);
  }
  .bicycle-sketch {
    margin-block: 24px 18px;
  }
  .personal-note h2 {
    font-size: 19px;
  }
  .personal-note h2 + p {
    font-size: 12px;
  }
  .note-signoff {
    display: none;
  }
  .project-row,
  .project-row:nth-child(even) {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 30px;
    padding-block: 38px;
  }
  .project-copy h3 {
    font-size: 29px;
  }
  .project-copy > p {
    font-size: 14px;
  }
  .project-copy .project-contribution {
    font-size: 12px;
  }
  .project-actions {
    gap: 5px 18px;
  }
  .project-actions .text-link {
    flex-basis: 100%;
    justify-content: start;
  }
  .image-caption {
    font-size: 10px;
  }
  .service-item {
    grid-template-columns: 60px minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 12px 20px;
  }
  .service-item h3 {
    font-size: 23px;
  }
  .service-number {
    font-size: 9px;
  }
  .service-item p {
    font-size: 13px;
  }
  .about-layout,
  .experience-row {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 35px;
  }
  .lead {
    font-size: 18px;
  }
  .recommendation-card {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 9px 30px;
  }
  .recommendation-excerpt {
    font-size: 20px;
  }
  .contact-layout {
    gap: 30px;
  }
  .contact-links {
    padding-left: 22px;
  }
}

/* Linkovi ostaju vidljivi bez JavaScript-a. */
@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    min-height: 80px;
    padding-block: 17px;
  }
  .site-header nav {
    width: 100%;
  }
  .site-header.navigation-ready {
    flex-wrap: nowrap;
  }
  .site-header.navigation-ready .menu-toggle {
    display: inline-flex;
  }
  .site-header.navigation-ready nav {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper);
    box-shadow: 0 12px 20px #40392c0c;
  }
  .site-header.navigation-ready nav.is-open {
    display: flex;
  }
  .site-header.navigation-ready nav a {
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 14px;
  }
  .navigation-contact {
    border: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 44px);
  }
  .section-space {
    padding-block: 56px;
  }
  .site-header {
    gap: 14px;
  }
  .brand-name {
    font-size: 12px;
  }
  .monogram {
    font-size: 29px;
  }
  .hero {
    padding-block: 38px 44px;
  }
  .hello {
    margin-bottom: 18px;
    font-size: 14px;
  }
  .hero h1 {
    font-size: clamp(48px, 11vw, 62px);
  }
  .hero-description {
    max-width: 100%;
    margin-top: 20px;
    font-size: 15px;
  }
  .hero-actions {
    gap: 10px 22px;
    margin-top: 24px;
  }
  .hero-actions .button {
    font-size: 12px;
    padding-inline: 18px;
  }
  .hero-actions .text-link {
    font-size: 12px;
  }
  .availability-note {
    margin-top: 19px;
    font-size: 11px;
  }
  .personal-note {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 0 18px;
    padding: 22px;
    transform: none;
  }
  .personal-note::before {
    left: calc(50% - 35px);
    width: 70px;
    height: 22px;
    top: -10px;
  }
  .note-label {
    display: none;
  }
  .bicycle-sketch {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
  }
  .personal-note h2 {
    grid-column: 2;
    font-size: 16px;
  }
  .personal-note h2 + p {
    grid-column: 2;
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.8;
  }
  h2 {
    font-size: 35px;
  }
  .section-heading {
    flex-direction: column;
    align-items: start;
    gap: 16px;
    margin-bottom: 25px;
  }
  .section-heading > p {
    font-size: 13px;
  }
  .project-row,
  .project-row:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-block: 32px 36px;
  }
  .project-row > .project-image,
  .project-row:nth-child(even) > .project-image {
    grid-column: 1;
    grid-row: 1;
  }
  .project-row > .project-copy,
  .project-row:nth-child(even) > .project-copy {
    grid-column: 1;
    grid-row: 2;
  }
  .project-copy h3 {
    margin-block: 12px 15px;
    font-size: 31px;
  }
  .project-meta {
    font-size: 11px;
    gap: 8px 10px;
  }
  .project-status {
    margin-left: auto;
    font-size: 10px;
  }
  .project-copy > p {
    font-size: 15px;
  }
  .project-copy .project-contribution {
    font-size: 13px;
  }
  .tags {
    margin-top: 18px;
  }
  .project-actions {
    margin-top: 16px;
    gap: 4px 18px;
  }
  .project-actions .text-link {
    flex-basis: auto;
  }
  .project-copy .project-note {
    font-size: 11px;
  }
  .image-caption {
    padding-top: 11px;
    font-size: 11px;
  }
  .all-projects {
    font-size: 13px;
  }
  .service-list {
    margin-top: 32px;
  }
  .service-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px 20px;
    padding-block: 26px;
  }
  .service-number {
    grid-column: 1;
    grid-row: 1;
    overflow: hidden;
    max-width: 25px;
    white-space: nowrap;
    font-size: 11px;
    padding-top: 5px;
  }
  .service-item h3 {
    grid-column: 2;
    grid-row: 1;
    font-size: 25px;
  }
  .service-item h3 br {
    display: none;
  }
  .service-item p {
    grid-column: 2;
    grid-row: 2;
    font-size: 14px;
  }
  .service-item a {
    grid-column: 2;
    grid-row: 3;
    font-size: 12px;
  }
  .services-footer {
    gap: 14px;
    margin-top: 0;
    padding-top: 24px;
  }
  .about-layout,
  .experience-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }
  .about-copy {
    grid-column: 1;
    grid-row: 2;
  }
  .about-layout > .personal-note {
    grid-row: 3;
    max-width: 100%;
    margin: 12px 0 0;
  }
  .about-layout > .personal-note .bicycle-sketch {
    width: 100%;
    margin: 0;
  }
  .about-layout > .personal-note .note-signoff {
    grid-column: 1 / -1;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #d8c9a8;
  }
  .about-signature {
    margin-top: 20px;
    font-size: 12px;
  }
  .about-copy > p:not(.lead) {
    font-size: 14px;
  }
  .skill-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
    margin-top: 25px;
  }
  .skill-groups h3 {
    font-size: 12px;
  }
  .skill-groups p {
    font-size: 11px;
  }
  .experience {
    margin-top: 40px;
  }
  .experience-row {
    gap: 18px;
    padding-block: 26px;
  }
  .experience-heading h3 {
    font-size: 16px;
  }
  .experience-heading .eyebrow {
    font-size: 11px;
  }
  .experience-details > summary {
    font-size: 11px;
  }
  .availability {
    flex-direction: column;
    align-items: start;
    gap: 20px;
    padding: 24px;
  }
  .availability h3 {
    font-size: 25px;
  }
  .availability p:last-child {
    font-size: 13px;
  }
  .recommendations-section {
    padding-top: 0;
  }
  .recommendation-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-block: 28px;
  }
  .recommendation-source {
    grid-column: 1;
    grid-row: 1;
    font-size: 11px;
  }
  .recommendation-excerpt {
    grid-column: 1;
    grid-row: 2;
    margin-top: 18px;
    font-size: 21px;
  }
  .recommendation-card figcaption {
    grid-column: 1;
    grid-row: 3;
    margin-top: 22px;
  }
  .recommendation-name {
    font-size: 14px;
  }
  .recommendation-role,
  .recommendation-context {
    font-size: 11px;
  }
  .recommendation-details {
    grid-column: 1;
    grid-row: 4;
    margin-top: 9px;
  }
  .recommendation-details blockquote {
    font-size: 13px;
  }
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }
  .contact-form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .contact-links {
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .contact-layout h2 + p {
    font-size: 14px;
  }
  .contact-links > a,
  .messaging-links a {
    font-size: 14px;
  }
  .email-row a {
    font-size: 13px;
  }
  .phone-details small,
  .messaging-note {
    font-size: 11px;
  }
  .site-footer {
    gap: 18px 24px;
    font-size: 10px;
  }
  .site-footer > .monogram {
    width: calc(50% - 12px);
  }
  #project-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }
  .dialog-inner {
    padding: 22px;
  }
  #dialog-title {
    font-size: 34px;
    overflow-wrap: anywhere;
  }
  #dialog-description {
    font-size: 15px;
  }
  #dialog-category {
    min-height: 40px;
    font-size: 10px;
  }
  .gallery-controls {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }
  .gallery-controls select {
    flex-basis: 100%;
    order: 2;
  }
  .gallery-figure img {
    max-height: 50vh;
  }
  .dialog-actions {
    gap: 10px 20px;
  }
}

@media (max-width: 380px) {
  .container {
    width: calc(100% - 36px);
  }
  .brand-name {
    font-size: 11px;
  }
  .hero h1 {
    font-size: 46px;
  }
  .hero-actions {
    gap: 8px 20px;
  }
  .hero-actions .button {
    padding-inline: 16px;
  }
  .personal-note {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 0 15px;
    padding: 20px;
  }
  .personal-note h2 {
    font-size: 15px;
  }
  .personal-note h2 + p {
    font-size: 11px;
  }
  .project-status {
    margin-left: 0;
  }
  .project-actions .text-link {
    flex-basis: 100%;
    justify-content: start;
  }
  .service-item {
    gap: 12px 14px;
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .recommendation-excerpt {
    font-size: 20px;
  }
  .email-row a {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
