:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --ink: #141614;
  --muted: #687068;
  --line: #e1e6df;
  --green: #2f9b8c;
  --green-dark: #247d73;
  --soft-green: #e4f3f0;
  --charcoal: #202420;
  --shadow: 0 22px 60px rgba(20, 22, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  letter-spacing: 0;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(247, 248, 245, 0.88);
  border-bottom: 1px solid rgba(20, 22, 20, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--green-dark);
}

.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--surface);
  font-size: 14px;
  font-weight: 800;
  background: var(--ink);
  border-radius: 999px;
}

.admin-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--charcoal);
  background: rgba(22, 23, 19, 0.06);
  border: 1px solid rgba(22, 23, 19, 0.1);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.admin-icon-link:hover,
.admin-icon-link:focus-visible {
  color: #fff;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.mobile-menu {
  position: fixed;
  top: 76px;
  left: 16px;
  right: 16px;
  z-index: 21;
  display: grid;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  padding: 14px 12px;
  color: var(--muted);
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  width: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 0 0 62px;
}

.hero-copy {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding-top: clamp(42px, 6vw, 78px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.green {
  color: var(--green-dark);
}

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

.hero h1 {
  max-width: 520px;
  margin-bottom: 24px;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 900;
  border-radius: 999px;
}

.primary-button {
  color: var(--surface);
  background: var(--green);
}

.secondary-button {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero-visual {
  order: -1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  width: 100%;
  min-height: 0;
}

.logo-stage,
.hero-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.logo-stage {
  display: none;
}

.logo-stage img {
  width: min(150px, 84%);
  object-fit: contain;
}

.hero-image {
  margin: 0;
  width: 100%;
  height: clamp(320px, 42vw, 560px);
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

.hero-image img {
  width: 100%;
  height: 100%;
  filter: grayscale(1);
  object-fit: cover;
  object-position: center center;
}

.about-section,
.works-section,
.process-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  padding-bottom: 46px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-section .section-kicker {
  display: none;
}

.about-section + .photo-section {
  padding-top: 24px;
  padding-bottom: 64px;
}

.photo-section + .works-section {
  padding-top: 42px;
}

.section-kicker {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-section h2,
.section-heading h2,
.contact-section h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.12;
  font-weight: 900;
}

.about-section h2 {
  max-width: 780px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.22;
  word-break: keep-all;
  overflow-wrap: normal;
}

.about-section p,
.section-heading > p,
.work-info p,
.process-list p,
.contact-list {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.76;
}

.about-section .license-note {
  margin-top: 18px;
  max-width: 780px;
  color: var(--muted);
  word-break: keep-all;
}

.about-section .license-note p {
  margin: 0 0 4px;
  color: inherit;
  font-size: 16px;
  line-height: 1.76;
  font-weight: 400;
}

.about-section .license-note p:last-child {
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 800;
}

.about-section .license-note strong {
  color: inherit;
  font-weight: inherit;
}

.section-heading > p {
  font-size: 14px;
  line-height: 1.7;
}

.project-categories {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.metrics {
  display: grid;
  gap: 10px;
  margin: 0;
  transform: translateX(-28px);
}

.metrics div {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metrics dt {
  margin-bottom: 4px;
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 900;
}

.metrics dd {
  margin: 0;
  color: var(--muted);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 26px;
  align-items: end;
  margin-bottom: 34px;
}

.source-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.photo-feed {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.photo-card {
  overflow: hidden;
  background: var(--surface);
}

.photo-card img {
  aspect-ratio: 4 / 5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 220ms ease, filter 220ms ease;
}

.photo-card:hover img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.02);
}

.photo-card.is-bw img,
.photo-card.is-bw:hover img {
  filter: grayscale(1) contrast(1.04);
}

.work-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(20, 22, 20, 0.06);
}

.work-card.is-hidden {
  display: none;
}

.work-card.featured {
  grid-column: span 2;
}

.work-card img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 220ms ease, filter 220ms ease;
}

.work-card.featured img {
  aspect-ratio: 2 / 1;
}

.project-gallery {
  display: none;
}

.work-card:hover img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.015);
}

.work-info {
  padding: 20px;
}

.work-info span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-info h3 {
  margin-bottom: 8px;
  font-size: clamp(21px, 2.1vw, 28px);
  line-height: 1.25;
}

.work-info p {
  margin-bottom: 0;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  list-style: none;
}

.process-list li {
  min-height: 250px;
  padding: 28px;
  background: var(--surface);
}

.process-list span {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--green-dark);
  font-weight: 900;
}

