
    :root {
      --earth: #2c2415;
      --clay: #8b6b3d;
      --sand: #c9a96e;
      --cream: #f4efe6;
      --off-white: #fafaf7;
      --steel: #3a4a52;
      --mist: #d6e0e4;
      --accent: #d4541a;
      --accent-light: #f0845a;
      --grid-color: rgba(44, 36, 21, 0.06);
      --nav-h: 88px;
      --page-pad: clamp(24px, 4vw, 56px);
      --max-width: 1280px;
    }

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

    html { scroll-behavior: smooth; }

    body {
      min-height: 100vh;
      margin: 0;
      display: flex;
      flex-direction: column;
      background: var(--off-white);
      color: var(--earth);
      font-family: "Outfit", Arial, sans-serif;
      font-size: 18px;
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    button, input, select, textarea { font: inherit; }
    img { max-width: 100%; }
    a { color: inherit; }

    .site-nav {
      position: fixed;
      inset: 0 0 auto 0;
      z-index: 1000;
      height: var(--nav-h);
      background: var(--earth);
      border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .nav-inner {
      width: min(100%, var(--max-width));
      height: 100%;
      margin: 0 auto;
      padding: 0 var(--page-pad);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 28px;
    }

    .brand-link {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      overflow: hidden;
      text-decoration: none;
    }

    .brand-link img {
      display: block;
	  width: 256px;
	  height: 85px;
      /*width: 192px;*/
      /* height: 69px; */
	  style="background:none;
      object-fit: contain;
    }

    .nav-links {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 32px;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .nav-links a {
      position: relative;
      padding: 12px 0;
      color: var(--mist);
      font-family: "IBM Plex Mono", monospace;
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 0.1em;
      line-height: 1;
      text-decoration: none;
      text-transform: uppercase;
      transition: color 0.2s ease;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible,
    .nav-links a[aria-current="page"] { color: var(--sand); }

    .nav-links .nav-cta {
      padding: 12px 20px;
      border-radius: 2px;
      background: var(--accent);
      color: #fff;
    }

    .nav-links .nav-cta:hover,
    .nav-links .nav-cta:focus-visible,
    .nav-links .nav-cta[aria-current="page"] {
      background: var(--accent-light);
      color: #fff;
    }

    .menu-toggle {
      display: none;
      width: 46px;
      height: 42px;
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 2px;
      background: transparent;
      color: var(--cream);
      cursor: pointer;
    }

    .menu-toggle span,
    .menu-toggle::before,
    .menu-toggle::after {
      content: "";
      display: block;
      width: 20px;
      height: 2px;
      margin: 5px auto;
      background: currentColor;
    }

    main { flex: 1 0 auto; padding-top: var(--nav-h); }
    .page { display: block; }

    .section-inner {
      width: min(100%, var(--max-width));
      margin: 0 auto;
    }

    .eng-grid {
      background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
      background-size: 40px 40px;
    }

    .section-label,
    .hero-overline {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 0 0 16px;
      color: var(--clay);
      font-family: "IBM Plex Mono", monospace;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.16em;
      line-height: 1.4;
      text-transform: uppercase;
    }

    .section-label::after {
      content: "";
      width: 58px;
      height: 1px;
      background: currentColor;
      opacity: 0.35;
    }

    .label-light { color: var(--sand); }

    .hero {
      position: relative;
      overflow: hidden;
      background: var(--earth);
      color: var(--cream);
    }

    .hero .section-inner {
      position: relative;
      z-index: 1;
      min-height: 650px;
      padding: 76px var(--page-pad) 82px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .hero-bg-text {
      position: absolute;
      top: 50%;
      right: -28px;
      transform: translateY(-50%);
      color: rgba(255,255,255,0.03);
      font-family: "DM Serif Display", Georgia, serif;
      font-size: clamp(150px, 20vw, 292px);
      line-height: 1;
      pointer-events: none;
      user-select: none;
      white-space: nowrap;
    }

    .hero-overline {
      margin-bottom: 20px;
      color: var(--sand);
    }

    .hero-overline::before {
      content: "";
      width: 40px;
      height: 1px;
      background: currentColor;
    }

    .hero h1,
    .page-hero h1,
    .about-hero h1,
    .contact-hero h1 {
      margin: 0;
      font-family: "DM Serif Display", Georgia, serif;
      font-weight: 400;
      letter-spacing: -0.02em;
    }

    .hero h1 {
      max-width: 760px;
      font-size: clamp(58px, 7vw, 94px);
      line-height: 0.98;
    }

    .hero h1 em { color: var(--sand); }

    .hero-sub {
      max-width: 590px;
      margin: 28px 0 0;
      color: var(--mist);
      font-size: 19px;
      font-weight: 300;
      line-height: 1.65;
    }

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

    .btn-primary,
    .btn-outline {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding: 13px 28px;
      border-radius: 2px;
      font-family: "IBM Plex Mono", monospace;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.11em;
      line-height: 1.2;
      text-decoration: none;
      text-transform: uppercase;
      cursor: pointer;
      transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    }

    .btn-primary {
      border: 1px solid var(--accent);
      background: var(--accent);
      color: #fff;
    }

    .btn-primary:hover,
    .btn-primary:focus-visible {
      border-color: var(--accent-light);
      background: var(--accent-light);
      transform: translateY(-1px);
    }

    .btn-outline {
      border: 1px solid rgba(255,255,255,0.3);
      background: transparent;
      color: var(--cream);
    }

    .btn-outline:hover,
    .btn-outline:focus-visible {
      border-color: var(--sand);
      color: var(--sand);
    }

    .stats-strip {
      background: var(--cream);
      border-top: 3px solid var(--accent);
    }

    .stats-grid {
      width: min(100%, var(--max-width));
      margin: 0 auto;
      padding: 36px var(--page-pad);
      display: grid;
      grid-template-columns: repeat(3, 1fr);
    }

    .stat {
      padding: 0 34px;
      border-right: 1px solid rgba(44,36,21,0.14);
    }

    .stat:first-child { padding-left: 0; }
    .stat:last-child { border-right: 0; }

    .stat-num {
      font-family: "DM Serif Display", Georgia, serif;
      font-size: 50px;
      line-height: 1;
    }

    .stat-num span {
      color: var(--accent);
      font-size: 27px;
    }

    .stat-label {
      margin-top: 8px;
      color: var(--clay);
      font-family: "IBM Plex Mono", monospace;
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .why-section,
    .services-detail,
    .about-body,
    .contact-body {
      padding: 72px var(--page-pad);
    }

    .why-grid {
      margin-top: 34px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: clamp(42px, 6vw, 78px);
      align-items: start;
    }

    .why-left h2,
    .services-preview h2,
    .about-text h2,
    .contact-info h2 {
      margin: 0;
      font-family: "DM Serif Display", Georgia, serif;
      font-weight: 400;
      letter-spacing: -0.01em;
    }

    .why-left h2 {
      max-width: 540px;
      font-size: clamp(42px, 4vw, 54px);
      line-height: 1.06;
    }

    .why-left p,
    .about-text p,
    .contact-info p {
      color: var(--steel);
      font-weight: 300;
    }

    .why-left p {
      max-width: 610px;
      margin: 20px 0 0;
      font-size: 18px;
      line-height: 1.75;
    }

    .why-right {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .why-card {
      padding: 26px 30px;
      border-left: 3px solid var(--accent);
      background: var(--cream);
    }

    .why-card h3 {
      margin: 0 0 8px;
      color: var(--accent);
      font-family: "IBM Plex Mono", monospace;
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .why-card p {
      margin: 0;
      color: var(--steel);
      font-size: 16.5px;
      font-weight: 300;
      line-height: 1.6;
    }

    .services-preview {
      padding: 66px var(--page-pad) 72px;
      background: var(--earth);
      color: var(--cream);
    }

    .services-preview h2 {
      margin-bottom: 34px;
      font-size: clamp(38px, 4vw, 46px);
      line-height: 1.1;
    }

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

    .svc-card-home {
      min-height: 206px;
      padding: 30px 30px 28px;
      border-top: 2px solid var(--clay);
      background: rgba(255,255,255,0.055);
      transition: background 0.2s ease;
    }

    .svc-card-home:hover { background: rgba(255,255,255,0.085); }

    .svc-num,
    .svc-row-num {
      color: var(--clay);
      font-family: "IBM Plex Mono", monospace;
      font-size: 12px;
      letter-spacing: 0.08em;
    }

    .svc-card-home h3 {
      margin: 13px 0 8px;
      color: var(--cream);
      font-family: "DM Serif Display", Georgia, serif;
      font-size: 27px;
      font-weight: 400;
      line-height: 1.12;
    }

    .svc-card-home p {
      margin: 0;
      color: var(--mist);
      font-size: 16px;
      font-weight: 300;
      line-height: 1.62;
    }

    .services-more { margin-top: 32px; }

    .page-hero,
    .about-hero,
    .contact-hero {
      position: relative;
      overflow: hidden;
      background: var(--earth);
      color: var(--cream);
    }

    .page-hero .section-inner,
    .about-hero .section-inner,
    .contact-hero .section-inner {
      position: relative;
      z-index: 1;
      padding: 54px var(--page-pad) 64px;
    }

    .page-hero::after {
      content: attr(data-word);
      position: absolute;
      right: 30px;
      bottom: -26px;
      color: rgba(255,255,255,0.035);
      font-family: "DM Serif Display", Georgia, serif;
      font-size: clamp(120px, 15vw, 190px);
      line-height: 1;
      pointer-events: none;
    }

    .page-hero h1,
    .about-hero h1,
    .contact-hero h1 {
      max-width: 760px;
      font-size: clamp(50px, 6vw, 68px);
      line-height: 1.02;
    }

    .page-hero p,
    .contact-hero p {
      max-width: 620px;
      margin: 18px 0 0;
      color: var(--mist);
      font-size: 18px;
      font-weight: 300;
      line-height: 1.65;
    }

    .services-list {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .svc-row {
      display: grid;
      grid-template-columns: 72px minmax(210px, 0.8fr) minmax(0, 1.3fr);
      gap: 24px;
      align-items: start;
      padding: 30px 34px;
      background: var(--cream);
      border-bottom: 1px solid rgba(44,36,21,0.07);
    }

    .svc-row-title {
      font-family: "DM Serif Display", Georgia, serif;
      font-size: 29px;
      line-height: 1.08;
    }

    .svc-row-desc {
      color: var(--steel);
      font-size: 17px;
      font-weight: 300;
      line-height: 1.65;
    }

    .services-cta {
      margin-top: 42px;
      text-align: center;
    }

    .about-body .section-inner {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
      gap: clamp(46px, 6vw, 80px);
      align-items: start;
    }

    .about-text h2 {
      font-size: 38px;
      line-height: 1.1;
    }

    .about-text h2 + p { margin-top: 20px; }
    .about-text h2:not(:first-child) { margin-top: 42px; }

    .about-text p {
      margin: 0 0 18px;
      font-size: 18px;
      line-height: 1.78;
    }

    .value-list {
      display: flex;
      flex-direction: column;
      gap: 9px;
      list-style: none;
      margin: 14px 0 0;
      padding: 0;
    }

    .value-list li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      color: var(--steel);
      font-size: 16px;
      line-height: 1.52;
    }

    .value-list li::before {
      content: "→";
      flex: 0 0 auto;
      color: var(--accent);
      font-family: monospace;
    }

    .about-sidebar {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .about-photo-wrap {
      overflow: hidden;
      background: var(--cream);
    }

    .about-photo-wrap img {
      display: block;
      width: 100%;
      aspect-ratio: 4 / 5;
      object-fit: cover;
      object-position: 50% 35%;
    }

    .sidebar-box,
    .service-area-box {
      padding: 26px 28px;
      border-top: 3px solid var(--accent);
      background: var(--cream);
    }

    .sidebar-box h3,
    .service-area-box h3 {
      margin: 0 0 10px;
      color: var(--clay);
      font-family: "IBM Plex Mono", monospace;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .sidebar-box p,
    .service-area-box p {
      margin: 0;
      color: var(--steel);
      font-size: 16px;
      font-weight: 300;
      line-height: 1.6;
    }

    .sidebar-box .btn-primary { margin-top: 18px; }

    .gallery-page {
      min-height: calc(100vh - var(--nav-h) - 116px);
      background: var(--off-white);
    }

    .contact-body .section-inner {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
      gap: clamp(48px, 7vw, 90px);
      align-items: start;
    }

    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 7px;
    }

    .form-group label {
      color: var(--clay);
      font-family: "IBM Plex Mono", monospace;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%;
      padding: 13px 15px;
      border: 1px solid rgba(44,36,21,0.18);
      border-radius: 2px;
      outline: none;
      background: var(--cream);
      color: var(--earth);
      font-size: 17px;
      font-weight: 300;
      line-height: 1.45;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .form-group textarea {
      min-height: 132px;
      resize: vertical;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      border-color: var(--clay);
      box-shadow: 0 0 0 2px rgba(139,107,61,0.12);
    }

    .form-submit {
      align-self: flex-start;
      margin-top: 4px;
    }

    .form-note {
      margin: -2px 0 0;
      color: #667278;
      font-size: 14px;
    }

    .contact-info {
      display: flex;
      flex-direction: column;
      gap: 26px;
    }

    .contact-info h2 {
      font-size: 36px;
      line-height: 1.1;
    }

    .contact-info p {
      margin: 10px 0 0;
      font-size: 17px;
      line-height: 1.65;
    }

    .contact-detail {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .contact-row {
      display: grid;
      grid-template-columns: 82px 1fr;
      gap: 14px;
      align-items: start;
    }

    .contact-row-label {
      color: var(--clay);
      font-family: "IBM Plex Mono", monospace;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .contact-row-val {
      color: var(--earth);
      font-size: 16px;
      line-height: 1.5;
    }

    .contact-row-val a { text-underline-offset: 3px; }
    .service-area-box.secondary { border-top-color: var(--clay); }

    footer {
      flex: 0 0 auto;
      background: var(--earth);
      border-top: 3px solid var(--accent);
      color: var(--cream);
    }

    .footer-inner {
      width: min(100%, var(--max-width));
      margin: 0 auto;
      padding: 34px var(--page-pad) 26px;
    }

    .footer-main {
      display: grid;
      grid-template-columns: minmax(260px, 1fr) auto;
      gap: 42px;
      align-items: center;
    }

    .footer-logo {
      font-family: "DM Serif Display", Georgia, serif;
      font-size: 25px;
      line-height: 1.15;
    }

    .footer-tagline {
      margin-top: 7px;
      color: var(--clay);
      font-family: "IBM Plex Mono", monospace;
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .footer-contact {
      display: flex;
      align-items: center;
      gap: 28px;
    }

    .footer-contact-item {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .footer-contact-label {
      color: var(--clay);
      font-family: "IBM Plex Mono", monospace;
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .footer-contact a {
      color: var(--cream);
      font-size: 16px;
      font-weight: 500;
      line-height: 1.3;
      text-decoration: none;
      text-underline-offset: 4px;
    }

    .footer-contact a:hover,
    .footer-contact a:focus-visible {
      color: var(--sand);
      text-decoration: underline;
    }

    .footer-bottom {
      margin-top: 26px;
      padding-top: 18px;
      border-top: 1px solid rgba(255,255,255,0.09);
      display: flex;
      justify-content: space-between;
      gap: 24px;
      color: var(--clay);
      font-family: "IBM Plex Mono", monospace;
      font-size: 10px;
      letter-spacing: 0.07em;
      text-transform: uppercase;
    }

    .fade-in {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .fade-in.visible {
      opacity: 1;
      transform: translateY(0);
    }

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

    @media (max-width: 980px) {
      :root { --nav-h: 82px; }

      .brand-link img {
        width: 168px;
        height: 60px;
      }

      .nav-links { gap: 20px; }
      .nav-links a { font-size: 12.5px; }
      .services-grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .why-grid { gap: 42px; }
      .svc-row { grid-template-columns: 54px 0.8fr 1.3fr; padding: 28px 26px; }
      .about-body .section-inner,
      .contact-body .section-inner { gap: 48px; }
    }

    @media (max-width: 780px) {
      :root { --nav-h: 74px; }
      body { font-size: 17px; }

      .brand-link img {
        width: 148px;
        height: 52px;
      }

      .menu-toggle { display: block; }

      .nav-links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        display: none;
        padding: 12px var(--page-pad) 20px;
        background: var(--earth);
        border-top: 1px solid rgba(255,255,255,0.07);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 12px 26px rgba(0,0,0,0.18);
      }

      .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
      }

      .nav-links a {
        display: block;
        padding: 13px 0;
        font-size: 14px;
      }

      .nav-links .nav-cta {
        margin-top: 6px;
        padding: 13px 16px;
        text-align: center;
      }

      .hero .section-inner {
        min-height: 560px;
        padding-top: 56px;
        padding-bottom: 60px;
      }

      .hero h1 { font-size: clamp(50px, 14vw, 70px); }
      .hero-sub { max-width: 540px; font-size: 18px; }
      .hero-bg-text { right: -60px; }

      .stats-grid { grid-template-columns: 1fr; gap: 0; padding-top: 28px; padding-bottom: 28px; }
      .stat { padding: 18px 0; border-right: 0; border-bottom: 1px solid rgba(44,36,21,0.12); }
      .stat:first-child { padding-top: 0; }
      .stat:last-child { padding-bottom: 0; border-bottom: 0; }
      .stat-num { font-size: 44px; }

      .why-section,
      .services-detail,
      .about-body,
      .contact-body { padding-top: 56px; padding-bottom: 56px; }

      .why-grid,
      .about-body .section-inner,
      .contact-body .section-inner { grid-template-columns: 1fr; }

      .services-preview { padding-top: 54px; padding-bottom: 58px; }
      .services-grid-home { grid-template-columns: 1fr; }
      .svc-card-home { min-height: 0; }

      .page-hero .section-inner,
      .about-hero .section-inner,
      .contact-hero .section-inner { padding-top: 44px; padding-bottom: 52px; }

      .page-hero h1,
      .about-hero h1,
      .contact-hero h1 { font-size: clamp(46px, 12vw, 60px); }

      .svc-row {
        grid-template-columns: 44px 1fr;
        gap: 10px 16px;
        padding: 26px 22px;
      }

      .svc-row-title { font-size: 27px; }
      .svc-row-desc { grid-column: 2; font-size: 16.5px; }
      .about-photo-wrap { max-width: 470px; }
      .gallery-page { min-height: calc(100vh - var(--nav-h) - 166px); }

      .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
      }

      .footer-contact {
        justify-content: center;
        flex-wrap: wrap;
      }

      .footer-contact-item { align-items: center; }

      .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
      }
    }

    @media (max-width: 480px) {
      .hero .section-inner { min-height: 520px; }
      .hero h1 { font-size: 50px; }
      .hero-sub { font-size: 17px; }
      .hero-actions { align-items: stretch; }
      .hero-actions .btn-primary,
      .hero-actions .btn-outline { flex: 1 1 100%; }
      .why-card { padding: 23px 22px; }
      .svc-card-home { padding: 26px 24px; }
      .contact-row { grid-template-columns: 1fr; gap: 3px; }
      .form-submit { width: 100%; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
      .fade-in { opacity: 1; transform: none; }
    }
  

    .gallery-page { min-height: calc(100vh - var(--nav-h) - 176px); }

    @media (max-width: 560px) {
      .footer-contact { gap: 20px; }
      .footer-contact a { font-size: 15px; }
    }

/* =========================================================
   Project gallery
   ========================================================= */
.gallery-page {
  min-height: 0;
  background: var(--off-white);
}

.gallery-hero .section-inner {
  padding-top: 64px;
  padding-bottom: 70px;
}

.gallery-hero h1 {
  max-width: 720px;
}

.gallery-hero p {
  max-width: 680px;
}

.gallery-project,
.gallery-case-study {
  padding: 74px var(--page-pad) 88px;
}

.gallery-project .section-inner,
.gallery-case-study .section-inner,
.gallery-cta .section-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.gallery-project-head,
.case-study-header {
  max-width: 900px;
  margin-bottom: 30px;
}

.gallery-project-head h2,
.case-study-header h2 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(40px, 4.5vw, 58px);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.02;
}

.project-scope {
  margin: 13px 0 0;
  color: var(--clay);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.075em;
  line-height: 1.75;
  text-transform: uppercase;
}

.gallery-case-study {
  background: var(--cream);
  border-top: 1px solid rgba(44,36,21,0.07);
  border-bottom: 1px solid rgba(44,36,21,0.07);
}

.case-study-header {
  margin-bottom: 36px;
}

.case-study-intro {
  max-width: 690px;
  margin: 14px 0 0;
  color: var(--steel);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
}

.gallery-chapter {
  margin-top: 58px;
  padding-top: 58px;
  border-top: 1px solid rgba(44,36,21,0.13);
}

.gallery-chapter:first-of-type {
  margin-top: 38px;
  padding-top: 0;
  border-top: 0;
}

.chapter-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  max-width: 880px;
  margin-bottom: 25px;
}

.chapter-num {
  padding-top: 8px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.chapter-head h3 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(31px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.05;
}

.chapter-head p {
  margin: 9px 0 0;
  color: var(--steel);
  font-size: 16.5px;
  font-weight: 300;
  line-height: 1.6;
}

.photo-set {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 14px);
}

.photo-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, 1vw, 14px);
  width: 100%;
}

.gallery-shot {
  position: relative;
  flex: var(--ratio, 1.333333) 1 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #e7e0d4;
  color: inherit;
  cursor: zoom-in;
  appearance: none;
}

.gallery-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(44,36,21,0.08);
  transition: box-shadow 0.2s ease;
}

.gallery-shot:hover::after,
.gallery-shot:focus-visible::after {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.gallery-shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #e7e0d4;
}

.gallery-shot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.gallery-cta {
  padding: 54px var(--page-pad);
  background: var(--earth);
  color: var(--cream);
}

.gallery-cta .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.gallery-cta h2 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.05;
}

body.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  background: rgba(20, 17, 12, 0.97);
  color: #fff;
}

.gallery-lightbox.open {
  display: block;
}

.lightbox-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 68px 86px 70px;
}

.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 18px 60px rgba(0,0,0,0.32);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.2);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  border-color: var(--sand);
  background: rgba(0,0,0,0.48);
  color: var(--sand);
}

.lightbox-close {
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 31px;
  font-weight: 300;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 58px;
  transform: translateY(-50%);
  font-family: Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 18px;
  color: rgba(255,255,255,0.72);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.lightbox-project::after {
  content: "·";
  margin-left: 18px;
  color: var(--clay);
}

@media (max-width: 780px) {
  .gallery-hero .section-inner {
    padding-top: 48px;
    padding-bottom: 54px;
  }

  .gallery-project,
  .gallery-case-study {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .gallery-chapter {
    margin-top: 48px;
    padding-top: 48px;
  }

  .gallery-chapter:first-of-type {
    margin-top: 32px;
  }

  .gallery-cta .section-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox-stage {
    padding: 62px 54px 74px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 680px) {
  .gallery-project-head,
  .case-study-header {
    margin-bottom: 23px;
  }

  .project-scope {
    font-size: 10px;
    line-height: 1.7;
  }

  .case-study-intro {
    font-size: 16px;
  }

  .chapter-head {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }

  .chapter-num {
    padding-top: 5px;
    font-size: 11px;
  }

  .chapter-head p {
    font-size: 15.5px;
  }

  .photo-set,
  .photo-row {
    gap: 8px;
  }

  .photo-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .gallery-shot {
    width: 100%;
  }

  .gallery-cta {
    padding-top: 44px;
    padding-bottom: 46px;
  }

  .lightbox-stage {
    padding: 62px 42px 78px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .lightbox-nav {
    width: 36px;
    height: 52px;
    border-color: rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.16);
    font-size: 23px;
  }

  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }

  .lightbox-meta {
    left: 12px;
    right: 12px;
    bottom: 15px;
    display: block;
    font-size: 9px;
    line-height: 1.55;
  }

  .lightbox-project {
    display: block;
  }

  .lightbox-project::after {
    content: none;
  }

  .lightbox-counter {
    display: block;
    margin-top: 2px;
  }
}
