/* Osyra Studio — editable styles, based on the published Lovable design. */

/* 1. Colors and typography */
:root {
  color-scheme: light;
  --header-height: 60px;
  --background: oklch(96.5% .012 88);
  --foreground: oklch(19% .01 90);
  --muted: oklch(91% .012 88);
  --muted-foreground: oklch(48% .012 85);
  --border: oklch(82% .012 85);
  --accent: oklch(96.8% .007 247.896);
  --ink: oklch(19% .01 90);
  --paper: oklch(96.5% .012 88);
  --coral: oklch(70% .18 31);
  --accent-strong: oklch(61% .16 31);
  --font-body: 'Manrope', sans-serif;
  --font-display: 'Cormorant Garamond', serif;
}

:root.dark {
  color-scheme: dark;
  --background: oklch(16% .008 85);
  --foreground: oklch(94% .01 88);
  --muted: oklch(27.9% .041 260.031);
  --muted-foreground: oklch(70.4% .04 256.788);
  --border: oklch(100% 0 0 / .16);
  --accent: oklch(27.9% .041 260.031);
  --ink: oklch(17% .008 85);
  --paper: oklch(96% .01 88);
  --coral: oklch(72% .17 31);
  --accent-strong: oklch(74% .15 31);
}

/* 2. Base and shared elements */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
main { min-height: 100vh; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
svg { display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 5px; }
::selection { background: var(--coral); color: var(--ink); }
[hidden] { display: none !important; }
section[id], footer[id] { scroll-margin-top: var(--header-height); }
.container { width: 100%; max-width: 1500px; margin-inline: auto; padding-inline: 20px; }
.eyebrow { font-size: 12px; line-height: 16px; text-transform: uppercase; color: var(--muted-foreground); }
.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; transition: background .15s; }
.icon-button:hover { background: var(--accent); }
.icon-button .icon { width: 16px; height: 16px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; width: fit-content; }
.brand-mark { width: 40px; height: 34px; flex-shrink: 0; }
.brand span { font: 400 18px/1 var(--font-display); white-space: nowrap; }
.editorial-link { position: relative; letter-spacing: .08em; }
.editorial-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .25s; }
.editorial-link:hover::after { transform: scaleX(1); transform-origin: left; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px; background: var(--foreground); color: var(--background); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* 3. Header */
.site-header {
  --nav-fill: 0%;
  --nav-blur: 0px;
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  background: color-mix(in oklch, var(--background) var(--nav-fill), transparent);
  backdrop-filter: blur(var(--nav-blur));
  -webkit-backdrop-filter: blur(var(--nav-blur));
}
.header-inner.container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  height: 100%;
}
.desktop-nav { display: none; align-items: center; gap: 32px; }
.desktop-nav a { padding-block: 8px; font-size: 11px; text-transform: uppercase; transition: color .2s; }
.desktop-nav a::after { bottom: 3px; }
.desktop-nav a:hover, .desktop-nav a[aria-current='location'] { color: var(--accent-strong); }
.desktop-nav a[aria-current='location']::after { transform: scaleX(1); transform-origin: left; }
.desktop-nav .theme-toggle { border-left: 1px solid var(--border); border-radius: 0; padding-left: 12px; width: 44px; }
.mobile-actions { display: flex; align-items: center; gap: 4px; }
.sun-icon, .dark .moon-icon { display: none; }
.dark .sun-icon { display: block; }

/* 4. Hero */
.hero { display: flex; flex-direction: column; justify-content: space-between; min-height: calc(100svh - var(--header-height)); padding-top: 48px; padding-bottom: 32px; }
.hero-location { max-width: 320px; line-height: 1.625; }
.hero-heading { margin-block: 80px; }
.hero h1 { max-width: 1320px; font-size: clamp(3.8rem, 10vw, 10rem); line-height: .84; }
.hero h1 em { display: inline-block; margin-top: .08em; font-size: .82em; line-height: 1; color: var(--accent-strong); }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; border-top: 1px solid var(--border); padding-top: 20px; }
.hero-bottom p { max-width: 512px; font-size: 14px; line-height: 1.625; color: var(--muted-foreground); }
.explore-link { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--foreground); border-radius: 50%; transition: color .2s, background .2s; }
.explore-link:hover { background: var(--foreground); color: var(--background); }
.explore-link .icon { width: 16px; height: 16px; }