.process-list h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
  padding: 96px clamp(18px, 4vw, 54px);
  color: var(--surface);
  background: var(--charcoal);
}

.contact-section .eyebrow {
  color: var(--green);
}

.contact-section h2 {
  max-width: 680px;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.16;
  word-break: keep-all;
}

.contact-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
  list-style: none;
}

.contact-form {
  display: grid;
  gap: 15px;
  width: min(520px, 100%);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 15px;
  color: var(--surface);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  outline: 0;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--green);
}

.contact-form option {
  color: var(--ink);
}

.contact-form button {
  min-height: 52px;
  color: var(--ink);
  font-weight: 900;
  background: var(--green);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.site-footer {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 26px clamp(18px, 4vw, 54px);
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: var(--ink);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
  background: rgba(10, 13, 12, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  position: relative;
  width: min(1100px, 100%);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #111;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.lightbox figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 51;
  width: 44px;
  height: 44px;
  color: var(--surface);
  font-size: 30px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 51;
  width: 50px;
  height: 64px;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero,
  .about-section,
  .section-heading,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .logo-stage,
  .hero-image {
    min-height: 360px;
  }

  .works-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand span {
    display: none;
  }

  .hero {
    width: 100%;
    padding: 0 0 54px;
  }

  .hero-copy {
    width: min(100% - 32px, 1240px);
    padding-top: 44px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 50px);
  }

  .about-section h2 {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.28;
  }

  .hero-actions {
    display: grid;
  }

  .hero-visual {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .logo-stage {
    min-height: 190px;
  }

  .hero-image {
    height: 280px;
    min-height: 0;
    aspect-ratio: auto;
  }

  .about-section,
  .works-section,
  .process-section {
    padding: 66px 0;
  }

  .works-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .photo-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-card.featured {
    grid-column: auto;
  }

  .work-card.featured img,
  .work-card img {
    aspect-ratio: 4 / 3;
  }

  .process-list li {
    min-height: 210px;
  }

  .process-list span {
    margin-bottom: 32px;
  }

  .contact-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .site-footer {
    display: grid;
  }
}

/* Modern visual refresh */
:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --ink: #161713;
  --muted: #73756f;
  --line: rgba(22, 23, 19, 0.12);
  --green: #57c2ad;
  --green-dark: #178675;
  --soft-green: #e6f4ef;
  --charcoal: #171915;
  --shadow: 0 24px 70px rgba(18, 20, 17, 0.14);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 243, 239, 0.94) 34%),
    var(--bg);
}

.site-header {
  top: 12px;
  width: min(1180px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(22, 23, 19, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(22, 23, 19, 0.08);
}

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

.desktop-nav {
  gap: 8px;
  padding: 4px;
  background: rgba(22, 23, 19, 0.04);
  border-radius: 8px;
}

.desktop-nav a {
  padding: 10px 14px;
  border-radius: 7px;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--ink);
  background: var(--surface);
}

.header-cta,
.primary-button,
.secondary-button,
.contact-form button {
  border-radius: 8px;
}

.header-cta {
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  background: var(--charcoal);
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(600px, 42vw, 1080px);
  padding: 0;
  margin-top: -66px;
  background: var(--charcoal);
  overflow: hidden;
}

.hero-visual,
.hero-copy {
  grid-area: 1 / 1;
}

.hero-visual {
  position: relative;
  height: 100%;
}

.hero-image {
  position: relative;
  height: 100%;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 14, 0.84), rgba(15, 17, 14, 0.4) 44%, rgba(15, 17, 14, 0.08)),
    linear-gradient(0deg, rgba(15, 17, 14, 0.52), rgba(15, 17, 14, 0.04) 54%);
}

.hero-image img {
  filter: grayscale(1) contrast(1.08);
  transform: scale(1.02);
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(1180px, calc(100% - 36px));
  padding: 180px 0 clamp(70px, 9vw, 120px);
  color: #fff;
}

.hero .eyebrow {
  color: var(--green);
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(40px, 6.4vw, 82px);
  line-height: 0.98;
}

.hero-copy p:not(.eyebrow) {
  max-width: 980px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.18vw, 18px);
}

