/* Shared natural editorial system --------------------------------------- */
:root {
  --forest: #173a2b;
  --forest-deep: #0d2017;
  --moss: #687b61;
  --paper: #f4f2eb;
  --paper-soft: #e9e6dc;
  --paper-warm: #ddd2c0;
  --ink: #172019;
  --charcoal: #171915;
  --clay: #75462f;
  --sun: #c89c52;
  --lake: #6f8d91;
  --muted: #535e55;
  --dim: #5a635b;
  --line: rgba(23, 32, 25, .16);
  --line-light: rgba(241, 238, 229, .24);
  --display: "Cormorant Garamond", "Iowan Old Style", Baskerville, Georgia, serif;
  --body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --page-gutter: clamp(1.25rem, 4vw, 4.75rem);
  --header-height: 4.8rem;
  color-scheme: light;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out .35s ease both; }
::view-transition-new(root) { animation: page-in .65s cubic-bezier(.16,1,.3,1) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-1rem); } }
@keyframes page-in { from { opacity: 0; transform: translateY(2rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.6; text-rendering: optimizeLegibility; }
body.menu-open, body.dialog-open { overflow: hidden; }
::selection { background: var(--forest); color: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { color: inherit; font: inherit; }
button { border: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { color: var(--clay); font-style: italic; font-weight: 400; }
section[id] { scroll-margin-top: 6rem; }

.skip-link { position: fixed; z-index: 10000; top: 1rem; left: 1rem; padding: .8rem 1rem; background: var(--forest-deep); color: var(--paper); transform: translateY(-180%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }

.section-shell { width: min(100%, 100rem); margin-inline: auto; padding-inline: var(--page-gutter); }
.micro-label { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.section-index { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.section-index span:first-child { color: var(--clay); }
.section-title { font-family: var(--display); font-size: clamp(3.25rem, 7vw, 7.7rem); font-weight: 500; letter-spacing: -.055em; line-height: .82; }
.section-aside { align-self: end; max-width: 30rem; color: var(--muted); font-size: clamp(1rem, 1.15vw, 1.05rem); line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; gap: 2.25rem; padding-bottom: .4rem; border-bottom: 1px solid currentColor; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.text-link span { color: var(--clay); }

/* Header ---------------------------------------------------------------- */
.site-header { position: fixed; z-index: 1000; top: 1rem; right: var(--page-gutter); left: var(--page-gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; height: var(--header-height); padding: 0 1.25rem; border: 1px solid rgba(23,32,25,.12); border-radius: 3px; background: rgba(244,242,235,.95); box-shadow: 0 .4rem 2rem rgba(13,32,23,.06); color: var(--ink); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: height .3s ease, background .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled { height: 4.05rem; background: rgba(241,238,229,.95); box-shadow: 0 .75rem 3rem rgba(13,32,23,.12); }
.brand { position: relative; z-index: 6; display: inline-flex; align-items: center; gap: .75rem; width: max-content; font-size: .8rem; font-weight: 600; letter-spacing: -.015em; text-decoration: none; }
.brand-mark { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border: 1px solid rgba(23,58,43,.3); border-radius: 50% 46% 52% 45%; color: var(--forest); font-family: var(--display); font-size: .8rem; font-weight: 600; transition: border-radius .35s ease, transform .35s ease, background .35s ease; }
.brand:hover .brand-mark { border-radius: 44% 54% 45% 56%; background: rgba(104,123,97,.14); transform: rotate(-8deg); }
.desktop-nav { display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 2rem); }
.desktop-nav a { position: relative; color: #4f5b53; font-size: .875rem; font-weight: 500; text-decoration: none; }
.desktop-nav a::after { content: ""; position: absolute; right: 100%; bottom: -.35rem; left: 0; height: 1px; background: var(--forest); transition: right .3s ease; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
.header-cta { justify-self: end; display: inline-flex; align-items: center; gap: 1rem; min-height: 2.75rem; padding: .7rem 1rem; border-radius: 2px; background: var(--forest); color: var(--paper); font-size: .875rem; font-weight: 500; text-decoration: none; transition: background .3s ease, transform .2s ease; }
.header-cta:hover { background: var(--clay); }
.menu-toggle { position: relative; z-index: 7; display: none; justify-self: end; width: 2.8rem; height: 2.8rem; padding: .75rem; border-radius: 50%; background: var(--forest); color: var(--paper); cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 1px; margin: .35rem 0; background: currentColor; transition: transform .3s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(.36rem) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.mobile-panel { position: fixed; z-index: 999; inset: 0; visibility: hidden; overflow-y: auto; background: #13291f; color: var(--paper); opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.mobile-panel[aria-hidden="false"] { visibility: visible; opacity: 1; pointer-events: auto; }
.mobile-panel__inner { display: flex; min-height: 100%; flex-direction: column; justify-content: space-between; padding: 8rem max(2.25rem, calc(var(--page-gutter) + 1rem)) 2.5rem; }
.mobile-panel .micro-label { color: #a9b8ac; }
.mobile-panel nav { display: grid; padding-block: 3rem; }
.mobile-panel nav a { display: flex; align-items: baseline; gap: 1.25rem; padding: .4rem 0; font-family: var(--display); font-size: clamp(3.1rem, 12vw, 5.2rem); letter-spacing: -.045em; line-height: .98; text-decoration: none; }
.mobile-panel nav a span { width: 2rem; color: #bfcbb8; font-family: var(--body); font-size: .75rem; font-weight: 600; letter-spacing: .1em; }
.mobile-panel__status { display: flex; align-items: center; gap: .65rem; color: #b8c2ba; font-size: .8rem; }
.status-dot, .availability i { width: .48rem; height: .48rem; border-radius: 50%; background: #a9c89d; box-shadow: 0 0 0 .28rem rgba(169,200,157,.1); }
.brand-name small { display: block; color: var(--muted); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.menu-open .site-header { background: #13291f; border-color: var(--line-light); box-shadow: none; color: var(--paper); }
.menu-open .brand-mark, .menu-open .brand-name small { color: #cad4c4; border-color: var(--line-light); }
.menu-open .menu-toggle { background: var(--paper); color: var(--forest-deep); }
.mobile-panel nav .mobile-world-switch { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line-light); color: #d1b889; font-size: clamp(2.6rem, 10.5vw, 4.4rem); }
.world-bridge { position: relative; display: grid; min-height: 32rem; align-items: center; overflow: hidden; padding: 5rem var(--page-gutter); background: var(--forest-deep); color: var(--paper); text-decoration: none; isolation: isolate; }
.world-bridge > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; transition: transform .9s ease; }
.world-bridge::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(13,32,23,.88), rgba(13,32,23,.6) 50%, rgba(13,32,23,.18)); }
.world-bridge__copy { display: grid; width: min(100%, 90rem); gap: 1.5rem; margin-inline: auto; }
.world-bridge__copy > small { color: #d0d8c8; font-size: .75rem; letter-spacing: .11em; text-transform: uppercase; }
.world-bridge__copy strong { font-family: var(--display); font-size: clamp(3rem, 7vw, 7rem); font-weight: 400; letter-spacing: -.05em; line-height: .9; }
.world-bridge__copy em { color: #d4bc8f; }
.world-bridge__copy > span { display: flex; align-items: center; justify-content: space-between; max-width: 35rem; color: #c8d0c2; font-size: .8rem; }
.world-bridge__copy b { font-size: 1.6rem; font-weight: 400; }
.world-bridge:hover > img { transform: scale(1.025); }
.world-bridge--digital { background: #252a23; }
.world-bridge--digital > img { left: 45%; width: 60%; object-fit: contain; transform: rotate(-5deg) scale(.95); }
.world-bridge--digital:hover > img { transform: rotate(-3deg) scale(1); }

/* Cursor and progress --------------------------------------------------- */
.site-progress { position: fixed; z-index: 2000; top: 0; right: 0; left: 0; height: 2px; pointer-events: none; }
.site-progress span { display: block; width: 100%; height: 100%; background: var(--clay); transform: scaleX(var(--scroll-progress, 0)); transform-origin: left; }
.cursor { position: fixed; z-index: 9999; top: 0; left: 0; display: grid; width: .7rem; height: .7rem; place-items: center; border: 1px solid rgba(241,238,229,.85); border-radius: 50%; mix-blend-mode: difference; opacity: 0; pointer-events: none; transform: translate3d(var(--cursor-x, -3rem), var(--cursor-y, -3rem), 0) translate(-50%, -50%); transition: width .22s ease, height .22s ease, color .22s ease, background .22s ease, opacity .2s ease; }
.cursor span { font-size: 0; font-weight: 600; letter-spacing: .08em; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor input, html.has-cursor textarea, html.has-cursor [tabindex] { cursor: none; }
html.has-cursor .cursor { opacity: 1; }
.cursor.is-active { width: 1.35rem; height: 1.35rem; border-color: var(--paper); background: transparent; }
.cursor.is-active span { display: none; }
/* Native dialogs live above all page z-index layers. Keep a native pointer there. */
html.has-cursor dialog[open], html.has-cursor dialog[open] * { cursor: auto; }
html.has-cursor dialog[open] button, html.has-cursor dialog[open] a { cursor: pointer; }
html.has-cursor dialog[open] button *, html.has-cursor dialog[open] a * { cursor: pointer; }
dialog::backdrop { cursor: auto; }
html.has-cursor dialog[open] .photo-dialog__stage img { cursor: grab; }
html.has-cursor dialog[open] .photo-dialog__stage img:active { cursor: grabbing; }
body.dialog-open .cursor { visibility: hidden; }

/* Reveal ---------------------------------------------------------------- */
.reveal-item, .reveal-text { transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .85s cubic-bezier(.22,.61,.36,1); }
.js .reveal-item:not(.is-visible) { opacity: 0; transform: translateY(1.4rem); }
.js .reveal-text:not(.is-visible) { opacity: .01; transform: translateY(2rem); }

/* Form and footer ------------------------------------------------------- */
.form-field { border-bottom: 1px solid var(--line); transition: border-color .25s ease; }
.form-field:focus-within { border-color: var(--forest); }
.form-field label { display: flex; gap: 1.25rem; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.form-field label span { color: var(--clay); }
.form-field input, .form-field textarea { width: 100%; padding: 1.15rem 0 1.7rem 2.5rem; border: 0; outline: 0; resize: vertical; background: transparent; font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.85rem); }
.form-field input::placeholder, .form-field textarea::placeholder { color: #535e55; opacity: 1; }
.form-field input:focus-visible, .form-field textarea:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; }
.mobile-panel :focus-visible, .photo-dialog :focus-visible, .project-dialog :focus-visible { outline-color: #dcc397; }
.submit-button { display: flex; width: 100%; min-height: 5.2rem; align-items: center; justify-content: space-between; padding: 0 1.5rem; border-radius: 0; background: var(--forest); color: var(--paper); cursor: pointer; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; transition: background .3s ease, transform .2s ease; }
.submit-button i { font-family: var(--display); font-size: 1.5rem; font-style: normal; transition: transform .3s ease; }
.submit-button:hover { background: var(--clay); }
.submit-button:hover i { transform: translate(.2rem, -.2rem); }
.submit-button:disabled { opacity: .55; cursor: wait; }
.form-status { min-height: 1.6rem; color: var(--muted); font-size: .75rem; }
.form-status.is-error { color: #943e32; }
.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }

@media (max-width: 800px) {
  :root { --header-height: 4.25rem; }
  .site-header { top: .65rem; right: .75rem; left: .75rem; grid-template-columns: 1fr auto; padding-inline: .65rem; }
  .site-header.is-scrolled { height: 3.85rem; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .section-index { grid-template-columns: 2.5rem 1fr; }
  .section-title { font-size: clamp(3rem, 15vw, 5.8rem); }
  .site-footer { grid-template-columns: 1fr; gap: .7rem; }
  .form-field input, .form-field textarea { padding-left: 0; }
}

@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal-item, .reveal-text { opacity: 1 !important; transform: none !important; }
}