/* 5. Project grid and filters */
.work-section { border-top: 1px solid var(--border); padding-block: 80px; }
.work-heading { display: flex; flex-direction: column; gap: 28px; margin-bottom: 48px; }
.work-heading .eyebrow { margin-bottom: 12px; }
.work-heading h2 { font-size: 48px; line-height: 1; }
.project-filters { display: flex; gap: 4px; max-width: 100%; overflow-x: auto; padding-bottom: 4px; }
.project-filters button { flex-shrink: 0; height: 32px; padding-inline: 16px; font-size: 12px; font-weight: 500; text-transform: uppercase; border-radius: 999px; transition: background .15s, color .15s; }
.project-filters button:hover { background: var(--accent); }
.project-filters button[aria-pressed='true'] { color: var(--background); background: var(--foreground); }
.project-grid { display: grid; gap: 56px 24px; }
.project-card { min-width: 0; scroll-margin-top: calc(var(--header-height) + 24px); }
.project-grid.is-preview .project-image { aspect-ratio: 4 / 3; }
.project-grid.is-preview .project-card--offset { margin-top: 0; }
.projects-disclosure { display: flex; justify-content: center; margin-top: 48px; }
.projects-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 52px; max-width: 100%; padding: 14px 24px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; transition: background .25s, color .25s, border-color .25s; }
.projects-toggle .icon { width: 18px; height: 18px; transition: transform .3s; }
.projects-toggle[aria-expanded='true'] .icon { transform: rotate(180deg); }
.projects-toggle:hover { color: var(--ink); background: var(--coral); border-color: var(--coral); }
#work-title { scroll-margin-top: calc(var(--header-height) + 24px); }
.project-image { display: block; position: relative; overflow: hidden; width: 100%; aspect-ratio: 4 / 3; background: var(--muted); text-align: left; }
.project-card--tall .project-image { aspect-ratio: 4 / 5; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease-out; }
.project-card:hover .project-image img { transform: scale(1.035); }
.project-arrow { position: absolute; bottom: 16px; right: 16px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--foreground); background: var(--background); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.project-arrow .icon { width: 20px; height: 20px; }
.project-card:hover .project-arrow, .project-card:focus-within .project-arrow { opacity: 1; transform: translateY(0); }
.project-caption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; width: 100%; margin-top: 16px; text-align: left; }
.project-caption h3 { font-size: 30px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-category { font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.project-category { text-transform: uppercase; }

/* 6. Studio and contact */
.studio-section { padding-block: 96px; background: var(--ink); color: var(--paper); }
.studio-grid { display: grid; gap: 64px; }
.studio-intro .eyebrow { color: color-mix(in oklch, var(--paper) 55%, transparent); }
.studio-intro > p + p { margin-top: 16px; font-size: 14px; color: color-mix(in oklch, var(--paper) 60%, transparent); }
.studio-section h2 { font-size: 48px; line-height: .96; }
.studio-section h2 em { color: var(--coral); }
.studio-description { max-width: 672px; margin-top: 40px; font-size: 16px; line-height: 1.625; color: color-mix(in oklch, var(--paper) 65%, transparent); }
.studio-description p + p { margin-top: 24px; }
.studio-description em { color: var(--coral); }
.contact-section { padding-top: 80px; padding-bottom: 32px; background: var(--coral); color: var(--ink); }
.contact-section > .container { max-width: 1596px; }
.contact-section .eyebrow { margin-bottom: 32px; color: inherit; }
.contact-link { display: flex; align-items: end; justify-content: space-between; gap: 20px; width: 100%; text-align: left; border-bottom: 1px solid var(--ink); padding-bottom: 20px; font: 400 clamp(3rem, 9vw, 9rem)/1 var(--font-display); }
.contact-link .icon { width: 40px; height: 40px; margin-bottom: 8px; transition: transform .2s; }
.contact-link:hover .icon { transform: translate(8px, -8px); }
.footer-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 36px 24px; margin-top: 64px; }
.instagram-mark { display: grid; place-items: center; width: 44px; height: 44px; }
.instagram-mark svg { width: 24px; height: 24px; }
.copyright { grid-column: 1 / -1; padding-top: 12px; text-align: center; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }

/* 7. Project modal and mobile navigation */
dialog { color: var(--foreground); background: var(--background); border: 0; padding: 0; box-shadow: 0 20px 30px rgb(0 0 0 / .15); }
dialog::backdrop { background: rgb(0 0 0 / .8); }
dialog[open] { animation: dialog-in .2s ease-out; }
.dialog-close { position: absolute; z-index: 1; right: 6px; top: 6px; opacity: .8; }
.dialog-close:hover { opacity: 1; }
.project-dialog { width: calc(100% - 24px); max-width: 1024px; max-height: 90svh; margin: auto; border-radius: 8px; overflow-y: auto; }
.project-detail-grid { display: grid; }
.project-detail-image { aspect-ratio: 4 / 3; background: var(--muted); }
.project-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.project-detail-content { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 28px; }
#project-title { margin-top: 32px; font-size: 48px; line-height: 1; }
#project-description { margin-top: 24px; font-size: 16px; line-height: 1.625; color: var(--muted-foreground); }
.project-services { margin-top: 56px; border-top: 1px solid var(--border); padding-top: 20px; }
.project-services > p + p { margin-top: 12px; font-size: 14px; }
.project-access { position: relative; margin-top: 48px; border-top: 1px solid var(--border); padding-top: 24px; }
.project-access::before { content: ''; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--accent-strong); }
.project-access > .eyebrow { font-size: 10px; letter-spacing: .14em; }
.project-site-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 80px; padding-block: 16px; font: 400 clamp(32px, 4vw, 42px)/1.1 var(--font-display); }
#project-link-label { min-width: 0; transition: color .25s; }
.project-link-arrow { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border: 1px solid color-mix(in oklch, var(--accent-strong) 48%, transparent); border-radius: 50%; color: var(--accent-strong); background: radial-gradient(circle at 30% 20%, color-mix(in oklch, var(--accent-strong) 12%, transparent), transparent 80%); transition: color .25s, background .25s, border-color .25s; }
.project-link-arrow .icon { width: 21px; height: 21px; transition: transform .3s; }
.project-site-link:hover #project-link-label, .project-site-link:focus-visible #project-link-label { color: var(--accent-strong); }
.project-site-link:hover .project-link-arrow, .project-site-link:focus-visible .project-link-arrow { background: var(--coral); color: var(--ink); border-color: var(--coral); }
.project-site-link:hover .icon, .project-site-link:focus-visible .icon { transform: translate(2px, -2px); }
.project-access-note { max-width: 34ch; color: var(--muted-foreground); font-size: 11px; line-height: 1.6; }
.project-private { display: flex; align-items: center; gap: 16px; padding-block: 24px 18px; }
.project-private-icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 50%; background: color-mix(in oklch, var(--foreground) 3%, transparent); }
.project-private p { font: 400 36px/1.1 var(--font-display); }
.project-private span { color: var(--muted-foreground); font-size: 11px; }
.mobile-menu { position: fixed; inset: auto 0 0; width: 100%; max-width: none; max-height: 90svh; margin: 0; padding: 32px 24px 40px; border: 1px solid var(--border); border-radius: 16px 16px 0 0; }
.mobile-menu > .brand-mark { height: 44px; width: 52px; margin-bottom: 40px; }
.mobile-menu nav { display: flex; flex-direction: column; font: 400 48px/1 var(--font-display); }
.mobile-menu nav a { padding-block: 20px; border-top: 1px solid var(--border); }
.mobile-menu nav a:last-child { border-bottom: 1px solid var(--border); }