.primary-button {
  color: var(--ink);
  background: var(--green);
  box-shadow: 0 14px 36px rgba(87, 194, 173, 0.24);
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
}

.about-section,
.works-section,
.process-section {
  width: min(1180px, calc(100% - 36px));
  padding: clamp(78px, 9vw, 128px) 0;
}

.about-section {
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  border-top: 0;
  border-bottom: 0;
}

.about-section > div:nth-child(2) {
  transform: translateX(34px);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.section-kicker,
.eyebrow.green,
.work-info span,
.process-list span {
  color: var(--green-dark);
}

.section-heading {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  align-items: end;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.works-grid {
  gap: 14px;
}

.work-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(22, 23, 19, 0.08);
  border-radius: 8px;
  box-shadow: none;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 134, 117, 0.28);
  box-shadow: 0 18px 44px rgba(22, 23, 19, 0.1);
}

.work-card img {
  filter: saturate(0.86) contrast(1.03);
}

.work-card:hover img {
  filter: saturate(1) contrast(1.04);
}

.work-info {
  padding: 22px;
}

.metrics {
  gap: 12px;
}

.metrics div,
.process-list li {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(22, 23, 19, 0.08);
  border-radius: 8px;
}

.process-list {
  gap: 14px;
  background: transparent;
  border: 0;
}

.process-list li {
  min-height: 238px;
  padding: 30px;
}

.contact-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 36px;
  padding: clamp(62px, 7vw, 92px) clamp(24px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(87, 194, 173, 0.16), transparent 36%),
    var(--charcoal);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(22, 23, 19, 0.18);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  background: transparent;
}

@media (max-width: 980px) {
  .site-header {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: clamp(600px, 78vh, 900px);
    margin-top: -62px;
  }

  .hero-copy {
    padding-top: 150px;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 8px;
    margin-top: 8px;
  }

  .hero {
    min-height: 640px;
    margin-top: -58px;
  }

  .hero-copy {
    width: min(100% - 32px, 1180px);
    padding: 136px 0 54px;
  }

  .hero h1 {
    font-size: clamp(34px, 12vw, 50px);
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-image {
    height: 100%;
  }

  .about-section,
  .works-section,
  .process-section {
    padding: 64px 0;
  }

  .contact-section {
    width: min(100% - 24px, 1180px);
    margin-bottom: 20px;
  }
}

#project .work-card.featured {
  grid-column: auto;
}

#project .work-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#project .work-card img,
#project .work-card.featured img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

#project .work-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 82px;
}

#project .work-info h3 {
  min-height: 35px;
}

.hero {
  min-height: clamp(460px, 34vw, 650px);
}

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

@media (max-width: 980px) {
  .hero {
    min-height: clamp(520px, 62vh, 720px);
  }
}

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

.admin-page {
  min-height: 100vh;
  color: var(--ink);
  background: var(--warm);
}

.admin-shell {
  width: min(980px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 96px) 0;
  display: grid;
  place-items: center;
}

.admin-login,
.admin-panel {
  width: 100%;
  padding: clamp(28px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid rgba(28, 35, 34, 0.1);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(22, 23, 19, 0.13);
}

.admin-login {
  max-width: 520px;
}

.admin-login img {
  width: 124px;
  height: auto;
  margin-bottom: 26px;
}

.admin-login h1,
.admin-panel h1 {
  margin: 8px 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
}

.admin-login p,
.admin-note p,
.admin-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.admin-password-form {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.admin-password-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.admin-password-form input {
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(28, 35, 34, 0.18);
  border-radius: 8px;
  font: inherit;
}

.admin-password-form button,
.admin-panel-header a,
.admin-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  color: var(--surface);
  background: var(--green-dark);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.admin-home-link {
  margin-top: 18px;
  color: var(--green-dark);
  background: transparent;
  border: 1px solid rgba(44, 134, 117, 0.24);
}

.admin-error {
  color: #b33a2f;
  font-weight: 800;
}

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 34px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.admin-grid article,
.admin-note {
  padding: 22px;
  background: rgba(246, 243, 235, 0.82);
  border: 1px solid rgba(28, 35, 34, 0.08);
  border-radius: 8px;
}

.admin-grid span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.admin-grid h2,
.admin-note h2 {
  margin: 10px 0;
  font-size: 20px;
}

.admin-note {
  margin-top: 16px;
}

@media (max-width: 760px) {
  .admin-panel-header,
  .admin-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}