/* Contact form */
.contact-dialog { width: calc(100% - 24px); max-width: 640px; max-height: 90svh; margin: auto; padding: 32px 24px 24px; overflow-y: auto; border: 1px solid var(--border); border-radius: 20px; }
.contact-dialog .dialog-close { top: 12px; right: 12px; }
.contact-dialog-heading .eyebrow { padding-right: 32px; font-size: 10px; letter-spacing: .12em; }
.contact-dialog h2 { margin-top: 16px; font-size: clamp(48px, 8vw, 72px); line-height: .95; }
.contact-dialog h2 em { color: var(--accent-strong); }
#contact-description { margin-top: 16px; color: var(--muted-foreground); font-size: 14px; }
.contact-fields { display: grid; gap: 20px; min-width: 0; margin: 28px 0 0; padding: 0; border: 0; }
.contact-fields label { display: grid; gap: 8px; font-size: 12px; }
.contact-fields input, .contact-fields textarea { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; color: var(--foreground); background: color-mix(in oklch, var(--foreground) 3%, var(--background)); font: 400 16px/1.5 var(--font-body); transition: border-color .2s; }
.contact-fields input::placeholder, .contact-fields textarea::placeholder { color: var(--muted-foreground); opacity: .8; font-size: 13px; }
.contact-fields input:focus, .contact-fields textarea:focus { border-color: var(--accent-strong); outline: 1px solid var(--accent-strong); outline-offset: 1px; }
.contact-fields textarea { min-height: 120px; max-height: 300px; resize: vertical; }
.contact-fields .contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 20px; margin-top: 24px; }
.contact-submit { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; padding: 12px 20px; border-radius: 999px; background: var(--coral); color: var(--ink); font-size: 12px; font-weight: 600; transition: filter .2s; }
.contact-submit .icon { width: 20px; height: 20px; }
.contact-submit:hover { filter: brightness(1.08); }
.contact-submit:disabled { opacity: .65; cursor: wait; }
.contact-status { margin-top: 16px; font-size: 13px; line-height: 1.6; color: var(--muted-foreground); }
.contact-status:empty { display: none; }
.contact-status[data-state='error'] { color: var(--accent-strong); }
.contact-status[data-state='success'] { color: var(--foreground); }

@keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* 8. Responsive layout, matching the original breakpoints */
@media (min-width: 640px) {
  .contact-dialog { padding: 36px 40px 32px; }
  .container { padding-inline: 32px; }
  .hero-bottom p { font-size: 16px; }
  .work-section { padding-block: 112px; }
  .work-heading { flex-direction: row; align-items: end; justify-content: space-between; margin-bottom: 64px; }
  .work-heading h2 { font-size: 72px; }
  .project-caption h3 { font-size: 36px; line-height: 40px; }
  .studio-section { padding-block: 144px; }
  .studio-section h2 { font-size: 72px; }
  .studio-description { margin-left: auto; font-size: 18px; }
  .contact-section { padding-top: 112px; }
  .contact-link .icon { width: 64px; height: 64px; }
  .project-detail-content { padding: 40px; }
  #project-title { font-size: 72px; }
}
@media (min-width: 768px) {
  .desktop-nav { display: flex; }
  .mobile-actions { display: none; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid.is-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .project-grid.is-preview .project-image { aspect-ratio: 4 / 5; }
  .project-grid.is-preview .project-caption h3 { font-size: clamp(25px, 2.5vw, 36px); }
  .project-card--offset { margin-top: 112px; }
  .project-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-detail-image { min-height: 620px; }
}
@media (min-width: 1024px) {
  .container { padding-inline: 48px; }
  .hero { padding-top: 80px; padding-bottom: 48px; }
  .hero-heading { margin-block: 96px; }
  .project-grid { gap: 96px 40px; }
  .studio-grid { grid-template-columns: .7fr 1.3fr; }
  .studio-section h2 { font-size: 96px; }
}
@media (max-width: 639px) {
  .hero h1 { font-size: clamp(2.5rem, 13vw, 3.8rem); }
}
@media (max-width: 359px) {
  .brand { gap: 5px; }
  .brand-mark { width: 36px; height: 32px; }
  .project-caption { gap: 8px; }
  .project-caption h3 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
